Version Description
- Fixed: Button background setting doesn't get applied.
Download this release
Release Info
Developer | bfintal |
Plugin | Stackable – Page Builder Gutenberg Blocks |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- dist/blocks.build.js +1 -1
- dist/blocks.editor.build.css +1 -0
- dist/blocks.frontend.build.js +1151 -1145
- dist/blocks.frontend.build.min.js +1 -1
- dist/blocks.style.build.css +2 -2
- plugin.php +3 -1
- readme.txt +7 -4
- src/block-frontend.js +10 -0
- src/block/button/index.js +39 -32
- src/blocks.js +23 -26
- src/components/design-panel-body/editor.scss +60 -0
- src/components/design-panel-body/index.js +49 -0
- src/components/design-panel-item/index.js +17 -0
- src/components/display-logic/index.js +7 -0
- src/init.php +23 -0
- src/pro.js +4 -0
- src/wp-imports.js +19 -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=6)}([function(e,t,n){"use strict";n.d(t,"t",function(){return l}),n.d(t,"q",function(){return o}),n.d(t,"k",function(){return a}),n.d(t,"m",function(){return c}),n.d(t,"n",function(){return u}),n.d(t,"e",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return m}),n.d(t,"o",function(){return b}),n.d(t,"i",function(){return p}),n.d(t,"g",function(){return g}),n.d(t,"c",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"l",function(){return y}),n.d(t,"p",function(){return w}),n.d(t,"h",function(){return v}),n.d(t,"j",function(){return E}),n.d(t,"b",function(){return x}),n.d(t,"s",function(){return k}),n.d(t,"r",function(){return q});var l=wp.blocks.registerBlockType,o=wp.i18n.__,r=wp.components,a=r.RangeControl,c=r.SelectControl,u=(r.TextControl,r.ToggleControl),i=r.Dashicon,s=r.IconButton,m=r.Button,b=r.Toolbar,p=r.PanelBody,d=wp.editor.InspectorControls?wp.editor:wp.blocks,g=d.InspectorControls,h=d.BlockControls,f=(d.ColorPalette,d.AlignmentToolbar),y=d.RichText,w=d.URLInput,v=d.MediaUpload,C=wp.editor,E=C.PanelColorSettings,x=C.BlockAlignmentToolbar,O=lodash,k=O.omit,q=O.merge},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 s}),n.d(t,"k",function(){return m}),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 y}),n.d(t,"i",function(){return w}),n.d(t,"o",function(){return v}),n.d(t,"j",function(){return C});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)},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:"M4 9h12v2H4V9z"}))},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:"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"}))},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 32 38"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 0h32v38H0V0zm3 3v32h26V3H3zm2 2h22v7H5V5zm0 9h14v19H5V14zm16 19V14h6v19h-6zM6 6v5h20V6H6z"}))},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 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"}))},C=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";function l(e){var t=e.align,n=void 0===t?"center":t,l=e.size,r=void 0===l?"normal":l,a=e.color,c=e.text,u=void 0===c?"":c,i=e.backgroundColor,s=e.borderRadius,m=void 0===s?4:s,b=e.isSelected,p=void 0!==b&&b,d=e.onFocus,g=void 0===d?function(){}:d,h=e.onChange,f=void 0===h?function(){}:h;return wp.element.createElement("span",{className:"ugb-button ugb-button-"+n+" ugb-button-"+r,style:{backgroundColor:i,borderRadius:m+"px"}},wp.element.createElement(o.l,{tagName:"span",placeholder:Object(o.q)("Enter Text"),value:u,onChange:f,formattingControls:["bold","italic","strikethrough"],className:"ugb-button-inner",style:{color:a},onFocus:g,isSelected:p,keepPlaceholderOnFocus:!0}))}var o=n(0);t.a=l},function(e,t,n){"use strict";function l(e){var t=e.align,n=void 0===t?"center":t,l=e.size,o=void 0===l?"normal":l,r=e.url,a=void 0===r?"":r,c=e.color,u=e.text,i=e.backgroundColor,s=e.borderRadius,m={backgroundColor:i,borderRadius:s+"px"};return wp.element.createElement("div",{className:"ugb-button ugb-button-"+n+" ugb-button-"+o,style:m},wp.element.createElement("a",{href:a,className:"ugb-button-inner",style:{color:c}},u))}t.a=l},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){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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(7),n(10),n(13),n(17),n(21),n(27),n(31),n(35),n(39),n(42),n(45),n(48),n(51),n(55),n(59),n(62),n(65),n(68)},function(e,t,n){"use strict";var l=n(8),o=(n.n(l),n(9)),r=(n.n(o),n(1)),a=n(0),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.t)("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(11),o=(n.n(l),n(12)),r=(n.n(o),n(1)),a=n(0),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.c,{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)("Color Settings"),colorSettings:[{value:r,onChange:function(t){return e.setAttributes({color:t})},label:Object(a.q)("Divider Color")}]})),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.t)("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(14),o=(n.n(l),n(15)),r=(n.n(o),n(1)),a=n(16),c=n(2),u=n(3),i=n(0),s=function(e){var t=e.isSelected,n=(e.className,e.setAttributes),l=e.attributes,o=l.url,r=l.text,a=l.color,u=l.textColor,s=l.size,m=l.align,b=l.cornerButtonRadius,p=[{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[t&&wp.element.createElement(i.c,{key:"controls"},wp.element.createElement(i.b,{value:m,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),t&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.i,null,wp.element.createElement(i.m,{label:Object(i.q)("Size"),value:s,options:p.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(i.k,{label:Object(i.q)("Corner Radius"),value:b,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}})),wp.element.createElement(i.j,{title:Object(i.q)("Color Settings"),colorSettings:[{value:a,onChange:function(e){return n({color:e})},label:Object(i.q)("Background Color")},{value:u,onChange:function(e){return n({textColor:e})},label:Object(i.q)("Text Color")}]})),wp.element.createElement(c.a,{onChange:function(e){return n({text:e})},isSelected:t,align:m,size:s,color:u,text:r,borderRadius:b}),t&&wp.element.createElement("form",{onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))]},m=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.align,r=t.color,a=t.textColor,c=t.size,i=t.cornerButtonRadius;return wp.element.createElement(u.a,{align:o,size:c,url:n,color:a,text:l,backgroundColor:r,borderRadius:i})},b={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}};Object(i.t)("ugb/button",{title:Object(i.q)("Button"),icon:r.a,description:"Add customize button",category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.q)("Button"),Object(i.q)("Stackable")],attributes:b,deprecated:[{attributes:a.b,migrate:function(e){return Object(i.s)(Object(i.r)(e,{align:e.textAlignment}),["textAlignment"])},save:a.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return o});var l=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))},o={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}}},function(e,t,n){"use strict";var l=n(18),o=(n.n(l),n(19)),r=(n.n(o),n(1)),a=n(20),c=n(0),u=function(e){var t=e.isSelected,n=e.setAttributes,l=e.attributes,o=l.url,r=l.text,a=l.color,u=l.size,i=l.align,s=l.cornerButtonRadius,m=l.borderThickness,b=[{value:"small",label:Object(c.q)("Small")},{value:"normal",label:Object(c.q)("Normal ")},{value:"medium",label:Object(c.q)("Medium")},{value:"large",label:Object(c.q)("Large")}];return[t&&wp.element.createElement(c.c,null,wp.element.createElement(c.b,{value:i,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),wp.element.createElement("span",{key:"button",className:"ugb-button ugb-ghost-button ugb-button-"+i+" ugb-button-"+u,style:{borderColor:a,borderRadius:s+"px",borderWidth:m+"px"}},wp.element.createElement(c.l,{tagName:"span",placeholder:Object(c.q)("Enter Text"),value:r,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-button-inner",style:{color:a},isSelected:t,keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(c.g,{key:"inspector"},wp.element.createElement(c.i,null,wp.element.createElement(c.m,{label:Object(c.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(c.k,{label:Object(c.q)("Corner Radius"),value:s,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}}),wp.element.createElement(c.k,{label:Object(c.q)("Border Thickness"),value:m,min:"1",max:"10",onChange:function(e){return n({borderThickness:e})}})),wp.element.createElement(c.j,{title:Object(c.q)("Color Settings"),colorSettings:[{value:a,onChange:function(e){return n({color:e})},label:Object(c.q)("Button Color")}]}))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(c.e,{icon:"admin-links"}),wp.element.createElement(c.p,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(c.f,{icon:"editor-break",label:Object(c.q)("Apply"),type:"submit"}))]},i=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.align,r=t.color,a=t.size,c=t.cornerButtonRadius,u=t.borderThickness,i={borderColor:r,borderRadius:c+"px",borderWidth:u+"px"};return wp.element.createElement("div",{className:"ugb-button ugb-ghost-button ugb-button-"+o+" ugb-button-"+a,style:i},wp.element.createElement("a",{href:n,className:"ugb-button-inner",style:{color:r}},l))},s={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{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"}};Object(c.t)("ugb/ghost-button",{title:Object(c.q)("Ghost Button"),icon:r.e,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.q)("Ghost Button"),Object(c.q)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.s)(Object(c.r)(e,{align:e.textAlignment}),["textAlignment"])},save:a.a}],edit:u,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return o});var l=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))},o={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"}}},function(e,t,n){"use strict";var l=n(22),o=(n.n(l),n(23)),r=(n.n(o),n(24)),a=n.n(r),c=n(1),u=n(0),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,s=a.textColor,m=a.notifType,b=a.dismissible;return[n&&wp.element.createElement(u.c,{key:"controls"}),wp.element.createElement("div",{key:"editable",className:"ugb-notification type-"+m+" 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:s}},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-"+m,style:{backgroundColor:i,color:s}}),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:m,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)("Color Settings"),colorSettings:[{value:i,onChange:function(e){return r({color:e})},label:Object(u.q)("Background Color")},{value:s,onChange:function(e){return r({textColor:e})},label:Object(u.q)("Text Color")}]})))]},s=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.t)("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:s})},function(e,t){},function(e,t){},function(e,t,n){!function(){var t=n(25),l=n(4).utf8,o=n(26),r=n(4).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,s=-271733879,m=-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 y=i,w=s,v=m,C=b;i=d(i,s,m,b,c[p+0],7,-680876936),b=d(b,i,s,m,c[p+1],12,-389564586),m=d(m,b,i,s,c[p+2],17,606105819),s=d(s,m,b,i,c[p+3],22,-1044525330),i=d(i,s,m,b,c[p+4],7,-176418897),b=d(b,i,s,m,c[p+5],12,1200080426),m=d(m,b,i,s,c[p+6],17,-1473231341),s=d(s,m,b,i,c[p+7],22,-45705983),i=d(i,s,m,b,c[p+8],7,1770035416),b=d(b,i,s,m,c[p+9],12,-1958414417),m=d(m,b,i,s,c[p+10],17,-42063),s=d(s,m,b,i,c[p+11],22,-1990404162),i=d(i,s,m,b,c[p+12],7,1804603682),b=d(b,i,s,m,c[p+13],12,-40341101),m=d(m,b,i,s,c[p+14],17,-1502002290),s=d(s,m,b,i,c[p+15],22,1236535329),i=g(i,s,m,b,c[p+1],5,-165796510),b=g(b,i,s,m,c[p+6],9,-1069501632),m=g(m,b,i,s,c[p+11],14,643717713),s=g(s,m,b,i,c[p+0],20,-373897302),i=g(i,s,m,b,c[p+5],5,-701558691),b=g(b,i,s,m,c[p+10],9,38016083),m=g(m,b,i,s,c[p+15],14,-660478335),s=g(s,m,b,i,c[p+4],20,-405537848),i=g(i,s,m,b,c[p+9],5,568446438),b=g(b,i,s,m,c[p+14],9,-1019803690),m=g(m,b,i,s,c[p+3],14,-187363961),s=g(s,m,b,i,c[p+8],20,1163531501),i=g(i,s,m,b,c[p+13],5,-1444681467),b=g(b,i,s,m,c[p+2],9,-51403784),m=g(m,b,i,s,c[p+7],14,1735328473),s=g(s,m,b,i,c[p+12],20,-1926607734),i=h(i,s,m,b,c[p+5],4,-378558),b=h(b,i,s,m,c[p+8],11,-2022574463),m=h(m,b,i,s,c[p+11],16,1839030562),s=h(s,m,b,i,c[p+14],23,-35309556),i=h(i,s,m,b,c[p+1],4,-1530992060),b=h(b,i,s,m,c[p+4],11,1272893353),m=h(m,b,i,s,c[p+7],16,-155497632),s=h(s,m,b,i,c[p+10],23,-1094730640),i=h(i,s,m,b,c[p+13],4,681279174),b=h(b,i,s,m,c[p+0],11,-358537222),m=h(m,b,i,s,c[p+3],16,-722521979),s=h(s,m,b,i,c[p+6],23,76029189),i=h(i,s,m,b,c[p+9],4,-640364487),b=h(b,i,s,m,c[p+12],11,-421815835),m=h(m,b,i,s,c[p+15],16,530742520),s=h(s,m,b,i,c[p+2],23,-995338651),i=f(i,s,m,b,c[p+0],6,-198630844),b=f(b,i,s,m,c[p+7],10,1126891415),m=f(m,b,i,s,c[p+14],15,-1416354905),s=f(s,m,b,i,c[p+5],21,-57434055),i=f(i,s,m,b,c[p+12],6,1700485571),b=f(b,i,s,m,c[p+3],10,-1894986606),m=f(m,b,i,s,c[p+10],15,-1051523),s=f(s,m,b,i,c[p+1],21,-2054922799),i=f(i,s,m,b,c[p+8],6,1873313359),b=f(b,i,s,m,c[p+15],10,-30611744),m=f(m,b,i,s,c[p+6],15,-1560198380),s=f(s,m,b,i,c[p+13],21,1309151649),i=f(i,s,m,b,c[p+4],6,-145523070),b=f(b,i,s,m,c[p+11],10,-1120210379),m=f(m,b,i,s,c[p+2],15,718787259),s=f(s,m,b,i,c[p+9],21,-343485551),i=i+y>>>0,s=s+w>>>0,m=m+v>>>0,b=b+C>>>0}return t.endian([i,s,m,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(28),o=(n.n(l),n(29)),r=(n.n(o),n(1)),a=n(30),c=n(0),u=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,a=l.quoteColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-blockquote",style:{"--quote-color":a}},wp.element.createElement(c.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(c.g,{key:"inspector"},wp.element.createElement(c.j,{title:Object(c.q)("Color Settings"),colorSettings:[{value:o,onChange:function(e){return n({color:e})},label:Object(c.q)("Text Color")},{value:a,onChange:function(e){return n({quoteColor:e})},label:Object(c.q)("Quote Color")}]}))]},i=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.quoteColor;return wp.element.createElement("blockquote",{className:"ugb-blockquote",style:{"--quote-color":o}},wp.element.createElement("p",{style:{color:n}},l))},s={text:{type:"array",source:"children",selector:"p",default:Object(c.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:""},quoteColor:{type:"string",default:""}};Object(c.t)("ugb/blockquote",{title:Object(c.q)("Blockquote"),icon:r.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.q)("Blockquote"),Object(c.q)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.s)(Object(c.r)(e,{quoteColor:e.borderColor}),["borderColor"])},save:a.a}],edit:u,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return r});var l=n(0),o={text:{type:"array",source:"children",selector:"p",default:Object(l.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"}},r=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))}},function(e,t,n){"use strict";var l=n(32),o=(n.n(l),n(33)),r=(n.n(o),n(1)),a=n(34),c=n(0),u=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,a=l.quoteColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-pullquote",style:{"--quote-color":a}},wp.element.createElement(c.l,{tagName:"p",className:"ugb-pullquote-text",value:r,onChange:function(e){return n({text:e})},placeholder:Object(c.q)("Write quote\u2026"),formattingControls:["bold","italic","strikethrough","link"],isSelected:t,keepPlaceholderOnFocus:!0,style:{color:o}})),t&&wp.element.createElement(c.g,null,wp.element.createElement(c.j,{title:Object(c.q)("Color Settings"),colorSettings:[{value:o,onChange:function(e){return n({color:e})},label:Object(c.q)("Text Color")},{value:a,onChange:function(e){return n({quoteColor:e})},label:Object(c.q)("Quote Color")}]}))]},i=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.quoteColor;return wp.element.createElement("blockquote",{className:"ugb-pullquote",style:{"--quote-color":o}},wp.element.createElement("p",{style:{color:n}},l))},s={text:{type:"array",source:"children",selector:"p",default:Object(c.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:""},quoteColor:{type:"string",default:""}};Object(c.t)("ugb/pullquote",{title:Object(c.q)("Pullquote"),icon:r.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.q)("Pullquote"),Object(c.q)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.s)(Object(c.r)(e,{quoteColor:e.borderColor}),["borderColor"])},save:a.a}],edit:u,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var l=n(0),o=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))},r={text:{type:"array",source:"children",selector:"p",default:Object(l.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"}}},function(e,t,n){"use strict";var l=n(36),o=(n.n(l),n(37)),r=(n.n(o),n(1)),a=n(2),c=n(3),u=n(38),i=n(0),s=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,s=r.ctaTitle,m=r.bodyText,b=r.color,p=r.textColor,d=r.size,g=r.borderButtonRadius,h=r.bodyTextColor,f=r.titleColor,y=r.bgColor,w=[{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")}],v=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.i,null,wp.element.createElement(i.m,{label:Object(i.q)("Button Size"),value:d,options:w.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(i.k,{label:Object(i.q)("Button Border Radius"),value:g,min:"1",max:"50",onChange:function(e){return o({borderButtonRadius:e})}})),wp.element.createElement(i.j,{initialOpen:!1,title:Object(i.q)("Color Settings"),colorSettings:[{value:y,onChange:function(e){return o({bgColor:e})},label:Object(i.q)("Background Color")},{value:f,onChange:function(e){return o({titleColor:e})},label:Object(i.q)("Title Color")},{value:h,onChange:function(e){return o({bodyTextColor:e})},label:Object(i.q)("Body Text Color")}]}),wp.element.createElement(i.j,{title:Object(i.q)("Button Colors"),colorSettings:[{value:b,onChange:function(e){return o({color:e})},label:Object(i.q)("Button Background Color")},{value:p,onChange:function(e){return o({textColor:e})},label:Object(i.q)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-cta",style:{backgroundColor:y}},wp.element.createElement(i.l,{className:"ugb-cta-title",tagName:"h3",placeholder:Object(i.q)("Add Title"),value:s,onChange:function(e){return o({ctaTitle:e})},isSelected:t&&"ctaTitle"===n,onFocus:v("ctaTitle"),keepPlaceholderOnFocus:!0,style:{color:f}}),wp.element.createElement(i.l,{tagName:"p",value:m,className:"ugb-cta-bodyText",onChange:function(e){return o({bodyText:e})},isSelected:t&&"bodyText"===n,onFocus:v("bodyText"),placeholder:Object(i.q)("Write body text\u2026"),style:{color:h}}),wp.element.createElement(a.a,{size:d,color:p,backgroundColor:b,text:u,borderRadius:g,onChange:function(e){return o({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:v("buttonText")})),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))]},m=function(e){var t=e.attributes,n=t.url,l=t.buttonText,o=t.ctaTitle,r=t.bodyText,a=t.color,u=t.textColor,i=t.size,s=t.borderButtonRadius,m=t.bodyTextColor,b=t.titleColor,p=t.bgColor;return wp.element.createElement("div",{className:"ugb-cta",style:{backgroundColor:p}},o&&!!o.length&&wp.element.createElement("h3",{className:"ugb-cta-title",style:{color:b}},o),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:m}},r),l&&!!l.length&&wp.element.createElement(c.a,{size:i,url:n,color:u,text:l,backgroundColor:a,borderRadius:s}))},b={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},ctaTitle:{type:"array",source:"children",selector:"h3",default:Object(i.q)("Get Started Today")},bodyText:{type:"array",source:"children",selector:"p",default:Object(i.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}};Object(i.t)("ugb/cta",{title:Object(i.q)("Call to Action"),icon:r.b,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.q)("Call to Action"),Object(i.q)("Stackable"),Object(i.q)("CTA")],attributes:b,supports:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({align:!0},"align",["center","wide","full"]),deprecated:[{save:u.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=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,s=t.bodyTextColor,m=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:m}},o),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:s}},r),l&&!!l.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-cta-button ugb-button-"+u,style:p},l))}},function(e,t,n){"use strict";var l=n(40),o=(n.n(l),n(41)),r=(n.n(o),n(1)),a=n(0),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,s=r.body,m=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,y=r.mediaIDThree,w=r.mediaURL,v=r.mediaURLTwo,C=r.mediaURLThree,E=r.columns,x=r.titleColor,O=r.posColor,k=r.bodyTextColor,q=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")}],j=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.c,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:E,options:T.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.q)("Color Settings"),colorSettings:[{value:x,onChange:function(e){return o({titleColor:e})},label:Object(a.q)("Title Color")},{value:O,onChange:function(e){return o({posColor:e})},label:Object(a.q)("Position Color")},{value:k,onChange:function(e){return o({bodyTextColor:e})},label:Object(a.q)("Body Text Color")},{value:q,onChange:function(e){return o({iconColor:e})},label:Object(a.q)("Icon Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-testimonial column-"+E},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.d,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+w+")"}}):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:j("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:j("position"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-testimonial-body",onChange:function(e){return o({body:e})},isSelected:t&&"body"===n,onFocus:j("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.d,{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:j("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:j("positionTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-testimonial-body-two",onChange:function(e){return o({bodyTwo:e})},isSelected:t&&"bodyTwo"===n,onFocus:j("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:y,render:function(e){return wp.element.createElement(a.d,{className:y?"":"button button-large",onClick:e.open},y?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+C+")"}}):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:j("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:j("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:j("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,s=t.positionThree,m=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,y=t.columns,w=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-"+y},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},m?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+m+")"},"data-src":m}):w,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)),y>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}):w,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)),y>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}):w,o&&!!o.length&&wp.element.createElement("h4",{style:{color:d}},o),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-three",style:{color:g}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-three",style:{color:h}},c)))};Object(a.t)("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(43),o=(n.n(l),n(44)),r=(n.n(o),n(1)),a=n(0),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,s=r.des,m=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,y=r.mediaIDThree,w=r.mediaURL,v=r.mediaURLTwo,C=r.mediaURLThree,E=r.columns,x=r.nameColor,O=r.posColor,k=r.desColor,q=r.iconColor,T=r.shapes,j=[{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.c,{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:E,options:j.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.q)("Color Settings"),colorSettings:[{value:x,onChange:function(e){return o({nameColor:e})},label:Object(a.q)("Name Color")},{value:O,onChange:function(e){return o({posColor:e})},label:Object(a.q)("Position Color")},{value:k,onChange:function(e){return o({desColor:e})},label:Object(a.q)("Description Color")},{value:q,onChange:function(e){return o({iconColor:e})},label:Object(a.q)("Icon Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-team-member column-"+E+" 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.d,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+w+")"}}):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:s,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.d,{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:m,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:y,render:function(e){return wp.element.createElement(a.d,{className:y?"":"button button-large",onClick:e.open},y?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+C+")"}}):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,s=t.positionTwo,m=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,y=(t.iconColor,t.columns);return wp.element.createElement("div",{className:"ugb-team-member column-"+y+" 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)),y>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),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-team-member-des-two",style:{color:f}},c)),y>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),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},m),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-team-member-des-three",style:{color:f}},u)))};Object(a.t)("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(46),r=(n.n(o),n(47)),a=(n.n(r),n(1)),c=n(0),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}}):""},s=function(e){var t=(e.focus,e.setFocus,e.editable),n=e.setAttributes,o=e.setState,r=e.className,a=e.isSelected,s=function(e){return function(){o({editable:e})}},m=e.attributes,b=m.text,p=m.moreLabel,d=m.moreText,g=m.lessLabel;return[a&&wp.element.createElement(c.c,{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:s("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:s("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:s("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:s("lessLabel"),onChange:function(e){return n({lessLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-less"},"placeholder",Object(c.q)("Show less"))))]},m=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.t)("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:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(49),o=(n.n(l),n(50)),r=(n.n(o),n(1)),a=n(0),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,s=r.body,m=r.bodyTwo,b=r.bodyThree,p=r.name,d=r.nameTwo,g=r.nameThree,h=r.columns,f=r.numberBoxColor,y=r.nameColor,w=r.bodyTextColor,v=r.numberBGColor,C=[{value:"1",label:Object(a.q)("One Column")},{value:"2",label:Object(a.q)("Two Column")},{value:"3",label:Object(a.q)("Three Column")}],E=function(e){return function(){o({editable:e})}};return[n&&wp.element.createElement(a.c,{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:C.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)("Color Settings"),colorSettings:[{value:f,onChange:function(e){return t({numberBoxColor:e})},label:Object(a.q)("Number Color")},{value:v,onChange:function(e){return t({numberBGColor:e})},label:Object(a.q)("Number Background Color")},{value:y,onChange:function(e){return t({nameColor:e})},label:Object(a.q)("Name Color")},{value:w,onChange:function(e){return t({bodyTextColor:e})},label:Object(a.q)("Body Text Color")}]})),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:E("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:E("name"),placeholder:Object(a.q)("Add name\u2026"),style:{color:y},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-number-box-body",onChange:function(e){return t({body:e})},isSelected:n&&"body"===l,onFocus:E("body"),placeholder:Object(a.q)("Add body\u2026"),style:{color:w},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:E("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:E("nameTwo"),placeholder:Object(a.q)("Add name\u2026"),style:{color:y},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-number-box-body-two",onChange:function(e){return t({bodyTwo:e})},isSelected:n&&"bodyTwo"===l,onFocus:E("bodyTwo"),placeholder:Object(a.q)("Add body\u2026"),style:{color:w},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:E("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:E("nameThree"),placeholder:Object(a.q)("Add name\u2026"),style:{color:y},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:E("bodyThree"),placeholder:Object(a.q)("Add body\u2026"),style:{color:w},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,s=t.nameThree,m=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:m,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:m,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:m,backgroundColor:d}},o),s&&!!s.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-three",style:{color:b}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-number-box-body-three",style:{color:p}},c)))};Object(a.t)("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(52),o=(n.n(l),n(53)),r=(n.n(o),n(1)),a=n(2),c=n(3),u=n(54),i=n(0),s=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),s=r.pricingBoxTitle2,m=r.pricingBoxTitle3,b=r.price,p=r.price2,d=r.price3,g=r.perMonthLabel,h=r.perMonthLabel2,f=r.perMonthLabel3,y=r.buttonText,w=r.buttonText2,v=r.buttonText3,C=r.featureList,E=r.featureList2,x=r.featureList3,O=r.pricingBoxColor,k=r.priceColor,q=r.perMonthLabelColor,T=r.buttonColor,j=r.buttonTextColor,N=r.featureListColor,S=r.columns,B=r.size,L=r.cornerButtonRadius,z=[{value:"1",label:Object(i.q)("One Column")},{value:"2",label:Object(i.q)("Two Column")},{value:"3",label:Object(i.q)("Three Column")}],F=[{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")}],R=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(i.c,{key:"controls"}),t&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.i,null,wp.element.createElement(i.m,{label:Object(i.q)("Column Number"),value:S,options:z.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}}),wp.element.createElement(i.k,{label:Object(i.q)("Corner Radius"),value:L,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}}),wp.element.createElement(i.m,{label:Object(i.q)("Button Size"),value:B,options:F.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}})),wp.element.createElement(i.j,{initialOpen:!1,title:Object(i.q)("Text Colors"),colorSettings:[{value:O,onChange:function(e){return o({pricingBoxColor:e})},label:Object(i.q)("Pricing Title Color")},{value:k,onChange:function(e){return o({priceColor:e})},label:Object(i.q)("Price Color")},{value:q,onChange:function(e){return o({perMonthLabelColor:e})},label:Object(i.q)("Per Month Label Color")},{value:N,onChange:function(e){return o({featureListColor:e})},label:Object(i.q)("Feature List Color")}]}),wp.element.createElement(i.j,{initialOpen:!1,title:Object(i.q)("Button Colors"),colorSettings:[{value:T,onChange:function(e){return o({buttonColor:e})},label:Object(i.q)("Button Color")},{value:j,onChange:function(e){return o({buttonTextColor:e})},label:Object(i.q)("Button Text Color")}]})),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(i.l,{tagName:"h3",value:u,onChange:function(e){return o({pricingBoxTitle:e})},isSelected:t&&"pricingBoxTitle"===n,onFocus:R("pricingBoxTitle"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:b,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price:e})},isSelected:t&&"price"===n,onFocus:R("price"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:g,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel:e})},focus:t&&"perMonthLabel"===n,onFocus:R("perMonthLabel"),style:{color:q},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:B,color:j,backgroundColor:T,text:y,borderRadius:L,onChange:function(e){return o({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:R("buttonText")}),wp.element.createElement(i.l,{tagName:"p",value:C,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList:e})},focus:t&&"featureList"===n,onFocus:R("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(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},wp.element.createElement(i.l,{tagName:"h3",value:s,onChange:function(e){return o({pricingBoxTitle2:e})},isSelected:t&&"pricingBoxTitle2"===n,onFocus:R("pricingBoxTitle2"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:p,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price2:e})},isSelected:t&&"price2"===n,onFocus:R("price2"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:h,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel2:e})},focus:t&&"perMonthLabel2"===n,onFocus:R("perMonthLabel2"),style:{color:q},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:B,color:j,backgroundColor:T,text:w,borderRadius:L,onChange:function(e){return o({buttonText2:e})},isSelected:t&&"buttonText2"===n,onFocus:R("buttonText2")}),wp.element.createElement(i.l,{tagName:"p",value:E,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList2:e})},focus:t&&"featureList2"===n,onFocus:R("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(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},wp.element.createElement(i.l,{tagName:"h3",value:m,onChange:function(e){return o({pricingBoxTitle3:e})},isSelected:t&&"pricingBoxTitle3"===n,onFocus:R("pricingBoxTitle3"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:d,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price3:e})},isSelected:t&&"price3"===n,onFocus:R("price3"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:f,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel3:e})},focus:t&&"perMonthLabel3"===n,onFocus:R("perMonthLabel3"),style:{color:q},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:B,color:j,backgroundColor:T,text:v,borderRadius:L,onChange:function(e){return o({buttonText3:e})},isSelected:t&&"buttonText3"===n,onFocus:R("buttonText3")}),wp.element.createElement(i.l,{tagName:"p",value:x,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList3:e})},focus:t&&"featureList3"===n,onFocus:R("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(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))))]},m=function(e){var t=e.attributes,n=t.url,l=t.url2,o=t.url3,r=t.pricingBoxTitle,a=t.pricingBoxTitle2,u=t.pricingBoxTitle3,i=t.price,s=t.price2,m=t.price3,b=t.perMonthLabel,p=t.perMonthLabel2,d=t.perMonthLabel3,g=t.buttonText,h=t.buttonText2,f=t.buttonText3,y=t.featureList,w=t.featureList2,v=t.featureList3,C=t.pricingBoxColor,E=t.priceColor,x=t.perMonthLabelColor,O=t.buttonColor,k=t.buttonTextColor,q=t.featureListColor,T=t.columns,j=t.size,N=t.cornerButtonRadius;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:C}},r),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:x}},b),g&&!!g.length&&wp.element.createElement(c.a,{size:j,url:n,color:k,text:g,backgroundColor:O,borderRadius:N}),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:q}},y)),T>1&&wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},a&&!!a.length&&wp.element.createElement("h3",{style:{color:C}},a),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},s),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:x}},p),h&&!!h.length&&wp.element.createElement(c.a,{size:j,url:l,color:k,text:h,backgroundColor:O,borderRadius:N}),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:q}},w)),T>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},u&&!!u.length&&wp.element.createElement("h3",{style:{color:C}},u),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},m),d&&!!d.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:x}},d),f&&!!f.length&&wp.element.createElement(c.a,{size:j,url:o,color:k,text:f,backgroundColor:O,borderRadius:N}),v&&!!v.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:q}},v)))},b={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(i.q)("Basic")},pricingBoxTitle2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two h3",default:Object(i.q)("Basic")},pricingBoxTitle3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three h3",default:Object(i.q)("Basic")},price:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-pricing",default:Object(i.q)("$9")},price2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-pricing",default:Object(i.q)("$9")},price3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-pricing",default:Object(i.q)("$9")},perMonthLabel:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-per-month-label",default:Object(i.q)("per month")},perMonthLabel2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-per-month-label",default:Object(i.q)("per month")},perMonthLabel3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-per-month-label",default:Object(i.q)("per month")},buttonText:{type:"array",source:"children",selector:".ugb-pricing-box-column-one a",default:Object(i.q)("Buy Now")},buttonText2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two a",default:Object(i.q)("Buy Now")},buttonText3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three a",default:Object(i.q)("Buy Now")},featureList:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-feature-list",default:Object(i.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(i.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(i.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}};Object(i.t)("ugb/pricing-box",{title:Object(i.q)("Pricing Box"),icon:r.j,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.q)("Pricing Box"),Object(i.q)("Stackable")],attributes:b,deprecated:[{save:u.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=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,s=t.price3,m=t.perMonthLabel,b=t.perMonthLabel2,p=t.perMonthLabel3,d=t.buttonText,g=t.buttonText2,h=t.buttonText3,f=t.featureList,y=t.featureList2,w=t.featureList3,v=t.pricingBoxColor,C=t.priceColor,E=t.perMonthLabelColor,x=t.buttonColor,O=t.buttonTextColor,k=t.featureListColor,q=t.columns,T=t.size,j=t.cornerButtonRadius,N={backgroundColor:x,color:O,borderRadius:j+"px"};return wp.element.createElement("div",{className:"ugb-pricing-box column-"+q},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:C}},u),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},m),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)),q>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:C}},i),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},b),g&&!!g.length&&wp.element.createElement("a",{href:l,className:"wp-ugb-button ugb-button-"+T,style:N},g),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},y)),q>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},c&&!!c.length&&wp.element.createElement("h3",{style:{color:v}},c),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:C}},s),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},p),h&&!!h.length&&wp.element.createElement("a",{href:o,className:"wp-ugb-button ugb-button-"+T,style:N},h),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},w)))}},function(e,t,n){"use strict";function l(e){return 0===e?null:"overlay-opacity-"+1*Math.round(e/1)}var o=n(5),r=n.n(o),a=n(56),c=(n.n(a),n(57)),u=(n.n(c),n(1)),i=n(2),s=n(3),m=n(58),b=n(0),p=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,o=e.editable,a=e.setState,c=e.attributes,u=c.url,s=c.buttonURL,m=c.buttonText,p=c.buttonColor,d=c.buttonTextColor,g=c.cornerButtonRadius,h=c.size,f=c.title,y=c.titleColor,w=c.subtitle,v=c.subtitleColor,C=c.contentAlign,E=c.id,x=c.backgroundColor,O=c.opacity,k=u?{backgroundImage:"url("+u+")"}:void 0,q=u?"has-image":"",T=r()(l(O),{"overlay-opacity":0!==O}),j=function(e){return function(){a({editable:e})}},N=[{value:"small",label:Object(b.q)("Small")},{value:"normal",label:Object(b.q)("Normal")},{value:"medium",label:Object(b.q)("Medium")},{value:"large",label:Object(b.q)("Large")}];return[n&&wp.element.createElement(b.c,{key:"controls"},wp.element.createElement(b.a,{value:C,onChange:function(e){return t({contentAlign:e})}}),wp.element.createElement(b.o,null,wp.element.createElement(b.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(b.f,{className:"components-toolbar__control",label:Object(b.q)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(b.g,null,wp.element.createElement(b.i,{title:Object(b.q)("General")},wp.element.createElement(b.k,{label:Object(b.q)("Background Opacity"),value:O,min:0,max:10,step:1,onChange:function(e){return t({opacity:e})}}),wp.element.createElement(b.m,{label:Object(b.q)("Button Size"),value:h,options:N.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({size:e})}}),wp.element.createElement(b.k,{label:Object(b.q)("Corner Radius"),value:g,min:"1",max:"50",onChange:function(e){return t({cornerButtonRadius:e})}})),wp.element.createElement(b.j,{initialOpen:!1,title:Object(b.q)("Header Colors"),colorSettings:[{value:y,onChange:function(e){return t({titleColor:e})},label:Object(b.q)("Title Color")},{value:v,onChange:function(e){return t({subtitleColor:e})},label:Object(b.q)("Subtitle Color")},{value:x,onChange:function(e){return t({backgroundColor:e})},label:Object(b.q)("Heading Background Color")}]}),wp.element.createElement(b.j,{initialOpen:!1,title:Object(b.q)("Button Colors"),colorSettings:[{value:p,onChange:function(e){return t({buttonColor:e})},label:Object(b.q)("Button Color")},{value:d,onChange:function(e){return t({buttonTextColor:e})},label:Object(b.q)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-header "+q+" "},wp.element.createElement("div",{className:"ugb-header-overlay "+T,style:{backgroundColor:x}}),wp.element.createElement(b.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){return[!u&&wp.element.createElement(b.d,{className:E?"":"button button-large",onClick:e.open},Object(b.q)("Upload Image"))]}}),wp.element.createElement("section",{key:"preview","data-url":u,style:k,className:"ugb-header-section"},wp.element.createElement(b.l,{tagName:"h2",className:"ugb-header-title",placeholder:f.default,value:f,onChange:function(e){return t({title:e})},isSelected:n&&"title"===o,onFocus:j("title"),style:{textAlign:C,color:y}}),wp.element.createElement(b.l,{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:C,color:v}}),wp.element.createElement(i.a,{size:h,align:C,color:d,backgroundColor:p,text:m,borderRadius:g,onChange:function(e){return t({buttonText:e})},isSelected:n&&"buttonText"===o,onFocus:j("buttonText")}))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+C},wp.element.createElement(b.e,{icon:"admin-links"}),wp.element.createElement(b.p,{value:s,onChange:function(e){return t({buttonURL:e})}}),wp.element.createElement(b.f,{icon:"editor-break",label:Object(b.q)("Apply"),type:"submit"}))]},d=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,b=t.title,p=t.titleColor,d=t.subtitle,g=t.subtitleColor,h=t.contentAlign,f=(t.id,t.backgroundColor),y=t.opacity,w=n?{backgroundImage:"url("+n+")"}:void 0,v=n?"has-image":"",C=r()(l(y),{"overlay-opacity":0!==y}),E=b.length||d.length||a.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+v+" "+E},wp.element.createElement("div",{className:"ugb-header-overlay "+C,style:{backgroundColor:f}}),wp.element.createElement("section",{key:"preview","data-url":n,style:w,className:"ugb-header-section"},b&&!!b.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:p}},b),d&&!!d.length&&wp.element.createElement("p",{className:"ugb-header-subtitle",style:{color:g}},d),a&&!!a.length&&wp.element.createElement(s.a,{size:m,url:o,align:h,color:u,text:a,backgroundColor:c,borderRadius:i})))},g={title:{type:"array",source:"children",selector:"h2",default:Object(b.q)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(b.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:".ugb-button-inner",attribute:"href"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},buttonText:{type:"array",source:"children",selector:".ugb-button-inner",default:Object(b.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}};Object(b.t)("ugb/header",{title:Object(b.q)("Header"),icon:u.f,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(b.q)("Header"),Object(b.q)("Stackable")],supports:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({align:!0},"align",["center","wide","full"]),attributes:g,deprecated:[{attributes:m.b,save:m.a}],edit:p,save:d})},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)}n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u});var o=n(5),r=n.n(o),a=n(0),c=function(e){var t=e.attributes,n=t.url,o=t.buttonURL,a=t.buttonText,c=t.buttonColor,u=t.buttonTextColor,i=t.cornerButtonRadius,s=t.size,m=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"},y=n?{backgroundImage:"url("+n+")"}:void 0,w=n?"has-image":"",v=r()(l(h),{"overlay-opacity":0!==h}),C=m||p||a?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+w+" "+C},wp.element.createElement("div",{className:"ugb-header-overlay "+v,style:{backgroundColor:g}}),wp.element.createElement("section",{key:"preview","data-url":n,style:y,className:"ugb-header-section"},m&&!!m.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:b}},m),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-"+s,style:f},a)))},u={title:{type:"array",source:"children",selector:"h2",default:Object(a.q)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(a.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(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:"center"},id:{type:"number"},backgroundColor:{type:"string",default:"#000000"},opacity:{type:"number",default:5}}},function(e,t,n){"use strict";var l=n(60),o=(n.n(l),n(61)),r=(n.n(o),n(1)),a=n(0),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,s=r.subtitle,m=r.subtitleColor,b=r.overlayColor,p=r.id,d=r.height,g=r.width,h=r.verticalAlign,f=r.horizontalAlign,y=r.full,w=c?"has-image":"",v=y?"full-width":"",C=function(e){return function(){o({editable:e})}},E=[{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.c,{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:!!y,onChange:function(){return t({full:!y})}}),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:E.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)("Color Settings"),colorSettings:[{value:b,onChange:function(e){return t({overlayColor:e})},label:Object(a.q)("Overlay Color")},{value:i,onChange:function(e){return t({titleColor:e})},label:Object(a.q)("Title Color")},{value:m,onChange:function(e){return t({subtitleColor:e})},label:Object(a.q)("Subtitle Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-image-box "+w+" "+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.d,{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:C("title"),style:{color:i}}),wp.element.createElement(a.l,{tagName:"p",placeholder:s.default,value:s,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===l,onFocus:C("subtitle"),style:{color:m}}))]},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,s=t.verticalAlign,m=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:m,justifyContent:s}},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.t)("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(63),o=(n.n(l),n(64)),r=(n.n(o),n(1)),a=n(0),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,s=c.desColor,m=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:m,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:s}})),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.q)("Color Settings"),colorSettings:[{value:i,onChange:function(e){return r({headingColor:e})},label:Object(a.q)("Heading Color")},{value:u,onChange:function(e){return r({color:e})},label:Object(a.q)("Number Color")},{value:s,onChange:function(e){return r({desColor:e})},label:Object(a.q)("Description Color")}]}),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.t)("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(66),o=(n.n(l),n(67)),r=(n.n(o),n(1)),a=n(0),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,s=l.mediaID,m=[{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.c,{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:s,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:m.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({playButtonType:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.q)("Color Settings"),colorSettings:[{value:u,onChange:function(e){return t({overlayColor:e})},label:Object(a.q)("Background / Overlay Color")}]})),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:s,render:function(e){return[!r&&wp.element.createElement(a.d,{className:s?"":"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.t)("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(69),o=(n.n(l),n(70)),r=(n.n(o),n(1)),a=n(2),c=n(3),u=n(71),i=n(0),s=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,s=r.des,m=r.mediaID,b=r.mediaURL,p=r.headingColor,d=r.taglineColor,g=r.desColor,h=r.buttonURL,f=r.buttonText,y=r.buttonColor,w=r.buttonTextColor,v=r.size,C=r.cornerButtonRadius,E=r.contentAlign,x=function(e){return function(){l({editable:e})}},O=b?"has-image":"",k=[{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[t&&wp.element.createElement(i.c,{key:"controls"},wp.element.createElement(i.a,{value:E,onChange:function(e){return o({contentAlign:e})}}),wp.element.createElement(i.o,null,wp.element.createElement(i.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(i.f,{className:"components-toolbar__control",label:Object(i.q)("Edit image"),icon:"edit",onClick:t})}}))),t&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.j,{title:Object(i.q)("Text Colors"),colorSettings:[{value:p,onChange:function(e){return o({headingColor:e})},label:Object(i.q)("Heading Color")},{value:d,onChange:function(e){return o({taglineColor:e})},label:Object(i.q)("Tagline Color")},{value:g,onChange:function(e){return o({desColor:e})},label:Object(i.q)("Description Color")}]}),wp.element.createElement(i.i,{initialOpen:!1,title:Object(i.q)("Button Size")},wp.element.createElement(i.m,{label:Object(i.q)("Button Size"),value:v,options:k.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(i.k,{label:Object(i.q)("Corner Radius"),value:C,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}})),wp.element.createElement(i.j,{initialOpen:!1,title:Object(i.q)("Button Colors"),colorSettings:[{value:y,onChange:function(e){return o({buttonColor:e})},label:Object(i.q)("Button Color")},{value:w,onChange:function(e){return o({buttonTextColor:e})},label:Object(i.q)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-card "+O},wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+b+")",textAlign:E}},wp.element.createElement(i.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!b&&wp.element.createElement(i.d,{className:m?"":"button button-large",onClick:e.open},Object(i.q)("Upload Image"))]}})),wp.element.createElement(i.l,{tagName:"h4",value:c,className:"ugb-card-heading",onChange:function(e){return o({heading:e})},isSelected:t&&"heading"===n,onFocus:x("heading"),style:{color:p,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:u,className:"ugb-tagline",onChange:function(e){return o({tagline:e})},isSelected:t&&"tagline"===n,onFocus:x("tagline"),style:{color:d,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(i.l,{tagName:"p",value:s,className:"ugb-card-des",onChange:function(e){return o({des:e})},isSelected:t&&"des"===n,onFocus:x("des"),style:{color:g,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:v,align:E,color:w,backgroundColor:y,text:f,borderRadius:C,onChange:function(e){return o({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:x("buttonText")})),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(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:h,onChange:function(e){return o({buttonURL:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))]},m=function(e){var t=e.attributes,n=t.heading,l=t.tagline,o=t.des,r=t.mediaURL,a=(t.mediaID,t.headingColor),u=t.taglineColor,i=t.desColor,s=t.buttonURL,m=t.buttonText,b=t.buttonColor,p=t.buttonTextColor,d=t.size,g=t.cornerButtonRadius,h=t.contentAlign,f=r?"has-image":"";return wp.element.createElement("div",{className:"ugb-card "+f},r&&wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+r+")",textAlign:h},"data-src":r}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:a,textAlign:h}},n),l&&!!l.length&&wp.element.createElement("p",{className:"ugb-tagline",style:{color:u,textAlign:h}},l),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-card-des",style:{color:i,textAlign:h}},o),m&&!!m.length&&wp.element.createElement(c.a,{size:d,url:s,align:h,color:p,text:m,backgroundColor:b,borderRadius:g}))},b={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(i.q)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(i.q)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(i.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:".ugb-button-inner",attribute:"href"},buttonText:{type:"array",source:"children",selector:".ugb-button-inner",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:"left"}};Object(i.t)("ugb/card",{title:Object(i.q)("Card"),icon:r.m,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.q)("Card"),Object(i.q)("Stackable")],attributes:b,deprecated:[{attributes:u.b,save:u.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var l=n(0),o=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,s=t.buttonText,m=t.buttonColor,b=t.buttonTextColor,p=t.size,d=t.cornerButtonRadius,g=t.contentAlign,h={backgroundColor:m,color:b,borderRadius:d+"px"},f=r?"has-image":"",y=n||l||o||s?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-card "+f+" "+y},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),s&&!!s.length&&wp.element.createElement("a",{href:i,className:"wp-ugb-button wp-block-button ugb-button-"+p+" ugb-button-"+g,style:h},s))},r={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(l.q)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(l.q)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(l.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(l.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"}}}]);
|
1 |
+
!function(e){function t(l){if(n[l])return n[l].exports;var r=n[l]={i:l,l:!1,exports:{}};return e[l].call(r.exports,r,r.exports,t),r.l=!0,r.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=6)}([function(e,t,n){"use strict";n.d(t,"z",function(){return l}),n.d(t,"r",function(){return r}),n.d(t,"l",function(){return a}),n.d(t,"n",function(){return c}),n.d(t,"o",function(){return i}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return m}),n.d(t,"p",function(){return b}),n.d(t,"i",function(){return p}),n.d(t,"k",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"c",function(){return f}),n.d(t,"a",function(){return y}),n.d(t,"m",function(){return w}),n.d(t,"q",function(){return v}),n.d(t,"h",function(){return C}),n.d(t,"j",function(){return x}),n.d(t,"b",function(){return O}),n.d(t,"y",function(){return T}),n.d(t,"x",function(){return j}),n.d(t,"v",function(){return S}),n.d(t,"s",function(){return B}),n.d(t,"t",function(){return L}),n.d(t,"w",function(){return z}),n.d(t,"u",function(){return F});var l=wp.blocks.registerBlockType,r=wp.i18n.__,o=wp.components,a=o.RangeControl,c=o.SelectControl,i=(o.TextControl,o.ToggleControl),u=o.Dashicon,s=o.IconButton,m=o.Button,b=o.Toolbar,p=o.PanelBody,d=o.RadioControl,g=wp.editor.InspectorControls?wp.editor:wp.blocks,h=g.InspectorControls,f=g.BlockControls,y=(g.ColorPalette,g.AlignmentToolbar),w=g.RichText,v=g.URLInput,C=g.MediaUpload,E=wp.editor,x=E.PanelColorSettings,O=E.BlockAlignmentToolbar,k=lodash,T=k.omit,j=k.merge,N=wp.hooks,S=N.doAction,B=N.addAction,L=N.applyFilters,z=(N.addFilter,stackable.isPro),F=stackable.blockSrcUrl},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 s}),n.d(t,"k",function(){return m}),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 y}),n.d(t,"i",function(){return w}),n.d(t,"o",function(){return v}),n.d(t,"j",function(){return C});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},r=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"})))},o=1,a=function(){return"stk-icon-"+o++},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(r,{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(r,{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)},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(r,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M4 9h12v2H4V9z"}))},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(r,{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(r,{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(r,{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(r,{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(r,{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(r,{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(r,{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"}))},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 32 38"},wp.element.createElement(r,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 0h32v38H0V0zm3 3v32h26V3H3zm2 2h22v7H5V5zm0 9h14v19H5V14zm16 19V14h6v19h-6zM6 6v5h20V6H6z"}))},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 1024 896"},wp.element.createElement(r,{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(r,{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"}))},C=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(r,{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";function l(e){var t=e.align,n=void 0===t?"center":t,l=e.size,o=void 0===l?"normal":l,a=e.color,c=e.text,i=void 0===c?"":c,u=e.backgroundColor,s=e.borderRadius,m=void 0===s?4:s,b=e.isSelected,p=void 0!==b&&b,d=e.onFocus,g=void 0===d?function(){}:d,h=e.onChange,f=void 0===h?function(){}:h;return wp.element.createElement("span",{className:"ugb-button ugb-button-"+n+" ugb-button-"+o,style:{backgroundColor:u,borderRadius:m+"px"}},wp.element.createElement(r.m,{tagName:"span",placeholder:Object(r.r)("Enter Text"),value:i,onChange:f,formattingControls:["bold","italic","strikethrough"],className:"ugb-button-inner",style:{color:a},onFocus:g,isSelected:p,keepPlaceholderOnFocus:!0}))}var r=n(0);t.a=l},function(e,t,n){"use strict";function l(e){var t=e.align,n=void 0===t?"center":t,l=e.size,r=void 0===l?"normal":l,o=e.url,a=void 0===o?"":o,c=e.color,i=e.text,u=e.backgroundColor,s=e.borderRadius,m={backgroundColor:u,borderRadius:s+"px"};return wp.element.createElement("div",{className:"ugb-button ugb-button-"+n+" ugb-button-"+r,style:m},wp.element.createElement("a",{href:a,className:"ugb-button-inner",style:{color:c}},i))}t.a=l},function(e,t,n){var l,r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var r=typeof l;if("string"===r||"number"===r)e.push(l);else if(Array.isArray(l)&&l.length){var a=n.apply(null,l);a&&e.push(a)}else if("object"===r)for(var c in l)o.call(l,c)&&l[c]&&e.push(c)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(l=[],void 0!==(r=function(){return n}.apply(t,l))&&(e.exports=r))}()},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(7),n(10),n(13),n(21),n(25),n(31),n(35),n(39),n(43),n(46),n(49),n(52),n(55),n(59),n(63),n(66),n(69),n(72),n(76)},function(e,t,n){"use strict";var l=n(8),r=(n.n(l),n(9)),o=(n.n(r),n(1)),a=n(0),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.i,null,wp.element.createElement(a.l,{label:Object(a.r)("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.z)("ugb/spacer",{title:Object(a.r)("Spacer"),icon:o.l,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Spacer"),Object(a.r)("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(11),r=(n.n(l),n(12)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=e.attributes,n=t.height,l=t.width,r=t.color,o=t.alignment;return wp.element.createElement("div",{className:"ugb-divider"},wp.element.createElement("hr",{align:o,style:{backgroundColor:r,width:l+"%",height:n}}))},i=function(e){var t=e.isSelected,n=e.attributes,l=n.height,r=n.width,o=n.color,c=n.alignment;return[t&&wp.element.createElement(a.c,{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.l,{label:Object(a.r)("Height"),value:l,min:"1",max:"10",onChange:function(t){e.setAttributes({height:t})}}),wp.element.createElement(a.l,{label:Object(a.r)("Width"),value:r,min:"10",max:"100",step:"0.1",onChange:function(t){e.setAttributes({width:t})}})),wp.element.createElement(a.j,{title:Object(a.r)("Color Settings"),colorSettings:[{value:o,onChange:function(t){return e.setAttributes({color:t})},label:Object(a.r)("Divider Color")}]})),wp.element.createElement("div",{className:"ugb-divider",style:{paddingTop:8,paddingBottom:8}},wp.element.createElement("hr",{align:c,style:{marginTop:0,marginBottom:0,backgroundColor:o,width:r+"%",height:l}}))]};Object(a.z)("ugb/divider",{title:Object(a.r)("Divider"),icon:o.c,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Divider"),Object(a.r)("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(14),r=(n.n(l),n(15)),o=(n.n(r),n(1)),a=n(16),c=n(2),i=n(3),u=n(17),s=n(19),m=(n(20),n(0)),b=function(e){var t=e.isSelected,n=(e.className,e.setAttributes),l=e.attributes,r=l.url,o=l.text,a=l.color,i=l.textColor,b=l.size,p=l.align,d=l.cornerButtonRadius,g=l.design,h=[{value:"small",label:Object(m.r)("Small")},{value:"normal",label:Object(m.r)("Normal")},{value:"medium",label:Object(m.r)("Medium")},{value:"large",label:Object(m.r)("Large")}],f=wp.element.createElement(c.a,{onChange:function(e){return n({text:e})},isSelected:t,align:p,size:b,backgroundColor:a,color:i,text:o,borderRadius:d}),y=Object(m.t)("stackable.designs.button.edit",f,g,e);return[t&&wp.element.createElement(m.c,{key:"controls"},wp.element.createElement(m.b,{value:p,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),t&&wp.element.createElement(m.g,null,wp.element.createElement(u.a,{selected:g,options:[{label:wp.element.createElement(s.a,{imageFile:"button/images/test.jpg"}),title:"Basic",value:"basic"},{label:wp.element.createElement(s.a,{imageFile:"button/images/test.jpg",isPro:!0}),title:"Center",value:"center"},{label:wp.element.createElement(s.a,{imageFile:"https://via.placeholder.com/350x150",isPro:!0}),title:"Right",value:"right"},{label:wp.element.createElement(s.a,{imageFile:"https://via.placeholder.com/350x150",isPro:!0}),title:"Full",value:"full"}],onChange:function(e){n({design:e})}})),t&&wp.element.createElement(m.g,{key:"inspector"},wp.element.createElement(m.i,null,wp.element.createElement(m.n,{label:Object(m.r)("Size"),value:b,options:h.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(m.l,{label:Object(m.r)("Corner Radius"),value:d,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}})),wp.element.createElement(m.j,{title:Object(m.r)("Color Settings"),colorSettings:[{value:a,onChange:function(e){return n({color:e})},label:Object(m.r)("Background Color")},{value:i,onChange:function(e){return n({textColor:e})},label:Object(m.r)("Text Color")}]})),y,t&&wp.element.createElement("form",{onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(m.e,{icon:"admin-links"}),wp.element.createElement(m.q,{value:r,onChange:function(e){return n({url:e})}}),wp.element.createElement(m.f,{icon:"editor-break",label:Object(m.r)("Apply"),type:"submit"}))]},p=function(e){var t=e.attributes,n=t.url,l=t.text,r=t.align,o=t.color,a=t.textColor,c=t.size,u=t.cornerButtonRadius,s=t.design,b=wp.element.createElement(i.a,{align:r,size:c,url:n,color:a,text:l,backgroundColor:o,borderRadius:u});return Object(m.t)("stackable.designs.button.save",b,s,e)},d={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},design:{type:"string",default:"basic"}};Object(m.z)("ugb/button",{title:Object(m.r)("Button"),icon:o.a,description:"Add customize button",category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(m.r)("Button"),Object(m.r)("Stackable")],attributes:d,deprecated:[{attributes:a.b,migrate:function(e){return Object(m.y)(Object(m.x)(e,{align:e.textAlignment}),["textAlignment"])},save:a.a}],edit:b,save:p})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return r});var l=function(e){var t=e.attributes,n=t.url,l=t.text,r=t.textAlignment,o=t.color,a=t.textColor,c=t.size,i=t.cornerButtonRadius,u={backgroundColor:o,color:a,borderRadius:i+"px"};return wp.element.createElement("div",{className:"ugb-button-"+r},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+c,style:u},l))},r={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}}},function(e,t,n){"use strict";function l(e){return null}var r=n(18),o=(n.n(r),n(0),n(4));n.n(o);t.a=l},function(e,t){},function(e,t,n){"use strict";function l(e){var t=e.isPro,n=e.imageFile,l=o()({"is-pro":t});return wp.element.createElement("span",{className:l},wp.element.createElement("img",{src:n.match(/https?:/i)?n:a.u+"/"+n}))}var r=n(4),o=n.n(r),a=n(0);t.a=l},function(e,t,n){"use strict"},function(e,t,n){"use strict";var l=n(22),r=(n.n(l),n(23)),o=(n.n(r),n(1)),a=n(24),c=n(0),i=function(e){var t=e.isSelected,n=e.setAttributes,l=e.attributes,r=l.url,o=l.text,a=l.color,i=l.size,u=l.align,s=l.cornerButtonRadius,m=l.borderThickness,b=[{value:"small",label:Object(c.r)("Small")},{value:"normal",label:Object(c.r)("Normal ")},{value:"medium",label:Object(c.r)("Medium")},{value:"large",label:Object(c.r)("Large")}];return[t&&wp.element.createElement(c.c,null,wp.element.createElement(c.b,{value:u,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),wp.element.createElement("span",{key:"button",className:"ugb-button ugb-ghost-button ugb-button-"+u+" ugb-button-"+i,style:{borderColor:a,borderRadius:s+"px",borderWidth:m+"px"}},wp.element.createElement(c.m,{tagName:"span",placeholder:Object(c.r)("Enter Text"),value:o,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-button-inner",style:{color:a},isSelected:t,keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(c.g,{key:"inspector"},wp.element.createElement(c.i,null,wp.element.createElement(c.n,{label:Object(c.r)("Size"),value:i,options:b.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(c.l,{label:Object(c.r)("Corner Radius"),value:s,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}}),wp.element.createElement(c.l,{label:Object(c.r)("Border Thickness"),value:m,min:"1",max:"10",onChange:function(e){return n({borderThickness:e})}})),wp.element.createElement(c.j,{title:Object(c.r)("Color Settings"),colorSettings:[{value:a,onChange:function(e){return n({color:e})},label:Object(c.r)("Button Color")}]}))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(c.e,{icon:"admin-links"}),wp.element.createElement(c.q,{value:r,onChange:function(e){return n({url:e})}}),wp.element.createElement(c.f,{icon:"editor-break",label:Object(c.r)("Apply"),type:"submit"}))]},u=function(e){var t=e.attributes,n=t.url,l=t.text,r=t.align,o=t.color,a=t.size,c=t.cornerButtonRadius,i=t.borderThickness,u={borderColor:o,borderRadius:c+"px",borderWidth:i+"px"};return wp.element.createElement("div",{className:"ugb-button ugb-ghost-button ugb-button-"+r+" ugb-button-"+a,style:u},wp.element.createElement("a",{href:n,className:"ugb-button-inner",style:{color:o}},l))},s={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},align:{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"}};Object(c.z)("ugb/ghost-button",{title:Object(c.r)("Ghost Button"),icon:o.e,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.r)("Ghost Button"),Object(c.r)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.y)(Object(c.x)(e,{align:e.textAlignment}),["textAlignment"])},save:a.a}],edit:i,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return r});var l=function(e){var t=e.attributes,n=t.url,l=t.text,r=t.textAlignment,o=t.color,a=t.size,c=t.cornerButtonRadius,i=t.borderThickness,u={borderColor:o,color:o,borderRadius:c+"px",borderWidth:i+"px"};return wp.element.createElement("div",{className:"ugb-button-"+r},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+a+" ugb-ghost-button",style:u},l))},r={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"}}},function(e,t,n){"use strict";var l=n(26),r=(n.n(l),n(27)),o=(n.n(r),n(28)),a=n.n(o),c=n(1),i=n(0),u=function(e){var t=[{value:"success",label:Object(i.r)("Success")},{value:"error",label:Object(i.r)("Error")},{value:"warning",label:Object(i.r)("Warning")},{value:"info",label:Object(i.r)("Information")}],n=e.isSelected,l=e.editable,r=e.setState,o=e.setAttributes,a=(e.className,e.attributes),c=a.text,u=a.color,s=a.textColor,m=a.notifType,b=a.dismissible;return[n&&wp.element.createElement(i.c,{key:"controls"}),wp.element.createElement("div",{key:"editable",className:"ugb-notification type-"+m+" 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:s}},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.m,{tagName:"p",placeholder:e.attributes.text.default,value:c,isSelected:n&&"content"===l,onFocus:function(e){return function(){r({editable:e})}}("content"),onChange:function(e){return o({text:e})},className:"wp-ugb-notif notif-"+m,style:{backgroundColor:u,color:s}}),n&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.i,null,wp.element.createElement(i.o,{label:Object(i.r)("Dismissible"),checked:b,onChange:function(){return o({dismissible:!b})}}),wp.element.createElement(i.n,{label:Object(i.r)("Notification Type"),value:m,options:t.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({notifType:e})}})),wp.element.createElement(i.j,{title:Object(i.r)("Color Settings"),colorSettings:[{value:u,onChange:function(e){return o({color:e})},label:Object(i.r)("Background Color")},{value:s,onChange:function(e){return o({textColor:e})},label:Object(i.r)("Text Color")}]})))]},s=function(e){var t=e.attributes,n=t.text,l=t.color,r=t.textColor,o=t.notifType,c=t.dismissible,i={backgroundColor:l,color:r},u=a()(n+o).substr(0,6);return wp.element.createElement("div",{className:"ugb-notification type-"+o+" 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:r}},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-"+o,style:i},n))};Object(i.z)("ugb/notification",{title:Object(i.r)("Notification"),icon:c.g,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.r)("Notification"),Object(i.r)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(i.r)("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:u,save:s})},function(e,t){},function(e,t){},function(e,t,n){!function(){var t=n(29),l=n(5).utf8,r=n(30),o=n(5).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):l.stringToBytes(e):r(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,s=-271733879,m=-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[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,p=0;p<c.length;p+=16){var y=u,w=s,v=m,C=b;u=d(u,s,m,b,c[p+0],7,-680876936),b=d(b,u,s,m,c[p+1],12,-389564586),m=d(m,b,u,s,c[p+2],17,606105819),s=d(s,m,b,u,c[p+3],22,-1044525330),u=d(u,s,m,b,c[p+4],7,-176418897),b=d(b,u,s,m,c[p+5],12,1200080426),m=d(m,b,u,s,c[p+6],17,-1473231341),s=d(s,m,b,u,c[p+7],22,-45705983),u=d(u,s,m,b,c[p+8],7,1770035416),b=d(b,u,s,m,c[p+9],12,-1958414417),m=d(m,b,u,s,c[p+10],17,-42063),s=d(s,m,b,u,c[p+11],22,-1990404162),u=d(u,s,m,b,c[p+12],7,1804603682),b=d(b,u,s,m,c[p+13],12,-40341101),m=d(m,b,u,s,c[p+14],17,-1502002290),s=d(s,m,b,u,c[p+15],22,1236535329),u=g(u,s,m,b,c[p+1],5,-165796510),b=g(b,u,s,m,c[p+6],9,-1069501632),m=g(m,b,u,s,c[p+11],14,643717713),s=g(s,m,b,u,c[p+0],20,-373897302),u=g(u,s,m,b,c[p+5],5,-701558691),b=g(b,u,s,m,c[p+10],9,38016083),m=g(m,b,u,s,c[p+15],14,-660478335),s=g(s,m,b,u,c[p+4],20,-405537848),u=g(u,s,m,b,c[p+9],5,568446438),b=g(b,u,s,m,c[p+14],9,-1019803690),m=g(m,b,u,s,c[p+3],14,-187363961),s=g(s,m,b,u,c[p+8],20,1163531501),u=g(u,s,m,b,c[p+13],5,-1444681467),b=g(b,u,s,m,c[p+2],9,-51403784),m=g(m,b,u,s,c[p+7],14,1735328473),s=g(s,m,b,u,c[p+12],20,-1926607734),u=h(u,s,m,b,c[p+5],4,-378558),b=h(b,u,s,m,c[p+8],11,-2022574463),m=h(m,b,u,s,c[p+11],16,1839030562),s=h(s,m,b,u,c[p+14],23,-35309556),u=h(u,s,m,b,c[p+1],4,-1530992060),b=h(b,u,s,m,c[p+4],11,1272893353),m=h(m,b,u,s,c[p+7],16,-155497632),s=h(s,m,b,u,c[p+10],23,-1094730640),u=h(u,s,m,b,c[p+13],4,681279174),b=h(b,u,s,m,c[p+0],11,-358537222),m=h(m,b,u,s,c[p+3],16,-722521979),s=h(s,m,b,u,c[p+6],23,76029189),u=h(u,s,m,b,c[p+9],4,-640364487),b=h(b,u,s,m,c[p+12],11,-421815835),m=h(m,b,u,s,c[p+15],16,530742520),s=h(s,m,b,u,c[p+2],23,-995338651),u=f(u,s,m,b,c[p+0],6,-198630844),b=f(b,u,s,m,c[p+7],10,1126891415),m=f(m,b,u,s,c[p+14],15,-1416354905),s=f(s,m,b,u,c[p+5],21,-57434055),u=f(u,s,m,b,c[p+12],6,1700485571),b=f(b,u,s,m,c[p+3],10,-1894986606),m=f(m,b,u,s,c[p+10],15,-1051523),s=f(s,m,b,u,c[p+1],21,-2054922799),u=f(u,s,m,b,c[p+8],6,1873313359),b=f(b,u,s,m,c[p+15],10,-30611744),m=f(m,b,u,s,c[p+6],15,-1560198380),s=f(s,m,b,u,c[p+13],21,1309151649),u=f(u,s,m,b,c[p+4],6,-145523070),b=f(b,u,s,m,c[p+11],10,-1120210379),m=f(m,b,u,s,c[p+2],15,718787259),s=f(s,m,b,u,c[p+9],21,-343485551),u=u+y>>>0,s=s+w>>>0,m=m+v>>>0,b=b+C>>>0}return t.endian([u,s,m,b])};a._ff=function(e,t,n,l,r,o,a){var c=e+(t&n|~t&l)+(r>>>0)+a;return(c<<o|c>>>32-o)+t},a._gg=function(e,t,n,l,r,o,a){var c=e+(t&l|n&~l)+(r>>>0)+a;return(c<<o|c>>>32-o)+t},a._hh=function(e,t,n,l,r,o,a){var c=e+(t^n^l)+(r>>>0)+a;return(c<<o|c>>>32-o)+t},a._ii=function(e,t,n,l,r,o,a){var c=e+(n^(t|~l))+(r>>>0)+a;return(c<<o|c>>>32-o)+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?o.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 r=e[l]<<16|e[l+1]<<8|e[l+2],o=0;o<4;o++)8*l+6*o<=8*e.length?n.push(t.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],l=0,r=0;l<e.length;r=++l%4)0!=r&&n.push((t.indexOf(e.charAt(l-1))&Math.pow(2,-2*r+8)-1)<<2*r|t.indexOf(e.charAt(l))>>>6-2*r);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(32),r=(n.n(l),n(33)),o=(n.n(r),n(1)),a=n(34),c=n(0),i=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),r=l.color,o=l.text,a=l.quoteColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-blockquote",style:{"--quote-color":a}},wp.element.createElement(c.m,{tagName:"p",className:"ugb-blockquote-text",value:o,onChange:function(e){return n({text:e})},isSelected:t,style:{color:r}})),t&&wp.element.createElement(c.g,{key:"inspector"},wp.element.createElement(c.j,{title:Object(c.r)("Color Settings"),colorSettings:[{value:r,onChange:function(e){return n({color:e})},label:Object(c.r)("Text Color")},{value:a,onChange:function(e){return n({quoteColor:e})},label:Object(c.r)("Quote Color")}]}))]},u=function(e){var t=e.attributes,n=t.color,l=t.text,r=t.quoteColor;return wp.element.createElement("blockquote",{className:"ugb-blockquote",style:{"--quote-color":r}},wp.element.createElement("p",{style:{color:n}},l))},s={text:{type:"array",source:"children",selector:"p",default:Object(c.r)("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:""},quoteColor:{type:"string",default:""}};Object(c.z)("ugb/blockquote",{title:Object(c.r)("Blockquote"),icon:o.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.r)("Blockquote"),Object(c.r)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.y)(Object(c.x)(e,{quoteColor:e.borderColor}),["borderColor"])},save:a.a}],edit:i,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var l=n(0),r={text:{type:"array",source:"children",selector:"p",default:Object(l.r)("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"}},o=function(e){var t=e.attributes,n=t.color,l=t.text,r=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-blockquote",style:{borderLeftColor:r}},wp.element.createElement("p",{style:{color:n}},l))}},function(e,t,n){"use strict";var l=n(36),r=(n.n(l),n(37)),o=(n.n(r),n(1)),a=n(38),c=n(0),i=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),r=l.color,o=l.text,a=l.quoteColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-pullquote",style:{"--quote-color":a}},wp.element.createElement(c.m,{tagName:"p",className:"ugb-pullquote-text",value:o,onChange:function(e){return n({text:e})},placeholder:Object(c.r)("Write quote\u2026"),formattingControls:["bold","italic","strikethrough","link"],isSelected:t,keepPlaceholderOnFocus:!0,style:{color:r}})),t&&wp.element.createElement(c.g,null,wp.element.createElement(c.j,{title:Object(c.r)("Color Settings"),colorSettings:[{value:r,onChange:function(e){return n({color:e})},label:Object(c.r)("Text Color")},{value:a,onChange:function(e){return n({quoteColor:e})},label:Object(c.r)("Quote Color")}]}))]},u=function(e){var t=e.attributes,n=t.color,l=t.text,r=t.quoteColor;return wp.element.createElement("blockquote",{className:"ugb-pullquote",style:{"--quote-color":r}},wp.element.createElement("p",{style:{color:n}},l))},s={text:{type:"array",source:"children",selector:"p",default:Object(c.r)("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:""},quoteColor:{type:"string",default:""}};Object(c.z)("ugb/pullquote",{title:Object(c.r)("Pullquote"),icon:o.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.r)("Pullquote"),Object(c.r)("Stackable")],attributes:s,deprecated:[{attributes:a.b,migrate:function(e){return Object(c.y)(Object(c.x)(e,{quoteColor:e.borderColor}),["borderColor"])},save:a.a}],edit:i,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var l=n(0),r=function(e){var t=e.attributes,n=t.color,l=t.text,r=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-pullquote",style:{borderTopColor:r,borderBottomColor:r}},wp.element.createElement("p",{style:{color:n}},l))},o={text:{type:"array",source:"children",selector:"p",default:Object(l.r)("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"}}},function(e,t,n){"use strict";var l=n(40),r=(n.n(l),n(41)),o=(n.n(r),n(1)),a=n(2),c=n(3),i=n(42),u=n(0),s=function(e){var t=e.isSelected,n=e.editable,l=e.setState,r=(e.className,e.setAttributes),o=e.attributes,c=o.url,i=o.buttonText,s=o.ctaTitle,m=o.bodyText,b=o.color,p=o.textColor,d=o.size,g=o.borderButtonRadius,h=o.bodyTextColor,f=o.titleColor,y=o.bgColor,w=[{value:"small",label:Object(u.r)("Small")},{value:"normal",label:Object(u.r)("Normal")},{value:"medium",label:Object(u.r)("Medium")},{value:"large",label:Object(u.r)("Large")}],v=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(u.g,{key:"inspector"},wp.element.createElement(u.i,null,wp.element.createElement(u.n,{label:Object(u.r)("Button Size"),value:d,options:w.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({size:e})}}),wp.element.createElement(u.l,{label:Object(u.r)("Button Border Radius"),value:g,min:"1",max:"50",onChange:function(e){return r({borderButtonRadius:e})}})),wp.element.createElement(u.j,{initialOpen:!1,title:Object(u.r)("Color Settings"),colorSettings:[{value:y,onChange:function(e){return r({bgColor:e})},label:Object(u.r)("Background Color")},{value:f,onChange:function(e){return r({titleColor:e})},label:Object(u.r)("Title Color")},{value:h,onChange:function(e){return r({bodyTextColor:e})},label:Object(u.r)("Body Text Color")}]}),wp.element.createElement(u.j,{title:Object(u.r)("Button Colors"),colorSettings:[{value:b,onChange:function(e){return r({color:e})},label:Object(u.r)("Button Background Color")},{value:p,onChange:function(e){return r({textColor:e})},label:Object(u.r)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-cta",style:{backgroundColor:y}},wp.element.createElement(u.m,{className:"ugb-cta-title",tagName:"h3",placeholder:Object(u.r)("Add Title"),value:s,onChange:function(e){return r({ctaTitle:e})},isSelected:t&&"ctaTitle"===n,onFocus:v("ctaTitle"),keepPlaceholderOnFocus:!0,style:{color:f}}),wp.element.createElement(u.m,{tagName:"p",value:m,className:"ugb-cta-bodyText",onChange:function(e){return r({bodyText:e})},isSelected:t&&"bodyText"===n,onFocus:v("bodyText"),placeholder:Object(u.r)("Write body text\u2026"),style:{color:h}}),wp.element.createElement(a.a,{size:d,color:p,backgroundColor:b,text:i,borderRadius:g,onChange:function(e){return r({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:v("buttonText")})),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(u.e,{icon:"admin-links"}),wp.element.createElement(u.q,{value:c,onChange:function(e){return r({url:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.r)("Apply"),type:"submit"}))]},m=function(e){var t=e.attributes,n=t.url,l=t.buttonText,r=t.ctaTitle,o=t.bodyText,a=t.color,i=t.textColor,u=t.size,s=t.borderButtonRadius,m=t.bodyTextColor,b=t.titleColor,p=t.bgColor;return wp.element.createElement("div",{className:"ugb-cta",style:{backgroundColor:p}},r&&!!r.length&&wp.element.createElement("h3",{className:"ugb-cta-title",style:{color:b}},r),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:m}},o),l&&!!l.length&&wp.element.createElement(c.a,{size:u,url:n,color:i,text:l,backgroundColor:a,borderRadius:s}))},b={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},ctaTitle:{type:"array",source:"children",selector:"h3",default:Object(u.r)("Get Started Today")},bodyText:{type:"array",source:"children",selector:"p",default:Object(u.r)("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}};Object(u.z)("ugb/cta",{title:Object(u.r)("Call to Action"),icon:o.b,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(u.r)("Call to Action"),Object(u.r)("Stackable"),Object(u.r)("CTA")],attributes:b,supports:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({align:!0},"align",["center","wide","full"]),deprecated:[{save:i.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=function(e){var t=e.attributes,n=t.url,l=t.buttonText,r=t.ctaTitle,o=t.bodyText,a=t.color,c=t.textColor,i=t.size,u=t.borderButtonRadius,s=t.bodyTextColor,m=t.titleColor,b=t.bgColor,p={backgroundColor:a,color:c,borderRadius:u+"px"};return wp.element.createElement("div",{className:"ugb-cta",style:{backgroundColor:b}},r&&!!r.length&&wp.element.createElement("h3",{className:"ugb-cta-title",style:{color:m}},r),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:s}},o),l&&!!l.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-cta-button ugb-button-"+i,style:p},l))}},function(e,t,n){"use strict";var l=n(44),r=(n.n(l),n(45)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,r=(e.className,e.setAttributes),o=e.attributes,c=o.testimonialTitle,i=o.testimonialTitleTwo,u=o.testimonialTitleThree,s=o.body,m=o.bodyTwo,b=o.bodyThree,p=o.position,d=o.positionTwo,g=o.positionThree,h=(o.href,o.hrefTwo,o.hrefThree,o.mediaID),f=o.mediaIDTwo,y=o.mediaIDThree,w=o.mediaURL,v=o.mediaURLTwo,C=o.mediaURLThree,E=o.columns,x=o.titleColor,O=o.posColor,k=o.bodyTextColor,T=o.iconColor,j=[{value:"1",label:Object(a.r)("One Column")},{value:"2",label:Object(a.r)("Two Column")},{value:"3",label:Object(a.r)("Three Column")}],N=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.c,null),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.n,{label:Object(a.r)("Column Number"),value:E,options:j.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({columns:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.r)("Color Settings"),colorSettings:[{value:x,onChange:function(e){return r({titleColor:e})},label:Object(a.r)("Title Color")},{value:O,onChange:function(e){return r({posColor:e})},label:Object(a.r)("Position Color")},{value:k,onChange:function(e){return r({bodyTextColor:e})},label:Object(a.r)("Body Text Color")},{value:T,onChange:function(e){return r({iconColor:e})},label:Object(a.r)("Icon Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-testimonial column-"+E},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return r({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.d,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+w+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:c,onChange:function(e){return r({testimonialTitle:e})},isSelected:t&&"testimonialTitle"===n,onFocus:N("testimonialTitle"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:p,className:"ugb-testimonial-position",onChange:function(e){return r({position:e})},isSelected:t&&"position"===n,onFocus:N("position"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:s,className:"ugb-testimonial-body",onChange:function(e){return r({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 r({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.d,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+v+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:i,onChange:function(e){return r({testimonialTitleTwo:e})},isSelected:t&&"testimonialTitleTwo"===n,onFocus:N("testimonialTitleTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:d,className:"ugb-testimonial-position-two",onChange:function(e){return r({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:N("positionTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:m,className:"ugb-testimonial-body-two",onChange:function(e){return r({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 r({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:y,render:function(e){return wp.element.createElement(a.d,{className:y?"":"button button-large",onClick:e.open},y?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+C+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:u,onChange:function(e){return r({testimonialTitleThree:e})},isSelected:t&&"testimonialTitleThree"===n,onFocus:N("testimonialTitleThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:g,className:"ugb-testimonial-position-three",onChange:function(e){return r({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:N("positionThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:b,className:"ugb-testimonial-body-three",onChange:function(e){return r({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,r=t.testimonialTitleThree,o=t.body,a=t.bodyTwo,c=t.bodyThree,i=t.position,u=t.positionTwo,s=t.positionThree,m=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,y=t.columns,w=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-"+y},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},m?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+m+")"},"data-src":m}):w,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),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-testimonial-body",style:{color:h}},o)),y>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}):w,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)),y>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}):w,r&&!!r.length&&wp.element.createElement("h4",{style:{color:d}},r),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-three",style:{color:g}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-three",style:{color:h}},c)))};Object(a.z)("ugb/testimonial",{title:Object(a.r)("Testimonial"),icon:o.n,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Testimonial"),Object(a.r)("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.r)("Ben Adams")},testimonialTitleTwo:{type:"array",source:"children",selector:".ugb-testimonial-column-two h4",default:Object(a.r)("Alex Johnson")},testimonialTitleThree:{type:"array",source:"children",selector:".ugb-testimonial-column-three h4",default:Object(a.r)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-testimonial-position",default:Object(a.r)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-testimonial-position-two",default:Object(a.r)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-testimonial-position-three",default:Object(a.r)("Programmer")},body:{type:"array",source:"children",selector:".ugb-testimonial-body",default:Object(a.r)("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.r)("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.r)("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:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(47),r=(n.n(l),n(48)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,r=(e.className,e.setAttributes),o=e.attributes,c=o.name,i=o.nameTwo,u=o.nameThree,s=o.des,m=o.desTwo,b=o.desThree,p=o.position,d=o.positionTwo,g=o.positionThree,h=(o.href,o.hrefTwo,o.hrefThree,o.mediaID),f=o.mediaIDTwo,y=o.mediaIDThree,w=o.mediaURL,v=o.mediaURLTwo,C=o.mediaURLThree,E=o.columns,x=o.nameColor,O=o.posColor,k=o.desColor,T=o.iconColor,j=o.shapes,N=[{value:"1",label:Object(a.r)("One Column")},{value:"2",label:Object(a.r)("Two Column")},{value:"3",label:Object(a.r)("Three Column")}],S=[{value:"square",label:Object(a.r)("Square")},{value:"circle",label:Object(a.r)("Circle")}],B=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.c,{key:"controls"}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.n,{label:Object(a.r)("Image Shape"),value:j,options:S.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({shapes:e})}}),wp.element.createElement(a.n,{label:Object(a.r)("Column Number"),value:E,options:N.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({columns:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.r)("Color Settings"),colorSettings:[{value:x,onChange:function(e){return r({nameColor:e})},label:Object(a.r)("Name Color")},{value:O,onChange:function(e){return r({posColor:e})},label:Object(a.r)("Position Color")},{value:k,onChange:function(e){return r({desColor:e})},label:Object(a.r)("Description Color")},{value:T,onChange:function(e){return r({iconColor:e})},label:Object(a.r)("Icon Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-team-member column-"+E+" 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 r({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.d,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+w+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:c,onChange:function(e){return r({name:e})},isSelected:t&&"name"===n,onFocus:B("name"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:p,className:"ugb-team-member-position",onChange:function(e){return r({position:e})},isSelected:t&&"position"===n,onFocus:B("position"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:s,className:"ugb-team-member-des",onChange:function(e){return r({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 r({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.d,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+v+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:i,onChange:function(e){return r({nameTwo:e})},isSelected:t&&"nameTwo"===n,onFocus:B("nameTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:d,className:"ugb-team-member-position",onChange:function(e){return r({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:B("positionTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:m,className:"ugb-team-member-des-two",onChange:function(e){return r({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 r({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:y,render:function(e){return wp.element.createElement(a.d,{className:y?"":"button button-large",onClick:e.open},y?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+C+")"}}):Object(a.r)("Upload Image"))}})),wp.element.createElement(a.m,{tagName:"h4",value:u,onChange:function(e){return r({nameThree:e})},isSelected:t&&"nameThree"===n,onFocus:B("nameThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:g,className:"ugb-team-member-position",onChange:function(e){return r({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:B("positionThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:b,className:"ugb-team-member-des-three",onChange:function(e){return r({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,r=t.nameThree,o=t.shapes,a=t.des,c=t.desTwo,i=t.desThree,u=t.position,s=t.positionTwo,m=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,y=(t.iconColor,t.columns);return wp.element.createElement("div",{className:"ugb-team-member column-"+y+" image-"+o},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),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)),y>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),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-team-member-des-two",style:{color:f}},c)),y>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}),r&&!!r.length&&wp.element.createElement("h4",{style:{color:g}},r),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},m),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-team-member-des-three",style:{color:f}},i)))};Object(a.z)("ugb/team-member",{title:Object(a.r)("Team Member"),icon:o.m,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Team Member"),Object(a.r)("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.r)("Ben Adams")},nameTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two h4",default:Object(a.r)("Alex Johnson")},nameThree:{type:"array",source:"children",selector:".ugb-team-member-column-three h4",default:Object(a.r)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-team-member-column-one .ugb-team-member-position",default:Object(a.r)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two .ugb-team-member-position",default:Object(a.r)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-team-member-column-three .ugb-team-member-position",default:Object(a.r)("Programmer")},des:{type:"array",source:"children",selector:".ugb-team-member-des",default:Object(a.r)("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.r)("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.r)("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: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 r=n(50),o=(n.n(r),n(51)),a=(n.n(o),n(1)),c=n(0),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}}):""},s=function(e){var t=(e.focus,e.setFocus,e.editable),n=e.setAttributes,r=e.setState,o=e.className,a=e.isSelected,s=function(e){return function(){r({editable:e})}},m=e.attributes,b=m.text,p=m.moreLabel,d=m.moreText,g=m.lessLabel;return[a&&wp.element.createElement(c.c,{key:"controls"}),wp.element.createElement("div",{key:"expand",className:o},a&&wp.element.createElement("label",{className:"ugb-editor-label"},"Less text"),wp.element.createElement(c.m,l({multiline:"p",placeholder:e.attributes.text.default,value:i(b),onChange:function(e){return n({text:u(e)})},isSelected:a&&"text"===t,onFocus:s("text"),className:"ugb-expand-less-text"},"placeholder",Object(c.r)("Some short text that can be expanded to show more details."))),wp.element.createElement(c.m,l({tagName:"a",placeholder:e.attributes.moreLabel.default,value:p,isSelected:a&&"moreLabel"===t,onFocus:s("moreLabel"),onChange:function(e){return n({moreLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-more"},"placeholder",Object(c.r)("Show more"))),a&&wp.element.createElement("label",{className:"ugb-editor-label"},"More text"),a&&wp.element.createElement(c.m,l({multiline:"p",placeholder:e.attributes.moreText.default,value:i(d),isSelected:a&&"moreText"===t,onFocus:s("moreText"),onChange:function(e){return n({moreText:u(e)})},className:"ugb-expand-more-text"},"placeholder",Object(c.r)("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.m,l({tagName:"a",placeholder:e.attributes.lessLabel.default,value:g,isSelected:a&&"lessLabel"===t,onFocus:s("lessLabel"),onChange:function(e){return n({lessLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-less"},"placeholder",Object(c.r)("Show less"))))]},m=function(e){var t=e.attributes,n=t.text,l=t.moreLabel,r=t.moreText,o=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"}},r.map&&r.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"}},o)))};Object(c.z)("ugb/expand",{title:Object(c.r)("Expand / Show More"),icon:a.d,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.r)("Expand"),Object(c.r)("Show more/less"),Object(c.r)("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.r)("Show more")},lessLabel:{type:"array",source:"children",selector:".ugb-expand-less",default:Object(c.r)("Show less")}},edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(53),r=(n.n(l),n(54)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,r=e.setState,o=e.attributes,c=o.numberBox,i=o.numberBoxTwo,u=o.numberBoxThree,s=o.body,m=o.bodyTwo,b=o.bodyThree,p=o.name,d=o.nameTwo,g=o.nameThree,h=o.columns,f=o.numberBoxColor,y=o.nameColor,w=o.bodyTextColor,v=o.numberBGColor,C=[{value:"1",label:Object(a.r)("One Column")},{value:"2",label:Object(a.r)("Two Column")},{value:"3",label:Object(a.r)("Three Column")}],E=function(e){return function(){r({editable:e})}};return[n&&wp.element.createElement(a.c,{key:"controls"}),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.n,{label:Object(a.r)("Column Number"),value:h,options:C.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({columns:e})}})),wp.element.createElement(a.j,{title:Object(a.r)("Color Settings"),colorSettings:[{value:f,onChange:function(e){return t({numberBoxColor:e})},label:Object(a.r)("Number Color")},{value:v,onChange:function(e){return t({numberBGColor:e})},label:Object(a.r)("Number Background Color")},{value:y,onChange:function(e){return t({nameColor:e})},label:Object(a.r)("Name Color")},{value:w,onChange:function(e){return t({bodyTextColor:e})},label:Object(a.r)("Body Text Color")}]})),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.m,{tagName:"span",placeholder:c?c.default:"",value:c,onChange:function(e){return t({numberBox:e})},isSelected:n&&"numberBox"===l,onFocus:E("numberBox"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"h4",value:p,className:"ugb-number-box-name",onChange:function(e){return t({name:e})},isSelected:n&&"name"===l,onFocus:E("name"),placeholder:Object(a.r)("Add name\u2026"),style:{color:y},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:s,className:"ugb-number-box-body",onChange:function(e){return t({body:e})},isSelected:n&&"body"===l,onFocus:E("body"),placeholder:Object(a.r)("Add body\u2026"),style:{color:w},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-two"},wp.element.createElement(a.m,{tagName:"span",placeholder:i?i.default:"",value:i,onChange:function(e){return t({numberBoxTwo:e})},isSelected:n&&"numberBoxTwo"===l,onFocus:E("numberBoxTwo"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"h4",value:d,className:"ugb-number-box-name-two",onChange:function(e){return t({nameTwo:e})},isSelected:n&&"nameTwo"===l,onFocus:E("nameTwo"),placeholder:Object(a.r)("Add name\u2026"),style:{color:y},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:m,className:"ugb-number-box-body-two",onChange:function(e){return t({bodyTwo:e})},isSelected:n&&"bodyTwo"===l,onFocus:E("bodyTwo"),placeholder:Object(a.r)("Add body\u2026"),style:{color:w},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-three"},wp.element.createElement(a.m,{tagName:"span",placeholder:u?u.default:"",value:u,onChange:function(e){return t({numberBoxThree:e})},isSelected:n&&"numberBoxThree"===l,onFocus:E("numberBoxThree"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"h4",value:g,className:"ugb-number-box-name-three",onChange:function(e){return t({nameThree:e})},isSelected:n&&"nameThree"===l,onFocus:E("nameThree"),placeholder:Object(a.r)("Add name\u2026"),style:{color:y},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.m,{tagName:"p",value:b,className:"ugb-number-box-body-three",onChange:function(e){return t({bodyThree:e})},isSelected:n&&"bodyThree"===l,onFocus:E("bodyThree"),placeholder:Object(a.r)("Add body\u2026"),style:{color:w},keepPlaceholderOnFocus:!0})))]},i=function(e){var t=e.attributes,n=t.numberBox,l=t.numberBoxTwo,r=t.numberBoxThree,o=t.body,a=t.bodyTwo,c=t.bodyThree,i=t.name,u=t.nameTwo,s=t.nameThree,m=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:m,backgroundColor:d}},n),i&&!!i.length&&wp.element.createElement("h4",{className:"ugb-number-box-name",style:{color:b}},i),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-number-box-body",style:{color:p}},o)),g>1&&wp.element.createElement("div",{className:"ugb-number-box-column-two"},l&&!!l.length&&wp.element.createElement("span",{style:{color:m,backgroundColor:d}},l),u&&!!u.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-two",style:{color:b}},u),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"},r&&!!r.length&&wp.element.createElement("span",{style:{color:m,backgroundColor:d}},r),s&&!!s.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-three",style:{color:b}},s),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-number-box-body-three",style:{color:p}},c)))};Object(a.z)("ugb/number-box",{title:Object(a.r)("Number Box"),icon:o.h,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Number Box"),Object(a.r)("Stackable")],attributes:{numberBox:{type:"array",source:"children",selector:".ugb-number-box-column-one span",default:Object(a.r)("01")},numberBoxTwo:{type:"array",source:"children",selector:".ugb-number-box-column-two span",default:Object(a.r)("02")},numberBoxThree:{type:"array",source:"children",selector:".ugb-number-box-column-three span",default:Object(a.r)("03")},name:{type:"array",source:"children",selector:".ugb-number-box-name",default:Object(a.r)("Registration")},nameTwo:{type:"array",source:"children",selector:".ugb-number-box-name-two",default:Object(a.r)("Waiting Period")},nameThree:{type:"array",source:"children",selector:".ugb-number-box-name-three",default:Object(a.r)("Delivery")},body:{type:"array",source:"children",selector:".ugb-number-box-body",default:Object(a.r)("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.r)("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.r)("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:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(56),r=(n.n(l),n(57)),o=(n.n(r),n(1)),a=n(2),c=n(3),i=n(58),u=n(0),s=function(e){var t=e.isSelected,n=e.editable,l=e.setState,r=(e.className,e.setAttributes),o=e.attributes,c=o.url,i=(o.url2,o.url3,o.pricingBoxTitle),s=o.pricingBoxTitle2,m=o.pricingBoxTitle3,b=o.price,p=o.price2,d=o.price3,g=o.perMonthLabel,h=o.perMonthLabel2,f=o.perMonthLabel3,y=o.buttonText,w=o.buttonText2,v=o.buttonText3,C=o.featureList,E=o.featureList2,x=o.featureList3,O=o.pricingBoxColor,k=o.priceColor,T=o.perMonthLabelColor,j=o.buttonColor,N=o.buttonTextColor,S=o.featureListColor,B=o.columns,L=o.size,z=o.cornerButtonRadius,F=[{value:"1",label:Object(u.r)("One Column")},{value:"2",label:Object(u.r)("Two Column")},{value:"3",label:Object(u.r)("Three Column")}],R=[{value:"small",label:Object(u.r)("Small")},{value:"normal",label:Object(u.r)("Normal")},{value:"medium",label:Object(u.r)("Medium")},{value:"large",label:Object(u.r)("Large")}],A=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(u.c,{key:"controls"}),t&&wp.element.createElement(u.g,{key:"inspector"},wp.element.createElement(u.i,null,wp.element.createElement(u.n,{label:Object(u.r)("Column Number"),value:B,options:F.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({columns:e})}}),wp.element.createElement(u.l,{label:Object(u.r)("Corner Radius"),value:z,min:"1",max:"50",onChange:function(e){return r({cornerButtonRadius:e})}}),wp.element.createElement(u.n,{label:Object(u.r)("Button Size"),value:L,options:R.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({size:e})}})),wp.element.createElement(u.j,{initialOpen:!1,title:Object(u.r)("Text Colors"),colorSettings:[{value:O,onChange:function(e){return r({pricingBoxColor:e})},label:Object(u.r)("Pricing Title Color")},{value:k,onChange:function(e){return r({priceColor:e})},label:Object(u.r)("Price Color")},{value:T,onChange:function(e){return r({perMonthLabelColor:e})},label:Object(u.r)("Per Month Label Color")},{value:S,onChange:function(e){return r({featureListColor:e})},label:Object(u.r)("Feature List Color")}]}),wp.element.createElement(u.j,{initialOpen:!1,title:Object(u.r)("Button Colors"),colorSettings:[{value:j,onChange:function(e){return r({buttonColor:e})},label:Object(u.r)("Button Color")},{value:N,onChange:function(e){return r({buttonTextColor:e})},label:Object(u.r)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-pricing-box column-"+B},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},wp.element.createElement(u.m,{tagName:"h3",value:i,onChange:function(e){return r({pricingBoxTitle:e})},isSelected:t&&"pricingBoxTitle"===n,onFocus:A("pricingBoxTitle"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:b,className:"ugb-pricing-box-pricing",onChange:function(e){return r({price:e})},isSelected:t&&"price"===n,onFocus:A("price"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:g,className:"ugb-pricing-box-per-month-label",onChange:function(e){return r({perMonthLabel:e})},focus:t&&"perMonthLabel"===n,onFocus:A("perMonthLabel"),style:{color:T},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:L,color:N,backgroundColor:j,text:y,borderRadius:z,onChange:function(e){return r({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:A("buttonText")}),wp.element.createElement(u.m,{tagName:"p",value:C,className:"ugb-pricing-box-feature-list",onChange:function(e){return r({featureList:e})},focus:t&&"featureList"===n,onFocus:A("featureList"),style:{color:S},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(u.e,{icon:"admin-links"}),wp.element.createElement(u.q,{value:c,onChange:function(e){return r({url:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.r)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},wp.element.createElement(u.m,{tagName:"h3",value:s,onChange:function(e){return r({pricingBoxTitle2:e})},isSelected:t&&"pricingBoxTitle2"===n,onFocus:A("pricingBoxTitle2"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:p,className:"ugb-pricing-box-pricing",onChange:function(e){return r({price2:e})},isSelected:t&&"price2"===n,onFocus:A("price2"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:h,className:"ugb-pricing-box-per-month-label",onChange:function(e){return r({perMonthLabel2:e})},focus:t&&"perMonthLabel2"===n,onFocus:A("perMonthLabel2"),style:{color:T},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:L,color:N,backgroundColor:j,text:w,borderRadius:z,onChange:function(e){return r({buttonText2:e})},isSelected:t&&"buttonText2"===n,onFocus:A("buttonText2")}),wp.element.createElement(u.m,{tagName:"p",value:E,className:"ugb-pricing-box-feature-list",onChange:function(e){return r({featureList2:e})},focus:t&&"featureList2"===n,onFocus:A("featureList2"),style:{color:S},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(u.e,{icon:"admin-links"}),wp.element.createElement(u.q,{value:c,onChange:function(e){return r({url:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.r)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},wp.element.createElement(u.m,{tagName:"h3",value:m,onChange:function(e){return r({pricingBoxTitle3:e})},isSelected:t&&"pricingBoxTitle3"===n,onFocus:A("pricingBoxTitle3"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:d,className:"ugb-pricing-box-pricing",onChange:function(e){return r({price3:e})},isSelected:t&&"price3"===n,onFocus:A("price3"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:f,className:"ugb-pricing-box-per-month-label",onChange:function(e){return r({perMonthLabel3:e})},focus:t&&"perMonthLabel3"===n,onFocus:A("perMonthLabel3"),style:{color:T},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:L,color:N,backgroundColor:j,text:v,borderRadius:z,onChange:function(e){return r({buttonText3:e})},isSelected:t&&"buttonText3"===n,onFocus:A("buttonText3")}),wp.element.createElement(u.m,{tagName:"p",value:x,className:"ugb-pricing-box-feature-list",onChange:function(e){return r({featureList3:e})},focus:t&&"featureList3"===n,onFocus:A("featureList3"),style:{color:S},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(u.e,{icon:"admin-links"}),wp.element.createElement(u.q,{value:c,onChange:function(e){return r({url:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.r)("Apply"),type:"submit"}))))]},m=function(e){var t=e.attributes,n=t.url,l=t.url2,r=t.url3,o=t.pricingBoxTitle,a=t.pricingBoxTitle2,i=t.pricingBoxTitle3,u=t.price,s=t.price2,m=t.price3,b=t.perMonthLabel,p=t.perMonthLabel2,d=t.perMonthLabel3,g=t.buttonText,h=t.buttonText2,f=t.buttonText3,y=t.featureList,w=t.featureList2,v=t.featureList3,C=t.pricingBoxColor,E=t.priceColor,x=t.perMonthLabelColor,O=t.buttonColor,k=t.buttonTextColor,T=t.featureListColor,j=t.columns,N=t.size,S=t.cornerButtonRadius;return wp.element.createElement("div",{className:"ugb-pricing-box column-"+j},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},o&&!!o.length&&wp.element.createElement("h3",{style:{color:C}},o),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},u),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:x}},b),g&&!!g.length&&wp.element.createElement(c.a,{size:N,url:n,color:k,text:g,backgroundColor:O,borderRadius:S}),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:T}},y)),j>1&&wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},a&&!!a.length&&wp.element.createElement("h3",{style:{color:C}},a),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},s),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:x}},p),h&&!!h.length&&wp.element.createElement(c.a,{size:N,url:l,color:k,text:h,backgroundColor:O,borderRadius:S}),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:T}},w)),j>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},i&&!!i.length&&wp.element.createElement("h3",{style:{color:C}},i),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},m),d&&!!d.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:x}},d),f&&!!f.length&&wp.element.createElement(c.a,{size:N,url:r,color:k,text:f,backgroundColor:O,borderRadius:S}),v&&!!v.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:T}},v)))},b={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(u.r)("Basic")},pricingBoxTitle2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two h3",default:Object(u.r)("Basic")},pricingBoxTitle3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three h3",default:Object(u.r)("Basic")},price:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-pricing",default:Object(u.r)("$9")},price2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-pricing",default:Object(u.r)("$9")},price3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-pricing",default:Object(u.r)("$9")},perMonthLabel:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-per-month-label",default:Object(u.r)("per month")},perMonthLabel2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-per-month-label",default:Object(u.r)("per month")},perMonthLabel3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-per-month-label",default:Object(u.r)("per month")},buttonText:{type:"array",source:"children",selector:".ugb-pricing-box-column-one a",default:Object(u.r)("Buy Now")},buttonText2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two a",default:Object(u.r)("Buy Now")},buttonText3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three a",default:Object(u.r)("Buy Now")},featureList:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-feature-list",default:Object(u.r)("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(u.r)("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(u.r)("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}};Object(u.z)("ugb/pricing-box",{title:Object(u.r)("Pricing Box"),icon:o.j,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(u.r)("Pricing Box"),Object(u.r)("Stackable")],attributes:b,deprecated:[{save:i.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var l=function(e){var t=e.attributes,n=t.url,l=t.url2,r=t.url3,o=t.pricingBoxTitle,a=t.pricingBoxTitle2,c=t.pricingBoxTitle3,i=t.price,u=t.price2,s=t.price3,m=t.perMonthLabel,b=t.perMonthLabel2,p=t.perMonthLabel3,d=t.buttonText,g=t.buttonText2,h=t.buttonText3,f=t.featureList,y=t.featureList2,w=t.featureList3,v=t.pricingBoxColor,C=t.priceColor,E=t.perMonthLabelColor,x=t.buttonColor,O=t.buttonTextColor,k=t.featureListColor,T=t.columns,j=t.size,N=t.cornerButtonRadius,S={backgroundColor:x,color:O,borderRadius:N+"px"};return wp.element.createElement("div",{className:"ugb-pricing-box column-"+T},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},o&&!!o.length&&wp.element.createElement("h3",{style:{color:v}},o),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:C}},i),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},m),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:C}},u),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},b),g&&!!g.length&&wp.element.createElement("a",{href:l,className:"wp-ugb-button ugb-button-"+j,style:S},g),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},y)),T>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},c&&!!c.length&&wp.element.createElement("h3",{style:{color:v}},c),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:C}},s),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:E}},p),h&&!!h.length&&wp.element.createElement("a",{href:r,className:"wp-ugb-button ugb-button-"+j,style:S},h),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},w)))}},function(e,t,n){"use strict";function l(e){return 0===e?null:"overlay-opacity-"+1*Math.round(e/1)}var r=n(4),o=n.n(r),a=n(60),c=(n.n(a),n(61)),i=(n.n(c),n(1)),u=n(2),s=n(3),m=n(62),b=n(0),p=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,r=e.editable,a=e.setState,c=e.attributes,i=c.url,s=c.buttonURL,m=c.buttonText,p=c.buttonColor,d=c.buttonTextColor,g=c.cornerButtonRadius,h=c.size,f=c.title,y=c.titleColor,w=c.subtitle,v=c.subtitleColor,C=c.contentAlign,E=c.id,x=c.backgroundColor,O=c.opacity,k=i?{backgroundImage:"url("+i+")"}:void 0,T=i?"has-image":"",j=o()(l(O),{"overlay-opacity":0!==O}),N=function(e){return function(){a({editable:e})}},S=[{value:"small",label:Object(b.r)("Small")},{value:"normal",label:Object(b.r)("Normal")},{value:"medium",label:Object(b.r)("Medium")},{value:"large",label:Object(b.r)("Large")}];return[n&&wp.element.createElement(b.c,{key:"controls"},wp.element.createElement(b.a,{value:C,onChange:function(e){return t({contentAlign:e})}}),wp.element.createElement(b.p,null,wp.element.createElement(b.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(b.f,{className:"components-toolbar__control",label:Object(b.r)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(b.g,null,wp.element.createElement(b.i,{title:Object(b.r)("General")},wp.element.createElement(b.l,{label:Object(b.r)("Background Opacity"),value:O,min:0,max:10,step:1,onChange:function(e){return t({opacity:e})}}),wp.element.createElement(b.n,{label:Object(b.r)("Button Size"),value:h,options:S.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({size:e})}}),wp.element.createElement(b.l,{label:Object(b.r)("Corner Radius"),value:g,min:"1",max:"50",onChange:function(e){return t({cornerButtonRadius:e})}})),wp.element.createElement(b.j,{initialOpen:!1,title:Object(b.r)("Header Colors"),colorSettings:[{value:y,onChange:function(e){return t({titleColor:e})},label:Object(b.r)("Title Color")},{value:v,onChange:function(e){return t({subtitleColor:e})},label:Object(b.r)("Subtitle Color")},{value:x,onChange:function(e){return t({backgroundColor:e})},label:Object(b.r)("Heading Background Color")}]}),wp.element.createElement(b.j,{initialOpen:!1,title:Object(b.r)("Button Colors"),colorSettings:[{value:p,onChange:function(e){return t({buttonColor:e})},label:Object(b.r)("Button Color")},{value:d,onChange:function(e){return t({buttonTextColor:e})},label:Object(b.r)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-header "+T+" "},wp.element.createElement("div",{className:"ugb-header-overlay "+j,style:{backgroundColor:x}}),wp.element.createElement(b.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){return[!i&&wp.element.createElement(b.d,{className:E?"":"button button-large",onClick:e.open},Object(b.r)("Upload Image"))]}}),wp.element.createElement("section",{key:"preview","data-url":i,style:k,className:"ugb-header-section"},wp.element.createElement(b.m,{tagName:"h2",className:"ugb-header-title",placeholder:f.default,value:f,onChange:function(e){return t({title:e})},isSelected:n&&"title"===r,onFocus:N("title"),style:{textAlign:C,color:y}}),wp.element.createElement(b.m,{tagName:"p",className:"ugb-header-subtitle",placeholder:w.default,value:w,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===r,onFocus:N("subtitle"),style:{textAlign:C,color:v}}),wp.element.createElement(u.a,{size:h,align:C,color:d,backgroundColor:p,text:m,borderRadius:g,onChange:function(e){return t({buttonText:e})},isSelected:n&&"buttonText"===r,onFocus:N("buttonText")}))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+C},wp.element.createElement(b.e,{icon:"admin-links"}),wp.element.createElement(b.q,{value:s,onChange:function(e){return t({buttonURL:e})}}),wp.element.createElement(b.f,{icon:"editor-break",label:Object(b.r)("Apply"),type:"submit"}))]},d=function(e){var t=e.attributes,n=t.url,r=t.buttonURL,a=t.buttonText,c=t.buttonColor,i=t.buttonTextColor,u=t.cornerButtonRadius,m=t.size,b=t.title,p=t.titleColor,d=t.subtitle,g=t.subtitleColor,h=t.contentAlign,f=(t.id,t.backgroundColor),y=t.opacity,w=n?{backgroundImage:"url("+n+")"}:void 0,v=n?"has-image":"",C=o()(l(y),{"overlay-opacity":0!==y}),E=b.length||d.length||a.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+v+" "+E},wp.element.createElement("div",{className:"ugb-header-overlay "+C,style:{backgroundColor:f}}),wp.element.createElement("section",{key:"preview","data-url":n,style:w,className:"ugb-header-section"},b&&!!b.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:p}},b),d&&!!d.length&&wp.element.createElement("p",{className:"ugb-header-subtitle",style:{color:g}},d),a&&!!a.length&&wp.element.createElement(s.a,{size:m,url:r,align:h,color:i,text:a,backgroundColor:c,borderRadius:u})))},g={title:{type:"array",source:"children",selector:"h2",default:Object(b.r)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(b.r)("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:".ugb-button-inner",attribute:"href"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},buttonText:{type:"array",source:"children",selector:".ugb-button-inner",default:Object(b.r)("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}};Object(b.z)("ugb/header",{title:Object(b.r)("Header"),icon:i.f,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(b.r)("Header"),Object(b.r)("Stackable")],supports:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({align:!0},"align",["center","wide","full"]),attributes:g,deprecated:[{attributes:m.b,save:m.a}],edit:p,save:d})},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)}n.d(t,"a",function(){return c}),n.d(t,"b",function(){return i});var r=n(4),o=n.n(r),a=n(0),c=function(e){var t=e.attributes,n=t.url,r=t.buttonURL,a=t.buttonText,c=t.buttonColor,i=t.buttonTextColor,u=t.cornerButtonRadius,s=t.size,m=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:i,borderRadius:u+"px"},y=n?{backgroundImage:"url("+n+")"}:void 0,w=n?"has-image":"",v=o()(l(h),{"overlay-opacity":0!==h}),C=m||p||a?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+w+" "+C},wp.element.createElement("div",{className:"ugb-header-overlay "+v,style:{backgroundColor:g}}),wp.element.createElement("section",{key:"preview","data-url":n,style:y,className:"ugb-header-section"},m&&!!m.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:b}},m),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-header-subtitle",style:{color:d}},p),a&&!!a.length&&wp.element.createElement("a",{href:r,className:"wp-ugb-button ugb-button-"+s,style:f},a)))},i={title:{type:"array",source:"children",selector:"h2",default:Object(a.r)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(a.r)("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(a.r)("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}}},function(e,t,n){"use strict";var l=n(64),r=(n.n(l),n(65)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,r=e.setState,o=e.attributes,c=o.url,i=o.title,u=o.titleColor,s=o.subtitle,m=o.subtitleColor,b=o.overlayColor,p=o.id,d=o.height,g=o.width,h=o.verticalAlign,f=o.horizontalAlign,y=o.full,w=c?"has-image":"",v=y?"full-width":"",C=function(e){return function(){r({editable:e})}},E=[{value:"flex-start",label:Object(a.r)("Top")},{value:"center",label:Object(a.r)("Center")},{value:"flex-end",label:Object(a.r)("Bottom")}],x=[{value:"flex-start",label:Object(a.r)("Left")},{value:"center",label:Object(a.r)("Center")},{value:"flex-end",label:Object(a.r)("Right")}];return[n&&wp.element.createElement(a.c,{key:"controls"},c&&wp.element.createElement(a.p,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.r)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.o,{label:"Full-Width",checked:!!y,onChange:function(){return t({full:!y})}}),wp.element.createElement(a.l,{label:Object(a.r)("Height"),value:d,min:"135",max:"700",onChange:function(e){return t({height:e})}}),wp.element.createElement(a.l,{label:Object(a.r)("Width"),value:g,min:"400",max:"999",onChange:function(e){return t({width:e})}}),wp.element.createElement(a.n,{label:Object(a.r)("Vertical Alignment"),value:h,options:E.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({verticalAlign:e})}}),wp.element.createElement(a.n,{label:Object(a.r)("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.r)("Color Settings"),colorSettings:[{value:b,onChange:function(e){return t({overlayColor:e})},label:Object(a.r)("Overlay Color")},{value:u,onChange:function(e){return t({titleColor:e})},label:Object(a.r)("Title Color")},{value:m,onChange:function(e){return t({subtitleColor:e})},label:Object(a.r)("Subtitle Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-image-box "+w+" "+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.d,{className:p?"":"button button-large",onClick:e.open},Object(a.r)("Upload Image"))]}}),wp.element.createElement("a",{href:"#",style:{backgroundColor:b}}),wp.element.createElement(a.m,{tagName:"h4",placeholder:i.default,value:i,onChange:function(e){return t({title:e})},isSelected:n&&"title"===l,onFocus:C("title"),style:{color:u}}),wp.element.createElement(a.m,{tagName:"p",placeholder:s.default,value:s,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===l,onFocus:C("subtitle"),style:{color:m}}))]},i=function(e){var t=e.attributes,n=t.url,l=t.title,r=t.titleColor,o=t.subtitle,a=t.subtitleColor,c=t.overlayColor,i=(t.id,t.height),u=t.width,s=t.verticalAlign,m=t.horizontalAlign,b=t.full,p=n?"has-image":"",d=b?"full-width":"",g=l.length||o.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-image-box "+p+" "+g+" "+d,"data-url":n,style:{width:u+"px",height:i+"px",backgroundImage:"url("+n+")",alignItems:m,justifyContent:s}},wp.element.createElement("a",{href:"#",style:{backgroundColor:c}}),l&&!!l.length&&wp.element.createElement("h4",{style:{color:r}},l),o&&!!o.length&&wp.element.createElement("p",{style:{color:a}},o))};Object(a.z)("ugb/image-box",{title:Object(a.r)("Image Box"),icon:o.i,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Image Box"),Object(a.r)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.r)("Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(a.r)("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:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(67),r=(n.n(l),n(68)),o=(n.n(r),n(1)),a=n(0),c=function(e){var t=function(e){return function(){r({editable:e})}},n=e.isSelected,l=e.editable,r=e.setState,o=e.setAttributes,c=(e.className,e.attributes),i=c.color,u=c.headingColor,s=c.desColor,m=c.title,b=c.counter,p=c.des,d=c.fontSize;return[wp.element.createElement("div",{className:"ugb-countup"},wp.element.createElement(a.m,{tagName:"h4",value:m,onChange:function(e){return o({title:e})},isSelected:n&&"title"===l,onFocus:t("title"),style:{color:u}}),wp.element.createElement(a.m,{tagName:"div",className:"ugb-counter",placeholder:b.default,"data-duration":"1000","data-delay":"16",value:b,onChange:function(e){return o({counter:e})},isSelected:n&&"counter"===l,onFocus:t("counter"),style:{color:i,fontSize:d+"px"}}),wp.element.createElement(a.m,{tagName:"p",className:"ugb-counter-des",value:p,onChange:function(e){return o({des:e})},isSelected:n&&"des"===l,onFocus:t("des"),style:{color:s}})),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.r)("Color Settings"),colorSettings:[{value:u,onChange:function(e){return o({headingColor:e})},label:Object(a.r)("Heading Color")},{value:i,onChange:function(e){return o({color:e})},label:Object(a.r)("Number Color")},{value:s,onChange:function(e){return o({desColor:e})},label:Object(a.r)("Description Color")}]}),wp.element.createElement(a.i,null,wp.element.createElement(a.l,{label:Object(a.r)("Counter Text Font Size"),max:"100",min:"10",value:d,onChange:function(e){return o({fontSize:e})}})))]},i=function(e){var t=e.attributes,n=t.color,l=t.headingColor,r=t.desColor,o=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}}," ",o," "),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:r}}," ",c," "))};Object(a.z)("ugb/count-up",{title:Object(a.r)("Count Up"),icon:o.h,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Count Up"),Object(a.r)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.r)("Happy Customers")},counter:{type:"array",source:"children",selector:".ugb-counter",default:"12,345"},des:{type:"array",source:"children",selector:"p",default:Object(a.r)("and counting")},fontSize:{type:"number",default:"60"},headingColor:{type:"string"},desColor:{type:"string"},color:{type:"string"}},edit:c,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(70),r=(n.n(l),n(71)),o=(n.n(r),n(1)),a=n(0),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,r=l.videoLink,o=l.mediaLink,i=l.overlayColor,u=l.playButtonType,s=l.mediaID,m=[{value:"normal",label:Object(a.r)("Normal Play Button")},{value:"circle",label:Object(a.r)("Play Button with Circle")},{value:"outline",label:Object(a.r)("Outline Play Button")}];return[n&&wp.element.createElement(a.c,{key:"controls"},o&&wp.element.createElement(a.p,null,wp.element.createElement(a.h,{onSelect:function(e){return t({mediaLink:e.url,mediaID:e.id})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.r)("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:Object(a.r)("Play Button Style"),value:u,options:m.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({playButtonType:e})}})),wp.element.createElement(a.j,{initialOpen:!1,title:Object(a.r)("Color Settings"),colorSettings:[{value:i,onChange:function(e){return t({overlayColor:e})},label:Object(a.r)("Background / Overlay Color")}]})),wp.element.createElement("div",{className:"ugb-video-popup","data-video":r,style:{backgroundColor:i}},wp.element.createElement("div",{className:"ugb-video-preview",style:{backgroundImage:"url("+o+")"}}),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:s,render:function(e){return[!o&&wp.element.createElement(a.d,{className:s?"":"button button-large",onClick:e.open},Object(a.r)("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.q,{value:r,onChange:function(e){return t({videoLink:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.r)("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,r=t.overlayColor,o=t.playButtonType;t.mediaID;return wp.element.createElement("div",{className:"ugb-video-popup","data-video":n,style:{backgroundColor:r}},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:r}}),wp.element.createElement("span",{className:"ugb-play-button"},c[o])))};Object(a.z)("ugb/video-popup",{title:Object(a.r)("Video Popup"),icon:o.o,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.r)("Video Popup"),Object(a.r)("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(73),r=(n.n(l),n(74)),o=(n.n(r),n(1)),a=n(2),c=n(3),i=n(75),u=n(0),s=function(e){var t=e.isSelected,n=e.editable,l=e.setState,r=(e.className,e.setAttributes),o=e.attributes,c=o.heading,i=o.tagline,s=o.des,m=o.mediaID,b=o.mediaURL,p=o.headingColor,d=o.taglineColor,g=o.desColor,h=o.buttonURL,f=o.buttonText,y=o.buttonColor,w=o.buttonTextColor,v=o.size,C=o.cornerButtonRadius,E=o.contentAlign,x=function(e){return function(){l({editable:e})}},O=b?"has-image":"",k=[{value:"small",label:Object(u.r)("Small")},{value:"normal",label:Object(u.r)("Normal")},{value:"medium",label:Object(u.r)("Medium")},{value:"large",label:Object(u.r)("Large")}];return[t&&wp.element.createElement(u.c,{key:"controls"},wp.element.createElement(u.a,{value:E,onChange:function(e){return r({contentAlign:e})}}),wp.element.createElement(u.p,null,wp.element.createElement(u.h,{onSelect:function(e){return r({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){var t=e.open;return wp.element.createElement(u.f,{className:"components-toolbar__control",label:Object(u.r)("Edit image"),icon:"edit",onClick:t})}}))),t&&wp.element.createElement(u.g,{key:"inspector"},wp.element.createElement(u.j,{title:Object(u.r)("Text Colors"),colorSettings:[{value:p,onChange:function(e){return r({headingColor:e})},label:Object(u.r)("Heading Color")},{value:d,onChange:function(e){return r({taglineColor:e})},label:Object(u.r)("Tagline Color")},{value:g,onChange:function(e){return r({desColor:e})},label:Object(u.r)("Description Color")}]}),wp.element.createElement(u.i,{initialOpen:!1,title:Object(u.r)("Button Size")},wp.element.createElement(u.n,{label:Object(u.r)("Button Size"),value:v,options:k.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({size:e})}}),wp.element.createElement(u.l,{label:Object(u.r)("Corner Radius"),value:C,min:"1",max:"50",onChange:function(e){return r({cornerButtonRadius:e})}})),wp.element.createElement(u.j,{initialOpen:!1,title:Object(u.r)("Button Colors"),colorSettings:[{value:y,onChange:function(e){return r({buttonColor:e})},label:Object(u.r)("Button Color")},{value:w,onChange:function(e){return r({buttonTextColor:e})},label:Object(u.r)("Button Text Color")}]})),wp.element.createElement("div",{key:"editable",className:"ugb-card "+O},wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+b+")",textAlign:E}},wp.element.createElement(u.h,{onSelect:function(e){return r({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!b&&wp.element.createElement(u.d,{className:m?"":"button button-large",onClick:e.open},Object(u.r)("Upload Image"))]}})),wp.element.createElement(u.m,{tagName:"h4",value:c,className:"ugb-card-heading",onChange:function(e){return r({heading:e})},isSelected:t&&"heading"===n,onFocus:x("heading"),style:{color:p,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:i,className:"ugb-tagline",onChange:function(e){return r({tagline:e})},isSelected:t&&"tagline"===n,onFocus:x("tagline"),style:{color:d,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(u.m,{tagName:"p",value:s,className:"ugb-card-des",onChange:function(e){return r({des:e})},isSelected:t&&"des"===n,onFocus:x("des"),style:{color:g,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.a,{size:v,align:E,color:w,backgroundColor:y,text:f,borderRadius:C,onChange:function(e){return r({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:x("buttonText")})),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(u.e,{icon:"admin-links"}),wp.element.createElement(u.q,{value:h,onChange:function(e){return r({buttonURL:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.r)("Apply"),type:"submit"}))]},m=function(e){var t=e.attributes,n=t.heading,l=t.tagline,r=t.des,o=t.mediaURL,a=(t.mediaID,t.headingColor),i=t.taglineColor,u=t.desColor,s=t.buttonURL,m=t.buttonText,b=t.buttonColor,p=t.buttonTextColor,d=t.size,g=t.cornerButtonRadius,h=t.contentAlign,f=o?"has-image":"";return wp.element.createElement("div",{className:"ugb-card "+f},o&&wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+o+")",textAlign:h},"data-src":o}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:a,textAlign:h}},n),l&&!!l.length&&wp.element.createElement("p",{className:"ugb-tagline",style:{color:i,textAlign:h}},l),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-card-des",style:{color:u,textAlign:h}},r),m&&!!m.length&&wp.element.createElement(c.a,{size:d,url:s,align:h,color:p,text:m,backgroundColor:b,borderRadius:g}))},b={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(u.r)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(u.r)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(u.r)("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:".ugb-button-inner",attribute:"href"},buttonText:{type:"array",source:"children",selector:".ugb-button-inner",default:Object(u.r)("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"}};Object(u.z)("ugb/card",{title:Object(u.r)("Card"),icon:o.m,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(u.r)("Card"),Object(u.r)("Stackable")],attributes:b,deprecated:[{attributes:i.b,save:i.a}],edit:s,save:m})},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var l=n(0),r=function(e){var t=e.attributes,n=t.heading,l=t.tagline,r=t.des,o=t.mediaURL,a=(t.mediaID,t.headingColor),c=t.taglineColor,i=t.desColor,u=t.buttonURL,s=t.buttonText,m=t.buttonColor,b=t.buttonTextColor,p=t.size,d=t.cornerButtonRadius,g=t.contentAlign,h={backgroundColor:m,color:b,borderRadius:d+"px"},f=o?"has-image":"",y=n||l||r||s?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-card "+f+" "+y},o&&wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+o+")",textAlign:g},"data-src":o}),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),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-card-des",style:{color:i,textAlign:g}},r),s&&!!s.length&&wp.element.createElement("a",{href:u,className:"wp-ugb-button wp-block-button ugb-button-"+p+" ugb-button-"+g,style:h},s))},o={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(l.r)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(l.r)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(l.r)("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(l.r)("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"}}},function(e,t,n){"use strict";var l=n(0);Object(l.s)("stackable.get_pro","core",function(){})}]);
|
dist/blocks.editor.build.css
CHANGED
@@ -1,6 +1,7 @@
|
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-divider hr{border: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}[class*="ugb-"].alignfull{border-radius:0 !important}.wp-ugb-button__link{background:#fff;width:280px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}
|
|
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-divider hr{border: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}[class*="ugb-"].alignfull{border-radius:0 !important}.wp-ugb-button__link{background:#fff;width:280px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.design-control input{position:absolute;opacity:0;margin-bottom:5px}.design-control input,.design-control img{display:block;border-radius:4px}.design-control img{min-height:40px}.design-control label span{display:block;-webkit-transition:opacity 0.3s ease-in-out;-o-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;background:#ddd;border-radius:4px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHdpZHRoPSI0MHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCA0MCA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEuNDE0MjE7IiB4PSIwcHgiIHk9IjBweCI+CiAgICA8ZGVmcz4KICAgICAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwhW0NEQVRBWwogICAgICAgICAgICBALXdlYmtpdC1rZXlmcmFtZXMgc3BpbiB7CiAgICAgICAgICAgICAgZnJvbSB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoLTM1OWRlZykKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAgICAgICBmcm9tIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKC0zNTlkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHN2ZyB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IDUwJSA1MCU7CiAgICAgICAgICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogc3BpbiAxLjVzIGxpbmVhciBpbmZpbml0ZTsKICAgICAgICAgICAgICAgIC13ZWJraXQtYmFja2ZhY2UtdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICAgICAgICAgICAgYW5pbWF0aW9uOiBzcGluIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgICAgICB9CiAgICAgICAgXV0+PC9zdHlsZT4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJvdXRlciI+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwwQzIyLjIwNTgsMCAyMy45OTM5LDEuNzg4MTMgMjMuOTkzOSwzLjk5MzlDMjMuOTkzOSw2LjE5OTY4IDIyLjIwNTgsNy45ODc4MSAyMCw3Ljk4NzgxQzE3Ljc5NDIsNy45ODc4MSAxNi4wMDYxLDYuMTk5NjggMTYuMDA2MSwzLjk5MzlDMTYuMDA2MSwxLjc4ODEzIDE3Ljc5NDIsMCAyMCwwWiIgc3R5bGU9ImZpbGw6YmxhY2s7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNNS44NTc4Niw1Ljg1Nzg2QzcuNDE3NTgsNC4yOTgxNSA5Ljk0NjM4LDQuMjk4MTUgMTEuNTA2MSw1Ljg1Nzg2QzEzLjA2NTgsNy40MTc1OCAxMy4wNjU4LDkuOTQ2MzggMTEuNTA2MSwxMS41MDYxQzkuOTQ2MzgsMTMuMDY1OCA3LjQxNzU4LDEzLjA2NTggNS44NTc4NiwxMS41MDYxQzQuMjk4MTUsOS45NDYzOCA0LjI5ODE1LDcuNDE3NTggNS44NTc4Niw1Ljg1Nzg2WiIgc3R5bGU9ImZpbGw6cmdiKDIxMCwyMTAsMjEwKTsiLz4KICAgICAgICA8L2c+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwzMi4wMTIyQzIyLjIwNTgsMzIuMDEyMiAyMy45OTM5LDMzLjgwMDMgMjMuOTkzOSwzNi4wMDYxQzIzLjk5MzksMzguMjExOSAyMi4yMDU4LDQwIDIwLDQwQzE3Ljc5NDIsNDAgMTYuMDA2MSwzOC4yMTE5IDE2LjAwNjEsMzYuMDA2MUMxNi4wMDYxLDMzLjgwMDMgMTcuNzk0MiwzMi4wMTIyIDIwLDMyLjAxMjJaIiBzdHlsZT0iZmlsbDpyZ2IoMTMwLDEzMCwxMzApOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksMjguNDkzOUMzMC4wNTM2LDI2LjkzNDIgMzIuNTgyNCwyNi45MzQyIDM0LjE0MjEsMjguNDkzOUMzNS43MDE5LDMwLjA1MzYgMzUuNzAxOSwzMi41ODI0IDM0LjE0MjEsMzQuMTQyMUMzMi41ODI0LDM1LjcwMTkgMzAuMDUzNiwzNS43MDE5IDI4LjQ5MzksMzQuMTQyMUMyNi45MzQyLDMyLjU4MjQgMjYuOTM0MiwzMC4wNTM2IDI4LjQ5MzksMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxMDEsMTAxLDEwMSk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMy45OTM5LDE2LjAwNjFDNi4xOTk2OCwxNi4wMDYxIDcuOTg3ODEsMTcuNzk0MiA3Ljk4NzgxLDIwQzcuOTg3ODEsMjIuMjA1OCA2LjE5OTY4LDIzLjk5MzkgMy45OTM5LDIzLjk5MzlDMS43ODgxMywyMy45OTM5IDAsMjIuMjA1OCAwLDIwQzAsMTcuNzk0MiAxLjc4ODEzLDE2LjAwNjEgMy45OTM5LDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoMTg3LDE4NywxODcpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTUuODU3ODYsMjguNDkzOUM3LjQxNzU4LDI2LjkzNDIgOS45NDYzOCwyNi45MzQyIDExLjUwNjEsMjguNDkzOUMxMy4wNjU4LDMwLjA1MzYgMTMuMDY1OCwzMi41ODI0IDExLjUwNjEsMzQuMTQyMUM5Ljk0NjM4LDM1LjcwMTkgNy40MTc1OCwzNS43MDE5IDUuODU3ODYsMzQuMTQyMUM0LjI5ODE1LDMyLjU4MjQgNC4yOTgxNSwzMC4wNTM2IDUuODU3ODYsMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxNjQsMTY0LDE2NCk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYuMDA2MSwxNi4wMDYxQzM4LjIxMTksMTYuMDA2MSA0MCwxNy43OTQyIDQwLDIwQzQwLDIyLjIwNTggMzguMjExOSwyMy45OTM5IDM2LjAwNjEsMjMuOTkzOUMzMy44MDAzLDIzLjk5MzkgMzIuMDEyMiwyMi4yMDU4IDMyLjAxMjIsMjBDMzIuMDEyMiwxNy43OTQyIDMzLjgwMDMsMTYuMDA2MSAzNi4wMDYxLDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoNzQsNzQsNzQpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksNS44NTc4NkMzMC4wNTM2LDQuMjk4MTUgMzIuNTgyNCw0LjI5ODE1IDM0LjE0MjEsNS44NTc4NkMzNS43MDE5LDcuNDE3NTggMzUuNzAxOSw5Ljk0NjM4IDM0LjE0MjEsMTEuNTA2MUMzMi41ODI0LDEzLjA2NTggMzAuMDUzNiwxMy4wNjU4IDI4LjQ5MzksMTEuNTA2MUMyNi45MzQyLDkuOTQ2MzggMjYuOTM0Miw3LjQxNzU4IDI4LjQ5MzksNS44NTc4NloiIHN0eWxlPSJmaWxsOnJnYig1MCw1MCw1MCk7Ii8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K);background-size:15px;background-position:center;background-repeat:no-repeat}.design-control input:not(:checked)+label span{opacity:0.8}.design-control input:not(:checked)+label span:hover{opacity:1}.design-control input:checked+label img{-webkit-box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px #007cba}.design-panel .components-panel__arrow{top:22px !important}.design-panel .components-panel__body-toggle img{display:block;margin-top:10px;border-radius:4px}.design-panel.is-opened .components-panel__body-toggle img{display:none}.design-panel.design-panel-lite .design-control label span.is-pro{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KPHBhdGggZD0iTTE0IDloMWMwLjU1IDAgMSAwLjQ1IDEgMXY3YzAgMC41NS0wLjQ1IDEtMSAxaC0xMGMtMC41NSAwLTEtMC40NS0xLTF2LTdjMC0wLjU1IDAuNDUtMSAxLTFoMXYtM2MwLTIuMjEgMS43OS00IDQtNHM0IDEuNzkgNCA0djN6TTEyIDl2LTNjMC0xLjEtMC45LTItMi0ycy0yIDAuOS0yIDJ2M2g0ek0xMSAxNmwtMC4zNi0yLjE1YzAuNTEtMC4yNCAwLjg2LTAuNzUgMC44Ni0xLjM1IDAtMC44My0wLjY3LTEuNS0xLjUtMS41cy0xLjUgMC42Ny0xLjUgMS41YzAgMC42IDAuMzUgMS4xMSAwLjg2IDEuMzVsLTAuMzYgMi4xNWgyeiI+PC9wYXRoPgo8L3N2Zz4=);background-size:25px;cursor:help}.design-panel.design-panel-lite .design-control label span.is-pro img{opacity:0.5 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}
|
dist/blocks.frontend.build.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var
|
2 |
/******/ (function(modules) { // webpackBootstrap
|
3 |
/******/ // The module cache
|
4 |
/******/ var installedModules = {};
|
@@ -61,7 +61,7 @@ var main =
|
|
61 |
/******/ __webpack_require__.p = "";
|
62 |
/******/
|
63 |
/******/ // Load entry module and return exports
|
64 |
-
/******/ return __webpack_require__(__webpack_require__.s =
|
65 |
/******/ })
|
66 |
/************************************************************************/
|
67 |
/******/ ([
|
@@ -88,17 +88,23 @@ var domReady = function domReady(callback) {
|
|
88 |
/* harmony default export */ __webpack_exports__["default"] = (domReady);
|
89 |
|
90 |
/***/ }),
|
91 |
-
/* 1
|
|
|
92 |
/***/ (function(module, exports, __webpack_require__) {
|
93 |
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
96 |
__webpack_require__(5);
|
97 |
-
module.exports = __webpack_require__(6);
|
98 |
|
|
|
|
|
|
|
99 |
|
100 |
/***/ }),
|
101 |
-
/*
|
102 |
/***/ (function(module, exports, __webpack_require__) {
|
103 |
|
104 |
"use strict";
|
@@ -108,1398 +114,1398 @@ var _domReady = __webpack_require__(0);
|
|
108 |
|
109 |
var _domReady2 = _interopRequireDefault(_domReady);
|
110 |
|
|
|
|
|
|
|
|
|
111 |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
112 |
|
113 |
(0, _domReady2.default)(function () {
|
114 |
-
|
115 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
elems.forEach(function (el) {
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
},
|
126 |
-
offset: 'bottom-in-view'
|
127 |
});
|
128 |
});
|
129 |
});
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
el.innerHTML = el._countUpOrigInnerHTML;
|
135 |
-
el._countUpOrigInnerHTML = undefined;
|
136 |
-
}
|
137 |
-
el.style.visibility = '';
|
138 |
-
};
|
139 |
-
var initCountUp = function initCountUp(el) {
|
140 |
-
|
141 |
-
var lang, time, delay, divisions, splitValues, nums, k, i, num, isComma;
|
142 |
-
var isFloat, decimalPlaces, val, newNum, _output;
|
143 |
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
// If no number, don't do anything.
|
147 |
-
if (!/[0-9]/.test(el.innerHTML)) {
|
148 |
-
return;
|
149 |
-
}
|
150 |
|
151 |
-
|
152 |
-
|
|
|
153 |
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
delay = el.getAttribute('data-delay');
|
160 |
|
161 |
-
|
162 |
-
|
|
|
163 |
|
164 |
-
|
165 |
-
|
166 |
|
167 |
-
|
168 |
-
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
nums.push('');
|
173 |
-
}
|
174 |
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
-
|
183 |
-
|
|
|
|
|
184 |
|
185 |
-
// Remove comma for computation purposes.
|
186 |
-
num = num.replace(/,/g, '');
|
187 |
|
188 |
-
|
189 |
-
|
190 |
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
|
|
|
|
200 |
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
206 |
|
207 |
-
|
208 |
-
|
209 |
-
newNum = newNum.toLocaleString(lang);
|
210 |
-
}
|
211 |
-
|
212 |
-
// Insert all small numbers.
|
213 |
-
nums[k--] += newNum;
|
214 |
-
}
|
215 |
-
} else {
|
216 |
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
223 |
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
|
227 |
-
|
228 |
-
|
|
|
|
|
229 |
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
if (nums.length) {
|
234 |
-
clearTimeout(el.countUpTimeout);
|
235 |
-
el.countUpTimeout = setTimeout(_output, delay);
|
236 |
-
} else {
|
237 |
-
el._countUpOrigInnerHTML = undefined;
|
238 |
-
}
|
239 |
-
};
|
240 |
-
el.countUpTimeout = setTimeout(_output, delay);
|
241 |
-
};
|
242 |
|
243 |
-
|
244 |
-
|
245 |
-
|
|
|
|
|
|
|
246 |
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
Licensed under the MIT license.
|
251 |
-
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
|
252 |
-
*/
|
253 |
-
(function() {
|
254 |
-
'use strict'
|
255 |
|
256 |
-
|
257 |
-
|
|
|
|
|
258 |
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
}
|
264 |
-
if (!options.element) {
|
265 |
-
throw new Error('No element option passed to Waypoint constructor')
|
266 |
-
}
|
267 |
-
if (!options.handler) {
|
268 |
-
throw new Error('No handler option passed to Waypoint constructor')
|
269 |
-
}
|
270 |
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
this.triggerPoint = null
|
279 |
-
this.group = Waypoint.Group.findOrCreate({
|
280 |
-
name: this.options.group,
|
281 |
-
axis: this.axis
|
282 |
-
})
|
283 |
-
this.context = Waypoint.Context.findOrCreateByElement(this.options.context)
|
284 |
|
285 |
-
|
286 |
-
|
287 |
-
}
|
288 |
-
this.group.add(this)
|
289 |
-
this.context.add(this)
|
290 |
-
allWaypoints[this.key] = this
|
291 |
-
keyCounter += 1
|
292 |
}
|
293 |
|
294 |
-
/* Private */
|
295 |
-
Waypoint.prototype.queueTrigger = function(direction) {
|
296 |
-
this.group.queueTrigger(this, direction)
|
297 |
-
}
|
298 |
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
|
|
307 |
}
|
308 |
|
309 |
-
/* Public */
|
310 |
-
/* http://imakewebthings.com/waypoints/api/destroy */
|
311 |
-
Waypoint.prototype.destroy = function() {
|
312 |
-
this.context.remove(this)
|
313 |
-
this.group.remove(this)
|
314 |
-
delete allWaypoints[this.key]
|
315 |
-
}
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
|
324 |
-
|
325 |
-
|
326 |
-
Waypoint.prototype.enable = function() {
|
327 |
-
this.context.refresh()
|
328 |
-
this.enabled = true
|
329 |
-
return this
|
330 |
}
|
331 |
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
|
|
|
|
|
|
|
|
|
|
336 |
}
|
337 |
|
338 |
-
/* Public */
|
339 |
-
/* http://imakewebthings.com/waypoints/api/previous */
|
340 |
-
Waypoint.prototype.previous = function() {
|
341 |
-
return this.group.previous(this)
|
342 |
-
}
|
343 |
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
|
|
|
|
|
|
353 |
}
|
354 |
|
355 |
-
/* Public */
|
356 |
-
/* http://imakewebthings.com/waypoints/api/destroy-all */
|
357 |
-
Waypoint.destroyAll = function() {
|
358 |
-
Waypoint.invokeAll('destroy')
|
359 |
-
}
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
}
|
366 |
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
|
|
373 |
}
|
374 |
-
return this
|
375 |
-
}
|
376 |
|
377 |
-
|
378 |
-
|
379 |
-
Waypoint.refreshAll = function() {
|
380 |
-
Waypoint.Context.refreshAll()
|
381 |
-
}
|
382 |
|
383 |
-
|
384 |
-
|
385 |
-
Waypoint.viewportHeight = function() {
|
386 |
-
return window.innerHeight || document.documentElement.clientHeight
|
387 |
-
}
|
388 |
|
389 |
-
|
390 |
-
|
391 |
-
Waypoint.viewportWidth = function() {
|
392 |
-
return document.documentElement.clientWidth
|
393 |
-
}
|
394 |
|
395 |
-
|
|
|
396 |
|
397 |
-
|
398 |
-
context: window,
|
399 |
-
continuous: true,
|
400 |
-
enabled: true,
|
401 |
-
group: 'default',
|
402 |
-
horizontal: false,
|
403 |
-
offset: 0
|
404 |
-
}
|
405 |
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
return this.context.innerWidth() - this.adapter.outerWidth()
|
412 |
-
}
|
413 |
}
|
414 |
|
415 |
-
window.Waypoint = Waypoint
|
416 |
-
}())
|
417 |
-
;(function() {
|
418 |
-
'use strict'
|
419 |
|
420 |
-
|
421 |
-
|
422 |
-
|
|
|
423 |
|
424 |
-
|
425 |
-
|
426 |
-
var Waypoint = window.Waypoint
|
427 |
-
var oldWindowLoad = window.onload
|
428 |
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
this.Adapter = Waypoint.Adapter
|
433 |
-
this.adapter = new this.Adapter(element)
|
434 |
-
this.key = 'waypoint-context-' + keyCounter
|
435 |
-
this.didScroll = false
|
436 |
-
this.didResize = false
|
437 |
-
this.oldScroll = {
|
438 |
-
x: this.adapter.scrollLeft(),
|
439 |
-
y: this.adapter.scrollTop()
|
440 |
-
}
|
441 |
-
this.waypoints = {
|
442 |
-
vertical: {},
|
443 |
-
horizontal: {}
|
444 |
}
|
445 |
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
if (!Waypoint.windowContext) {
|
450 |
-
Waypoint.windowContext = true
|
451 |
-
Waypoint.windowContext = new Context(window)
|
452 |
-
}
|
453 |
|
454 |
-
|
455 |
-
|
456 |
-
}
|
457 |
|
458 |
-
|
459 |
-
|
460 |
-
var axis = waypoint.options.horizontal ? 'horizontal' : 'vertical'
|
461 |
-
this.waypoints[axis][waypoint.key] = waypoint
|
462 |
-
this.refresh()
|
463 |
-
}
|
464 |
|
465 |
-
|
466 |
-
|
467 |
-
var horizontalEmpty = this.Adapter.isEmptyObject(this.waypoints.horizontal)
|
468 |
-
var verticalEmpty = this.Adapter.isEmptyObject(this.waypoints.vertical)
|
469 |
-
var isWindow = this.element == this.element.window
|
470 |
-
if (horizontalEmpty && verticalEmpty && !isWindow) {
|
471 |
-
this.adapter.off('.waypoints')
|
472 |
-
delete contexts[this.key]
|
473 |
-
}
|
474 |
}
|
475 |
|
476 |
-
/* Private */
|
477 |
-
Context.prototype.createThrottledResizeHandler = function() {
|
478 |
-
var self = this
|
479 |
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
|
|
|
|
484 |
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
Waypoint.requestAnimationFrame(resizeHandler)
|
489 |
-
}
|
490 |
-
})
|
491 |
-
}
|
492 |
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
function scrollHandler() {
|
497 |
-
self.handleScroll()
|
498 |
-
self.didScroll = false
|
499 |
}
|
500 |
-
|
501 |
-
this.adapter.on('scroll.waypoints', function() {
|
502 |
-
if (!self.didScroll || Waypoint.isTouch) {
|
503 |
-
self.didScroll = true
|
504 |
-
Waypoint.requestAnimationFrame(scrollHandler)
|
505 |
-
}
|
506 |
-
})
|
507 |
}
|
508 |
|
509 |
-
/* Private */
|
510 |
-
Context.prototype.handleResize = function() {
|
511 |
-
Waypoint.Context.refreshAll()
|
512 |
-
}
|
513 |
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
oldScroll: this.oldScroll.y,
|
527 |
-
forward: 'down',
|
528 |
-
backward: 'up'
|
529 |
-
}
|
530 |
-
}
|
531 |
|
532 |
-
|
533 |
-
var axis = axes[axisKey]
|
534 |
-
var isForward = axis.newScroll > axis.oldScroll
|
535 |
-
var direction = isForward ? axis.forward : axis.backward
|
536 |
|
537 |
-
for (var waypointKey in this.waypoints[axisKey]) {
|
538 |
-
var waypoint = this.waypoints[axisKey][waypointKey]
|
539 |
-
if (waypoint.triggerPoint === null) {
|
540 |
-
continue
|
541 |
-
}
|
542 |
-
var wasBeforeTriggerPoint = axis.oldScroll < waypoint.triggerPoint
|
543 |
-
var nowAfterTriggerPoint = axis.newScroll >= waypoint.triggerPoint
|
544 |
-
var crossedForward = wasBeforeTriggerPoint && nowAfterTriggerPoint
|
545 |
-
var crossedBackward = !wasBeforeTriggerPoint && !nowAfterTriggerPoint
|
546 |
-
if (crossedForward || crossedBackward) {
|
547 |
-
waypoint.queueTrigger(direction)
|
548 |
-
triggeredGroups[waypoint.group.id] = waypoint.group
|
549 |
-
}
|
550 |
-
}
|
551 |
-
}
|
552 |
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
|
557 |
-
|
558 |
-
x: axes.horizontal.newScroll,
|
559 |
-
y: axes.vertical.newScroll
|
560 |
-
}
|
561 |
-
}
|
562 |
|
563 |
-
/* Private */
|
564 |
-
Context.prototype.innerHeight = function() {
|
565 |
-
/*eslint-disable eqeqeq */
|
566 |
-
if (this.element == this.element.window) {
|
567 |
-
return Waypoint.viewportHeight()
|
568 |
-
}
|
569 |
-
/*eslint-enable eqeqeq */
|
570 |
-
return this.adapter.innerHeight()
|
571 |
-
}
|
572 |
|
573 |
-
|
574 |
-
Context.prototype.remove = function(waypoint) {
|
575 |
-
delete this.waypoints[waypoint.axis][waypoint.key]
|
576 |
-
this.checkEmpty()
|
577 |
-
}
|
578 |
|
579 |
-
|
580 |
-
Context.prototype.innerWidth = function() {
|
581 |
-
/*eslint-disable eqeqeq */
|
582 |
-
if (this.element == this.element.window) {
|
583 |
-
return Waypoint.viewportWidth()
|
584 |
-
}
|
585 |
-
/*eslint-enable eqeqeq */
|
586 |
-
return this.adapter.innerWidth()
|
587 |
-
}
|
588 |
|
589 |
-
|
590 |
-
/* http://imakewebthings.com/waypoints/api/context-destroy */
|
591 |
-
Context.prototype.destroy = function() {
|
592 |
-
var allWaypoints = []
|
593 |
-
for (var axis in this.waypoints) {
|
594 |
-
for (var waypointKey in this.waypoints[axis]) {
|
595 |
-
allWaypoints.push(this.waypoints[axis][waypointKey])
|
596 |
-
}
|
597 |
-
}
|
598 |
-
for (var i = 0, end = allWaypoints.length; i < end; i++) {
|
599 |
-
allWaypoints[i].destroy()
|
600 |
-
}
|
601 |
-
}
|
602 |
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
contextOffset: isWindow ? 0 : contextOffset.left,
|
617 |
-
contextScroll: isWindow ? 0 : this.oldScroll.x,
|
618 |
-
contextDimension: this.innerWidth(),
|
619 |
-
oldScroll: this.oldScroll.x,
|
620 |
-
forward: 'right',
|
621 |
-
backward: 'left',
|
622 |
-
offsetProp: 'left'
|
623 |
-
},
|
624 |
-
vertical: {
|
625 |
-
contextOffset: isWindow ? 0 : contextOffset.top,
|
626 |
-
contextScroll: isWindow ? 0 : this.oldScroll.y,
|
627 |
-
contextDimension: this.innerHeight(),
|
628 |
-
oldScroll: this.oldScroll.y,
|
629 |
-
forward: 'down',
|
630 |
-
backward: 'up',
|
631 |
-
offsetProp: 'top'
|
632 |
-
}
|
633 |
-
}
|
634 |
|
635 |
-
|
636 |
-
var axis = axes[axisKey]
|
637 |
-
for (var waypointKey in this.waypoints[axisKey]) {
|
638 |
-
var waypoint = this.waypoints[axisKey][waypointKey]
|
639 |
-
var adjustment = waypoint.options.offset
|
640 |
-
var oldTriggerPoint = waypoint.triggerPoint
|
641 |
-
var elementOffset = 0
|
642 |
-
var freshWaypoint = oldTriggerPoint == null
|
643 |
-
var contextModifier, wasBeforeScroll, nowAfterScroll
|
644 |
-
var triggeredBackward, triggeredForward
|
645 |
|
646 |
-
if (waypoint.element !== waypoint.element.window) {
|
647 |
-
elementOffset = waypoint.adapter.offset()[axis.offsetProp]
|
648 |
-
}
|
649 |
|
650 |
-
|
651 |
-
adjustment = adjustment.apply(waypoint)
|
652 |
-
}
|
653 |
-
else if (typeof adjustment === 'string') {
|
654 |
-
adjustment = parseFloat(adjustment)
|
655 |
-
if (waypoint.options.offset.indexOf('%') > - 1) {
|
656 |
-
adjustment = Math.ceil(axis.contextDimension * adjustment / 100)
|
657 |
-
}
|
658 |
-
}
|
659 |
|
660 |
-
|
661 |
-
waypoint.triggerPoint = Math.floor(elementOffset + contextModifier - adjustment)
|
662 |
-
wasBeforeScroll = oldTriggerPoint < axis.oldScroll
|
663 |
-
nowAfterScroll = waypoint.triggerPoint >= axis.oldScroll
|
664 |
-
triggeredBackward = wasBeforeScroll && nowAfterScroll
|
665 |
-
triggeredForward = !wasBeforeScroll && !nowAfterScroll
|
666 |
|
667 |
-
|
668 |
-
waypoint.queueTrigger(axis.backward)
|
669 |
-
triggeredGroups[waypoint.group.id] = waypoint.group
|
670 |
-
}
|
671 |
-
else if (!freshWaypoint && triggeredForward) {
|
672 |
-
waypoint.queueTrigger(axis.forward)
|
673 |
-
triggeredGroups[waypoint.group.id] = waypoint.group
|
674 |
-
}
|
675 |
-
else if (freshWaypoint && axis.oldScroll >= waypoint.triggerPoint) {
|
676 |
-
waypoint.queueTrigger(axis.forward)
|
677 |
-
triggeredGroups[waypoint.group.id] = waypoint.group
|
678 |
-
}
|
679 |
-
}
|
680 |
-
}
|
681 |
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
|
688 |
-
|
689 |
-
|
|
|
690 |
|
691 |
-
|
692 |
-
Context.findOrCreateByElement = function(element) {
|
693 |
-
return Context.findByElement(element) || new Context(element)
|
694 |
-
}
|
695 |
|
696 |
-
/* Private */
|
697 |
-
Context.refreshAll = function() {
|
698 |
-
for (var contextId in contexts) {
|
699 |
-
contexts[contextId].refresh()
|
700 |
-
}
|
701 |
-
}
|
702 |
|
703 |
-
|
704 |
-
/* http://imakewebthings.com/waypoints/api/context-find-by-element */
|
705 |
-
Context.findByElement = function(element) {
|
706 |
-
return contexts[element.waypointContextKey]
|
707 |
-
}
|
708 |
|
709 |
-
|
710 |
-
if (oldWindowLoad) {
|
711 |
-
oldWindowLoad()
|
712 |
-
}
|
713 |
-
Context.refreshAll()
|
714 |
-
}
|
715 |
|
|
|
716 |
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
|
729 |
-
|
730 |
-
|
731 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
732 |
|
733 |
-
|
734 |
-
|
735 |
-
}
|
736 |
|
737 |
-
|
738 |
-
vertical: {},
|
739 |
-
horizontal: {}
|
740 |
-
}
|
741 |
-
var Waypoint = window.Waypoint
|
742 |
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
this.id = this.name + '-' + this.axis
|
748 |
-
this.waypoints = []
|
749 |
-
this.clearTriggerQueues()
|
750 |
-
groups[this.axis][this.name] = this
|
751 |
-
}
|
752 |
|
753 |
-
|
754 |
-
|
755 |
-
this.waypoints.push(waypoint)
|
756 |
-
}
|
757 |
|
758 |
-
|
759 |
-
|
760 |
-
this.triggerQueues = {
|
761 |
-
up: [],
|
762 |
-
down: [],
|
763 |
-
left: [],
|
764 |
-
right: []
|
765 |
-
}
|
766 |
-
}
|
767 |
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
var waypoints = this.triggerQueues[direction]
|
772 |
-
var reverse = direction === 'up' || direction === 'left'
|
773 |
-
waypoints.sort(reverse ? byReverseTriggerPoint : byTriggerPoint)
|
774 |
-
for (var i = 0, end = waypoints.length; i < end; i += 1) {
|
775 |
-
var waypoint = waypoints[i]
|
776 |
-
if (waypoint.options.continuous || i === waypoints.length - 1) {
|
777 |
-
waypoint.trigger([direction])
|
778 |
-
}
|
779 |
-
}
|
780 |
-
}
|
781 |
-
this.clearTriggerQueues()
|
782 |
-
}
|
783 |
|
784 |
-
|
785 |
-
|
786 |
-
this.waypoints.sort(byTriggerPoint)
|
787 |
-
var index = Waypoint.Adapter.inArray(waypoint, this.waypoints)
|
788 |
-
var isLast = index === this.waypoints.length - 1
|
789 |
-
return isLast ? null : this.waypoints[index + 1]
|
790 |
-
}
|
791 |
|
792 |
-
|
793 |
-
|
794 |
-
this.waypoints.sort(byTriggerPoint)
|
795 |
-
var index = Waypoint.Adapter.inArray(waypoint, this.waypoints)
|
796 |
-
return index ? this.waypoints[index - 1] : null
|
797 |
-
}
|
798 |
|
799 |
-
|
800 |
-
|
801 |
-
this.triggerQueues[direction].push(waypoint)
|
802 |
-
}
|
803 |
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
this.waypoints.splice(index, 1)
|
809 |
-
}
|
810 |
-
}
|
811 |
|
812 |
-
|
813 |
-
|
814 |
-
Group.prototype.first = function() {
|
815 |
-
return this.waypoints[0]
|
816 |
-
}
|
817 |
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
return this.waypoints[this.waypoints.length - 1]
|
822 |
-
}
|
823 |
|
824 |
-
|
825 |
-
|
826 |
-
return groups[options.axis][options.name] || new Group(options)
|
827 |
-
}
|
828 |
|
829 |
-
|
830 |
-
|
831 |
-
;(function() {
|
832 |
-
'use strict'
|
833 |
|
834 |
-
|
|
|
835 |
|
836 |
-
|
837 |
-
|
838 |
-
}
|
839 |
|
840 |
-
|
841 |
-
|
842 |
-
return element
|
843 |
-
}
|
844 |
-
return element.defaultView
|
845 |
-
}
|
846 |
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
}
|
851 |
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
|
|
856 |
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
if (!handler || handler === listener) {
|
867 |
-
element.removeEventListener(listener)
|
868 |
-
}
|
869 |
-
}
|
870 |
-
}
|
871 |
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
|
|
|
|
876 |
|
877 |
-
|
878 |
-
|
879 |
-
this.handlers[namespace][eventType] = []
|
880 |
-
}
|
881 |
-
else if (eventType) {
|
882 |
-
for (var ns in this.handlers) {
|
883 |
-
removeListeners(element, this.handlers[ns][eventType] || [], handler)
|
884 |
-
this.handlers[ns][eventType] = []
|
885 |
-
}
|
886 |
-
}
|
887 |
-
else if (namespace && this.handlers[namespace]) {
|
888 |
-
for (var type in this.handlers[namespace]) {
|
889 |
-
removeListeners(element, this.handlers[namespace][type], handler)
|
890 |
-
}
|
891 |
-
this.handlers[namespace] = {}
|
892 |
-
}
|
893 |
-
}
|
894 |
|
895 |
-
|
896 |
-
|
897 |
-
if (!this.element.ownerDocument) {
|
898 |
-
return null
|
899 |
-
}
|
900 |
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
907 |
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
|
|
|
|
|
|
917 |
|
918 |
-
|
919 |
-
|
920 |
-
var eventType = eventParts[0]
|
921 |
-
var namespace = eventParts[1] || '__default'
|
922 |
-
var nsHandlers = this.handlers[namespace] = this.handlers[namespace] || {}
|
923 |
-
var nsTypeList = nsHandlers[eventType] = nsHandlers[eventType] || []
|
924 |
|
925 |
-
|
926 |
-
|
927 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
928 |
|
929 |
-
|
930 |
-
|
931 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
932 |
|
933 |
-
if (
|
934 |
-
|
935 |
-
height += parseInt(computedStyle.marginTop, 10)
|
936 |
-
height += parseInt(computedStyle.marginBottom, 10)
|
937 |
}
|
938 |
-
|
939 |
-
|
|
|
|
|
940 |
}
|
941 |
|
942 |
-
|
943 |
-
|
944 |
-
|
|
|
945 |
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
|
|
|
|
|
|
950 |
}
|
951 |
-
|
952 |
-
return width
|
953 |
}
|
954 |
|
955 |
-
|
956 |
-
|
957 |
-
|
|
|
|
|
|
|
958 |
}
|
959 |
|
960 |
-
|
961 |
-
|
962 |
-
|
|
|
|
|
963 |
}
|
964 |
|
965 |
-
|
966 |
-
|
|
|
|
|
|
|
|
|
|
|
967 |
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
}
|
974 |
-
}
|
975 |
-
}
|
976 |
|
977 |
-
|
978 |
-
|
|
|
|
|
|
|
979 |
|
980 |
-
|
981 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
982 |
}
|
983 |
-
return args[0]
|
984 |
}
|
985 |
|
986 |
-
|
987 |
-
|
|
|
|
|
988 |
}
|
989 |
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
994 |
}
|
995 |
-
return
|
996 |
}
|
997 |
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
}())
|
1004 |
-
;
|
1005 |
|
1006 |
-
|
1007 |
-
/*
|
1008 |
-
|
|
|
|
|
1009 |
|
1010 |
-
|
|
|
|
|
|
|
|
|
1011 |
|
|
|
1012 |
|
1013 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1014 |
|
1015 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1016 |
|
1017 |
-
|
|
|
|
|
|
|
1018 |
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
(0, _domReady2.default)(function () {
|
1023 |
-
var elems = document.querySelectorAll('.wp-block-ugb-expand');
|
1024 |
-
elems.forEach(function (el) {
|
1025 |
-
var btn = el.querySelector('.ugb-expand-button');
|
1026 |
-
var clickHandler = function clickHandler(e) {
|
1027 |
-
el.classList.toggle('ugb-more');
|
1028 |
-
e.preventDefault();
|
1029 |
-
};
|
1030 |
-
if (btn) {
|
1031 |
-
btn.addEventListener('click', clickHandler);
|
1032 |
-
btn.addEventListener('tapEnd', clickHandler);
|
1033 |
-
}
|
1034 |
-
});
|
1035 |
-
});
|
1036 |
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
|
|
1040 |
|
1041 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1042 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1043 |
|
1044 |
-
|
|
|
|
|
1045 |
|
1046 |
-
|
|
|
|
|
|
|
|
|
|
|
1047 |
|
1048 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1049 |
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
(0, _domReady2.default)(function () {
|
1054 |
-
var elems = document.querySelectorAll('.ugb-notification.dismissible-true[data-uid]');
|
1055 |
-
elems.forEach(function (el) {
|
1056 |
-
var uid = el.getAttribute('data-uid');
|
1057 |
-
if (!localStorage.getItem('stckbl-notif-' + uid)) {
|
1058 |
-
el.style.display = 'block';
|
1059 |
-
}
|
1060 |
-
el.querySelector('.close-button').addEventListener('click', function () {
|
1061 |
-
localStorage.setItem('stckbl-notif-' + uid, 1);
|
1062 |
-
el.style.display = '';
|
1063 |
-
});
|
1064 |
-
});
|
1065 |
-
});
|
1066 |
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
|
|
1070 |
|
1071 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1072 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
|
1074 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1075 |
|
1076 |
-
|
|
|
|
|
|
|
1077 |
|
1078 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1079 |
|
1080 |
-
var
|
|
|
|
|
|
|
1081 |
|
1082 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1083 |
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
if (_bigpicture2.default) {
|
1088 |
-
var videoID = el.getAttribute('data-video');
|
1089 |
-
var args = {
|
1090 |
-
el: el,
|
1091 |
-
noLoader: true
|
1092 |
-
};
|
1093 |
-
if (videoID.match(/^\d+$/g)) {
|
1094 |
-
args['vimeoSrc'] = videoID;
|
1095 |
-
} else if (videoID.match(/^https?:\/\//g)) {
|
1096 |
-
args['vidSrc'] = videoID;
|
1097 |
-
} else {
|
1098 |
-
args['ytSrc'] = videoID;
|
1099 |
-
}
|
1100 |
-
(0, _bigpicture2.default)(args);
|
1101 |
-
}
|
1102 |
-
};
|
1103 |
-
elems.forEach(function (el) {
|
1104 |
-
var a = el.querySelector('a');
|
1105 |
-
a.addEventListener('click', function (ev) {
|
1106 |
-
ev.preventDefault();
|
1107 |
-
openVideo(el);
|
1108 |
-
});
|
1109 |
-
a.addEventListener('touchend', function (ev) {
|
1110 |
-
ev.preventDefault();
|
1111 |
-
openVideo(el);
|
1112 |
-
});
|
1113 |
-
});
|
1114 |
-
});
|
1115 |
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
|
|
|
|
1119 |
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
// container element holding html needed for script
|
1130 |
-
container,
|
1131 |
-
// currently active display element (image, video, youtube / vimeo iframe container)
|
1132 |
-
displayElement,
|
1133 |
-
// popup image element
|
1134 |
-
displayImage,
|
1135 |
-
// popup video element
|
1136 |
-
displayVideo,
|
1137 |
-
// container element to hold youtube / vimeo iframe
|
1138 |
-
iframeContainer,
|
1139 |
-
// iframe to hold youtube / vimeo player
|
1140 |
-
iframeSiteVid,
|
1141 |
-
// store requested image source
|
1142 |
-
imgSrc,
|
1143 |
-
// button that closes the container
|
1144 |
-
closeButton,
|
1145 |
-
// youtube / vimeo video id
|
1146 |
-
siteVidID,
|
1147 |
-
// keeps track of loading icon display state
|
1148 |
-
isLoading,
|
1149 |
-
// timeout to check video status while loading
|
1150 |
-
checkVidTimeout,
|
1151 |
-
// loading icon element
|
1152 |
-
loadingIcon,
|
1153 |
-
// caption element
|
1154 |
-
caption,
|
1155 |
-
// caption content element
|
1156 |
-
captionText,
|
1157 |
-
// store caption content
|
1158 |
-
captionContent,
|
1159 |
-
// hide caption button element
|
1160 |
-
captionHideButton,
|
1161 |
-
// open state for container element
|
1162 |
-
isOpen,
|
1163 |
-
// used during close animation to avoid triggering timeout twice
|
1164 |
-
isClosing,
|
1165 |
-
// array of prev viewed image urls to check if cached before showing loading icon
|
1166 |
-
imgCache,
|
1167 |
-
// store whether remote image is already cached on request
|
1168 |
-
cached,
|
1169 |
-
// store whether image requested is remote or local
|
1170 |
-
remoteImage,
|
1171 |
-
// store animation opening callbacks
|
1172 |
-
animationStart,
|
1173 |
-
animationEnd,
|
1174 |
-
// set to true if user wants to hide loading icon
|
1175 |
-
noLoader,
|
1176 |
-
// Save bytes in the minified version
|
1177 |
-
doc = document,
|
1178 |
-
appendEl = 'appendChild',
|
1179 |
-
createEl = 'createElement',
|
1180 |
-
removeEl = 'removeChild',
|
1181 |
-
htmlInner = 'innerHTML',
|
1182 |
-
pointerEventsAuto = 'pointer-events:auto',
|
1183 |
-
cHeight = 'clientHeight',
|
1184 |
-
cWidth = 'clientWidth',
|
1185 |
-
listenFor = 'addEventListener',
|
1186 |
-
timeout = global.setTimeout,
|
1187 |
-
clearTimeout = global.clearTimeout;
|
1188 |
|
|
|
|
|
|
|
|
|
|
|
1189 |
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1193 |
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
|
|
|
|
|
|
|
|
1198 |
}
|
|
|
|
|
|
|
|
|
1199 |
|
1200 |
-
|
1201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1202 |
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
|
|
|
|
|
|
1206 |
|
1207 |
-
|
1208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1209 |
|
1210 |
-
|
1211 |
-
|
|
|
|
|
|
|
1212 |
|
1213 |
-
|
1214 |
-
|
1215 |
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
container[appendEl](caption);
|
1221 |
-
}
|
1222 |
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
createIframe(!!options.ytSrc);
|
1228 |
-
}
|
1229 |
-
// if remote image
|
1230 |
-
else if (options.imgSrc) {
|
1231 |
-
remoteImage = true;
|
1232 |
-
imgSrc = options.imgSrc;
|
1233 |
-
cached = ~imgCache.indexOf(imgSrc);
|
1234 |
-
!cached && toggleLoadingIcon(true);
|
1235 |
-
displayElement = displayImage;
|
1236 |
-
displayElement.src = imgSrc;
|
1237 |
-
}
|
1238 |
-
// if direct video link
|
1239 |
-
else if (options.vidSrc) {
|
1240 |
-
toggleLoadingIcon(true);
|
1241 |
-
displayElement = displayVideo;
|
1242 |
-
displayElement.src = options.vidSrc;
|
1243 |
-
checkVid();
|
1244 |
-
}
|
1245 |
-
// local image / background image already loaded on page
|
1246 |
-
else {
|
1247 |
-
displayElement = displayImage;
|
1248 |
-
// get img source or element background image
|
1249 |
-
displayElement.src = el.tagName === 'IMG' ? el.src :
|
1250 |
-
global.getComputedStyle(el).backgroundImage.replace(/^url|[(|)|'|"]/g, '');
|
1251 |
}
|
|
|
1252 |
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
// create all needed methods / store dom elements on first use
|
1260 |
-
function initialize() {
|
1261 |
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
el.className = 'bp-x';
|
1266 |
-
el[htmlInner] = '×'
|
1267 |
-
return el;
|
1268 |
}
|
|
|
|
|
1269 |
|
1270 |
-
// imgCache holds displayed image urls to prevent loader on cached images
|
1271 |
-
imgCache = [];
|
1272 |
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1278 |
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
container.onclick = close;
|
1283 |
-
closeButton = createCloseButton();
|
1284 |
-
container[appendEl](closeButton);
|
1285 |
|
1286 |
-
|
1287 |
-
|
|
|
1288 |
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
displayVideo.controls = true;
|
1295 |
-
displayVideo.loop = true;
|
1296 |
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
}, 300);
|
1307 |
-
}
|
1308 |
-
caption[appendEl](captionHideButton);
|
1309 |
-
captionText = doc[createEl]('SPAN');
|
1310 |
-
caption[appendEl](captionText);
|
1311 |
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1327 |
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
|
|
|
|
|
|
|
|
1331 |
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
|
|
|
|
1336 |
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
|
1350 |
-
|
1351 |
-
|
|
|
|
|
1352 |
}
|
1353 |
|
|
|
|
|
|
|
|
|
|
|
1354 |
|
1355 |
-
|
1356 |
-
function
|
1357 |
-
|
1358 |
-
var leftOffset = rect.left - (container[cWidth] - rect.width) / 2;
|
1359 |
-
var centerTop = rect.top - (container[cHeight] - rect.height) / 2;
|
1360 |
-
var scaleWidth = el[cWidth] / displayElement[cWidth];
|
1361 |
-
var scaleHeight = el[cHeight] / displayElement[cHeight];
|
1362 |
-
return webkitify('transform:', 'translate3D(' + leftOffset + 'px, ' +
|
1363 |
-
centerTop + 'px, 0) scale3D(' + scaleWidth + ', ' + scaleHeight + ', 0);');
|
1364 |
}
|
1365 |
|
|
|
|
|
|
|
|
|
1366 |
|
1367 |
-
|
1368 |
-
function createIframe(isYoutube) {
|
1369 |
-
// create appropriate url for youtube or vimeo
|
1370 |
-
var url = isYoutube ?
|
1371 |
-
'www.youtube.com/embed/' + siteVidID + '?html5=1&rel=0&showinfo=0&playsinline=1&' :
|
1372 |
-
'player.vimeo.com/video/' + siteVidID + '?';
|
1373 |
|
1374 |
-
|
1375 |
-
|
1376 |
}
|
1377 |
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
else if (displayVideo.error)
|
1384 |
-
open('video');
|
1385 |
-
else
|
1386 |
-
checkVidTimeout = timeout(checkVid, 35);
|
1387 |
}
|
1388 |
|
|
|
|
|
|
|
|
|
1389 |
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
if (noLoader) return;
|
1394 |
-
// bool is true if we want to show icon, false if we want to remove
|
1395 |
-
// change style to match trigger element dimensions if we want to show
|
1396 |
-
bool && changeCSS(loadingIcon, 'top:' + el.offsetTop +
|
1397 |
-
'px;left:' + el.offsetLeft + 'px;height:' +
|
1398 |
-
el[cHeight] + 'px;width:' + el[cWidth] + 'px');
|
1399 |
-
// add or remove loader from DOM
|
1400 |
-
el.parentElement[bool ? appendEl : removeEl](loadingIcon);
|
1401 |
-
isLoading = bool;
|
1402 |
}
|
1403 |
|
|
|
|
|
|
|
|
|
1404 |
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
|
|
|
|
|
|
|
|
|
|
1409 |
|
1410 |
-
|
1411 |
-
|
|
|
|
|
1412 |
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1417 |
}
|
|
|
1418 |
|
1419 |
-
|
1420 |
-
|
|
|
|
|
|
|
1421 |
|
1422 |
-
|
1423 |
-
|
|
|
|
|
|
|
|
|
1424 |
|
1425 |
-
|
1426 |
-
|
|
|
1427 |
|
1428 |
-
|
1429 |
-
|
|
|
|
|
|
|
1430 |
|
1431 |
-
|
|
|
|
|
|
|
|
|
|
|
1432 |
|
1433 |
-
|
1434 |
-
|
1435 |
-
changeCSS(displayElement, webkitify('transition:', 'transform .35s;') + webkitify('transform:', 'none;'));
|
1436 |
-
captionContent && timeout(changeCSS.bind(null, caption, 'opacity:1'), 250);
|
1437 |
-
}, 60);
|
1438 |
}
|
1439 |
|
|
|
|
|
|
|
1440 |
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
|
|
1445 |
|
1446 |
-
|
1447 |
-
|
1448 |
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
}
|
1453 |
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
|
|
|
|
1457 |
|
1458 |
-
|
1459 |
-
|
1460 |
|
1461 |
-
|
1462 |
-
|
|
|
|
|
1463 |
|
1464 |
-
|
1465 |
-
|
|
|
1466 |
}
|
1467 |
|
|
|
|
|
1468 |
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
|
|
|
|
1475 |
|
1476 |
-
|
1477 |
-
|
1478 |
-
.removeAttribute('src');
|
1479 |
|
1480 |
-
|
1481 |
-
|
1482 |
-
container[removeEl](caption);
|
1483 |
}
|
1484 |
-
|
1485 |
}
|
1486 |
|
1487 |
-
|
1488 |
-
|
1489 |
-
function changeCSS(element, newStyle) {
|
1490 |
-
element.style.cssText = newStyle;
|
1491 |
-
}
|
1492 |
-
function webkitify(prop, val) {
|
1493 |
-
var webkit = '-webkit-';
|
1494 |
-
var propVal = prop + val;
|
1495 |
-
return webkit + propVal + prop + webkit + val + propVal;
|
1496 |
-
}
|
1497 |
-
function webkitifyKeyframes(css) {
|
1498 |
-
return '@-webkit-' + css + '@' + css;
|
1499 |
}
|
1500 |
|
1501 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1503 |
|
1504 |
/***/ })
|
1505 |
/******/ ]);
|
1 |
+
var frontend =
|
2 |
/******/ (function(modules) { // webpackBootstrap
|
3 |
/******/ // The module cache
|
4 |
/******/ var installedModules = {};
|
61 |
/******/ __webpack_require__.p = "";
|
62 |
/******/
|
63 |
/******/ // Load entry module and return exports
|
64 |
+
/******/ return __webpack_require__(__webpack_require__.s = 2);
|
65 |
/******/ })
|
66 |
/************************************************************************/
|
67 |
/******/ ([
|
88 |
/* harmony default export */ __webpack_exports__["default"] = (domReady);
|
89 |
|
90 |
/***/ }),
|
91 |
+
/* 1 */,
|
92 |
+
/* 2 */
|
93 |
/***/ (function(module, exports, __webpack_require__) {
|
94 |
|
95 |
+
"use strict";
|
96 |
+
|
97 |
+
|
98 |
+
__webpack_require__(3);
|
99 |
+
|
100 |
__webpack_require__(5);
|
|
|
101 |
|
102 |
+
__webpack_require__(6);
|
103 |
+
|
104 |
+
__webpack_require__(7);
|
105 |
|
106 |
/***/ }),
|
107 |
+
/* 3 */
|
108 |
/***/ (function(module, exports, __webpack_require__) {
|
109 |
|
110 |
"use strict";
|
114 |
|
115 |
var _domReady2 = _interopRequireDefault(_domReady);
|
116 |
|
117 |
+
var _bigpicture = __webpack_require__(4);
|
118 |
+
|
119 |
+
var _bigpicture2 = _interopRequireDefault(_bigpicture);
|
120 |
+
|
121 |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
122 |
|
123 |
(0, _domReady2.default)(function () {
|
124 |
+
var elems = document.querySelectorAll('.ugb-video-popup');
|
125 |
+
var openVideo = function openVideo(el) {
|
126 |
+
if (_bigpicture2.default) {
|
127 |
+
var videoID = el.getAttribute('data-video');
|
128 |
+
var args = {
|
129 |
+
el: el,
|
130 |
+
noLoader: true
|
131 |
+
};
|
132 |
+
if (videoID.match(/^\d+$/g)) {
|
133 |
+
args['vimeoSrc'] = videoID;
|
134 |
+
} else if (videoID.match(/^https?:\/\//g)) {
|
135 |
+
args['vidSrc'] = videoID;
|
136 |
+
} else {
|
137 |
+
args['ytSrc'] = videoID;
|
138 |
+
}
|
139 |
+
(0, _bigpicture2.default)(args);
|
140 |
+
}
|
141 |
+
};
|
142 |
elems.forEach(function (el) {
|
143 |
+
var a = el.querySelector('a');
|
144 |
+
a.addEventListener('click', function (ev) {
|
145 |
+
ev.preventDefault();
|
146 |
+
openVideo(el);
|
147 |
+
});
|
148 |
+
a.addEventListener('touchend', function (ev) {
|
149 |
+
ev.preventDefault();
|
150 |
+
openVideo(el);
|
|
|
|
|
151 |
});
|
152 |
});
|
153 |
});
|
154 |
|
155 |
+
/***/ }),
|
156 |
+
/* 4 */
|
157 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
+
// BigPicture.js | license MIT | henrygd.me/bigpicture
|
160 |
+
(function() {
|
161 |
+
var
|
162 |
+
// assign window object to variable
|
163 |
+
global = window,
|
164 |
+
// trigger element used to open popup
|
165 |
+
el,
|
166 |
+
// set to true after first interaction
|
167 |
+
initialized,
|
168 |
+
// container element holding html needed for script
|
169 |
+
container,
|
170 |
+
// currently active display element (image, video, youtube / vimeo iframe container)
|
171 |
+
displayElement,
|
172 |
+
// popup image element
|
173 |
+
displayImage,
|
174 |
+
// popup video element
|
175 |
+
displayVideo,
|
176 |
+
// container element to hold youtube / vimeo iframe
|
177 |
+
iframeContainer,
|
178 |
+
// iframe to hold youtube / vimeo player
|
179 |
+
iframeSiteVid,
|
180 |
+
// store requested image source
|
181 |
+
imgSrc,
|
182 |
+
// button that closes the container
|
183 |
+
closeButton,
|
184 |
+
// youtube / vimeo video id
|
185 |
+
siteVidID,
|
186 |
+
// keeps track of loading icon display state
|
187 |
+
isLoading,
|
188 |
+
// timeout to check video status while loading
|
189 |
+
checkVidTimeout,
|
190 |
+
// loading icon element
|
191 |
+
loadingIcon,
|
192 |
+
// caption element
|
193 |
+
caption,
|
194 |
+
// caption content element
|
195 |
+
captionText,
|
196 |
+
// store caption content
|
197 |
+
captionContent,
|
198 |
+
// hide caption button element
|
199 |
+
captionHideButton,
|
200 |
+
// open state for container element
|
201 |
+
isOpen,
|
202 |
+
// used during close animation to avoid triggering timeout twice
|
203 |
+
isClosing,
|
204 |
+
// array of prev viewed image urls to check if cached before showing loading icon
|
205 |
+
imgCache,
|
206 |
+
// store whether remote image is already cached on request
|
207 |
+
cached,
|
208 |
+
// store whether image requested is remote or local
|
209 |
+
remoteImage,
|
210 |
+
// store animation opening callbacks
|
211 |
+
animationStart,
|
212 |
+
animationEnd,
|
213 |
+
// set to true if user wants to hide loading icon
|
214 |
+
noLoader,
|
215 |
+
// Save bytes in the minified version
|
216 |
+
doc = document,
|
217 |
+
appendEl = 'appendChild',
|
218 |
+
createEl = 'createElement',
|
219 |
+
removeEl = 'removeChild',
|
220 |
+
htmlInner = 'innerHTML',
|
221 |
+
pointerEventsAuto = 'pointer-events:auto',
|
222 |
+
cHeight = 'clientHeight',
|
223 |
+
cWidth = 'clientWidth',
|
224 |
+
listenFor = 'addEventListener',
|
225 |
+
timeout = global.setTimeout,
|
226 |
+
clearTimeout = global.clearTimeout;
|
227 |
|
|
|
|
|
|
|
|
|
228 |
|
229 |
+
module.exports = function(options) {
|
230 |
+
// initialize called on initial open to create elements / style / event handlers
|
231 |
+
initialized || initialize();
|
232 |
|
233 |
+
// clear currently loading stuff
|
234 |
+
if (isLoading) {
|
235 |
+
clearTimeout(checkVidTimeout);
|
236 |
+
removeContainer();
|
237 |
+
}
|
238 |
|
239 |
+
// store video id if youtube / vimeo video is requested
|
240 |
+
siteVidID = options.ytSrc || options.vimeoSrc;
|
|
|
241 |
|
242 |
+
// store optional callbacks
|
243 |
+
animationStart = options.animationStart;
|
244 |
+
animationEnd = options.animationEnd;
|
245 |
|
246 |
+
// store whether user requests to hide loading icon
|
247 |
+
noLoader = options.noLoader;
|
248 |
|
249 |
+
// set trigger element
|
250 |
+
el = options.el;
|
251 |
|
252 |
+
// wipe existing remoteImage state
|
253 |
+
remoteImage = false;
|
|
|
|
|
254 |
|
255 |
+
// set caption if provided
|
256 |
+
captionContent = el.getAttribute('caption');
|
257 |
+
if (captionContent) {
|
258 |
+
captionText[htmlInner] = captionContent;
|
259 |
+
container[appendEl](caption);
|
260 |
+
}
|
261 |
|
262 |
+
// if vimeo or youtube video
|
263 |
+
if (siteVidID) {
|
264 |
+
toggleLoadingIcon(true);
|
265 |
+
displayElement = iframeContainer;
|
266 |
+
createIframe(!!options.ytSrc);
|
267 |
+
}
|
268 |
+
// if remote image
|
269 |
+
else if (options.imgSrc) {
|
270 |
+
remoteImage = true;
|
271 |
+
imgSrc = options.imgSrc;
|
272 |
+
cached = ~imgCache.indexOf(imgSrc);
|
273 |
+
!cached && toggleLoadingIcon(true);
|
274 |
+
displayElement = displayImage;
|
275 |
+
displayElement.src = imgSrc;
|
276 |
+
}
|
277 |
+
// if direct video link
|
278 |
+
else if (options.vidSrc) {
|
279 |
+
toggleLoadingIcon(true);
|
280 |
+
displayElement = displayVideo;
|
281 |
+
displayElement.src = options.vidSrc;
|
282 |
+
checkVid();
|
283 |
+
}
|
284 |
+
// local image / background image already loaded on page
|
285 |
+
else {
|
286 |
+
displayElement = displayImage;
|
287 |
+
// get img source or element background image
|
288 |
+
displayElement.src = el.tagName === 'IMG' ? el.src :
|
289 |
+
global.getComputedStyle(el).backgroundImage.replace(/^url|[(|)|'|"]/g, '');
|
290 |
+
}
|
291 |
|
292 |
+
// add container to page
|
293 |
+
container[appendEl](displayElement);
|
294 |
+
doc.body[appendEl](container);
|
295 |
+
};
|
296 |
|
|
|
|
|
297 |
|
298 |
+
// create all needed methods / store dom elements on first use
|
299 |
+
function initialize() {
|
300 |
|
301 |
+
// return close button elements
|
302 |
+
function createCloseButton() {
|
303 |
+
var el = doc[createEl]('button');
|
304 |
+
el.className = 'bp-x';
|
305 |
+
el[htmlInner] = '×'
|
306 |
+
return el;
|
307 |
+
}
|
308 |
|
309 |
+
// imgCache holds displayed image urls to prevent loader on cached images
|
310 |
+
imgCache = [];
|
311 |
|
312 |
+
// add style
|
313 |
+
// if you want to tweak, grab from doc head & run through beautifier
|
314 |
+
var style = doc[createEl]('STYLE');
|
315 |
+
style[htmlInner] = '#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,.bp-x,#bp_loader{position:absolute;right:0}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;pointer-events:none;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:-webkit-flex;display:flex;margin:0;cursor:wait;z-index:9}#bp_loader svg{width:40%;max-height:40%;margin:auto;' + webkitify('animation:', 'ldr .7s infinite linear;') + '}' + webkitifyKeyframes('keyframes ldr{to{' + webkitify('transform:', 'rotate(1turn);') + '}}') + '#bp_container img,#bp_sv,#bp_vid{max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{width:171vh}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}.bp-x{font-family:Arial;top:0;cursor:pointer;opacity:.8;font-size:3em;padding:0 .3em;color:#fff;background:transparent;border:0;text-shadow:0 0 2px #000}#bp_caption .bp-x{left:2%;top:auto;right:auto;bottom:100%;padding:0 .6em;background:#d74040;border-radius:2px 2px 0 0;font-size:2.3em;text-shadow:none}.bp-x:hover,.bp-x:focus{opacity:1}.bp-x:active{outline:0}@media (max-aspect-ratio:9/5){#bp_sv{height:53vw}}';
|
316 |
+
doc.head[appendEl](style);
|
317 |
|
318 |
+
// create container element
|
319 |
+
container = doc[createEl]('DIV');
|
320 |
+
container.id = 'bp_container';
|
321 |
+
container.onclick = close;
|
322 |
+
closeButton = createCloseButton();
|
323 |
+
container[appendEl](closeButton);
|
324 |
|
325 |
+
// create display image element
|
326 |
+
displayImage = doc[createEl]('IMG');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
|
328 |
+
// create display video element
|
329 |
+
displayVideo = doc[createEl]('VIDEO');
|
330 |
+
displayVideo.id = 'bp_vid';
|
331 |
+
displayVideo.autoplay = true;
|
332 |
+
displayVideo.setAttribute('playsinline', true);
|
333 |
+
displayVideo.controls = true;
|
334 |
+
displayVideo.loop = true;
|
335 |
|
336 |
+
// create caption elements
|
337 |
+
caption = doc[createEl]('DIV');
|
338 |
+
caption.id = 'bp_caption';
|
339 |
+
captionHideButton = createCloseButton();
|
340 |
+
captionHideButton.onclick = function() {
|
341 |
+
changeCSS(caption, 'opacity:0');
|
342 |
+
timeout(function() {
|
343 |
+
captionContent = false;
|
344 |
+
container[removeEl](caption);
|
345 |
+
}, 300);
|
346 |
+
}
|
347 |
+
caption[appendEl](captionHideButton);
|
348 |
+
captionText = doc[createEl]('SPAN');
|
349 |
+
caption[appendEl](captionText);
|
350 |
|
351 |
+
// create loading icon element
|
352 |
+
loadingIcon = doc[createEl]('DIV');
|
353 |
+
loadingIcon.id = 'bp_loader';
|
354 |
+
loadingIcon[htmlInner] = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 399 399"><path d="M341 58.5C303 20.8 253 0 199.6 0 146.4 0 96.2 20.8 58.5 58.5 20.8 96.2 0 146.5 0 199.7 0 253 20.8 303.2 58.5 341c37.7 37.6 88 58.4 141.2 58.4 53.3 0 103.5-20.8 141.2-58.5 37.6-37.8 58.4-88 58.4-141.3 0-53.3-20.8-103.5-58.5-141.2zm-13 12.8c34.3 34.3 53.2 80 53.2 128.4h-41c0-77.4-63-140.4-140.5-140.4-4.6 0-9 .2-13.6.7V18.7c4.6-.4 9-.5 13.7-.5 48.5 0 94 18.8 128.4 53zM199.8 322c-67.4 0-122.2-55-122.2-122.3S132.3 77.5 199.7 77.5 322 132.3 322 199.7 267 322 199.6 322z"/></svg>';
|
355 |
|
356 |
+
// create youtube / vimeo container
|
357 |
+
iframeContainer = doc[createEl]('DIV');
|
358 |
+
iframeContainer.id = 'bp_sv';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
+
// create iframe to hold youtube / vimeo player
|
361 |
+
iframeSiteVid = doc[createEl]('IFRAME');
|
362 |
+
iframeSiteVid.allowFullscreen = true;
|
363 |
+
iframeSiteVid.onload = open;
|
364 |
+
changeCSS(iframeSiteVid, 'border:0px;height:100%;width:100%');
|
365 |
+
iframeContainer[appendEl](iframeSiteVid);
|
366 |
|
367 |
+
// display image bindings for image load and error
|
368 |
+
displayImage.onload = open;
|
369 |
+
displayImage.onerror = open.bind(null, 'image');
|
|
|
|
|
|
|
|
|
|
|
370 |
|
371 |
+
// adjust loader position on window resize
|
372 |
+
global[listenFor]('resize', function() {
|
373 |
+
isLoading && toggleLoadingIcon(true);
|
374 |
+
});
|
375 |
|
376 |
+
// close container on escape key press
|
377 |
+
doc[listenFor]('keyup', function(e) {
|
378 |
+
e.keyCode === 27 && isOpen && close(container);
|
379 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
|
381 |
+
// trap focus within conainer while open
|
382 |
+
doc[listenFor]('focus', function(e) {
|
383 |
+
if (isOpen && !container.contains(e.target)) {
|
384 |
+
e.stopPropagation();
|
385 |
+
closeButton.focus();
|
386 |
+
}
|
387 |
+
}, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
+
// all done
|
390 |
+
initialized = true;
|
|
|
|
|
|
|
|
|
|
|
391 |
}
|
392 |
|
|
|
|
|
|
|
|
|
393 |
|
394 |
+
// return transform style to make full size display el match trigger el size
|
395 |
+
function getRect() {
|
396 |
+
var rect = el.getBoundingClientRect();
|
397 |
+
var leftOffset = rect.left - (container[cWidth] - rect.width) / 2;
|
398 |
+
var centerTop = rect.top - (container[cHeight] - rect.height) / 2;
|
399 |
+
var scaleWidth = el[cWidth] / displayElement[cWidth];
|
400 |
+
var scaleHeight = el[cHeight] / displayElement[cHeight];
|
401 |
+
return webkitify('transform:', 'translate3D(' + leftOffset + 'px, ' +
|
402 |
+
centerTop + 'px, 0) scale3D(' + scaleWidth + ', ' + scaleHeight + ', 0);');
|
403 |
}
|
404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
|
406 |
+
// create youtube / vimeo video iframe
|
407 |
+
function createIframe(isYoutube) {
|
408 |
+
// create appropriate url for youtube or vimeo
|
409 |
+
var url = isYoutube ?
|
410 |
+
'www.youtube.com/embed/' + siteVidID + '?html5=1&rel=0&showinfo=0&playsinline=1&' :
|
411 |
+
'player.vimeo.com/video/' + siteVidID + '?';
|
412 |
|
413 |
+
// set iframe src to url
|
414 |
+
iframeSiteVid.src = 'https://' + url + 'autoplay=1';
|
|
|
|
|
|
|
|
|
415 |
}
|
416 |
|
417 |
+
// timeout to check video status while loading
|
418 |
+
// onloadeddata event doesn't seem to fire in less up-to-date browsers like midori & epiphany
|
419 |
+
function checkVid() {
|
420 |
+
if (displayElement.readyState === 4)
|
421 |
+
open();
|
422 |
+
else if (displayVideo.error)
|
423 |
+
open('video');
|
424 |
+
else
|
425 |
+
checkVidTimeout = timeout(checkVid, 35);
|
426 |
}
|
427 |
|
|
|
|
|
|
|
|
|
|
|
428 |
|
429 |
+
// hide / show loading icon
|
430 |
+
function toggleLoadingIcon(bool) {
|
431 |
+
// don't show loading icon if noLoader is specified
|
432 |
+
if (noLoader) return;
|
433 |
+
// bool is true if we want to show icon, false if we want to remove
|
434 |
+
// change style to match trigger element dimensions if we want to show
|
435 |
+
bool && changeCSS(loadingIcon, 'top:' + el.offsetTop +
|
436 |
+
'px;left:' + el.offsetLeft + 'px;height:' +
|
437 |
+
el[cHeight] + 'px;width:' + el[cWidth] + 'px');
|
438 |
+
// add or remove loader from DOM
|
439 |
+
el.parentElement[bool ? appendEl : removeEl](loadingIcon);
|
440 |
+
isLoading = bool;
|
441 |
}
|
442 |
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
+
// animate open of image / video; display caption if needed
|
445 |
+
function open(err) {
|
446 |
+
// hide loading spinner
|
447 |
+
isLoading && toggleLoadingIcon();
|
|
|
448 |
|
449 |
+
// execute animationStart callback
|
450 |
+
animationStart && animationStart();
|
451 |
+
|
452 |
+
// check if we have an error string instead of normal event
|
453 |
+
if (typeof(err) === 'string') {
|
454 |
+
removeContainer();
|
455 |
+
return alert('Error: The requested ' + err + ' could not be displayed.');
|
456 |
}
|
|
|
|
|
457 |
|
458 |
+
// if remote image is loaded, add url to imgCache array
|
459 |
+
(remoteImage && !cached) && imgCache.push(imgSrc);
|
|
|
|
|
|
|
460 |
|
461 |
+
// transform displayEl to match trigger el
|
462 |
+
changeCSS(displayElement, getRect());
|
|
|
|
|
|
|
463 |
|
464 |
+
// fade in container
|
465 |
+
changeCSS(container, 'opacity:1;' + pointerEventsAuto);
|
|
|
|
|
|
|
466 |
|
467 |
+
// set animationEnd callback to run after animation ends (cleared if container closed)
|
468 |
+
animationEnd = timeout(animationEnd, 410);
|
469 |
|
470 |
+
isOpen = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
+
// enlarge displayEl, fade in caption if hasCaption
|
473 |
+
timeout(function() {
|
474 |
+
changeCSS(displayElement, webkitify('transition:', 'transform .35s;') + webkitify('transform:', 'none;'));
|
475 |
+
captionContent && timeout(changeCSS.bind(null, caption, 'opacity:1'), 250);
|
476 |
+
}, 60);
|
|
|
|
|
477 |
}
|
478 |
|
|
|
|
|
|
|
|
|
479 |
|
480 |
+
// close active display element
|
481 |
+
function close(e) {
|
482 |
+
var target = e.target;
|
483 |
+
var clickEls = [caption, captionHideButton, displayVideo, captionText];
|
484 |
|
485 |
+
// blur to hide close button focus style
|
486 |
+
target && target.blur();
|
|
|
|
|
487 |
|
488 |
+
// don't close if one of the clickEls was clicked or container is already closing
|
489 |
+
if (isClosing || ~clickEls.indexOf(target)) {
|
490 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
}
|
492 |
|
493 |
+
// animate closing
|
494 |
+
displayElement.style.cssText += getRect();
|
495 |
+
changeCSS(container, pointerEventsAuto);
|
|
|
|
|
|
|
|
|
496 |
|
497 |
+
// timeout to remove els from dom; use variable to avoid calling more than once
|
498 |
+
timeout(removeContainer, 350);
|
|
|
499 |
|
500 |
+
// clear animationEnd timeout
|
501 |
+
clearTimeout(animationEnd);
|
|
|
|
|
|
|
|
|
502 |
|
503 |
+
isOpen = false;
|
504 |
+
isClosing = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
506 |
|
|
|
|
|
|
|
507 |
|
508 |
+
// remove container / display element from the DOM
|
509 |
+
function removeContainer() {
|
510 |
+
// remove container from DOM & clear inline style
|
511 |
+
doc.body[removeEl](container);
|
512 |
+
container[removeEl](displayElement);
|
513 |
+
changeCSS(container, '');
|
514 |
|
515 |
+
// clear src of displayElement (or iframe if display el is iframe container)
|
516 |
+
(displayElement === iframeContainer ? iframeSiteVid : displayElement)
|
517 |
+
.removeAttribute('src');
|
|
|
|
|
|
|
|
|
518 |
|
519 |
+
if (captionContent) {
|
520 |
+
changeCSS(caption, '');
|
521 |
+
container[removeEl](caption);
|
|
|
|
|
|
|
522 |
}
|
523 |
+
isClosing = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
}
|
525 |
|
|
|
|
|
|
|
|
|
526 |
|
527 |
+
// style helper functions
|
528 |
+
function changeCSS(element, newStyle) {
|
529 |
+
element.style.cssText = newStyle;
|
530 |
+
}
|
531 |
+
function webkitify(prop, val) {
|
532 |
+
var webkit = '-webkit-';
|
533 |
+
var propVal = prop + val;
|
534 |
+
return webkit + propVal + prop + webkit + val + propVal;
|
535 |
+
}
|
536 |
+
function webkitifyKeyframes(css) {
|
537 |
+
return '@-webkit-' + css + '@' + css;
|
538 |
+
}
|
|
|
|
|
|
|
|
|
|
|
539 |
|
540 |
+
})();
|
|
|
|
|
|
|
541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
|
543 |
+
/***/ }),
|
544 |
+
/* 5 */
|
545 |
+
/***/ (function(module, exports, __webpack_require__) {
|
546 |
|
547 |
+
"use strict";
|
|
|
|
|
|
|
|
|
548 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
|
550 |
+
var _domReady = __webpack_require__(0);
|
|
|
|
|
|
|
|
|
551 |
|
552 |
+
var _domReady2 = _interopRequireDefault(_domReady);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
|
554 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
|
556 |
+
/**
|
557 |
+
* Permanently hide the dismissible notification if clicked.
|
558 |
+
*/
|
559 |
+
(0, _domReady2.default)(function () {
|
560 |
+
var elems = document.querySelectorAll('.ugb-notification.dismissible-true[data-uid]');
|
561 |
+
elems.forEach(function (el) {
|
562 |
+
var uid = el.getAttribute('data-uid');
|
563 |
+
if (!localStorage.getItem('stckbl-notif-' + uid)) {
|
564 |
+
el.style.display = 'block';
|
565 |
+
}
|
566 |
+
el.querySelector('.close-button').addEventListener('click', function () {
|
567 |
+
localStorage.setItem('stckbl-notif-' + uid, 1);
|
568 |
+
el.style.display = '';
|
569 |
+
});
|
570 |
+
});
|
571 |
+
});
|
572 |
|
573 |
+
/***/ }),
|
574 |
+
/* 6 */
|
575 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
|
577 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
|
|
|
|
|
|
|
579 |
|
580 |
+
var _domReady = __webpack_require__(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
|
582 |
+
var _domReady2 = _interopRequireDefault(_domReady);
|
|
|
|
|
|
|
|
|
|
|
583 |
|
584 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
+
/**
|
587 |
+
* Permanently hide the dismissible notification if clicked.
|
588 |
+
*/
|
589 |
+
(0, _domReady2.default)(function () {
|
590 |
+
var elems = document.querySelectorAll('.wp-block-ugb-expand');
|
591 |
+
elems.forEach(function (el) {
|
592 |
+
var btn = el.querySelector('.ugb-expand-button');
|
593 |
+
var clickHandler = function clickHandler(e) {
|
594 |
+
el.classList.toggle('ugb-more');
|
595 |
+
e.preventDefault();
|
596 |
+
};
|
597 |
+
if (btn) {
|
598 |
+
btn.addEventListener('click', clickHandler);
|
599 |
+
btn.addEventListener('tapEnd', clickHandler);
|
600 |
+
}
|
601 |
+
});
|
602 |
+
});
|
603 |
|
604 |
+
/***/ }),
|
605 |
+
/* 7 */
|
606 |
+
/***/ (function(module, exports, __webpack_require__) {
|
607 |
|
608 |
+
"use strict";
|
|
|
|
|
|
|
609 |
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
|
611 |
+
var _domReady = __webpack_require__(0);
|
|
|
|
|
|
|
|
|
612 |
|
613 |
+
var _domReady2 = _interopRequireDefault(_domReady);
|
|
|
|
|
|
|
|
|
|
|
614 |
|
615 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
616 |
|
617 |
+
(0, _domReady2.default)(function () {
|
618 |
+
__webpack_require__(8);
|
619 |
+
var elems = document.querySelectorAll('.ugb-countup .ugb-counter');
|
620 |
+
elems.forEach(function (el) {
|
621 |
+
// initCountUp( el )
|
622 |
+
el.classList.add('ugb-countup-hide');
|
623 |
+
new Waypoint({
|
624 |
+
element: el,
|
625 |
+
handler: function handler() {
|
626 |
+
initCountUp(el);
|
627 |
+
el.classList.remove('ugb-countup-hide');
|
628 |
+
this.destroy();
|
629 |
+
},
|
630 |
+
offset: 'bottom-in-view'
|
631 |
+
});
|
632 |
+
});
|
633 |
+
});
|
634 |
|
635 |
+
var stopCountUp = function stopCountUp(el) {
|
636 |
+
clearTimeout(el.countUpTimeout);
|
637 |
+
if (el._countUpOrigInnerHTML) {
|
638 |
+
el.innerHTML = el._countUpOrigInnerHTML;
|
639 |
+
el._countUpOrigInnerHTML = undefined;
|
640 |
+
}
|
641 |
+
el.style.visibility = '';
|
642 |
+
};
|
643 |
+
var initCountUp = function initCountUp(el) {
|
644 |
|
645 |
+
var lang, time, delay, divisions, splitValues, nums, k, i, num, isComma;
|
646 |
+
var isFloat, decimalPlaces, val, newNum, _output;
|
|
|
647 |
|
648 |
+
stopCountUp(el);
|
|
|
|
|
|
|
|
|
649 |
|
650 |
+
// If no number, don't do anything.
|
651 |
+
if (!/[0-9]/.test(el.innerHTML)) {
|
652 |
+
return;
|
653 |
+
}
|
|
|
|
|
|
|
|
|
|
|
654 |
|
655 |
+
// Remember the element.
|
656 |
+
el._countUpOrigInnerHTML = el.innerHTML;
|
|
|
|
|
657 |
|
658 |
+
// Check location language.
|
659 |
+
lang = document.querySelector('html').getAttribute('lang') || undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
660 |
|
661 |
+
// Get the given time and delay by their attributes.
|
662 |
+
time = el.getAttribute('data-duration');
|
663 |
+
delay = el.getAttribute('data-delay');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
664 |
|
665 |
+
// Number of times the number will change.
|
666 |
+
divisions = time / delay;
|
|
|
|
|
|
|
|
|
|
|
667 |
|
668 |
+
// Split numbers and html tags.
|
669 |
+
splitValues = el.innerHTML.split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/);
|
|
|
|
|
|
|
|
|
670 |
|
671 |
+
// Contains all numbers to be displayed.
|
672 |
+
nums = [];
|
|
|
|
|
673 |
|
674 |
+
// Set blank strings to ready the split values.
|
675 |
+
for (k = 0; k < divisions; k++) {
|
676 |
+
nums.push('');
|
677 |
+
}
|
|
|
|
|
|
|
678 |
|
679 |
+
// Loop through all numbers and html tags.
|
680 |
+
for (i = 0; i < splitValues.length; i++) {
|
|
|
|
|
|
|
681 |
|
682 |
+
// If number split it into smaller numbers and insert it to nums.
|
683 |
+
if (/([0-9.][,.0-9]*[0-9]*)/.test(splitValues[i]) && !/<[^>]+>/.test(splitValues[i])) {
|
684 |
+
num = splitValues[i];
|
|
|
|
|
685 |
|
686 |
+
// Test if numbers have comma.
|
687 |
+
isComma = /[0-9]+,[0-9]+/.test(num);
|
|
|
|
|
688 |
|
689 |
+
// Remove comma for computation purposes.
|
690 |
+
num = num.replace(/,/g, '');
|
|
|
|
|
691 |
|
692 |
+
// Test if values have point.
|
693 |
+
isFloat = /^[0-9]+\.[0-9]+$/.test(num);
|
694 |
|
695 |
+
// Check number of decimals places.
|
696 |
+
decimalPlaces = isFloat ? (num.split('.')[1] || []).length : 0;
|
|
|
697 |
|
698 |
+
// Start adding numbers from the end.
|
699 |
+
k = nums.length - 1;
|
|
|
|
|
|
|
|
|
700 |
|
701 |
+
// Create small numbers
|
702 |
+
for (val = divisions; val >= 1; val--) {
|
703 |
+
newNum = parseInt(num / divisions * val, 10);
|
|
|
704 |
|
705 |
+
// If has decimal point, add it again.
|
706 |
+
if (isFloat) {
|
707 |
+
newNum = parseFloat(num / divisions * val).toFixed(decimalPlaces);
|
708 |
+
newNum = parseFloat(newNum).toLocaleString(lang);
|
709 |
+
}
|
710 |
|
711 |
+
// If has comma, add it again.
|
712 |
+
if (isComma) {
|
713 |
+
newNum = newNum.toLocaleString(lang);
|
714 |
+
}
|
715 |
|
716 |
+
// Insert all small numbers.
|
717 |
+
nums[k--] += newNum;
|
718 |
+
}
|
719 |
+
} else {
|
|
|
|
|
|
|
|
|
|
|
720 |
|
721 |
+
// Insert all non-numbers in the same place.
|
722 |
+
for (k = 0; k < divisions; k++) {
|
723 |
+
nums[k] += splitValues[i];
|
724 |
+
}
|
725 |
+
}
|
726 |
+
}
|
727 |
|
728 |
+
// The last value of the element should be the original one.
|
729 |
+
nums[nums.length] = el.innerHTML;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
|
731 |
+
el.innerHTML = nums[0];
|
732 |
+
el.style.visibility = 'visible';
|
|
|
|
|
|
|
733 |
|
734 |
+
// Function for displaying output with the set time and delay.
|
735 |
+
_output = function output() {
|
736 |
+
el.innerHTML = nums.shift();
|
737 |
+
if (nums.length) {
|
738 |
+
clearTimeout(el.countUpTimeout);
|
739 |
+
el.countUpTimeout = setTimeout(_output, delay);
|
740 |
+
} else {
|
741 |
+
el._countUpOrigInnerHTML = undefined;
|
742 |
+
}
|
743 |
+
};
|
744 |
+
el.countUpTimeout = setTimeout(_output, delay);
|
745 |
+
};
|
746 |
|
747 |
+
/***/ }),
|
748 |
+
/* 8 */
|
749 |
+
/***/ (function(module, exports) {
|
750 |
|
751 |
+
/*!
|
752 |
+
Waypoints - 4.0.1
|
753 |
+
Copyright © 2011-2016 Caleb Troughton
|
754 |
+
Licensed under the MIT license.
|
755 |
+
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
|
756 |
+
*/
|
757 |
+
(function() {
|
758 |
+
'use strict'
|
759 |
|
760 |
+
var keyCounter = 0
|
761 |
+
var allWaypoints = {}
|
|
|
|
|
|
|
|
|
762 |
|
763 |
+
/* http://imakewebthings.com/waypoints/api/waypoint */
|
764 |
+
function Waypoint(options) {
|
765 |
+
if (!options) {
|
766 |
+
throw new Error('No options passed to Waypoint constructor')
|
767 |
+
}
|
768 |
+
if (!options.element) {
|
769 |
+
throw new Error('No element option passed to Waypoint constructor')
|
770 |
+
}
|
771 |
+
if (!options.handler) {
|
772 |
+
throw new Error('No handler option passed to Waypoint constructor')
|
773 |
+
}
|
774 |
|
775 |
+
this.key = 'waypoint-' + keyCounter
|
776 |
+
this.options = Waypoint.Adapter.extend({}, Waypoint.defaults, options)
|
777 |
+
this.element = this.options.element
|
778 |
+
this.adapter = new Waypoint.Adapter(this.element)
|
779 |
+
this.callback = options.handler
|
780 |
+
this.axis = this.options.horizontal ? 'horizontal' : 'vertical'
|
781 |
+
this.enabled = this.options.enabled
|
782 |
+
this.triggerPoint = null
|
783 |
+
this.group = Waypoint.Group.findOrCreate({
|
784 |
+
name: this.options.group,
|
785 |
+
axis: this.axis
|
786 |
+
})
|
787 |
+
this.context = Waypoint.Context.findOrCreateByElement(this.options.context)
|
788 |
|
789 |
+
if (Waypoint.offsetAliases[this.options.offset]) {
|
790 |
+
this.options.offset = Waypoint.offsetAliases[this.options.offset]
|
|
|
|
|
791 |
}
|
792 |
+
this.group.add(this)
|
793 |
+
this.context.add(this)
|
794 |
+
allWaypoints[this.key] = this
|
795 |
+
keyCounter += 1
|
796 |
}
|
797 |
|
798 |
+
/* Private */
|
799 |
+
Waypoint.prototype.queueTrigger = function(direction) {
|
800 |
+
this.group.queueTrigger(this, direction)
|
801 |
+
}
|
802 |
|
803 |
+
/* Private */
|
804 |
+
Waypoint.prototype.trigger = function(args) {
|
805 |
+
if (!this.enabled) {
|
806 |
+
return
|
807 |
+
}
|
808 |
+
if (this.callback) {
|
809 |
+
this.callback.apply(this, args)
|
810 |
}
|
|
|
|
|
811 |
}
|
812 |
|
813 |
+
/* Public */
|
814 |
+
/* http://imakewebthings.com/waypoints/api/destroy */
|
815 |
+
Waypoint.prototype.destroy = function() {
|
816 |
+
this.context.remove(this)
|
817 |
+
this.group.remove(this)
|
818 |
+
delete allWaypoints[this.key]
|
819 |
}
|
820 |
|
821 |
+
/* Public */
|
822 |
+
/* http://imakewebthings.com/waypoints/api/disable */
|
823 |
+
Waypoint.prototype.disable = function() {
|
824 |
+
this.enabled = false
|
825 |
+
return this
|
826 |
}
|
827 |
|
828 |
+
/* Public */
|
829 |
+
/* http://imakewebthings.com/waypoints/api/enable */
|
830 |
+
Waypoint.prototype.enable = function() {
|
831 |
+
this.context.refresh()
|
832 |
+
this.enabled = true
|
833 |
+
return this
|
834 |
+
}
|
835 |
|
836 |
+
/* Public */
|
837 |
+
/* http://imakewebthings.com/waypoints/api/next */
|
838 |
+
Waypoint.prototype.next = function() {
|
839 |
+
return this.group.next(this)
|
840 |
+
}
|
|
|
|
|
|
|
841 |
|
842 |
+
/* Public */
|
843 |
+
/* http://imakewebthings.com/waypoints/api/previous */
|
844 |
+
Waypoint.prototype.previous = function() {
|
845 |
+
return this.group.previous(this)
|
846 |
+
}
|
847 |
|
848 |
+
/* Private */
|
849 |
+
Waypoint.invokeAll = function(method) {
|
850 |
+
var allWaypointsArray = []
|
851 |
+
for (var waypointKey in allWaypoints) {
|
852 |
+
allWaypointsArray.push(allWaypoints[waypointKey])
|
853 |
+
}
|
854 |
+
for (var i = 0, end = allWaypointsArray.length; i < end; i++) {
|
855 |
+
allWaypointsArray[i][method]()
|
856 |
}
|
|
|
857 |
}
|
858 |
|
859 |
+
/* Public */
|
860 |
+
/* http://imakewebthings.com/waypoints/api/destroy-all */
|
861 |
+
Waypoint.destroyAll = function() {
|
862 |
+
Waypoint.invokeAll('destroy')
|
863 |
}
|
864 |
|
865 |
+
/* Public */
|
866 |
+
/* http://imakewebthings.com/waypoints/api/disable-all */
|
867 |
+
Waypoint.disableAll = function() {
|
868 |
+
Waypoint.invokeAll('disable')
|
869 |
+
}
|
870 |
+
|
871 |
+
/* Public */
|
872 |
+
/* http://imakewebthings.com/waypoints/api/enable-all */
|
873 |
+
Waypoint.enableAll = function() {
|
874 |
+
Waypoint.Context.refreshAll()
|
875 |
+
for (var waypointKey in allWaypoints) {
|
876 |
+
allWaypoints[waypointKey].enabled = true
|
877 |
}
|
878 |
+
return this
|
879 |
}
|
880 |
|
881 |
+
/* Public */
|
882 |
+
/* http://imakewebthings.com/waypoints/api/refresh-all */
|
883 |
+
Waypoint.refreshAll = function() {
|
884 |
+
Waypoint.Context.refreshAll()
|
885 |
+
}
|
|
|
|
|
886 |
|
887 |
+
/* Public */
|
888 |
+
/* http://imakewebthings.com/waypoints/api/viewport-height */
|
889 |
+
Waypoint.viewportHeight = function() {
|
890 |
+
return window.innerHeight || document.documentElement.clientHeight
|
891 |
+
}
|
892 |
|
893 |
+
/* Public */
|
894 |
+
/* http://imakewebthings.com/waypoints/api/viewport-width */
|
895 |
+
Waypoint.viewportWidth = function() {
|
896 |
+
return document.documentElement.clientWidth
|
897 |
+
}
|
898 |
|
899 |
+
Waypoint.adapters = []
|
900 |
|
901 |
+
Waypoint.defaults = {
|
902 |
+
context: window,
|
903 |
+
continuous: true,
|
904 |
+
enabled: true,
|
905 |
+
group: 'default',
|
906 |
+
horizontal: false,
|
907 |
+
offset: 0
|
908 |
+
}
|
909 |
|
910 |
+
Waypoint.offsetAliases = {
|
911 |
+
'bottom-in-view': function() {
|
912 |
+
return this.context.innerHeight() - this.adapter.outerHeight()
|
913 |
+
},
|
914 |
+
'right-in-view': function() {
|
915 |
+
return this.context.innerWidth() - this.adapter.outerWidth()
|
916 |
+
}
|
917 |
+
}
|
918 |
|
919 |
+
window.Waypoint = Waypoint
|
920 |
+
}())
|
921 |
+
;(function() {
|
922 |
+
'use strict'
|
923 |
|
924 |
+
function requestAnimationFrameShim(callback) {
|
925 |
+
window.setTimeout(callback, 1000 / 60)
|
926 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
927 |
|
928 |
+
var keyCounter = 0
|
929 |
+
var contexts = {}
|
930 |
+
var Waypoint = window.Waypoint
|
931 |
+
var oldWindowLoad = window.onload
|
932 |
|
933 |
+
/* http://imakewebthings.com/waypoints/api/context */
|
934 |
+
function Context(element) {
|
935 |
+
this.element = element
|
936 |
+
this.Adapter = Waypoint.Adapter
|
937 |
+
this.adapter = new this.Adapter(element)
|
938 |
+
this.key = 'waypoint-context-' + keyCounter
|
939 |
+
this.didScroll = false
|
940 |
+
this.didResize = false
|
941 |
+
this.oldScroll = {
|
942 |
+
x: this.adapter.scrollLeft(),
|
943 |
+
y: this.adapter.scrollTop()
|
944 |
+
}
|
945 |
+
this.waypoints = {
|
946 |
+
vertical: {},
|
947 |
+
horizontal: {}
|
948 |
+
}
|
949 |
|
950 |
+
element.waypointContextKey = this.key
|
951 |
+
contexts[element.waypointContextKey] = this
|
952 |
+
keyCounter += 1
|
953 |
+
if (!Waypoint.windowContext) {
|
954 |
+
Waypoint.windowContext = true
|
955 |
+
Waypoint.windowContext = new Context(window)
|
956 |
+
}
|
957 |
|
958 |
+
this.createThrottledScrollHandler()
|
959 |
+
this.createThrottledResizeHandler()
|
960 |
+
}
|
961 |
|
962 |
+
/* Private */
|
963 |
+
Context.prototype.add = function(waypoint) {
|
964 |
+
var axis = waypoint.options.horizontal ? 'horizontal' : 'vertical'
|
965 |
+
this.waypoints[axis][waypoint.key] = waypoint
|
966 |
+
this.refresh()
|
967 |
+
}
|
968 |
|
969 |
+
/* Private */
|
970 |
+
Context.prototype.checkEmpty = function() {
|
971 |
+
var horizontalEmpty = this.Adapter.isEmptyObject(this.waypoints.horizontal)
|
972 |
+
var verticalEmpty = this.Adapter.isEmptyObject(this.waypoints.vertical)
|
973 |
+
var isWindow = this.element == this.element.window
|
974 |
+
if (horizontalEmpty && verticalEmpty && !isWindow) {
|
975 |
+
this.adapter.off('.waypoints')
|
976 |
+
delete contexts[this.key]
|
977 |
+
}
|
978 |
+
}
|
979 |
|
980 |
+
/* Private */
|
981 |
+
Context.prototype.createThrottledResizeHandler = function() {
|
982 |
+
var self = this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
983 |
|
984 |
+
function resizeHandler() {
|
985 |
+
self.handleResize()
|
986 |
+
self.didResize = false
|
987 |
+
}
|
988 |
|
989 |
+
this.adapter.on('resize.waypoints', function() {
|
990 |
+
if (!self.didResize) {
|
991 |
+
self.didResize = true
|
992 |
+
Waypoint.requestAnimationFrame(resizeHandler)
|
993 |
+
}
|
994 |
+
})
|
995 |
+
}
|
996 |
|
997 |
+
/* Private */
|
998 |
+
Context.prototype.createThrottledScrollHandler = function() {
|
999 |
+
var self = this
|
1000 |
+
function scrollHandler() {
|
1001 |
+
self.handleScroll()
|
1002 |
+
self.didScroll = false
|
1003 |
+
}
|
1004 |
|
1005 |
+
this.adapter.on('scroll.waypoints', function() {
|
1006 |
+
if (!self.didScroll || Waypoint.isTouch) {
|
1007 |
+
self.didScroll = true
|
1008 |
+
Waypoint.requestAnimationFrame(scrollHandler)
|
1009 |
+
}
|
1010 |
+
})
|
1011 |
+
}
|
1012 |
|
1013 |
+
/* Private */
|
1014 |
+
Context.prototype.handleResize = function() {
|
1015 |
+
Waypoint.Context.refreshAll()
|
1016 |
+
}
|
1017 |
|
1018 |
+
/* Private */
|
1019 |
+
Context.prototype.handleScroll = function() {
|
1020 |
+
var triggeredGroups = {}
|
1021 |
+
var axes = {
|
1022 |
+
horizontal: {
|
1023 |
+
newScroll: this.adapter.scrollLeft(),
|
1024 |
+
oldScroll: this.oldScroll.x,
|
1025 |
+
forward: 'right',
|
1026 |
+
backward: 'left'
|
1027 |
+
},
|
1028 |
+
vertical: {
|
1029 |
+
newScroll: this.adapter.scrollTop(),
|
1030 |
+
oldScroll: this.oldScroll.y,
|
1031 |
+
forward: 'down',
|
1032 |
+
backward: 'up'
|
1033 |
+
}
|
1034 |
+
}
|
1035 |
|
1036 |
+
for (var axisKey in axes) {
|
1037 |
+
var axis = axes[axisKey]
|
1038 |
+
var isForward = axis.newScroll > axis.oldScroll
|
1039 |
+
var direction = isForward ? axis.forward : axis.backward
|
1040 |
|
1041 |
+
for (var waypointKey in this.waypoints[axisKey]) {
|
1042 |
+
var waypoint = this.waypoints[axisKey][waypointKey]
|
1043 |
+
if (waypoint.triggerPoint === null) {
|
1044 |
+
continue
|
1045 |
+
}
|
1046 |
+
var wasBeforeTriggerPoint = axis.oldScroll < waypoint.triggerPoint
|
1047 |
+
var nowAfterTriggerPoint = axis.newScroll >= waypoint.triggerPoint
|
1048 |
+
var crossedForward = wasBeforeTriggerPoint && nowAfterTriggerPoint
|
1049 |
+
var crossedBackward = !wasBeforeTriggerPoint && !nowAfterTriggerPoint
|
1050 |
+
if (crossedForward || crossedBackward) {
|
1051 |
+
waypoint.queueTrigger(direction)
|
1052 |
+
triggeredGroups[waypoint.group.id] = waypoint.group
|
1053 |
+
}
|
1054 |
+
}
|
1055 |
+
}
|
1056 |
|
1057 |
+
for (var groupKey in triggeredGroups) {
|
1058 |
+
triggeredGroups[groupKey].flushTriggers()
|
1059 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1060 |
|
1061 |
+
this.oldScroll = {
|
1062 |
+
x: axes.horizontal.newScroll,
|
1063 |
+
y: axes.vertical.newScroll
|
1064 |
+
}
|
1065 |
+
}
|
1066 |
|
1067 |
+
/* Private */
|
1068 |
+
Context.prototype.innerHeight = function() {
|
1069 |
+
/*eslint-disable eqeqeq */
|
1070 |
+
if (this.element == this.element.window) {
|
1071 |
+
return Waypoint.viewportHeight()
|
1072 |
+
}
|
1073 |
+
/*eslint-enable eqeqeq */
|
1074 |
+
return this.adapter.innerHeight()
|
1075 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1076 |
|
1077 |
+
/* Private */
|
1078 |
+
Context.prototype.remove = function(waypoint) {
|
1079 |
+
delete this.waypoints[waypoint.axis][waypoint.key]
|
1080 |
+
this.checkEmpty()
|
1081 |
+
}
|
1082 |
|
1083 |
+
/* Private */
|
1084 |
+
Context.prototype.innerWidth = function() {
|
1085 |
+
/*eslint-disable eqeqeq */
|
1086 |
+
if (this.element == this.element.window) {
|
1087 |
+
return Waypoint.viewportWidth()
|
1088 |
+
}
|
1089 |
+
/*eslint-enable eqeqeq */
|
1090 |
+
return this.adapter.innerWidth()
|
1091 |
+
}
|
1092 |
|
1093 |
+
/* Public */
|
1094 |
+
/* http://imakewebthings.com/waypoints/api/context-destroy */
|
1095 |
+
Context.prototype.destroy = function() {
|
1096 |
+
var allWaypoints = []
|
1097 |
+
for (var axis in this.waypoints) {
|
1098 |
+
for (var waypointKey in this.waypoints[axis]) {
|
1099 |
+
allWaypoints.push(this.waypoints[axis][waypointKey])
|
1100 |
+
}
|
1101 |
}
|
1102 |
+
for (var i = 0, end = allWaypoints.length; i < end; i++) {
|
1103 |
+
allWaypoints[i].destroy()
|
1104 |
+
}
|
1105 |
+
}
|
1106 |
|
1107 |
+
/* Public */
|
1108 |
+
/* http://imakewebthings.com/waypoints/api/context-refresh */
|
1109 |
+
Context.prototype.refresh = function() {
|
1110 |
+
/*eslint-disable eqeqeq */
|
1111 |
+
var isWindow = this.element == this.element.window
|
1112 |
+
/*eslint-enable eqeqeq */
|
1113 |
+
var contextOffset = isWindow ? undefined : this.adapter.offset()
|
1114 |
+
var triggeredGroups = {}
|
1115 |
+
var axes
|
1116 |
+
|
1117 |
+
this.handleScroll()
|
1118 |
+
axes = {
|
1119 |
+
horizontal: {
|
1120 |
+
contextOffset: isWindow ? 0 : contextOffset.left,
|
1121 |
+
contextScroll: isWindow ? 0 : this.oldScroll.x,
|
1122 |
+
contextDimension: this.innerWidth(),
|
1123 |
+
oldScroll: this.oldScroll.x,
|
1124 |
+
forward: 'right',
|
1125 |
+
backward: 'left',
|
1126 |
+
offsetProp: 'left'
|
1127 |
+
},
|
1128 |
+
vertical: {
|
1129 |
+
contextOffset: isWindow ? 0 : contextOffset.top,
|
1130 |
+
contextScroll: isWindow ? 0 : this.oldScroll.y,
|
1131 |
+
contextDimension: this.innerHeight(),
|
1132 |
+
oldScroll: this.oldScroll.y,
|
1133 |
+
forward: 'down',
|
1134 |
+
backward: 'up',
|
1135 |
+
offsetProp: 'top'
|
1136 |
+
}
|
1137 |
+
}
|
1138 |
+
|
1139 |
+
for (var axisKey in axes) {
|
1140 |
+
var axis = axes[axisKey]
|
1141 |
+
for (var waypointKey in this.waypoints[axisKey]) {
|
1142 |
+
var waypoint = this.waypoints[axisKey][waypointKey]
|
1143 |
+
var adjustment = waypoint.options.offset
|
1144 |
+
var oldTriggerPoint = waypoint.triggerPoint
|
1145 |
+
var elementOffset = 0
|
1146 |
+
var freshWaypoint = oldTriggerPoint == null
|
1147 |
+
var contextModifier, wasBeforeScroll, nowAfterScroll
|
1148 |
+
var triggeredBackward, triggeredForward
|
1149 |
+
|
1150 |
+
if (waypoint.element !== waypoint.element.window) {
|
1151 |
+
elementOffset = waypoint.adapter.offset()[axis.offsetProp]
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
if (typeof adjustment === 'function') {
|
1155 |
+
adjustment = adjustment.apply(waypoint)
|
1156 |
+
}
|
1157 |
+
else if (typeof adjustment === 'string') {
|
1158 |
+
adjustment = parseFloat(adjustment)
|
1159 |
+
if (waypoint.options.offset.indexOf('%') > - 1) {
|
1160 |
+
adjustment = Math.ceil(axis.contextDimension * adjustment / 100)
|
1161 |
+
}
|
1162 |
+
}
|
1163 |
|
1164 |
+
contextModifier = axis.contextScroll - axis.contextOffset
|
1165 |
+
waypoint.triggerPoint = Math.floor(elementOffset + contextModifier - adjustment)
|
1166 |
+
wasBeforeScroll = oldTriggerPoint < axis.oldScroll
|
1167 |
+
nowAfterScroll = waypoint.triggerPoint >= axis.oldScroll
|
1168 |
+
triggeredBackward = wasBeforeScroll && nowAfterScroll
|
1169 |
+
triggeredForward = !wasBeforeScroll && !nowAfterScroll
|
1170 |
|
1171 |
+
if (!freshWaypoint && triggeredBackward) {
|
1172 |
+
waypoint.queueTrigger(axis.backward)
|
1173 |
+
triggeredGroups[waypoint.group.id] = waypoint.group
|
1174 |
+
}
|
1175 |
+
else if (!freshWaypoint && triggeredForward) {
|
1176 |
+
waypoint.queueTrigger(axis.forward)
|
1177 |
+
triggeredGroups[waypoint.group.id] = waypoint.group
|
1178 |
+
}
|
1179 |
+
else if (freshWaypoint && axis.oldScroll >= waypoint.triggerPoint) {
|
1180 |
+
waypoint.queueTrigger(axis.forward)
|
1181 |
+
triggeredGroups[waypoint.group.id] = waypoint.group
|
1182 |
+
}
|
1183 |
+
}
|
1184 |
+
}
|
1185 |
|
1186 |
+
Waypoint.requestAnimationFrame(function() {
|
1187 |
+
for (var groupKey in triggeredGroups) {
|
1188 |
+
triggeredGroups[groupKey].flushTriggers()
|
1189 |
+
}
|
1190 |
+
})
|
1191 |
|
1192 |
+
return this
|
1193 |
+
}
|
1194 |
|
1195 |
+
/* Private */
|
1196 |
+
Context.findOrCreateByElement = function(element) {
|
1197 |
+
return Context.findByElement(element) || new Context(element)
|
1198 |
+
}
|
|
|
|
|
1199 |
|
1200 |
+
/* Private */
|
1201 |
+
Context.refreshAll = function() {
|
1202 |
+
for (var contextId in contexts) {
|
1203 |
+
contexts[contextId].refresh()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1204 |
}
|
1205 |
+
}
|
1206 |
|
1207 |
+
/* Public */
|
1208 |
+
/* http://imakewebthings.com/waypoints/api/context-find-by-element */
|
1209 |
+
Context.findByElement = function(element) {
|
1210 |
+
return contexts[element.waypointContextKey]
|
1211 |
+
}
|
|
|
|
|
|
|
1212 |
|
1213 |
+
window.onload = function() {
|
1214 |
+
if (oldWindowLoad) {
|
1215 |
+
oldWindowLoad()
|
|
|
|
|
|
|
1216 |
}
|
1217 |
+
Context.refreshAll()
|
1218 |
+
}
|
1219 |
|
|
|
|
|
1220 |
|
1221 |
+
Waypoint.requestAnimationFrame = function(callback) {
|
1222 |
+
var requestFn = window.requestAnimationFrame ||
|
1223 |
+
window.mozRequestAnimationFrame ||
|
1224 |
+
window.webkitRequestAnimationFrame ||
|
1225 |
+
requestAnimationFrameShim
|
1226 |
+
requestFn.call(window, callback)
|
1227 |
+
}
|
1228 |
+
Waypoint.Context = Context
|
1229 |
+
}())
|
1230 |
+
;(function() {
|
1231 |
+
'use strict'
|
1232 |
|
1233 |
+
function byTriggerPoint(a, b) {
|
1234 |
+
return a.triggerPoint - b.triggerPoint
|
1235 |
+
}
|
|
|
|
|
|
|
1236 |
|
1237 |
+
function byReverseTriggerPoint(a, b) {
|
1238 |
+
return b.triggerPoint - a.triggerPoint
|
1239 |
+
}
|
1240 |
|
1241 |
+
var groups = {
|
1242 |
+
vertical: {},
|
1243 |
+
horizontal: {}
|
1244 |
+
}
|
1245 |
+
var Waypoint = window.Waypoint
|
|
|
|
|
1246 |
|
1247 |
+
/* http://imakewebthings.com/waypoints/api/group */
|
1248 |
+
function Group(options) {
|
1249 |
+
this.name = options.name
|
1250 |
+
this.axis = options.axis
|
1251 |
+
this.id = this.name + '-' + this.axis
|
1252 |
+
this.waypoints = []
|
1253 |
+
this.clearTriggerQueues()
|
1254 |
+
groups[this.axis][this.name] = this
|
1255 |
+
}
|
|
|
|
|
|
|
|
|
|
|
1256 |
|
1257 |
+
/* Private */
|
1258 |
+
Group.prototype.add = function(waypoint) {
|
1259 |
+
this.waypoints.push(waypoint)
|
1260 |
+
}
|
1261 |
|
1262 |
+
/* Private */
|
1263 |
+
Group.prototype.clearTriggerQueues = function() {
|
1264 |
+
this.triggerQueues = {
|
1265 |
+
up: [],
|
1266 |
+
down: [],
|
1267 |
+
left: [],
|
1268 |
+
right: []
|
1269 |
+
}
|
1270 |
+
}
|
1271 |
|
1272 |
+
/* Private */
|
1273 |
+
Group.prototype.flushTriggers = function() {
|
1274 |
+
for (var direction in this.triggerQueues) {
|
1275 |
+
var waypoints = this.triggerQueues[direction]
|
1276 |
+
var reverse = direction === 'up' || direction === 'left'
|
1277 |
+
waypoints.sort(reverse ? byReverseTriggerPoint : byTriggerPoint)
|
1278 |
+
for (var i = 0, end = waypoints.length; i < end; i += 1) {
|
1279 |
+
var waypoint = waypoints[i]
|
1280 |
+
if (waypoint.options.continuous || i === waypoints.length - 1) {
|
1281 |
+
waypoint.trigger([direction])
|
1282 |
+
}
|
1283 |
+
}
|
1284 |
+
}
|
1285 |
+
this.clearTriggerQueues()
|
1286 |
+
}
|
1287 |
|
1288 |
+
/* Private */
|
1289 |
+
Group.prototype.next = function(waypoint) {
|
1290 |
+
this.waypoints.sort(byTriggerPoint)
|
1291 |
+
var index = Waypoint.Adapter.inArray(waypoint, this.waypoints)
|
1292 |
+
var isLast = index === this.waypoints.length - 1
|
1293 |
+
return isLast ? null : this.waypoints[index + 1]
|
1294 |
+
}
|
1295 |
|
1296 |
+
/* Private */
|
1297 |
+
Group.prototype.previous = function(waypoint) {
|
1298 |
+
this.waypoints.sort(byTriggerPoint)
|
1299 |
+
var index = Waypoint.Adapter.inArray(waypoint, this.waypoints)
|
1300 |
+
return index ? this.waypoints[index - 1] : null
|
1301 |
+
}
|
1302 |
|
1303 |
+
/* Private */
|
1304 |
+
Group.prototype.queueTrigger = function(waypoint, direction) {
|
1305 |
+
this.triggerQueues[direction].push(waypoint)
|
1306 |
+
}
|
1307 |
|
1308 |
+
/* Private */
|
1309 |
+
Group.prototype.remove = function(waypoint) {
|
1310 |
+
var index = Waypoint.Adapter.inArray(waypoint, this.waypoints)
|
1311 |
+
if (index > -1) {
|
1312 |
+
this.waypoints.splice(index, 1)
|
1313 |
+
}
|
1314 |
+
}
|
1315 |
|
1316 |
+
/* Public */
|
1317 |
+
/* http://imakewebthings.com/waypoints/api/first */
|
1318 |
+
Group.prototype.first = function() {
|
1319 |
+
return this.waypoints[0]
|
1320 |
}
|
1321 |
|
1322 |
+
/* Public */
|
1323 |
+
/* http://imakewebthings.com/waypoints/api/last */
|
1324 |
+
Group.prototype.last = function() {
|
1325 |
+
return this.waypoints[this.waypoints.length - 1]
|
1326 |
+
}
|
1327 |
|
1328 |
+
/* Private */
|
1329 |
+
Group.findOrCreate = function(options) {
|
1330 |
+
return groups[options.axis][options.name] || new Group(options)
|
|
|
|
|
|
|
|
|
|
|
|
|
1331 |
}
|
1332 |
|
1333 |
+
Waypoint.Group = Group
|
1334 |
+
}())
|
1335 |
+
;(function() {
|
1336 |
+
'use strict'
|
1337 |
|
1338 |
+
var Waypoint = window.Waypoint
|
|
|
|
|
|
|
|
|
|
|
1339 |
|
1340 |
+
function isWindow(element) {
|
1341 |
+
return element === element.window
|
1342 |
}
|
1343 |
|
1344 |
+
function getWindow(element) {
|
1345 |
+
if (isWindow(element)) {
|
1346 |
+
return element
|
1347 |
+
}
|
1348 |
+
return element.defaultView
|
|
|
|
|
|
|
|
|
1349 |
}
|
1350 |
|
1351 |
+
function NoFrameworkAdapter(element) {
|
1352 |
+
this.element = element
|
1353 |
+
this.handlers = {}
|
1354 |
+
}
|
1355 |
|
1356 |
+
NoFrameworkAdapter.prototype.innerHeight = function() {
|
1357 |
+
var isWin = isWindow(this.element)
|
1358 |
+
return isWin ? this.element.innerHeight : this.element.clientHeight
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1359 |
}
|
1360 |
|
1361 |
+
NoFrameworkAdapter.prototype.innerWidth = function() {
|
1362 |
+
var isWin = isWindow(this.element)
|
1363 |
+
return isWin ? this.element.innerWidth : this.element.clientWidth
|
1364 |
+
}
|
1365 |
|
1366 |
+
NoFrameworkAdapter.prototype.off = function(event, handler) {
|
1367 |
+
function removeListeners(element, listeners, handler) {
|
1368 |
+
for (var i = 0, end = listeners.length - 1; i < end; i++) {
|
1369 |
+
var listener = listeners[i]
|
1370 |
+
if (!handler || handler === listener) {
|
1371 |
+
element.removeEventListener(listener)
|
1372 |
+
}
|
1373 |
+
}
|
1374 |
+
}
|
1375 |
|
1376 |
+
var eventParts = event.split('.')
|
1377 |
+
var eventType = eventParts[0]
|
1378 |
+
var namespace = eventParts[1]
|
1379 |
+
var element = this.element
|
1380 |
|
1381 |
+
if (namespace && this.handlers[namespace] && eventType) {
|
1382 |
+
removeListeners(element, this.handlers[namespace][eventType], handler)
|
1383 |
+
this.handlers[namespace][eventType] = []
|
1384 |
+
}
|
1385 |
+
else if (eventType) {
|
1386 |
+
for (var ns in this.handlers) {
|
1387 |
+
removeListeners(element, this.handlers[ns][eventType] || [], handler)
|
1388 |
+
this.handlers[ns][eventType] = []
|
1389 |
+
}
|
1390 |
+
}
|
1391 |
+
else if (namespace && this.handlers[namespace]) {
|
1392 |
+
for (var type in this.handlers[namespace]) {
|
1393 |
+
removeListeners(element, this.handlers[namespace][type], handler)
|
1394 |
+
}
|
1395 |
+
this.handlers[namespace] = {}
|
1396 |
}
|
1397 |
+
}
|
1398 |
|
1399 |
+
/* Adapted from jQuery 1.x offset() */
|
1400 |
+
NoFrameworkAdapter.prototype.offset = function() {
|
1401 |
+
if (!this.element.ownerDocument) {
|
1402 |
+
return null
|
1403 |
+
}
|
1404 |
|
1405 |
+
var documentElement = this.element.ownerDocument.documentElement
|
1406 |
+
var win = getWindow(this.element.ownerDocument)
|
1407 |
+
var rect = {
|
1408 |
+
top: 0,
|
1409 |
+
left: 0
|
1410 |
+
}
|
1411 |
|
1412 |
+
if (this.element.getBoundingClientRect) {
|
1413 |
+
rect = this.element.getBoundingClientRect()
|
1414 |
+
}
|
1415 |
|
1416 |
+
return {
|
1417 |
+
top: rect.top + win.pageYOffset - documentElement.clientTop,
|
1418 |
+
left: rect.left + win.pageXOffset - documentElement.clientLeft
|
1419 |
+
}
|
1420 |
+
}
|
1421 |
|
1422 |
+
NoFrameworkAdapter.prototype.on = function(event, handler) {
|
1423 |
+
var eventParts = event.split('.')
|
1424 |
+
var eventType = eventParts[0]
|
1425 |
+
var namespace = eventParts[1] || '__default'
|
1426 |
+
var nsHandlers = this.handlers[namespace] = this.handlers[namespace] || {}
|
1427 |
+
var nsTypeList = nsHandlers[eventType] = nsHandlers[eventType] || []
|
1428 |
|
1429 |
+
nsTypeList.push(handler)
|
1430 |
+
this.element.addEventListener(eventType, handler)
|
|
|
|
|
|
|
1431 |
}
|
1432 |
|
1433 |
+
NoFrameworkAdapter.prototype.outerHeight = function(includeMargin) {
|
1434 |
+
var height = this.innerHeight()
|
1435 |
+
var computedStyle
|
1436 |
|
1437 |
+
if (includeMargin && !isWindow(this.element)) {
|
1438 |
+
computedStyle = window.getComputedStyle(this.element)
|
1439 |
+
height += parseInt(computedStyle.marginTop, 10)
|
1440 |
+
height += parseInt(computedStyle.marginBottom, 10)
|
1441 |
+
}
|
1442 |
|
1443 |
+
return height
|
1444 |
+
}
|
1445 |
|
1446 |
+
NoFrameworkAdapter.prototype.outerWidth = function(includeMargin) {
|
1447 |
+
var width = this.innerWidth()
|
1448 |
+
var computedStyle
|
|
|
1449 |
|
1450 |
+
if (includeMargin && !isWindow(this.element)) {
|
1451 |
+
computedStyle = window.getComputedStyle(this.element)
|
1452 |
+
width += parseInt(computedStyle.marginLeft, 10)
|
1453 |
+
width += parseInt(computedStyle.marginRight, 10)
|
1454 |
+
}
|
1455 |
|
1456 |
+
return width
|
1457 |
+
}
|
1458 |
|
1459 |
+
NoFrameworkAdapter.prototype.scrollLeft = function() {
|
1460 |
+
var win = getWindow(this.element)
|
1461 |
+
return win ? win.pageXOffset : this.element.scrollLeft
|
1462 |
+
}
|
1463 |
|
1464 |
+
NoFrameworkAdapter.prototype.scrollTop = function() {
|
1465 |
+
var win = getWindow(this.element)
|
1466 |
+
return win ? win.pageYOffset : this.element.scrollTop
|
1467 |
}
|
1468 |
|
1469 |
+
NoFrameworkAdapter.extend = function() {
|
1470 |
+
var args = Array.prototype.slice.call(arguments)
|
1471 |
|
1472 |
+
function merge(target, obj) {
|
1473 |
+
if (typeof target === 'object' && typeof obj === 'object') {
|
1474 |
+
for (var key in obj) {
|
1475 |
+
if (obj.hasOwnProperty(key)) {
|
1476 |
+
target[key] = obj[key]
|
1477 |
+
}
|
1478 |
+
}
|
1479 |
+
}
|
1480 |
|
1481 |
+
return target
|
1482 |
+
}
|
|
|
1483 |
|
1484 |
+
for (var i = 1, end = args.length; i < end; i++) {
|
1485 |
+
merge(args[0], args[i])
|
|
|
1486 |
}
|
1487 |
+
return args[0]
|
1488 |
}
|
1489 |
|
1490 |
+
NoFrameworkAdapter.inArray = function(element, array, i) {
|
1491 |
+
return array == null ? -1 : array.indexOf(element, i)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1492 |
}
|
1493 |
|
1494 |
+
NoFrameworkAdapter.isEmptyObject = function(obj) {
|
1495 |
+
/* eslint no-unused-vars: 0 */
|
1496 |
+
for (var name in obj) {
|
1497 |
+
return false
|
1498 |
+
}
|
1499 |
+
return true
|
1500 |
+
}
|
1501 |
|
1502 |
+
Waypoint.adapters.push({
|
1503 |
+
name: 'noframework',
|
1504 |
+
Adapter: NoFrameworkAdapter
|
1505 |
+
})
|
1506 |
+
Waypoint.Adapter = NoFrameworkAdapter
|
1507 |
+
}())
|
1508 |
+
;
|
1509 |
|
1510 |
/***/ })
|
1511 |
/******/ ]);
|
dist/blocks.frontend.build.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var main=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if("complete"===document.readyState)return t();document.addEventListener("DOMContentLoaded",t)}},function(t,e,n){n(2),n(4),n(5),t.exports=n(6)},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){n(3),document.querySelectorAll(".ugb-countup .ugb-counter").forEach(function(t){t.classList.add("ugb-countup-hide"),new Waypoint({element:t,handler:function(){r(t),t.classList.remove("ugb-countup-hide"),this.destroy()},offset:"bottom-in-view"})})});var r=function(t){var e,n,i,o,r,s,a,l,u,c,p,d,h,f;if(function(t){clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""}(t),/[0-9]/.test(t.innerHTML)){for(t._countUpOrigInnerHTML=t.innerHTML,e=document.querySelector("html").getAttribute("lang")||void 0,i=t.getAttribute("data-duration")/(n=t.getAttribute("data-delay")),o=t.innerHTML.split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),r=[],s=0;s<i;s++)r.push("");for(a=0;a<o.length;a++)if(/([0-9.][,.0-9]*[0-9]*)/.test(o[a])&&!/<[^>]+>/.test(o[a]))for(l=o[a],u=/[0-9]+,[0-9]+/.test(l),l=l.replace(/,/g,""),p=(c=/^[0-9]+\.[0-9]+$/.test(l))?(l.split(".")[1]||[]).length:0,s=r.length-1,d=i;d>=1;d--)h=parseInt(l/i*d,10),c&&(h=parseFloat(l/i*d).toFixed(p),h=parseFloat(h).toLocaleString(e)),u&&(h=h.toLocaleString(e)),r[s--]+=h;else for(s=0;s<i;s++)r[s]+=o[a];r[r.length]=t.innerHTML,t.innerHTML=r[0],t.style.visibility="visible",f=function(){t.innerHTML=r.shift(),r.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(f,n)):t._countUpOrigInnerHTML=void 0},t.countUpTimeout=setTimeout(f,n)}}},function(t,e){!function(){"use strict";var t=0,e={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var i in e)n.push(e[i]);for(var o=0,r=n.length;o<r;o++)n[o][t]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){for(var t in n.Context.refreshAll(),e)e[t].enabled=!0;return this},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=n}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,n={},i=window.Waypoint,o=window.onload;function r(t){this.element=t,this.Adapter=i.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,e+=1,i.windowContext||(i.windowContext=!0,i.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,i.requestAnimationFrame(e))})},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",function(){t.didScroll&&!i.isTouch||(t.didScroll=!0,i.requestAnimationFrame(e))})},r.prototype.handleResize=function(){i.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o=i.newScroll>i.oldScroll?i.forward:i.backward;for(var r in this.waypoints[n]){var s=this.waypoints[n][r];if(null!==s.triggerPoint){var a=i.oldScroll<s.triggerPoint,l=i.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(o),t[s.group.id]=s.group)}}}for(var u in t)t[u].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;i<o;i++)t[i].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),o={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,u,c,p,d=this.waypoints[r][a],h=d.options.offset,f=d.triggerPoint,g=0,m=null==f;d.element!==d.element.window&&(g=d.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(d):"string"==typeof h&&(h=parseFloat(h),d.options.offset.indexOf("%")>-1&&(h=Math.ceil(s.contextDimension*h/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(g+l-h),u=f<s.oldScroll,c=d.triggerPoint>=s.oldScroll,p=!u&&!c,!m&&(u&&c)?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!m&&p?(d.queueTrigger(s.forward),o[d.group.id]=d.group):m&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return i.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in n)n[t].refresh()},r.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),r.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var r=0,s=i.length;r<s;r+=1){var a=i[r];(a.options.continuous||r===i.length-1)&&a.trigger([n])}}this.clearTriggerQueues()},o.prototype.next=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},o.prototype.previous=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return n[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var t=window.Waypoint;function e(t){return t===t.window}function n(t){return e(t)?t:t.defaultView}function i(t){this.element=t,this.handlers={}}i.prototype.innerHeight=function(){return e(this.element)?this.element.innerHeight:this.element.clientHeight},i.prototype.innerWidth=function(){return e(this.element)?this.element.innerWidth:this.element.clientWidth},i.prototype.off=function(t,e){function n(t,e,n){for(var i=0,o=e.length-1;i<o;i++){var r=e[i];n&&n!==r||t.removeEventListener(r)}}var i=t.split("."),o=i[0],r=i[1],s=this.element;if(r&&this.handlers[r]&&o)n(s,this.handlers[r][o],e),this.handlers[r][o]=[];else if(o)for(var a in this.handlers)n(s,this.handlers[a][o]||[],e),this.handlers[a][o]=[];else if(r&&this.handlers[r]){for(var l in this.handlers[r])n(s,this.handlers[r][l],e);this.handlers[r]={}}},i.prototype.offset=function(){if(!this.element.ownerDocument)return null;var t=this.element.ownerDocument.documentElement,e=n(this.element.ownerDocument),i={top:0,left:0};return this.element.getBoundingClientRect&&(i=this.element.getBoundingClientRect()),{top:i.top+e.pageYOffset-t.clientTop,left:i.left+e.pageXOffset-t.clientLeft}},i.prototype.on=function(t,e){var n=t.split("."),i=n[0],o=n[1]||"__default",r=this.handlers[o]=this.handlers[o]||{};(r[i]=r[i]||[]).push(e),this.element.addEventListener(i,e)},i.prototype.outerHeight=function(t){var n,i=this.innerHeight();return t&&!e(this.element)&&(n=window.getComputedStyle(this.element),i+=parseInt(n.marginTop,10),i+=parseInt(n.marginBottom,10)),i},i.prototype.outerWidth=function(t){var n,i=this.innerWidth();return t&&!e(this.element)&&(n=window.getComputedStyle(this.element),i+=parseInt(n.marginLeft,10),i+=parseInt(n.marginRight,10)),i},i.prototype.scrollLeft=function(){var t=n(this.element);return t?t.pageXOffset:this.element.scrollLeft},i.prototype.scrollTop=function(){var t=n(this.element);return t?t.pageYOffset:this.element.scrollTop},i.extend=function(){var t=Array.prototype.slice.call(arguments);function e(t,e){if("object"==typeof t&&"object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}for(var n=1,i=t.length;n<i;n++)e(t[0],t[n]);return t[0]},i.inArray=function(t,e,n){return null==e?-1:e.indexOf(t,n)},i.isEmptyObject=function(t){for(var e in t)return!1;return!0},t.adapters.push({name:"noframework",Adapter:i}),t.Adapter=i}()},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){document.querySelectorAll(".wp-block-ugb-expand").forEach(function(t){var e=t.querySelector(".ugb-expand-button"),n=function(e){t.classList.toggle("ugb-more"),e.preventDefault()};e&&(e.addEventListener("click",n),e.addEventListener("tapEnd",n))})})},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){document.querySelectorAll(".ugb-notification.dismissible-true[data-uid]").forEach(function(t){var e=t.getAttribute("data-uid");localStorage.getItem("stckbl-notif-"+e)||(t.style.display="block"),t.querySelector(".close-button").addEventListener("click",function(){localStorage.setItem("stckbl-notif-"+e,1),t.style.display=""})})})},function(t,e,n){"use strict";var i=r(n(0)),o=r(n(7));function r(t){return t&&t.__esModule?t:{default:t}}(0,i.default)(function(){var t=document.querySelectorAll(".ugb-video-popup"),e=function(t){if(o.default){var e=t.getAttribute("data-video"),n={el:t,noLoader:!0};e.match(/^\d+$/g)?n.vimeoSrc=e:e.match(/^https?:\/\//g)?n.vidSrc=e:n.ytSrc=e,(0,o.default)(n)}};t.forEach(function(t){var n=t.querySelector("a");n.addEventListener("click",function(n){n.preventDefault(),e(t)}),n.addEventListener("touchend",function(n){n.preventDefault(),e(t)})})})},function(t,e){!function(){var e,n,i,o,r,s,a,l,u,c,p,d,h,f,g,m,y,w,v,b,x,S,A,T,k,L,_=window,E=document,H="appendChild",z="createElement",O="removeChild",M="innerHTML",C="pointer-events:auto",q="clientHeight",W="clientWidth",I="addEventListener",P=_.setTimeout,D=_.clearTimeout;function R(){var t=e.getBoundingClientRect();return N("transform:","translate3D("+(t.left-(i[W]-t.width)/2)+"px, "+(t.top-(i[q]-t.height)/2)+"px, 0) scale3D("+e[W]/o[W]+", "+e[q]/o[q]+", 0);")}function F(){4===o.readyState?U():s.error?U("video"):h=P(F,35)}function B(t){L||(t&&V(f,"top:"+e.offsetTop+"px;left:"+e.offsetLeft+"px;height:"+e[q]+"px;width:"+e[W]+"px"),e.parentElement[t?H:O](f),d=t)}function U(t){if(d&&B(),T&&T(),"string"==typeof t)return Q(),alert("Error: The requested "+t+" could not be displayed.");A&&!S&&x.push(u),V(o,R()),V(i,"opacity:1;"+C),k=P(k,410),v=!0,P(function(){V(o,N("transition:","transform .35s;")+N("transform:","none;")),y&&P(V.bind(null,g,"opacity:1"),250)},60)}function j(t){var e=t.target,n=[g,w,s,m];e&&e.blur(),b||~n.indexOf(e)||(o.style.cssText+=R(),V(i,C),P(Q,350),D(k),v=!1,b=!0)}function Q(){E.body[O](i),i[O](o),V(i,""),(o===a?l:o).removeAttribute("src"),y&&(V(g,""),i[O](g)),b=!1}function V(t,e){t.style.cssText=e}function N(t,e){var n=t+e;return"-webkit-"+n+t+"-webkit-"+e+n}t.exports=function(t){var b,C;n||function(){function t(){var t=E[z]("button");return t.className="bp-x",t[M]="×",t}x=[];var e=E[z]("STYLE");e[M]="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,.bp-x,#bp_loader{position:absolute;right:0}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;pointer-events:none;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:-webkit-flex;display:flex;margin:0;cursor:wait;z-index:9}#bp_loader svg{width:40%;max-height:40%;margin:auto;"+N("animation:","ldr .7s infinite linear;")+"}"+(o="keyframes ldr{to{"+N("transform:","rotate(1turn);")+"}}","@-webkit-"+o+"@"+o)+"#bp_container img,#bp_sv,#bp_vid{max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{width:171vh}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}.bp-x{font-family:Arial;top:0;cursor:pointer;opacity:.8;font-size:3em;padding:0 .3em;color:#fff;background:transparent;border:0;text-shadow:0 0 2px #000}#bp_caption .bp-x{left:2%;top:auto;right:auto;bottom:100%;padding:0 .6em;background:#d74040;border-radius:2px 2px 0 0;font-size:2.3em;text-shadow:none}.bp-x:hover,.bp-x:focus{opacity:1}.bp-x:active{outline:0}@media (max-aspect-ratio:9/5){#bp_sv{height:53vw}}",E.head[H](e),(i=E[z]("DIV")).id="bp_container",i.onclick=j,c=t(),i[H](c),r=E[z]("IMG"),(s=E[z]("VIDEO")).id="bp_vid",s.autoplay=!0,s.setAttribute("playsinline",!0),s.controls=!0,s.loop=!0,(g=E[z]("DIV")).id="bp_caption",(w=t()).onclick=function(){V(g,"opacity:0"),P(function(){y=!1,i[O](g)},300)},g[H](w),m=E[z]("SPAN"),g[H](m),(f=E[z]("DIV")).id="bp_loader",f[M]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 399 399"><path d="M341 58.5C303 20.8 253 0 199.6 0 146.4 0 96.2 20.8 58.5 58.5 20.8 96.2 0 146.5 0 199.7 0 253 20.8 303.2 58.5 341c37.7 37.6 88 58.4 141.2 58.4 53.3 0 103.5-20.8 141.2-58.5 37.6-37.8 58.4-88 58.4-141.3 0-53.3-20.8-103.5-58.5-141.2zm-13 12.8c34.3 34.3 53.2 80 53.2 128.4h-41c0-77.4-63-140.4-140.5-140.4-4.6 0-9 .2-13.6.7V18.7c4.6-.4 9-.5 13.7-.5 48.5 0 94 18.8 128.4 53zM199.8 322c-67.4 0-122.2-55-122.2-122.3S132.3 77.5 199.7 77.5 322 132.3 322 199.7 267 322 199.6 322z"/></svg>',(a=E[z]("DIV")).id="bp_sv",(l=E[z]("IFRAME")).allowFullscreen=!0,l.onload=U,V(l,"border:0px;height:100%;width:100%"),a[H](l),r.onload=U,r.onerror=U.bind(null,"image"),_[I]("resize",function(){d&&B(!0)}),E[I]("keyup",function(t){27===t.keyCode&&v&&j(i)}),E[I]("focus",function(t){v&&!i.contains(t.target)&&(t.stopPropagation(),c.focus())},!0),n=!0;var o}(),d&&(D(h),Q()),p=t.ytSrc||t.vimeoSrc,T=t.animationStart,k=t.animationEnd,L=t.noLoader,e=t.el,A=!1,(y=e.getAttribute("caption"))&&(m[M]=y,i[H](g)),p?(B(!0),o=a,b=!!t.ytSrc,C=b?"www.youtube.com/embed/"+p+"?html5=1&rel=0&showinfo=0&playsinline=1&":"player.vimeo.com/video/"+p+"?",l.src="https://"+C+"autoplay=1"):t.imgSrc?(A=!0,u=t.imgSrc,!(S=~x.indexOf(u))&&B(!0),(o=r).src=u):t.vidSrc?(B(!0),(o=s).src=t.vidSrc,F()):(o=r).src="IMG"===e.tagName?e.src:_.getComputedStyle(e).backgroundImage.replace(/^url|[(|)|'|"]/g,""),i[H](o),E.body[H](i)}}()}]);
|
1 |
+
var frontend=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if("complete"===document.readyState)return t();document.addEventListener("DOMContentLoaded",t)}},,function(t,e,n){"use strict";n(3),n(5),n(6),n(7)},function(t,e,n){"use strict";var i=r(n(0)),o=r(n(4));function r(t){return t&&t.__esModule?t:{default:t}}(0,i.default)(function(){var t=document.querySelectorAll(".ugb-video-popup"),e=function(t){if(o.default){var e=t.getAttribute("data-video"),n={el:t,noLoader:!0};e.match(/^\d+$/g)?n.vimeoSrc=e:e.match(/^https?:\/\//g)?n.vidSrc=e:n.ytSrc=e,(0,o.default)(n)}};t.forEach(function(t){var n=t.querySelector("a");n.addEventListener("click",function(n){n.preventDefault(),e(t)}),n.addEventListener("touchend",function(n){n.preventDefault(),e(t)})})})},function(t,e){!function(){var e,n,i,o,r,s,a,l,u,c,p,d,h,f,g,m,y,w,v,b,x,S,A,T,k,L,_=window,E=document,H="appendChild",z="createElement",O="removeChild",M="innerHTML",C="pointer-events:auto",q="clientHeight",W="clientWidth",I="addEventListener",P=_.setTimeout,D=_.clearTimeout;function R(){var t=e.getBoundingClientRect();return N("transform:","translate3D("+(t.left-(i[W]-t.width)/2)+"px, "+(t.top-(i[q]-t.height)/2)+"px, 0) scale3D("+e[W]/o[W]+", "+e[q]/o[q]+", 0);")}function F(){4===o.readyState?U():s.error?U("video"):h=P(F,35)}function B(t){L||(t&&V(f,"top:"+e.offsetTop+"px;left:"+e.offsetLeft+"px;height:"+e[q]+"px;width:"+e[W]+"px"),e.parentElement[t?H:O](f),d=t)}function U(t){if(d&&B(),T&&T(),"string"==typeof t)return Q(),alert("Error: The requested "+t+" could not be displayed.");A&&!S&&x.push(u),V(o,R()),V(i,"opacity:1;"+C),k=P(k,410),v=!0,P(function(){V(o,N("transition:","transform .35s;")+N("transform:","none;")),y&&P(V.bind(null,g,"opacity:1"),250)},60)}function j(t){var e=t.target,n=[g,w,s,m];e&&e.blur(),b||~n.indexOf(e)||(o.style.cssText+=R(),V(i,C),P(Q,350),D(k),v=!1,b=!0)}function Q(){E.body[O](i),i[O](o),V(i,""),(o===a?l:o).removeAttribute("src"),y&&(V(g,""),i[O](g)),b=!1}function V(t,e){t.style.cssText=e}function N(t,e){var n=t+e;return"-webkit-"+n+t+"-webkit-"+e+n}t.exports=function(t){var b,C;n||function(){function t(){var t=E[z]("button");return t.className="bp-x",t[M]="×",t}x=[];var e=E[z]("STYLE");e[M]="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,.bp-x,#bp_loader{position:absolute;right:0}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;pointer-events:none;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:-webkit-flex;display:flex;margin:0;cursor:wait;z-index:9}#bp_loader svg{width:40%;max-height:40%;margin:auto;"+N("animation:","ldr .7s infinite linear;")+"}"+(o="keyframes ldr{to{"+N("transform:","rotate(1turn);")+"}}","@-webkit-"+o+"@"+o)+"#bp_container img,#bp_sv,#bp_vid{max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{width:171vh}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}.bp-x{font-family:Arial;top:0;cursor:pointer;opacity:.8;font-size:3em;padding:0 .3em;color:#fff;background:transparent;border:0;text-shadow:0 0 2px #000}#bp_caption .bp-x{left:2%;top:auto;right:auto;bottom:100%;padding:0 .6em;background:#d74040;border-radius:2px 2px 0 0;font-size:2.3em;text-shadow:none}.bp-x:hover,.bp-x:focus{opacity:1}.bp-x:active{outline:0}@media (max-aspect-ratio:9/5){#bp_sv{height:53vw}}",E.head[H](e),(i=E[z]("DIV")).id="bp_container",i.onclick=j,c=t(),i[H](c),r=E[z]("IMG"),(s=E[z]("VIDEO")).id="bp_vid",s.autoplay=!0,s.setAttribute("playsinline",!0),s.controls=!0,s.loop=!0,(g=E[z]("DIV")).id="bp_caption",(w=t()).onclick=function(){V(g,"opacity:0"),P(function(){y=!1,i[O](g)},300)},g[H](w),m=E[z]("SPAN"),g[H](m),(f=E[z]("DIV")).id="bp_loader",f[M]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 399 399"><path d="M341 58.5C303 20.8 253 0 199.6 0 146.4 0 96.2 20.8 58.5 58.5 20.8 96.2 0 146.5 0 199.7 0 253 20.8 303.2 58.5 341c37.7 37.6 88 58.4 141.2 58.4 53.3 0 103.5-20.8 141.2-58.5 37.6-37.8 58.4-88 58.4-141.3 0-53.3-20.8-103.5-58.5-141.2zm-13 12.8c34.3 34.3 53.2 80 53.2 128.4h-41c0-77.4-63-140.4-140.5-140.4-4.6 0-9 .2-13.6.7V18.7c4.6-.4 9-.5 13.7-.5 48.5 0 94 18.8 128.4 53zM199.8 322c-67.4 0-122.2-55-122.2-122.3S132.3 77.5 199.7 77.5 322 132.3 322 199.7 267 322 199.6 322z"/></svg>',(a=E[z]("DIV")).id="bp_sv",(l=E[z]("IFRAME")).allowFullscreen=!0,l.onload=U,V(l,"border:0px;height:100%;width:100%"),a[H](l),r.onload=U,r.onerror=U.bind(null,"image"),_[I]("resize",function(){d&&B(!0)}),E[I]("keyup",function(t){27===t.keyCode&&v&&j(i)}),E[I]("focus",function(t){v&&!i.contains(t.target)&&(t.stopPropagation(),c.focus())},!0),n=!0;var o}(),d&&(D(h),Q()),p=t.ytSrc||t.vimeoSrc,T=t.animationStart,k=t.animationEnd,L=t.noLoader,e=t.el,A=!1,(y=e.getAttribute("caption"))&&(m[M]=y,i[H](g)),p?(B(!0),o=a,b=!!t.ytSrc,C=b?"www.youtube.com/embed/"+p+"?html5=1&rel=0&showinfo=0&playsinline=1&":"player.vimeo.com/video/"+p+"?",l.src="https://"+C+"autoplay=1"):t.imgSrc?(A=!0,u=t.imgSrc,!(S=~x.indexOf(u))&&B(!0),(o=r).src=u):t.vidSrc?(B(!0),(o=s).src=t.vidSrc,F()):(o=r).src="IMG"===e.tagName?e.src:_.getComputedStyle(e).backgroundImage.replace(/^url|[(|)|'|"]/g,""),i[H](o),E.body[H](i)}}()},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){document.querySelectorAll(".ugb-notification.dismissible-true[data-uid]").forEach(function(t){var e=t.getAttribute("data-uid");localStorage.getItem("stckbl-notif-"+e)||(t.style.display="block"),t.querySelector(".close-button").addEventListener("click",function(){localStorage.setItem("stckbl-notif-"+e,1),t.style.display=""})})})},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){document.querySelectorAll(".wp-block-ugb-expand").forEach(function(t){var e=t.querySelector(".ugb-expand-button"),n=function(e){t.classList.toggle("ugb-more"),e.preventDefault()};e&&(e.addEventListener("click",n),e.addEventListener("tapEnd",n))})})},function(t,e,n){"use strict";var i,o=n(0);(0,((i=o)&&i.__esModule?i:{default:i}).default)(function(){n(8),document.querySelectorAll(".ugb-countup .ugb-counter").forEach(function(t){t.classList.add("ugb-countup-hide"),new Waypoint({element:t,handler:function(){r(t),t.classList.remove("ugb-countup-hide"),this.destroy()},offset:"bottom-in-view"})})});var r=function(t){var e,n,i,o,r,s,a,l,u,c,p,d,h,f;if(function(t){clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""}(t),/[0-9]/.test(t.innerHTML)){for(t._countUpOrigInnerHTML=t.innerHTML,e=document.querySelector("html").getAttribute("lang")||void 0,i=t.getAttribute("data-duration")/(n=t.getAttribute("data-delay")),o=t.innerHTML.split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),r=[],s=0;s<i;s++)r.push("");for(a=0;a<o.length;a++)if(/([0-9.][,.0-9]*[0-9]*)/.test(o[a])&&!/<[^>]+>/.test(o[a]))for(l=o[a],u=/[0-9]+,[0-9]+/.test(l),l=l.replace(/,/g,""),p=(c=/^[0-9]+\.[0-9]+$/.test(l))?(l.split(".")[1]||[]).length:0,s=r.length-1,d=i;d>=1;d--)h=parseInt(l/i*d,10),c&&(h=parseFloat(l/i*d).toFixed(p),h=parseFloat(h).toLocaleString(e)),u&&(h=h.toLocaleString(e)),r[s--]+=h;else for(s=0;s<i;s++)r[s]+=o[a];r[r.length]=t.innerHTML,t.innerHTML=r[0],t.style.visibility="visible",f=function(){t.innerHTML=r.shift(),r.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(f,n)):t._countUpOrigInnerHTML=void 0},t.countUpTimeout=setTimeout(f,n)}}},function(t,e){!function(){"use strict";var t=0,e={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var i in e)n.push(e[i]);for(var o=0,r=n.length;o<r;o++)n[o][t]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){for(var t in n.Context.refreshAll(),e)e[t].enabled=!0;return this},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=n}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,n={},i=window.Waypoint,o=window.onload;function r(t){this.element=t,this.Adapter=i.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,e+=1,i.windowContext||(i.windowContext=!0,i.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,i.requestAnimationFrame(e))})},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",function(){t.didScroll&&!i.isTouch||(t.didScroll=!0,i.requestAnimationFrame(e))})},r.prototype.handleResize=function(){i.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o=i.newScroll>i.oldScroll?i.forward:i.backward;for(var r in this.waypoints[n]){var s=this.waypoints[n][r];if(null!==s.triggerPoint){var a=i.oldScroll<s.triggerPoint,l=i.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(o),t[s.group.id]=s.group)}}}for(var u in t)t[u].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;i<o;i++)t[i].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),o={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,u,c,p,d=this.waypoints[r][a],h=d.options.offset,f=d.triggerPoint,g=0,m=null==f;d.element!==d.element.window&&(g=d.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(d):"string"==typeof h&&(h=parseFloat(h),d.options.offset.indexOf("%")>-1&&(h=Math.ceil(s.contextDimension*h/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(g+l-h),u=f<s.oldScroll,c=d.triggerPoint>=s.oldScroll,p=!u&&!c,!m&&(u&&c)?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!m&&p?(d.queueTrigger(s.forward),o[d.group.id]=d.group):m&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return i.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in n)n[t].refresh()},r.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),r.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var r=0,s=i.length;r<s;r+=1){var a=i[r];(a.options.continuous||r===i.length-1)&&a.trigger([n])}}this.clearTriggerQueues()},o.prototype.next=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},o.prototype.previous=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return n[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var t=window.Waypoint;function e(t){return t===t.window}function n(t){return e(t)?t:t.defaultView}function i(t){this.element=t,this.handlers={}}i.prototype.innerHeight=function(){return e(this.element)?this.element.innerHeight:this.element.clientHeight},i.prototype.innerWidth=function(){return e(this.element)?this.element.innerWidth:this.element.clientWidth},i.prototype.off=function(t,e){function n(t,e,n){for(var i=0,o=e.length-1;i<o;i++){var r=e[i];n&&n!==r||t.removeEventListener(r)}}var i=t.split("."),o=i[0],r=i[1],s=this.element;if(r&&this.handlers[r]&&o)n(s,this.handlers[r][o],e),this.handlers[r][o]=[];else if(o)for(var a in this.handlers)n(s,this.handlers[a][o]||[],e),this.handlers[a][o]=[];else if(r&&this.handlers[r]){for(var l in this.handlers[r])n(s,this.handlers[r][l],e);this.handlers[r]={}}},i.prototype.offset=function(){if(!this.element.ownerDocument)return null;var t=this.element.ownerDocument.documentElement,e=n(this.element.ownerDocument),i={top:0,left:0};return this.element.getBoundingClientRect&&(i=this.element.getBoundingClientRect()),{top:i.top+e.pageYOffset-t.clientTop,left:i.left+e.pageXOffset-t.clientLeft}},i.prototype.on=function(t,e){var n=t.split("."),i=n[0],o=n[1]||"__default",r=this.handlers[o]=this.handlers[o]||{};(r[i]=r[i]||[]).push(e),this.element.addEventListener(i,e)},i.prototype.outerHeight=function(t){var n,i=this.innerHeight();return t&&!e(this.element)&&(n=window.getComputedStyle(this.element),i+=parseInt(n.marginTop,10),i+=parseInt(n.marginBottom,10)),i},i.prototype.outerWidth=function(t){var n,i=this.innerWidth();return t&&!e(this.element)&&(n=window.getComputedStyle(this.element),i+=parseInt(n.marginLeft,10),i+=parseInt(n.marginRight,10)),i},i.prototype.scrollLeft=function(){var t=n(this.element);return t?t.pageXOffset:this.element.scrollLeft},i.prototype.scrollTop=function(){var t=n(this.element);return t?t.pageYOffset:this.element.scrollTop},i.extend=function(){var t=Array.prototype.slice.call(arguments);function e(t,e){if("object"==typeof t&&"object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}for(var n=1,i=t.length;n<i;n++)e(t[0],t[n]);return t[0]},i.inArray=function(t,e,n){return null==e?-1:e.indexOf(t,n)},i.isEmptyObject=function(t){for(var e in t)return!1;return!0},t.adapters.push({name:"noframework",Adapter:i}),t.Adapter=i}()}]);
|
dist/blocks.style.build.css
CHANGED
@@ -3,8 +3,8 @@
|
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}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}.ugb-button{margin-top:1.5em;margin-bottom:1.5em}.ugb-button>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-button>*:first-child{margin-top:0 !important}.ugb-button>*:last-child{margin-bottom:0 !important}.ugb-button{border:none;border-radius:4px;-webkit-box-shadow:none !important;box-shadow:none !important;cursor:pointer;opacity:1;background:#2091e1;-webkit-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;box-shadow:none !important;padding-bottom:calc(.375em - 1px);padding-left:.75em;padding-right:.75em;padding-top:calc(.375em - 1px);font-size:1em;line-height:1.5 !important;-ms-flex-align:center;align-items:center;font-size:1em}.ugb-button .ugb-button-inner{text-decoration:none !important;white-space:nowrap;display:inline-block;color:#fff;-webkit-box-shadow:none !important;box-shadow:none !important;margin:0 !important;padding:0 !important}.ugb-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-button .ugb-button-inner:hover{color:white}.ugb-button-small.ugb-button .ugb-button-inner{font-size:.75em}.ugb-button-medium.ugb-button .ugb-button-inner{font-size:1.25em}.ugb-button-large.ugb-button .ugb-button-inner{font-size:1.5em}.ugb-button-left{margin-right:auto;display:table}.ugb-button-center{margin-left:auto;margin-right:auto;display:table}.ugb-button-right{margin-left:auto;display:table}.ugb-button-full{display:block;text-align:center}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-button.ugb-ghost-button{background-color:transparent;border:2px solid #2091e1;padding-left:1.25em;padding-right:1.25em}.ugb-button.ugb-ghost-button .ugb-button-inner{color:#2091e1}.ugb-button.ugb-ghost-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-button.ugb-ghost-button:hover .ugb-button-inner{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}[class*="ugb-"].alignfull{border-radius:0 !important}.wp-block-ugb-notification{position:relative}.wp-ugb-notif{border-radius:4px;color:#ffffff;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px;padding:35px}.wp-ugb-notif>*{margin-top:0 !important;margin-bottom:1rem !important}.wp-ugb-notif>*:first-child{margin-top:0 !important}.wp-ugb-notif>*:last-child{margin-bottom:0 !important}.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:60px}.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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-blockquote{border:0 !important;margin-top:1.5em;margin-bottom:1.5em;padding:35px;margin-left:35px;margin-right:35px;font-style:italic;text-align:inherit;background:transparent;position:relative;overflow:visible;--quote-color:rgba(129,141,165,0.32)}.ugb-blockquote>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-blockquote>*:first-child{margin-top:0 !important}.ugb-blockquote>*:last-child{margin-bottom:0 !important}.ugb-blockquote p{margin:0}.ugb-blockquote:after,.ugb-blockquote:before,.ugb-blockquote p:after,.ugb-blockquote p:before{display:none}.ugb-blockquote:before{content:"❛❛";display:block;position:absolute;font-family:Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;font-style:normal;font-size:100px;line-height:1em;left:-35px;top:-15px;opacity:1;color:var(--quote-color)}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}blockquote.ugb-pullquote{border:0 !important;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px;text-align:center;padding:60px;position:relative;overflow:hidden;--quote-color:rgba(129,141,165,
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}div.ugb-cta{text-align:center;background-color:#f4f4f4;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px}div.ugb-cta>*{margin-top:0 !important;margin-bottom:1rem !important}div.ugb-cta>*:first-child{margin-top:0 !important}div.ugb-cta>*:last-child{margin-bottom:0 !important}.wp-block-ugb-button .wp-ugb-button:hover{color:white}[data-align="full"] div.ugb-cta{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-testimonial{margin-top:1.5em;margin-bottom:1.5em;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -17.5px}.ugb-testimonial>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-testimonial>*:first-child{margin-top:0 !important}.ugb-testimonial>*:last-child{margin-bottom:0 !important}.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;margin-top:1.5em;margin-bottom:1.5em;-ms-flex:1;flex:1;min-width:250px}.ugb-testimonial>div>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-testimonial>div>*:first-child{margin-top:0 !important}.ugb-testimonial>div>*:last-child{margin-bottom:0 !important}.ugb-testimonial>div p{text-align:center}.ugb-testimonial>div,.ugb-testimonial>div:first-child,.ugb-testimonial>div:last-child{margin:17.5px !important}.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-three{display:none}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-team-member{margin-top:1.5em;margin-bottom:1.5em;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -17.5px}.ugb-team-member>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-team-member>*:first-child{margin-top:0 !important}.ugb-team-member>*:last-child{margin-bottom:0 !important}.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;margin-top:1.5em;margin-bottom:1.5em;-ms-flex:1;flex:1;min-width:250px}.ugb-team-member>div>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-team-member>div>*:first-child{margin-top:0 !important}.ugb-team-member>div>*:last-child{margin-bottom:0 !important}.ugb-team-member>div p{text-align:center}.ugb-team-member>div,.ugb-team-member>div:first-child,.ugb-team-member>div:last-child{margin:17.5px !important}.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 .ugb-team-member-column-three{display:none}.team-member-social a{color:#000000;opacity:.30;padding:0 3px}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}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}.ugb-button{margin-top:1.5em;margin-bottom:1.5em}.ugb-button>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-button>*:first-child{margin-top:0 !important}.ugb-button>*:last-child{margin-bottom:0 !important}.ugb-button{border:none;border-radius:4px;-webkit-box-shadow:none !important;box-shadow:none !important;cursor:pointer;opacity:1;background:#2091e1;-webkit-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;box-shadow:none !important;padding-bottom:calc(.375em - 1px);padding-left:.75em;padding-right:.75em;padding-top:calc(.375em - 1px);font-size:1em;line-height:1.5 !important;-ms-flex-align:center;align-items:center;font-size:1em}.ugb-button .ugb-button-inner{text-decoration:none !important;white-space:nowrap;display:inline-block;color:#fff;-webkit-box-shadow:none !important;box-shadow:none !important;margin:0 !important;padding:0 !important}.ugb-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-button .ugb-button-inner:hover{color:white}.ugb-button-small.ugb-button .ugb-button-inner{font-size:.75em}.ugb-button-medium.ugb-button .ugb-button-inner{font-size:1.25em}.ugb-button-large.ugb-button .ugb-button-inner{font-size:1.5em}.ugb-button-left{margin-right:auto;display:table}.ugb-button-center{margin-left:auto;margin-right:auto;display:table}.ugb-button-right{margin-left:auto;display:table}.ugb-button-full{display:block;text-align:center}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-button.ugb-ghost-button{background-color:transparent;border:2px solid #2091e1;padding-left:1.25em;padding-right:1.25em}.ugb-button.ugb-ghost-button .ugb-button-inner{color:#2091e1}.ugb-button.ugb-ghost-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-button.ugb-ghost-button:hover .ugb-button-inner{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}[class*="ugb-"].alignfull{border-radius:0 !important}.wp-block-ugb-notification{position:relative}.wp-ugb-notif{border-radius:4px;color:#ffffff;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px;padding:35px}.wp-ugb-notif>*{margin-top:0 !important;margin-bottom:1rem !important}.wp-ugb-notif>*:first-child{margin-top:0 !important}.wp-ugb-notif>*:last-child{margin-bottom:0 !important}.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:60px}.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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-blockquote{border:0 !important;margin-top:1.5em;margin-bottom:1.5em;padding:35px;margin-left:35px;margin-right:35px;font-style:italic;text-align:inherit;background:transparent;position:relative;overflow:visible;--quote-color: rgba(129, 141, 165, 0.32)}.ugb-blockquote>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-blockquote>*:first-child{margin-top:0 !important}.ugb-blockquote>*:last-child{margin-bottom:0 !important}.ugb-blockquote p{margin:0}.ugb-blockquote:after,.ugb-blockquote:before,.ugb-blockquote p:after,.ugb-blockquote p:before{display:none}.ugb-blockquote:before{content:"❛❛";display:block;position:absolute;font-family:Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;font-style:normal;font-size:100px;line-height:1em;left:-35px;top:-15px;opacity:1;color:var(--quote-color)}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}blockquote.ugb-pullquote{border:0 !important;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px;text-align:center;padding:60px;position:relative;overflow:hidden;--quote-color: rgba(129, 141, 165, .08)}blockquote.ugb-pullquote>*{margin-top:0 !important;margin-bottom:1rem !important}blockquote.ugb-pullquote>*:first-child{margin-top:0 !important}blockquote.ugb-pullquote>*:last-child{margin-bottom:0 !important}blockquote.ugb-pullquote:after,blockquote.ugb-pullquote:before,blockquote.ugb-pullquote p:after,blockquote.ugb-pullquote p:before{display:none}blockquote.ugb-pullquote:before{content:"❛❛";display:block;position:absolute;font-family:Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;font-style:normal;font-size:200px;line-height:1em;left:-35px;top:-15px;opacity:1;color:var(--quote-color)}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}div.ugb-cta{text-align:center;background-color:#f4f4f4;margin-top:1.5em;margin-bottom:1.5em;-webkit-box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);box-shadow:0 5px 5px 0 rgba(233,240,243,0.5),0 0 0 1px rgba(176,181,193,0.2);border-radius:12px;padding:60px 35px}div.ugb-cta>*{margin-top:0 !important;margin-bottom:1rem !important}div.ugb-cta>*:first-child{margin-top:0 !important}div.ugb-cta>*:last-child{margin-bottom:0 !important}.wp-block-ugb-button .wp-ugb-button:hover{color:white}[data-align="full"] div.ugb-cta{border-radius:0 !important}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-testimonial{margin-top:1.5em;margin-bottom:1.5em;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -17.5px}.ugb-testimonial>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-testimonial>*:first-child{margin-top:0 !important}.ugb-testimonial>*:last-child{margin-bottom:0 !important}.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;margin-top:1.5em;margin-bottom:1.5em;-ms-flex:1;flex:1;min-width:250px}.ugb-testimonial>div>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-testimonial>div>*:first-child{margin-top:0 !important}.ugb-testimonial>div>*:last-child{margin-bottom:0 !important}.ugb-testimonial>div p{text-align:center}.ugb-testimonial>div,.ugb-testimonial>div:first-child,.ugb-testimonial>div:last-child{margin:17.5px !important}.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-three{display:none}
|
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}[class*="ugb-"].alignfull{border-radius:0 !important}.ugb-team-member{margin-top:1.5em;margin-bottom:1.5em;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -17.5px}.ugb-team-member>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-team-member>*:first-child{margin-top:0 !important}.ugb-team-member>*:last-child{margin-bottom:0 !important}.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;margin-top:1.5em;margin-bottom:1.5em;-ms-flex:1;flex:1;min-width:250px}.ugb-team-member>div>*{margin-top:0 !important;margin-bottom:1rem !important}.ugb-team-member>div>*:first-child{margin-top:0 !important}.ugb-team-member>div>*:last-child{margin-bottom:0 !important}.ugb-team-member>div p{text-align:center}.ugb-team-member>div,.ugb-team-member>div:first-child,.ugb-team-member>div:last-child{margin:17.5px !important}.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 .ugb-team-member-column-three{display:none}.team-member-social a{color:#000000;opacity:.30;padding:0 3px}
|
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: 1.0
|
9 |
*
|
10 |
* @package Stackable
|
11 |
*/
|
@@ -15,6 +15,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
exit;
|
16 |
}
|
17 |
|
|
|
|
|
18 |
/**
|
19 |
* Block Initializer.
|
20 |
*/
|
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: 1.0.1
|
9 |
*
|
10 |
* @package Stackable
|
11 |
*/
|
15 |
exit;
|
16 |
}
|
17 |
|
18 |
+
defined( 'STACKABLE_IS_PRO' ) || define( 'STACKABLE_IS_PRO', false );
|
19 |
+
|
20 |
/**
|
21 |
* Block Initializer.
|
22 |
*/
|
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.8
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.0
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -41,13 +41,13 @@ These blocks are built with usability in mind. Stackable is also designed to sui
|
|
41 |
7. Team Members
|
42 |
8. Call to Action
|
43 |
9. Notification
|
44 |
-
10. Blockquote
|
45 |
11. Pullquote
|
46 |
12. Number box
|
47 |
-
13. Button
|
48 |
14. Ghost Button
|
49 |
15. Expand / Show more
|
50 |
-
16. Divider
|
51 |
17. Spacer
|
52 |
|
53 |
We plan to add more in the future.
|
@@ -161,6 +161,9 @@ Nope. Stackable only works with Gutenberg.
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
164 |
= 1.0 =
|
165 |
* Note: v1.0 is not backward compatible with lower versions, upgrading will most likely weird out your existing blocks. If that happens, you'll need to redo some of your blocks.
|
166 |
* New: Standardized styles across all blocks
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.9.8
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
41 |
7. Team Members
|
42 |
8. Call to Action
|
43 |
9. Notification
|
44 |
+
10. Blockquote
|
45 |
11. Pullquote
|
46 |
12. Number box
|
47 |
+
13. Button
|
48 |
14. Ghost Button
|
49 |
15. Expand / Show more
|
50 |
+
16. Divider
|
51 |
17. Spacer
|
52 |
|
53 |
We plan to add more in the future.
|
161 |
|
162 |
== Changelog ==
|
163 |
|
164 |
+
= 1.0.1 =
|
165 |
+
* Fixed: Button background setting doesn't get applied.
|
166 |
+
|
167 |
= 1.0 =
|
168 |
* Note: v1.0 is not backward compatible with lower versions, upgrading will most likely weird out your existing blocks. If that happens, you'll need to redo some of your blocks.
|
169 |
* New: Standardized styles across all blocks
|
src/block-frontend.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* All frontend scripts required by our blocks should be included here.
|
3 |
+
*
|
4 |
+
* This is the file that Webpack is compiling into blocks.frontend.build.js
|
5 |
+
*/
|
6 |
+
|
7 |
+
import './block/video-popup/frontend'
|
8 |
+
import './block/notification/frontend'
|
9 |
+
import './block/expand/frontend'
|
10 |
+
import './block/count-up/frontend'
|
src/block/button/index.js
CHANGED
@@ -12,6 +12,9 @@ import { ButtonIcon } from '../../icons'
|
|
12 |
import { deprecatedSave_0_7, deprecatedSchema_0_7 } from './deprecated'
|
13 |
import ButtonEdit from './button-edit'
|
14 |
import ButtonSave from './button-save'
|
|
|
|
|
|
|
15 |
|
16 |
import {
|
17 |
registerBlockType, // Import registerBlockType() from wp.blocks
|
@@ -29,6 +32,7 @@ import {
|
|
29 |
RangeControl,
|
30 |
URLInput,
|
31 |
PanelBody,
|
|
|
32 |
omit,
|
33 |
merge,
|
34 |
} from '../../wp-imports'
|
@@ -37,7 +41,7 @@ export const edit = ( props ) => {
|
|
37 |
|
38 |
const { isSelected, className, setAttributes } = props;
|
39 |
|
40 |
-
const { url, text, color, textColor, size, align, cornerButtonRadius } = props.attributes;
|
41 |
|
42 |
const linkOptions = [
|
43 |
{ value: 'small', label: __( 'Small' ) },
|
@@ -46,6 +50,15 @@ export const edit = ( props ) => {
|
|
46 |
{ value: 'large', label: __( 'Large' ) },
|
47 |
];
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
return [
|
50 |
isSelected && (
|
51 |
<BlockControls key="controls">
|
@@ -58,6 +71,20 @@ export const edit = ( props ) => {
|
|
58 |
/>
|
59 |
</BlockControls>
|
60 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
isSelected && (
|
62 |
<InspectorControls key={ 'inspector' }>
|
63 |
<PanelBody>
|
@@ -78,8 +105,6 @@ export const edit = ( props ) => {
|
|
78 |
onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
|
79 |
/>
|
80 |
</PanelBody>
|
81 |
-
|
82 |
-
|
83 |
<PanelColorSettings
|
84 |
title={ __( 'Color Settings' ) }
|
85 |
colorSettings={ [
|
@@ -99,10 +124,7 @@ export const edit = ( props ) => {
|
|
99 |
|
100 |
</InspectorControls>
|
101 |
),
|
102 |
-
|
103 |
-
onChange={ (text) => setAttributes( { text } ) }
|
104 |
-
isSelected={ isSelected }
|
105 |
-
align={ align } size={ size } color={ textColor } text={ text } borderRadius={ cornerButtonRadius } />,
|
106 |
isSelected && (
|
107 |
<form
|
108 |
onSubmit={ ( event ) => event.preventDefault() }
|
@@ -121,33 +143,14 @@ export const edit = ( props ) => {
|
|
121 |
),
|
122 |
];
|
123 |
}
|
124 |
-
|
125 |
-
<span key={ 'button' }
|
126 |
-
className={ `ugb-button ugb-button-${align} ugb-button-${size}` }
|
127 |
-
style={ {
|
128 |
-
backgroundColor: color,
|
129 |
-
borderRadius: cornerButtonRadius + 'px',
|
130 |
-
} }>
|
131 |
-
<RichText
|
132 |
-
tagName={ 'span' }
|
133 |
-
placeholder={ __( 'Enter Text' ) }
|
134 |
-
value={ text }
|
135 |
-
onChange={ (text) => setAttributes( { text: text } ) }
|
136 |
-
formattingControls={ [ 'bold', 'italic', 'strikethrough' ] }
|
137 |
-
className={ `ugb-button-inner` }
|
138 |
-
style={ { color: textColor } }
|
139 |
-
isSelected={ isSelected }
|
140 |
-
keepPlaceholderOnFocus
|
141 |
-
/>
|
142 |
-
</span>
|
143 |
-
*/
|
144 |
export const save = ( props ) => {
|
145 |
|
146 |
-
const { url, text, align, color, textColor, size, cornerButtonRadius } = props.attributes;
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
);
|
151 |
}
|
152 |
|
153 |
export const schema = {
|
@@ -181,7 +184,11 @@ export const schema = {
|
|
181 |
cornerButtonRadius: {
|
182 |
type: 'number',
|
183 |
default: 4,
|
184 |
-
}
|
|
|
|
|
|
|
|
|
185 |
}
|
186 |
|
187 |
|
12 |
import { deprecatedSave_0_7, deprecatedSchema_0_7 } from './deprecated'
|
13 |
import ButtonEdit from './button-edit'
|
14 |
import ButtonSave from './button-save'
|
15 |
+
import DesignPanelBody from '../../components/design-panel-body'
|
16 |
+
import DesignPanelItem from '../../components/design-panel-item'
|
17 |
+
import DisplayLogic from '../../components/display-logic'
|
18 |
|
19 |
import {
|
20 |
registerBlockType, // Import registerBlockType() from wp.blocks
|
32 |
RangeControl,
|
33 |
URLInput,
|
34 |
PanelBody,
|
35 |
+
applyFilters,
|
36 |
omit,
|
37 |
merge,
|
38 |
} from '../../wp-imports'
|
41 |
|
42 |
const { isSelected, className, setAttributes } = props;
|
43 |
|
44 |
+
const { url, text, color, textColor, size, align, cornerButtonRadius, design } = props.attributes;
|
45 |
|
46 |
const linkOptions = [
|
47 |
{ value: 'small', label: __( 'Small' ) },
|
50 |
{ value: 'large', label: __( 'Large' ) },
|
51 |
];
|
52 |
|
53 |
+
const defaultEditDesign = (
|
54 |
+
<ButtonEdit
|
55 |
+
onChange={ (text) => setAttributes( { text } ) }
|
56 |
+
isSelected={ isSelected }
|
57 |
+
align={ align } size={ size } backgroundColor={ color } color={ textColor } text={ text } borderRadius={ cornerButtonRadius } />
|
58 |
+
)
|
59 |
+
|
60 |
+
const editDesign = applyFilters( 'stackable.designs.button.edit', defaultEditDesign, design, props )
|
61 |
+
|
62 |
return [
|
63 |
isSelected && (
|
64 |
<BlockControls key="controls">
|
71 |
/>
|
72 |
</BlockControls>
|
73 |
),
|
74 |
+
isSelected && (
|
75 |
+
<InspectorControls>
|
76 |
+
<DesignPanelBody
|
77 |
+
selected={ design }
|
78 |
+
options={ [
|
79 |
+
{ label: <DesignPanelItem imageFile="button/images/test.jpg" />, title: 'Basic', value: 'basic' },
|
80 |
+
{ label: <DesignPanelItem imageFile="button/images/test.jpg" isPro={ true } />, title: 'Center', value: 'center' },
|
81 |
+
{ label: <DesignPanelItem imageFile="https://via.placeholder.com/350x150" isPro={ true } />, title: 'Right', value: 'right' },
|
82 |
+
{ label: <DesignPanelItem imageFile="https://via.placeholder.com/350x150" isPro={ true } />, title: 'Full', value: 'full' },
|
83 |
+
] }
|
84 |
+
onChange={ ( design ) => { setAttributes( { design } ) } }
|
85 |
+
/>
|
86 |
+
</InspectorControls>
|
87 |
+
),
|
88 |
isSelected && (
|
89 |
<InspectorControls key={ 'inspector' }>
|
90 |
<PanelBody>
|
105 |
onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
|
106 |
/>
|
107 |
</PanelBody>
|
|
|
|
|
108 |
<PanelColorSettings
|
109 |
title={ __( 'Color Settings' ) }
|
110 |
colorSettings={ [
|
124 |
|
125 |
</InspectorControls>
|
126 |
),
|
127 |
+
editDesign,
|
|
|
|
|
|
|
128 |
isSelected && (
|
129 |
<form
|
130 |
onSubmit={ ( event ) => event.preventDefault() }
|
143 |
),
|
144 |
];
|
145 |
}
|
146 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
export const save = ( props ) => {
|
148 |
|
149 |
+
const { url, text, align, color, textColor, size, cornerButtonRadius, design } = props.attributes;
|
150 |
|
151 |
+
const saved = <ButtonSave align={ align } size={ size } url={ url } color={ textColor } text={ text } backgroundColor={ color } borderRadius={ cornerButtonRadius } />
|
152 |
+
|
153 |
+
return applyFilters( 'stackable.designs.button.save', saved, design, props );
|
154 |
}
|
155 |
|
156 |
export const schema = {
|
184 |
cornerButtonRadius: {
|
185 |
type: 'number',
|
186 |
default: 4,
|
187 |
+
},
|
188 |
+
design: {
|
189 |
+
type: 'string',
|
190 |
+
default: 'basic',
|
191 |
+
},
|
192 |
}
|
193 |
|
194 |
|
src/blocks.js
CHANGED
@@ -1,30 +1,27 @@
|
|
1 |
/**
|
2 |
-
* Gutenberg
|
3 |
-
*
|
4 |
-
* All blocks related JavaScript.
|
5 |
-
* You can create a new block folder in
|
6 |
-
* this dir and include code for that block
|
7 |
-
* here as well.
|
8 |
-
*
|
9 |
* All blocks should be included here since
|
10 |
-
* this is the file that Webpack is compiling.
|
11 |
*/
|
12 |
|
13 |
-
import './block/spacer'
|
14 |
-
import './block/divider'
|
15 |
-
import './block/button'
|
16 |
-
import './block/ghost-button'
|
17 |
-
import './block/notification'
|
18 |
-
import './block/blockquote'
|
19 |
-
import './block/pullquote'
|
20 |
-
import './block/call-to-action'
|
21 |
-
import './block/testimonial'
|
22 |
-
import './block/team-member'
|
23 |
-
import './block/expand'
|
24 |
-
import './block/number-box'
|
25 |
-
import './block/pricing-box'
|
26 |
-
import './block/header'
|
27 |
-
import './block/image-box'
|
28 |
-
import './block/count-up'
|
29 |
-
import './block/video-popup'
|
30 |
-
import './block/card'
|
|
|
|
1 |
/**
|
2 |
+
* Gutenberg blocks.
|
3 |
+
*
|
|
|
|
|
|
|
|
|
|
|
4 |
* All blocks should be included here since
|
5 |
+
* this is the file that Webpack is compiling into blocks.editor.build.js
|
6 |
*/
|
7 |
|
8 |
+
import './block/spacer'
|
9 |
+
import './block/divider'
|
10 |
+
import './block/button'
|
11 |
+
import './block/ghost-button'
|
12 |
+
import './block/notification'
|
13 |
+
import './block/blockquote'
|
14 |
+
import './block/pullquote'
|
15 |
+
import './block/call-to-action'
|
16 |
+
import './block/testimonial'
|
17 |
+
import './block/team-member'
|
18 |
+
import './block/expand'
|
19 |
+
import './block/number-box'
|
20 |
+
import './block/pricing-box'
|
21 |
+
import './block/header'
|
22 |
+
import './block/image-box'
|
23 |
+
import './block/count-up'
|
24 |
+
import './block/video-popup'
|
25 |
+
import './block/card'
|
26 |
+
|
27 |
+
import './pro'
|
src/components/design-panel-body/editor.scss
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.design-control {
|
2 |
+
input {
|
3 |
+
position: absolute;
|
4 |
+
opacity: 0;
|
5 |
+
margin-bottom: 5px;
|
6 |
+
}
|
7 |
+
input, img {
|
8 |
+
display: block;
|
9 |
+
border-radius: 4px;
|
10 |
+
}
|
11 |
+
img {
|
12 |
+
min-height: 40px;
|
13 |
+
}
|
14 |
+
label span {
|
15 |
+
display: block;
|
16 |
+
transition: opacity 0.3s ease-in-out;
|
17 |
+
background: #ddd;
|
18 |
+
border-radius: 4px;
|
19 |
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHdpZHRoPSI0MHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCA0MCA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEuNDE0MjE7IiB4PSIwcHgiIHk9IjBweCI+CiAgICA8ZGVmcz4KICAgICAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwhW0NEQVRBWwogICAgICAgICAgICBALXdlYmtpdC1rZXlmcmFtZXMgc3BpbiB7CiAgICAgICAgICAgICAgZnJvbSB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoLTM1OWRlZykKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAgICAgICBmcm9tIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKC0zNTlkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHN2ZyB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IDUwJSA1MCU7CiAgICAgICAgICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogc3BpbiAxLjVzIGxpbmVhciBpbmZpbml0ZTsKICAgICAgICAgICAgICAgIC13ZWJraXQtYmFja2ZhY2UtdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICAgICAgICAgICAgYW5pbWF0aW9uOiBzcGluIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgICAgICB9CiAgICAgICAgXV0+PC9zdHlsZT4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJvdXRlciI+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwwQzIyLjIwNTgsMCAyMy45OTM5LDEuNzg4MTMgMjMuOTkzOSwzLjk5MzlDMjMuOTkzOSw2LjE5OTY4IDIyLjIwNTgsNy45ODc4MSAyMCw3Ljk4NzgxQzE3Ljc5NDIsNy45ODc4MSAxNi4wMDYxLDYuMTk5NjggMTYuMDA2MSwzLjk5MzlDMTYuMDA2MSwxLjc4ODEzIDE3Ljc5NDIsMCAyMCwwWiIgc3R5bGU9ImZpbGw6YmxhY2s7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNNS44NTc4Niw1Ljg1Nzg2QzcuNDE3NTgsNC4yOTgxNSA5Ljk0NjM4LDQuMjk4MTUgMTEuNTA2MSw1Ljg1Nzg2QzEzLjA2NTgsNy40MTc1OCAxMy4wNjU4LDkuOTQ2MzggMTEuNTA2MSwxMS41MDYxQzkuOTQ2MzgsMTMuMDY1OCA3LjQxNzU4LDEzLjA2NTggNS44NTc4NiwxMS41MDYxQzQuMjk4MTUsOS45NDYzOCA0LjI5ODE1LDcuNDE3NTggNS44NTc4Niw1Ljg1Nzg2WiIgc3R5bGU9ImZpbGw6cmdiKDIxMCwyMTAsMjEwKTsiLz4KICAgICAgICA8L2c+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwzMi4wMTIyQzIyLjIwNTgsMzIuMDEyMiAyMy45OTM5LDMzLjgwMDMgMjMuOTkzOSwzNi4wMDYxQzIzLjk5MzksMzguMjExOSAyMi4yMDU4LDQwIDIwLDQwQzE3Ljc5NDIsNDAgMTYuMDA2MSwzOC4yMTE5IDE2LjAwNjEsMzYuMDA2MUMxNi4wMDYxLDMzLjgwMDMgMTcuNzk0MiwzMi4wMTIyIDIwLDMyLjAxMjJaIiBzdHlsZT0iZmlsbDpyZ2IoMTMwLDEzMCwxMzApOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksMjguNDkzOUMzMC4wNTM2LDI2LjkzNDIgMzIuNTgyNCwyNi45MzQyIDM0LjE0MjEsMjguNDkzOUMzNS43MDE5LDMwLjA1MzYgMzUuNzAxOSwzMi41ODI0IDM0LjE0MjEsMzQuMTQyMUMzMi41ODI0LDM1LjcwMTkgMzAuMDUzNiwzNS43MDE5IDI4LjQ5MzksMzQuMTQyMUMyNi45MzQyLDMyLjU4MjQgMjYuOTM0MiwzMC4wNTM2IDI4LjQ5MzksMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxMDEsMTAxLDEwMSk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMy45OTM5LDE2LjAwNjFDNi4xOTk2OCwxNi4wMDYxIDcuOTg3ODEsMTcuNzk0MiA3Ljk4NzgxLDIwQzcuOTg3ODEsMjIuMjA1OCA2LjE5OTY4LDIzLjk5MzkgMy45OTM5LDIzLjk5MzlDMS43ODgxMywyMy45OTM5IDAsMjIuMjA1OCAwLDIwQzAsMTcuNzk0MiAxLjc4ODEzLDE2LjAwNjEgMy45OTM5LDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoMTg3LDE4NywxODcpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTUuODU3ODYsMjguNDkzOUM3LjQxNzU4LDI2LjkzNDIgOS45NDYzOCwyNi45MzQyIDExLjUwNjEsMjguNDkzOUMxMy4wNjU4LDMwLjA1MzYgMTMuMDY1OCwzMi41ODI0IDExLjUwNjEsMzQuMTQyMUM5Ljk0NjM4LDM1LjcwMTkgNy40MTc1OCwzNS43MDE5IDUuODU3ODYsMzQuMTQyMUM0LjI5ODE1LDMyLjU4MjQgNC4yOTgxNSwzMC4wNTM2IDUuODU3ODYsMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxNjQsMTY0LDE2NCk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYuMDA2MSwxNi4wMDYxQzM4LjIxMTksMTYuMDA2MSA0MCwxNy43OTQyIDQwLDIwQzQwLDIyLjIwNTggMzguMjExOSwyMy45OTM5IDM2LjAwNjEsMjMuOTkzOUMzMy44MDAzLDIzLjk5MzkgMzIuMDEyMiwyMi4yMDU4IDMyLjAxMjIsMjBDMzIuMDEyMiwxNy43OTQyIDMzLjgwMDMsMTYuMDA2MSAzNi4wMDYxLDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoNzQsNzQsNzQpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksNS44NTc4NkMzMC4wNTM2LDQuMjk4MTUgMzIuNTgyNCw0LjI5ODE1IDM0LjE0MjEsNS44NTc4NkMzNS43MDE5LDcuNDE3NTggMzUuNzAxOSw5Ljk0NjM4IDM0LjE0MjEsMTEuNTA2MUMzMi41ODI0LDEzLjA2NTggMzAuMDUzNiwxMy4wNjU4IDI4LjQ5MzksMTEuNTA2MUMyNi45MzQyLDkuOTQ2MzggMjYuOTM0Miw3LjQxNzU4IDI4LjQ5MzksNS44NTc4NloiIHN0eWxlPSJmaWxsOnJnYig1MCw1MCw1MCk7Ii8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K);
|
20 |
+
background-size: 15px;
|
21 |
+
background-position: center;
|
22 |
+
background-repeat: no-repeat;
|
23 |
+
}
|
24 |
+
input {
|
25 |
+
&:not(:checked) + label span {
|
26 |
+
opacity: 0.8;
|
27 |
+
&:hover {
|
28 |
+
opacity: 1;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|
32 |
+
input:checked + label img {
|
33 |
+
box-shadow: 0 0 0 2px #007cba;
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
.design-panel {
|
38 |
+
.components-panel__arrow {
|
39 |
+
top: 22px !important;
|
40 |
+
}
|
41 |
+
.components-panel__body-toggle img {
|
42 |
+
display: block;
|
43 |
+
margin-top: 10px;
|
44 |
+
border-radius: 4px;
|
45 |
+
}
|
46 |
+
&.is-opened .components-panel__body-toggle img {
|
47 |
+
display: none;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
.design-panel.design-panel-lite {
|
52 |
+
.design-control label span.is-pro {
|
53 |
+
img {
|
54 |
+
opacity: 0.5 !important;
|
55 |
+
}
|
56 |
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KPHBhdGggZD0iTTE0IDloMWMwLjU1IDAgMSAwLjQ1IDEgMXY3YzAgMC41NS0wLjQ1IDEtMSAxaC0xMGMtMC41NSAwLTEtMC40NS0xLTF2LTdjMC0wLjU1IDAuNDUtMSAxLTFoMXYtM2MwLTIuMjEgMS43OS00IDQtNHM0IDEuNzkgNCA0djN6TTEyIDl2LTNjMC0xLjEtMC45LTItMi0ycy0yIDAuOS0yIDJ2M2g0ek0xMSAxNmwtMC4zNi0yLjE1YzAuNTEtMC4yNCAwLjg2LTAuNzUgMC44Ni0xLjM1IDAtMC44My0wLjY3LTEuNS0xLjUtMS41cy0xLjUgMC42Ny0xLjUgMS41YzAgMC42IDAuMzUgMS4xMSAwLjg2IDEuMzVsLTAuMzYgMi4xNWgyeiI+PC9wYXRoPgo8L3N2Zz4=);
|
57 |
+
background-size: 25px;
|
58 |
+
cursor: help;
|
59 |
+
}
|
60 |
+
}
|
src/components/design-panel-body/index.js
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import './editor.scss';
|
2 |
+
|
3 |
+
import {
|
4 |
+
PanelBody,
|
5 |
+
RadioControl,
|
6 |
+
doAction,
|
7 |
+
isPro,
|
8 |
+
} from '../../wp-imports'
|
9 |
+
|
10 |
+
import classnames from 'classnames'
|
11 |
+
|
12 |
+
function DesignPanelBody( props ) {
|
13 |
+
return null
|
14 |
+
|
15 |
+
const { options, onChange, selected, title = 'Design' } = props
|
16 |
+
|
17 |
+
const selectedOption = options.find( opt => opt.value === selected )
|
18 |
+
const panelClassName = classnames( 'design-panel', {
|
19 |
+
'design-panel-lite': ! isPro
|
20 |
+
} )
|
21 |
+
|
22 |
+
const onChangeHandler = ( value ) => {
|
23 |
+
const selectedOption = options.find( opt => opt.value === value )
|
24 |
+
if ( ! isPro ) {
|
25 |
+
if ( selectedOption.label.props.isPro ) {
|
26 |
+
doAction( 'stackable.get_pro' );
|
27 |
+
return;
|
28 |
+
}
|
29 |
+
}
|
30 |
+
onChange( value )
|
31 |
+
}
|
32 |
+
|
33 |
+
return (
|
34 |
+
<PanelBody
|
35 |
+
title={ <span>{ title } – { selectedOption.title } { selectedOption.label }</span> }
|
36 |
+
className={ panelClassName }
|
37 |
+
initialOpen={ false }
|
38 |
+
>
|
39 |
+
<RadioControl
|
40 |
+
className="design-control"
|
41 |
+
selected={ selected }
|
42 |
+
options={ options }
|
43 |
+
onChange={ onChangeHandler }
|
44 |
+
/>
|
45 |
+
</PanelBody>
|
46 |
+
)
|
47 |
+
}
|
48 |
+
|
49 |
+
export default DesignPanelBody
|
src/components/design-panel-item/index.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import classnames from 'classnames'
|
2 |
+
import { blockSrcUrl } from '../../wp-imports'
|
3 |
+
|
4 |
+
function DesignPanelItem( { isPro, imageFile } ) {
|
5 |
+
const classNames = classnames( {
|
6 |
+
'is-pro': isPro,
|
7 |
+
} )
|
8 |
+
|
9 |
+
return (
|
10 |
+
<span className={ classNames }>
|
11 |
+
<img src={ imageFile.match( /https?:/i ) ? imageFile : `${blockSrcUrl}/${imageFile}` } />
|
12 |
+
</span>
|
13 |
+
)
|
14 |
+
}
|
15 |
+
|
16 |
+
export default DesignPanelItem
|
17 |
+
|
src/components/display-logic/index.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function DisplayLogic( { condition, children } ) {
|
2 |
+
return (
|
3 |
+
<div style={ { display: condition ? 'block' : 'none' } } >{ children }</div>
|
4 |
+
)
|
5 |
+
}
|
6 |
+
|
7 |
+
export default DisplayLogic
|
src/init.php
CHANGED
@@ -29,6 +29,15 @@ function my_block_ugb_block_assets() {
|
|
29 |
// filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // Version: filemtime — Gets file modification time.
|
30 |
);
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
// Scripts.
|
33 |
wp_enqueue_script(
|
34 |
'ugb-block-frontend-js', // Handle.
|
@@ -59,6 +68,15 @@ function my_block_ugb_editor_assets() {
|
|
59 |
// filemtime( plugin_dir_path( __FILE__ ) . 'block.js' ) // Version: filemtime — Gets file modification time.
|
60 |
);
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
// Styles.
|
63 |
wp_enqueue_style(
|
64 |
'ugb-block-editor-css', // Handle.
|
@@ -66,6 +84,11 @@ function my_block_ugb_editor_assets() {
|
|
66 |
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
|
67 |
// filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // Version: filemtime — Gets file modification time.
|
68 |
);
|
|
|
|
|
|
|
|
|
|
|
69 |
} // End function my_block_cgb_editor_assets().
|
70 |
|
71 |
// Hook: Editor assets.
|
29 |
// filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // Version: filemtime — Gets file modification time.
|
30 |
);
|
31 |
|
32 |
+
if ( STACKABLE_IS_PRO ) {
|
33 |
+
wp_enqueue_style(
|
34 |
+
'ugb-style-css-designs', // Handle.
|
35 |
+
plugins_url( 'dist/blocks.designs.build.css', dirname( __FILE__ ) ), // Block style CSS.
|
36 |
+
array( 'ugb-style-css' ) // Dependency to include the CSS after it.
|
37 |
+
// filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // Version: filemtime — Gets file modification time.
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
// Scripts.
|
42 |
wp_enqueue_script(
|
43 |
'ugb-block-frontend-js', // Handle.
|
68 |
// filemtime( plugin_dir_path( __FILE__ ) . 'block.js' ) // Version: filemtime — Gets file modification time.
|
69 |
);
|
70 |
|
71 |
+
if ( STACKABLE_IS_PRO ) {
|
72 |
+
wp_enqueue_script(
|
73 |
+
'ugb-block-js-designs', // Handle.
|
74 |
+
plugins_url( '/dist/blocks.designs.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack.
|
75 |
+
array( 'wp-blocks', 'wp-i18n', 'wp-element' ) // Dependencies, defined above.
|
76 |
+
// filemtime( plugin_dir_path( __FILE__ ) . 'block.js' ) // Version: filemtime — Gets file modification time.
|
77 |
+
);
|
78 |
+
}
|
79 |
+
|
80 |
// Styles.
|
81 |
wp_enqueue_style(
|
82 |
'ugb-block-editor-css', // Handle.
|
84 |
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
|
85 |
// filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // Version: filemtime — Gets file modification time.
|
86 |
);
|
87 |
+
|
88 |
+
wp_localize_script( 'ugb-block-js', 'stackable', array(
|
89 |
+
'blockSrcUrl' => plugins_url( '/block', __FILE__ ),
|
90 |
+
'isPro' => STACKABLE_IS_PRO,
|
91 |
+
) );
|
92 |
} // End function my_block_cgb_editor_assets().
|
93 |
|
94 |
// Hook: Editor assets.
|
src/pro.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
import { addAction } from './wp-imports'
|
2 |
+
addAction( 'stackable.get_pro', 'core', () => {
|
3 |
+
// TODO console.log('CALLED PRO!')
|
4 |
+
} );
|
src/wp-imports.js
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
export const { registerBlockType } = wp.blocks
|
2 |
|
3 |
export const { __ } = wp.i18n
|
@@ -11,7 +17,8 @@ export const {
|
|
11 |
IconButton,
|
12 |
Button,
|
13 |
Toolbar,
|
14 |
-
PanelBody
|
|
|
15 |
} = wp.components
|
16 |
|
17 |
export const {
|
@@ -32,4 +39,14 @@ export const {
|
|
32 |
export const {
|
33 |
omit,
|
34 |
merge,
|
35 |
-
} = lodash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Since Gutenberg keeps changing component locations,
|
3 |
+
* we just manage all the components & classes here
|
4 |
+
* and import this within all blocks to make maintenance easier.
|
5 |
+
*/
|
6 |
+
|
7 |
export const { registerBlockType } = wp.blocks
|
8 |
|
9 |
export const { __ } = wp.i18n
|
17 |
IconButton,
|
18 |
Button,
|
19 |
Toolbar,
|
20 |
+
PanelBody,
|
21 |
+
RadioControl,
|
22 |
} = wp.components
|
23 |
|
24 |
export const {
|
39 |
export const {
|
40 |
omit,
|
41 |
merge,
|
42 |
+
} = lodash
|
43 |
+
|
44 |
+
export const {
|
45 |
+
doAction,
|
46 |
+
addAction,
|
47 |
+
applyFilters,
|
48 |
+
addFilter,
|
49 |
+
} = wp.hooks
|
50 |
+
|
51 |
+
export const isPro = stackable.isPro
|
52 |
+
export const blockSrcUrl = stackable.blockSrcUrl
|