Blocksy Companion - Version 1.8.9.3

Version Description

Download this release

Release Info

Developer creativethemeshq
Plugin Icon wp plugin Blocksy Companion
Version 1.8.9.3
Comparing to
See all releases

Code changes from version 1.8.9.2 to 1.8.9.3

Files changed (53) hide show
  1. blocksy-companion.php +1 -1
  2. framework/extensions/cookies-consent/extension.php +1 -1
  3. framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
  4. framework/extensions/cookies-consent/static/bundle/sync.js +100 -1
  5. framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js +100 -1
  6. framework/extensions/newsletter-subscribe/admin-static/js/variables.js +73 -6
  7. framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php +18 -3
  8. framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php +1 -1
  9. framework/extensions/newsletter-subscribe/customizer.php +169 -20
  10. framework/extensions/newsletter-subscribe/extension.php +1 -1
  11. framework/extensions/newsletter-subscribe/global.php +130 -19
  12. framework/extensions/newsletter-subscribe/static/bundle/main.min.css +2 -2
  13. framework/extensions/newsletter-subscribe/static/sass/single-block.scss +2 -1
  14. framework/extensions/product-reviews/extension.php +82 -7
  15. framework/extensions/product-reviews/metabox.php +28 -1
  16. framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
  17. framework/extensions/product-reviews/static/bundle/main.min.css +2 -2
  18. framework/extensions/product-reviews/static/bundle/sync.js +100 -1
  19. framework/extensions/product-reviews/static/sass/main.scss +1 -1
  20. framework/extensions/product-reviews/static/sass/title.scss +7 -2
  21. framework/extensions/trending/extension.php +1 -1
  22. framework/extensions/trending/static/bundle/main.min.css +1 -1
  23. framework/extensions/trending/static/bundle/sync.js +100 -1
  24. framework/extensions/widgets/extension.php +1 -1
  25. framework/extensions/widgets/static/bundle/main.min.css +1 -1
  26. framework/extensions/widgets/widgets/ct-about-me/options.php +17 -2
  27. framework/extensions/widgets/widgets/ct-about-me/view.php +1 -1
  28. framework/extensions/widgets/widgets/ct-contact-info/options.php +15 -1
  29. framework/extensions/widgets/widgets/ct-contact-info/view.php +1 -1
  30. framework/extensions/widgets/widgets/ct-posts/view.php +1 -1
  31. framework/extensions/widgets/widgets/ct-quote/options.php +17 -3
  32. framework/extensions/widgets/widgets/ct-quote/view.php +1 -1
  33. framework/features/conditions-manager.php +54 -0
  34. framework/features/demo-install/required-plugins.php +10 -0
  35. framework/features/demo-install/wp-importer.php +2 -0
  36. framework/features/header.php +8 -2
  37. framework/helpers/helpers.php +2 -2
  38. framework/theme-integration.php +12 -2
  39. languages/blocksy-companion.pot +760 -594
  40. readme.txt +18 -1
  41. static/bundle/dashboard.min.css +1 -1
  42. static/bundle/options.js +1 -1
  43. static/bundle/options.min.css +1 -1
  44. static/bundle/sticky.js +1 -1
  45. static/js/frontend/sticky.js +60 -15
  46. static/js/frontend/sticky/auto-hide.js +6 -16
  47. static/js/frontend/sticky/fade-slide.js +2 -15
  48. static/js/frontend/sticky/shrink-handle-logo.js +61 -35
  49. static/js/frontend/sticky/shrink-handle-middle-row.js +18 -11
  50. static/js/frontend/sticky/shrink-utils.js +1 -1
  51. static/js/frontend/sticky/shrink.js +8 -35
  52. static/js/options/ConditionsManager.js +46 -2
  53. static/js/screens/OptIn.js +3 -3
blocksy-companion.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
- Version: 1.8.9.2
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
+ Version: 1.8.9.3
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
framework/extensions/cookies-consent/extension.php CHANGED
@@ -67,7 +67,7 @@ class BlocksyExtensionCookiesConsent {
67
  $data['Version'],
68
  true
69
  );
70
- });
71
 
72
  add_action('blocksy:global-dynamic-css:enqueue', function ($args) {
73
  blocksy_theme_get_dynamic_styles(array_merge([
67
  $data['Version'],
68
  true
69
  );
70
+ }, 50);
71
 
72
  add_action('blocksy:global-dynamic-css:enqueue', function ($args) {
73
  blocksy_theme_get_dynamic_styles(array_merge([
framework/extensions/cookies-consent/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.9.2
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.9.3
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/cookies-consent/static/bundle/sync.js CHANGED
@@ -1 +1,100 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=window.ctEvents},function(e,t,n){"use strict";n.r(t);var r,o=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var n=t.forcedOutput,r=void 0!==n&&n;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return r?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return r?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},o=document.querySelector("style#".concat(r[n])),c=o.innerText,i="".concat(e["".concat(n,"_selector_prefix")]?"".concat(e["".concat(n,"_selector_prefix")]," "):"").concat(e.selector||":root"),a=null,l=c.match(a);0===c.trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)),l||(0===(c="".concat(c," ").concat(i," { }")).trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a))),o.innerText=c.replace(a,l[0].indexOf("--".concat(e.variable,":"))>-1?l[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):l[0].replace(new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(i," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(r=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(r=o(t)),"box-shadow"===(e.type||"")&&(r=c(t,e)),i(e,"".concat(r).concat(e.unit||"").concat(e.important?" !important":""),n)},l=function(e,t){var n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),a(e,t.desktop,"desktop"),a(e,t.tablet,"tablet"),a(e,t.mobile,"mobile")):a(e,t)};r={cookieContentColor:[{selector:".cookie-notification",variable:"color",type:"color:default"},{selector:".cookie-notification",variable:"colorHover",type:"color:hover"}],cookieBackground:{selector:".cookie-notification",variable:"backgroundColor",type:"color"},cookieButtonBackground:[{selector:".cookie-notification",variable:"buttonInitialColor",type:"color:default"},{selector:".cookie-notification",variable:"buttonHoverColor",type:"color:hover"}],cookieMaxWidth:{selector:".cookie-notification",variable:"maxWidth",unit:"px"}},wp.customize.bind("change",(function(e){return r[e.id]&&(Array.isArray(r[e.id])?r[e.id]:[r[e.id]]).map((function(t){return l(t,e())}))}));var u=n(0),s=n.n(u);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(){var e=document.createElement("div");return e.innerHTML=document.querySelector(".ct-customizer-preview-cache-container").value,e},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";if(t||(t=h()),t.querySelector(".ct-customizer-preview-cache [data-".concat(n,'="').concat(e,'"]'))){var r=t.querySelector(".ct-customizer-preview-cache [data-".concat(n,'="').concat(e,'"]')).innerHTML,o=document.createElement("div");return o.innerHTML=r,o}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=y({fragment_id:null,selector:null,parent_selector:null,strategy:"append",whenInserted:function(){},beforeInsert:function(e){},should_insert:!0},e);var t=document.querySelector(e.parent_selector);if(p(document.querySelectorAll("".concat(e.parent_selector," ").concat(e.selector))).map((function(e){return e.parentNode.removeChild(e)})),e.should_insert){var n=g(e.fragment_id);if(n){for(;n.firstElementChild;)if(e.beforeInsert(n.firstElementChild),"append"===e.strategy&&t.appendChild(n.firstElementChild),"firstChild"===e.strategy&&t.insertBefore(n.firstElementChild,t.firstElementChild),e.strategy.indexOf("maybeBefore")>-1){var r=e.strategy.split(":"),o=f(r,2),c=(o[0],o[1]);t.querySelector(c)?t.insertBefore(n.firstElementChild,t.querySelector(c)):t.appendChild(n.firstElementChild)}e.whenInserted()}}};function _(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=function(){var e=function(e){if(!document.querySelector(".cookie-notification"))return S({fragment_id:"blocksy-cookies-consent-section",selector:".cookie-notification",parent_selector:"#main-container"}),!0}(),t=document.querySelector(".cookie-notification");if(t){t.querySelector(".ct-cookies-content")&&(t.querySelector(".ct-cookies-content").innerHTML=wp.customize("cookie_consent_content")()),t.querySelector("button.ct-accept").innerHTML=wp.customize("cookie_consent_button_text")();var n=wp.customize("cookie_consent_type")();t.dataset.type=n,t.firstElementChild.classList.remove("ct-container","container"),t.firstElementChild.classList.add("type-1"===n?"container":"ct-container"),e&&setTimeout((function(){return s.a.trigger("blocksy:cookies:init")}))}};wp.customize("cookie_consent_content",(function(e){return e.bind((function(e){O()}))})),wp.customize("cookie_consent_button_text",(function(e){return e.bind((function(e){return O()}))})),wp.customize("cookie_consent_type",(function(e){return e.bind((function(e){return O()}))})),wp.customize("forms_cookie_consent_content",(function(e){return e.bind((function(e){return _(document.querySelectorAll(".gdpr-confirm-policy label")).map((function(t){return t.innerHTML=e}))}))}))}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,c=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<i;a=n[++r])h(a)||!T(a)?c+=" "+a:c+=" "+s(a);return c},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var i,c={};function s(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),l(n,e,n.depth)}function a(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=l(e,o,n)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(h(t))return e.stylize("null","null")}(e,r);if(i)return i;var c=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(c);if(e.showHidden&&(c=Object.getOwnPropertyNames(r)),w(r)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return p(r);if(0===c.length){if(O(r)){var a=r.name?": "+r.name:"";return e.stylize("[Function"+a+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(w(r))return p(r)}var u,T="",x=!1,_=["{","}"];(d(r)&&(x=!0,_=["[","]"]),O(r))&&(T=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(T=" "+RegExp.prototype.toString.call(r)),k(r)&&(T=" "+Date.prototype.toUTCString.call(r)),w(r)&&(T=" "+p(r)),0!==c.length||x&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,n,o){for(var i=[],c=0,s=t.length;c<s;++c)P(t,String(c))?i.push(f(e,t,r,n,String(c),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,r,n,s,c):c.map((function(t){return f(e,r,n,s,t,x)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,T,_)):_[0]+T+_[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,i){var c,s,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(s=e.stylize("[Setter]","special")),P(n,o)||(c="["+o+"]"),s||(e.seen.indexOf(a.value)<0?(s=h(r)?l(e,a.value,null):l(e,a.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(c)){if(i&&o.match(/^\d+$/))return s;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=e.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,"string"))}return c+": "+s}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function g(e){return T(e)&&"[object RegExp]"===x(e)}function T(e){return"object"==typeof e&&null!==e}function k(e){return T(e)&&"[object Date]"===x(e)}function w(e){return T(e)&&("[object Error]"===x(e)||e instanceof Error)}function O(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(i)&&(i=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!c[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var n=e.pid;c[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else c[r]=function(){};return c[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=g,t.isObject=T,t.isDate=k,t.isError=w,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(3);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(4),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=R,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,c=function(){return o.apply(i,arguments)};t.apply(this,r).then((function(t){e.nextTick(c,null,t)}),(function(t){e.nextTick(E,t,c)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}}).call(this,r(2))},function(e,t){e.exports=window.ctEvents},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var a,u=[],l=!1,p=-1;function f(){l&&a&&(l=!1,a.length?u=a.concat(u):p=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(a=u,u=[];++p<t;)a&&a[p].run();p=-1,t=u.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===c||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new y(e,t)),1!==u.length||l||s(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(r,!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},l=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e},p=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return n?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e,t){return e(t={exports:{}},t.exports),t.exports}var y=d((function(e,t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
7
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
8
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
9
+ * Google as part of the polymer project is also subject to an additional IP
10
+ * rights grant found at http://polymer.github.io/PATENTS.txt
11
+ */
12
+ Object.defineProperty(t,"__esModule",{value:!0});t.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},function(e){e.stylesheet="stylesheet",e.comment="comment",e.atRule="atRule",e.ruleset="ruleset",e.expression="expression",e.declaration="declaration",e.rulelist="rulelist",e.discarded="discarded"}(t.nodeType||(t.nodeType={}))}));f(y);y.matcher,y.nodeType;var h=d((function(e,t){
13
+ /**
14
+ * @license
15
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
16
+ * This code may only be used under the BSD style license found at
17
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
18
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
19
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
20
+ * Google as part of the polymer project is also subject to an additional IP
21
+ * rights grant found at http://polymer.github.io/PATENTS.txt
22
+ */
23
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=function*e(t){switch(yield t,t.type){case y.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case y.nodeType.ruleset:return yield*e(t.rulelist);case y.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case y.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case y.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case y.nodeType.expression:case y.nodeType.comment:case y.nodeType.discarded:return;default:const r=t;console.error("Got a node of unknown type: "+o.a.inspect(r))}}}));f(h);h.iterateOverAst;var m=d((function(e,t){
24
+ /**
25
+ * @license
26
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
27
+ * This code may only be used under the BSD style license found at
28
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
29
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
30
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
31
+ * Google as part of the polymer project is also subject to an additional IP
32
+ * rights grant found at http://polymer.github.io/PATENTS.txt
33
+ */
34
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeFactory=class{stylesheet(e,t){return{type:y.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,r,n,o,i){return{type:y.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:i}}comment(e,t){return{type:y.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:y.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:y.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:y.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:y.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:y.nodeType.discarded,text:e,range:t}}}}));f(m);m.NodeFactory;var v=d((function(e,t){
35
+ /**
36
+ * @license
37
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
38
+ * This code may only be used under the BSD style license found at
39
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
40
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
41
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
42
+ * Google as part of the polymer project is also subject to an additional IP
43
+ * rights grant found at http://polymer.github.io/PATENTS.txt
44
+ */
45
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}}}));f(v);v.NodeVisitor;var b=d((function(e,t){var r;
46
+ /**
47
+ * @license
48
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
49
+ * This code may only be used under the BSD style license found at
50
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
51
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
52
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
53
+ * Google as part of the polymer project is also subject to an additional IP
54
+ * rights grant found at http://polymer.github.io/PATENTS.txt
55
+ */
56
+ Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(r=t.TokenType||(t.TokenType={}));class n{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=r,t.Token=n;const o={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};t.boundaryTokenTypes=o}));f(b);b.TokenType,b.Token,b.boundaryTokenTypes;var g=d((function(e,t){
57
+ /**
58
+ * @license
59
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
60
+ * This code may only be used under the BSD style license found at
61
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
62
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
63
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
64
+ * Google as part of the polymer project is also subject to an additional IP
65
+ * rights grant found at http://polymer.github.io/PATENTS.txt
66
+ */
67
+ Object.defineProperty(t,"__esModule",{value:!0});t.Tokenizer=class{constructor(e){this.cursorToken_=new b.Token(b.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t){const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e,t){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=y.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):y.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):y.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new b.Token(b.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!y.matcher.boundary.test(r);)e++;return new b.Token(b.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;y.matcher.whitespaceGreedy.lastIndex=e;const r=y.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=y.matcher.whitespaceGreedy.lastIndex),new b.Token(b.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;return y.matcher.commentGreedy.lastIndex=e,e=null==y.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:y.matcher.commentGreedy.lastIndex,new b.Token(b.Token.type.comment,t,e)}tokenizeBoundary(e){const t=b.boundaryTokenTypes[this.cssText[e]]||b.Token.type.boundary;return new b.Token(t,e,e+1)}}}));f(g);g.Tokenizer;var T=d((function(e,t){
68
+ /**
69
+ * @license
70
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
71
+ * This code may only be used under the BSD style license found at
72
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
73
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
74
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
75
+ * Google as part of the polymer project is also subject to an additional IP
76
+ * rights grant found at http://polymer.github.io/PATENTS.txt
77
+ */
78
+ Object.defineProperty(t,"__esModule",{value:!0});t.Parser=class{constructor(e=new m.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new g.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const r=this.parseRule(e);r&&t.push(r)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(b.Token.type.whitespace)?(e.advance(),null):t.is(b.Token.type.comment)?this.parseComment(e):t.is(b.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(b.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(b.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(b.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;if(!e.currentToken)return null;const c=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(b.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(b.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(b.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(b.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(b.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===r)return null;let s=void 0,a="";o&&(s=e.trimRange(e.getRange(o,i)),a=e.cssText.slice(s.start,s.end));const u=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,a,n,r,s,{start:c,end:u})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(b.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=null;for(;e.currentToken;)if(e.currentToken.is(b.Token.type.whitespace))e.advance();else if(e.currentToken.is(b.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(b.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(b.Token.type.openBrace)||e.currentToken.is(b.Token.type.propertyBoundary))break;e.currentToken.is(b.Token.type.colon)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(b.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),i=e.cssText.slice(o.start,o.end);let c=void 0;if(n&&n.next){const t=e.getRange(n.next,r),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);c=this.nodeFactory.expression(i,o)}e.currentToken.is(b.Token.type.semicolon)&&e.advance();const s=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,c,o,s)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(b.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),i=e.cssText.slice(o.start,o.end),c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,n,o,c)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.end),i=this.parseRulelist(e),c=t.start;let s;return s=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,n,{start:c,end:s})}}}}));f(T);T.Parser;var k=d((function(e,t){
79
+ /**
80
+ * @license
81
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
82
+ * This code may only be used under the BSD style license found at
83
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
84
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
85
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
86
+ * Google as part of the polymer project is also subject to an additional IP
87
+ * rights grant found at http://polymer.github.io/PATENTS.txt
88
+ */
89
+ Object.defineProperty(t,"__esModule",{value:!0});class r extends v.NodeVisitor{stringify(e){return this.visit(e)||""}[y.nodeType.stylesheet](e){let t="";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t}[y.nodeType.atRule](e){return"@"+e.name+(e.parameters?" "+e.parameters:"")+(e.rulelist?""+this.visit(e.rulelist):";")}[y.nodeType.rulelist](e){let t="{";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t+"}"}[y.nodeType.comment](e){return""+e.value}[y.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[y.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:e.name+";"}[y.nodeType.expression](e){return""+e.text}[y.nodeType.discarded](e){return""}}t.Stringifier=r}));f(k);k.Stringifier;var w=d((function(e,t){
90
+ /**
91
+ * @license
92
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
93
+ * This code may only be used under the BSD style license found at
94
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
95
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
96
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
97
+ * Google as part of the polymer project is also subject to an additional IP
98
+ * rights grant found at http://polymer.github.io/PATENTS.txt
99
+ */
100
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=h.iterateOverAst,t.nodeType=y.nodeType,t.NodeFactory=m.NodeFactory,t.NodeVisitor=v.NodeVisitor,t.Parser=T.Parser,t.Stringifier=k.Stringifier,t.Token=b.Token,t.Tokenizer=g.Tokenizer}));f(w);w.iterateOverAst,w.nodeType,w.NodeFactory,w.NodeVisitor;var O,x=w.Parser,_=w.Stringifier,S=(w.Token,w.Tokenizer,{desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"}),j={desktop:{ast:{}},tablet:{ast:{}},mobile:{ast:{}}},P=function(e){return e&&"[object Function]"==={}.toString.call(e)},R=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n="".concat(e["".concat(r,"_selector_prefix")]?"".concat(e["".concat(r,"_selector_prefix")]," "):"").concat(e.selector||":root"),o="--";"property"===e.variableType&&(o="");var i="".concat(o).concat(P(e.variable)?e.variable():e.variable),c=j[r].ast.rules.find((function(e){return e.selector===n})),u=j[r].ast.rules.find((function(e){var t=e.type,r=e.rulelist;return"ruleset"===t&&r.rules.length>0})),l=s({},j[r].ast,{rules:c?j[r].ast.rules.map((function(e){if(e.selector!==n)return e;if(t.indexOf("CT_CSS_SKIP_RULE")>-1)return s({},e,{rulelist:s({},e.rulelist,{rules:e.rulelist.rules.filter((function(e){return e.name!==i}))})});var r=e.rulelist.rules.find((function(e){return e.name===i}));return s({},e,{rulelist:s({},e.rulelist,{rules:r?e.rulelist.rules.map((function(e){return e.name===i?s({},e,{value:s({},e.value,{text:t})}):e})):[].concat(a(e.rulelist.rules),[s({},u.rulelist.rules[0],{name:i,value:s({},u.rulelist.rules[0].value,{text:t})})])})})})):[].concat(a(j[r].ast.rules),[s({},u,{selector:n,rulelist:s({},u.rulelist,{rules:[s({},u.rulelist.rules[0],{name:i,value:s({},u.rulelist.rules[0].value,{text:t})})]})})])}),p=new _;j[r].ast=l,document.querySelector("style#".concat(S[r])).innerText=p.stringify(l)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.variableDescriptor,r=e.value,n=e.device,o=void 0===n?"desktop":n,i=e.customReplaceVariableInStyleTag,c=void 0===i?null:i,s=(t.type||"").indexOf("color")>-1?r["color"===t.type?"default":t.type.split(":")[1]].color:r;"border"===(t.type||"")&&(s=r&&"none"!==r.style?"".concat(r.width,"px ").concat(r.style," ").concat(r.color.color):"none",t.skip_none&&"none"===s&&(s="CT_CSS_SKIP_RULE")),"spacing"===(t.type||"")&&(s=u(r)),"box-shadow"===(t.type||"")&&(s=p(r,t)),c?c({replaceVariableInStyleTag:R,variableDescriptor:t,value:"".concat(s).concat(t.unit||"").concat(t.important?" !important":""),device:o}):R(t,"".concat(s).concat(t.unit||"").concat(t.important?" !important":""),o)};O={cookieContentColor:[{selector:".cookie-notification",variable:"color",type:"color:default"},{selector:".cookie-notification",variable:"colorHover",type:"color:hover"}],cookieBackground:{selector:".cookie-notification",variable:"backgroundColor",type:"color"},cookieButtonBackground:[{selector:".cookie-notification",variable:"buttonInitialColor",type:"color:default"},{selector:".cookie-notification",variable:"buttonHoverColor",type:"color:hover"}],cookieMaxWidth:{selector:".cookie-notification",variable:"maxWidth",unit:"px"}},Object.keys(S).map((function(e){var t=document.querySelector("style#".concat(S[e]));if(t){var r=t.innerText,n=new x,o=(new _,n.parse(r));j[e].ast=o}})),wp.customize.bind("change",(function(e){if(O[e.id]){var t=O[e.id];P(t)&&(t=t(e())),Array.isArray(t)||(t=[t]),t.map((function(t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=l(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),E({variableDescriptor:e,value:t.desktop,device:"desktop",customReplaceVariableInStyleTag:r}),E({variableDescriptor:e,value:t.tablet,device:"tablet",customReplaceVariableInStyleTag:r}),E({variableDescriptor:e,value:t.mobile,device:"mobile",customReplaceVariableInStyleTag:r})):E({variableDescriptor:e,value:t,customReplaceVariableInStyleTag:r})}(t,e())}))}}));var z=r(1),A=r.n(z);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,s=e[Symbol.iterator]();!(n=(c=s.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||I(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L=function(){var e=document.createElement("div");return e.innerHTML=document.querySelector(".ct-customizer-preview-cache-container").value,e},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";if(t||(t=L()),t.querySelector(".ct-customizer-preview-cache [data-".concat(r,'="').concat(e,'"]'))){var n=t.querySelector(".ct-customizer-preview-cache [data-".concat(r,'="').concat(e,'"]')).innerHTML,o=document.createElement("div");return o.innerHTML=n,o}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=B({fragment_id:null,selector:null,parent_selector:null,strategy:"append",whenInserted:function(){},beforeInsert:function(e){},should_insert:!0},e);var t=document.querySelector(e.parent_selector);if(M(document.querySelectorAll("".concat(e.parent_selector," ").concat(e.selector))).map((function(e){return e.parentNode.removeChild(e)})),e.should_insert){var r=U(e.fragment_id);if(r){for(;r.firstElementChild;)if(e.beforeInsert(r.firstElementChild),"append"===e.strategy&&t.appendChild(r.firstElementChild),"firstChild"===e.strategy&&t.insertBefore(r.firstElementChild,t.firstElementChild),e.strategy.indexOf("maybeBefore")>-1){var n=e.strategy.split(":"),o=C(n,2),i=(o[0],o[1]);t.querySelector(i)?t.insertBefore(r.firstElementChild,t.querySelector(i)):t.appendChild(r.firstElementChild)}e.whenInserted()}}};function V(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var G=function(){var e=function(e){if(!document.querySelector(".cookie-notification"))return q({fragment_id:"blocksy-cookies-consent-section",selector:".cookie-notification",parent_selector:"#main-container"}),!0}(),t=document.querySelector(".cookie-notification");if(t){t.querySelector(".ct-cookies-content")&&(t.querySelector(".ct-cookies-content").innerHTML=wp.customize("cookie_consent_content")()),t.querySelector("button.ct-accept").innerHTML=wp.customize("cookie_consent_button_text")();var r=wp.customize("cookie_consent_type")();t.dataset.type=r,t.firstElementChild.classList.remove("ct-container","container"),t.firstElementChild.classList.add("type-1"===r?"container":"ct-container"),e&&setTimeout((function(){return A.a.trigger("blocksy:cookies:init")}))}};wp.customize("cookie_consent_content",(function(e){return e.bind((function(e){G()}))})),wp.customize("cookie_consent_button_text",(function(e){return e.bind((function(e){return G()}))})),wp.customize("cookie_consent_type",(function(e){return e.bind((function(e){return G()}))})),wp.customize("forms_cookie_consent_content",(function(e){return e.bind((function(e){return V(document.querySelectorAll(".gdpr-confirm-policy label")).map((function(t){return t.innerHTML=e}))}))}))}]);
framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js CHANGED
@@ -1 +1,100 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,r){"use strict";r.r(t);var n,o=r(0),c=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},s=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return n?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")},i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},o=document.querySelector("style#".concat(n[r])),c=o.innerText,s="".concat(e["".concat(r,"_selector_prefix")]?"".concat(e["".concat(r,"_selector_prefix")]," "):"").concat(e.selector||":root"),i=null,a=c.match(i);0===c.trim().indexOf(s)?(i=new RegExp("".concat(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),a=c.match(i)):(i=new RegExp("\\}\\s*?".concat(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),a=c.match(i)),a||(0===(c="".concat(c," ").concat(s," { }")).trim().indexOf(s)?(i=new RegExp("".concat(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),a=c.match(i)):(i=new RegExp("\\}\\s*?".concat(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),a=c.match(i))),o.innerText=c.replace(i,a[0].indexOf("--".concat(e.variable,":"))>-1?a[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):a[0].replace(new RegExp("".concat(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(s," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(n=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(n=c(t)),"box-shadow"===(e.type||"")&&(n=s(t,e)),i(e,"".concat(n).concat(e.unit||"").concat(e.important?" !important":""),r)},l=function(e,t){var r=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,r),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),a(e,t.desktop,"desktop"),a(e,t.tablet,"tablet"),a(e,t.mobile,"mobile")):a(e,t)};n={newsletter_subscribe_content:[{selector:".ct-newsletter-subscribe-block",variable:"color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"linkHoverColor",type:"color:hover"}],newsletter_subscribe_button:[{selector:".ct-newsletter-subscribe-block",variable:"buttonInitialColor",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"buttonHoverColor",type:"color:hover"}],newsletter_subscribe_background:{selector:".ct-newsletter-subscribe-block",variable:"mailchimpBackground",type:"color"},newsletter_subscribe_shadow:{selector:".ct-newsletter-subscribe-block",type:"box-shadow",variable:"box-shadow",responsive:!0},newsletter_subscribe_spacing:{selector:".ct-newsletter-subscribe-block",variable:"padding",responsive:!0,unit:"px"}},wp.customize.bind("change",(function(e){return n[e.id]&&(Array.isArray(n[e.id])?n[e.id]:[n[e.id]]).map((function(t){return l(t,e())}))})),wp.customize("newsletter_subscribe_subscribe_visibility",(function(e){return e.bind((function(e){var t=document.querySelector(".ct-newsletter-subscribe-block");Object(o.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",t)}))})),(document.body.classList.contains("single")||document.body.classList.contains("page"))&&Object(o.checkAndReplace)({id:"newsletter_subscribe_single_post_enabled",strategy:"append",parent_selector:".site-main article",selector:".ct-newsletter-subscribe-block",fragment_id:"blocksy-mailchimp-subscribe",watch:["has_newsletter_subscribe_name","newsletter_subscribe_button_text","newsletter_subscribe_title","newsletter_subscribe_text","newsletter_subscribe_name_label","newsletter_subscribe_mail_label"],whenInserted:function(){if(document.body.classList.contains("single")||document.body.classList.contains("page")){var e=document.querySelector(".ct-newsletter-subscribe-block");Object(o.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",e),"yes"!==wp.customize("has_newsletter_subscribe_name")()?(e.querySelector("[data-fields]").dataset.fields=1,e.querySelector('[name="FNAME"]').remove()):(e.querySelector("[data-fields]").dataset.fields=2,e.querySelector('[name="FNAME"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_name_label")()))),e.querySelector('[name="EMAIL"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_mail_label")()," *")),e.querySelector("button").innerHTML=wp.customize("newsletter_subscribe_button_text")(),e.querySelector("h3").innerHTML=wp.customize("newsletter_subscribe_title")(),e.querySelector(".ct-newsletter-subscribe-description").innerHTML=wp.customize("newsletter_subscribe_text")()}}})}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,s=n.length,i=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r<s;u=n[++r])b(u)||!T(u)?i+=" "+u:i+=" "+c(u);return i},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var s,i={};function c(e,r){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function a(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=l(e,o,n)),o}var s=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(h(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(s)return s;var i=Object.keys(r),c=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),k(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return p(r);if(0===i.length){if(_(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return p(r)}var a,T="",O=!1,x=["{","}"];(d(r)&&(O=!0,x=["[","]"]),_(r))&&(T=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(T=" "+RegExp.prototype.toString.call(r)),w(r)&&(T=" "+Date.prototype.toUTCString.call(r)),k(r)&&(T=" "+p(r)),0!==i.length||O&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),a=O?function(e,t,r,n,o){for(var s=[],i=0,c=t.length;i<c;++i)P(t,String(i))?s.push(f(e,t,r,n,String(i),!0)):s.push("");return o.forEach((function(o){o.match(/^\d+$/)||s.push(f(e,t,r,n,o,!0))})),s}(e,r,n,c,i):i.map((function(t){return f(e,r,n,c,t,O)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(a,T,x)):x[0]+T+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,s){var i,c,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(c=e.stylize("[Setter]","special")),P(n,o)||(i="["+o+"]"),c||(e.seen.indexOf(u.value)<0?(c=b(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(c=s?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),m(i)){if(s&&o.match(/^\d+$/))return c;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+c}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function h(e){return"number"==typeof e}function v(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return T(e)&&"[object RegExp]"===O(e)}function T(e){return"object"==typeof e&&null!==e}function w(e){return T(e)&&"[object Date]"===O(e)}function k(e){return T(e)&&("[object Error]"===O(e)||e instanceof Error)}function _(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(m(s)&&(s=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!i[r])if(new RegExp("\\b"+r+"\\b","i").test(s)){var n=e.pid;i[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else i[r]=function(){};return i[r]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=h,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=g,t.isObject=T,t.isDate=w,t.isError=k,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(3);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(4),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function z(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=R,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var s=this,i=function(){return o.apply(s,arguments)};t.apply(this,r).then((function(t){e.nextTick(i,null,t)}),(function(t){e.nextTick(z,t,i)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}}).call(this,r(2))},function(e,t){var r,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var u,a=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?a=u.concat(a):p=-1,a.length&&d())}function d(){if(!l){var e=c(f);l=!0;for(var t=a.length;t;){for(u=a,a=[];++p<t;)u&&u[p].run();p=-1,t=a.length}u=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function b(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new y(e,t)),1!==a.length||l||c(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(1),s=r.n(o);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(r,!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var l=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},p=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e},f=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return n?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y(e,t){return e(t={exports:{}},t.exports),t.exports}var b=y((function(e,t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
7
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
8
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
9
+ * Google as part of the polymer project is also subject to an additional IP
10
+ * rights grant found at http://polymer.github.io/PATENTS.txt
11
+ */
12
+ Object.defineProperty(t,"__esModule",{value:!0});t.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},function(e){e.stylesheet="stylesheet",e.comment="comment",e.atRule="atRule",e.ruleset="ruleset",e.expression="expression",e.declaration="declaration",e.rulelist="rulelist",e.discarded="discarded"}(t.nodeType||(t.nodeType={}))}));d(b);b.matcher,b.nodeType;var h=y((function(e,t){
13
+ /**
14
+ * @license
15
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
16
+ * This code may only be used under the BSD style license found at
17
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
18
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
19
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
20
+ * Google as part of the polymer project is also subject to an additional IP
21
+ * rights grant found at http://polymer.github.io/PATENTS.txt
22
+ */
23
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=function*e(t){switch(yield t,t.type){case b.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case b.nodeType.ruleset:return yield*e(t.rulelist);case b.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case b.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case b.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case b.nodeType.expression:case b.nodeType.comment:case b.nodeType.discarded:return;default:const r=t;console.error("Got a node of unknown type: "+s.a.inspect(r))}}}));d(h);h.iterateOverAst;var v=y((function(e,t){
24
+ /**
25
+ * @license
26
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
27
+ * This code may only be used under the BSD style license found at
28
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
29
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
30
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
31
+ * Google as part of the polymer project is also subject to an additional IP
32
+ * rights grant found at http://polymer.github.io/PATENTS.txt
33
+ */
34
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeFactory=class{stylesheet(e,t){return{type:b.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,r,n,o,s){return{type:b.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:s}}comment(e,t){return{type:b.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:b.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:b.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:b.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:b.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:b.nodeType.discarded,text:e,range:t}}}}));d(v);v.NodeFactory;var m=y((function(e,t){
35
+ /**
36
+ * @license
37
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
38
+ * This code may only be used under the BSD style license found at
39
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
40
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
41
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
42
+ * Google as part of the polymer project is also subject to an additional IP
43
+ * rights grant found at http://polymer.github.io/PATENTS.txt
44
+ */
45
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}}}));d(m);m.NodeVisitor;var g=y((function(e,t){var r;
46
+ /**
47
+ * @license
48
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
49
+ * This code may only be used under the BSD style license found at
50
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
51
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
52
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
53
+ * Google as part of the polymer project is also subject to an additional IP
54
+ * rights grant found at http://polymer.github.io/PATENTS.txt
55
+ */
56
+ Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(r=t.TokenType||(t.TokenType={}));class n{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=r,t.Token=n;const o={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};t.boundaryTokenTypes=o}));d(g);g.TokenType,g.Token,g.boundaryTokenTypes;var T=y((function(e,t){
57
+ /**
58
+ * @license
59
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
60
+ * This code may only be used under the BSD style license found at
61
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
62
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
63
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
64
+ * Google as part of the polymer project is also subject to an additional IP
65
+ * rights grant found at http://polymer.github.io/PATENTS.txt
66
+ */
67
+ Object.defineProperty(t,"__esModule",{value:!0});t.Tokenizer=class{constructor(e){this.cursorToken_=new g.Token(g.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t){const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e,t){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=b.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):b.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):b.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new g.Token(g.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!b.matcher.boundary.test(r);)e++;return new g.Token(g.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;b.matcher.whitespaceGreedy.lastIndex=e;const r=b.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=b.matcher.whitespaceGreedy.lastIndex),new g.Token(g.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;return b.matcher.commentGreedy.lastIndex=e,e=null==b.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:b.matcher.commentGreedy.lastIndex,new g.Token(g.Token.type.comment,t,e)}tokenizeBoundary(e){const t=g.boundaryTokenTypes[this.cssText[e]]||g.Token.type.boundary;return new g.Token(t,e,e+1)}}}));d(T);T.Tokenizer;var w=y((function(e,t){
68
+ /**
69
+ * @license
70
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
71
+ * This code may only be used under the BSD style license found at
72
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
73
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
74
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
75
+ * Google as part of the polymer project is also subject to an additional IP
76
+ * rights grant found at http://polymer.github.io/PATENTS.txt
77
+ */
78
+ Object.defineProperty(t,"__esModule",{value:!0});t.Parser=class{constructor(e=new v.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new T.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const r=this.parseRule(e);r&&t.push(r)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(g.Token.type.whitespace)?(e.advance(),null):t.is(g.Token.type.comment)?this.parseComment(e):t.is(g.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(g.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(g.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(g.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t=void 0,r=void 0,n=void 0,o=void 0,s=void 0;if(!e.currentToken)return null;const i=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(g.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(g.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(g.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(g.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(g.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():s=e.advance()}if(void 0===t||void 0===r)return null;let c=void 0,u="";o&&(c=e.trimRange(e.getRange(o,s)),u=e.cssText.slice(c.start,c.end));const a=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,u,n,r,c,{start:i,end:a})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(g.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=null;for(;e.currentToken;)if(e.currentToken.is(g.Token.type.whitespace))e.advance();else if(e.currentToken.is(g.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(g.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(g.Token.type.openBrace)||e.currentToken.is(g.Token.type.propertyBoundary))break;e.currentToken.is(g.Token.type.colon)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(g.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),s=e.cssText.slice(o.start,o.end);let i=void 0;if(n&&n.next){const t=e.getRange(n.next,r),o=e.trimRange(t),s=e.cssText.slice(o.start,o.end);i=this.nodeFactory.expression(s,o)}e.currentToken.is(g.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(s,i,o,c)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(g.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),s=e.cssText.slice(o.start,o.end),i=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(s,n,o,i)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.end),s=this.parseRulelist(e),i=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,s,n,{start:i,end:c})}}}}));d(w);w.Parser;var k=y((function(e,t){
79
+ /**
80
+ * @license
81
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
82
+ * This code may only be used under the BSD style license found at
83
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
84
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
85
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
86
+ * Google as part of the polymer project is also subject to an additional IP
87
+ * rights grant found at http://polymer.github.io/PATENTS.txt
88
+ */
89
+ Object.defineProperty(t,"__esModule",{value:!0});class r extends m.NodeVisitor{stringify(e){return this.visit(e)||""}[b.nodeType.stylesheet](e){let t="";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t}[b.nodeType.atRule](e){return"@"+e.name+(e.parameters?" "+e.parameters:"")+(e.rulelist?""+this.visit(e.rulelist):";")}[b.nodeType.rulelist](e){let t="{";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t+"}"}[b.nodeType.comment](e){return""+e.value}[b.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[b.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:e.name+";"}[b.nodeType.expression](e){return""+e.text}[b.nodeType.discarded](e){return""}}t.Stringifier=r}));d(k);k.Stringifier;var _=y((function(e,t){
90
+ /**
91
+ * @license
92
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
93
+ * This code may only be used under the BSD style license found at
94
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
95
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
96
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
97
+ * Google as part of the polymer project is also subject to an additional IP
98
+ * rights grant found at http://polymer.github.io/PATENTS.txt
99
+ */
100
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=h.iterateOverAst,t.nodeType=b.nodeType,t.NodeFactory=v.NodeFactory,t.NodeVisitor=m.NodeVisitor,t.Parser=w.Parser,t.Stringifier=k.Stringifier,t.Token=g.Token,t.Tokenizer=T.Tokenizer}));d(_);_.iterateOverAst,_.nodeType,_.NodeFactory,_.NodeVisitor;var O,x=_.Parser,S=_.Stringifier,j=(_.Token,_.Tokenizer,{desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"}),P={desktop:{ast:{}},tablet:{ast:{}},mobile:{ast:{}}},R=function(e){return e&&"[object Function]"==={}.toString.call(e)},z=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n="".concat(e["".concat(r,"_selector_prefix")]?"".concat(e["".concat(r,"_selector_prefix")]," "):"").concat(e.selector||":root"),o="--";"property"===e.variableType&&(o="");var s="".concat(o).concat(R(e.variable)?e.variable():e.variable),i=P[r].ast.rules.find((function(e){return e.selector===n})),c=P[r].ast.rules.find((function(e){var t=e.type,r=e.rulelist;return"ruleset"===t&&r.rules.length>0})),l=u({},P[r].ast,{rules:i?P[r].ast.rules.map((function(e){if(e.selector!==n)return e;if(t.indexOf("CT_CSS_SKIP_RULE")>-1)return u({},e,{rulelist:u({},e.rulelist,{rules:e.rulelist.rules.filter((function(e){return e.name!==s}))})});var r=e.rulelist.rules.find((function(e){return e.name===s}));return u({},e,{rulelist:u({},e.rulelist,{rules:r?e.rulelist.rules.map((function(e){return e.name===s?u({},e,{value:u({},e.value,{text:t})}):e})):[].concat(a(e.rulelist.rules),[u({},c.rulelist.rules[0],{name:s,value:u({},c.rulelist.rules[0].value,{text:t})})])})})})):[].concat(a(P[r].ast.rules),[u({},c,{selector:n,rulelist:u({},c.rulelist,{rules:[u({},c.rulelist.rules[0],{name:s,value:u({},c.rulelist.rules[0].value,{text:t})})]})})])}),p=new S;P[r].ast=l,document.querySelector("style#".concat(j[r])).innerText=p.stringify(l)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.variableDescriptor,r=e.value,n=e.device,o=void 0===n?"desktop":n,s=e.customReplaceVariableInStyleTag,i=void 0===s?null:s,c=(t.type||"").indexOf("color")>-1?r["color"===t.type?"default":t.type.split(":")[1]].color:r;"border"===(t.type||"")&&(c=r&&"none"!==r.style?"".concat(r.width,"px ").concat(r.style," ").concat(r.color.color):"none",t.skip_none&&"none"===c&&(c="CT_CSS_SKIP_RULE")),"spacing"===(t.type||"")&&(c=l(r)),"box-shadow"===(t.type||"")&&(c=f(r,t)),i?i({replaceVariableInStyleTag:z,variableDescriptor:t,value:"".concat(c).concat(t.unit||"").concat(t.important?" !important":""),device:o}):z(t,"".concat(c).concat(t.unit||"").concat(t.important?" !important":""),o)};function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}O=F(F({newsletter_subscribe_title_color:{selector:".ct-newsletter-subscribe-block",variable:"heading-color",type:"color:default",responsive:!0},newsletter_subscribe_content:[{selector:".ct-newsletter-subscribe-block",variable:"color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"linkHoverColor",type:"color:hover"}],newsletter_subscribe_button:[{selector:".ct-newsletter-subscribe-block",variable:"buttonInitialColor",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"buttonHoverColor",type:"color:hover"}],newsletter_subscribe_input_font_color:[{selector:".ct-newsletter-subscribe-block",variable:"form-text-initial-color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-text-focus-color",type:"color:focus"}],newsletter_subscribe_border_color:[{selector:".ct-newsletter-subscribe-block",variable:"form-field-border-initial-color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-field-border-focus-color",type:"color:focus"}],newsletter_subscribe_input_background:[{selector:".ct-newsletter-subscribe-block",variable:"form-field-initial-background",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-field-focus-background",type:"color:focus"}]},Object(n.handleBackgroundOptionFor)({id:"newsletter_subscribe_container_background",selector:".ct-newsletter-subscribe-block",responsive:!0})),{},{newsletter_subscribe_container_border:{selector:".ct-newsletter-subscribe-block",variable:"newsletter-container-border",type:"border",responsive:!0,skip_none:!0},newsletter_subscribe_shadow:{selector:".ct-newsletter-subscribe-block",type:"box-shadow",variable:"box-shadow",responsive:!0},newsletter_subscribe_container_spacing:{selector:".ct-newsletter-subscribe-block",type:"spacing",variable:"padding",responsive:!0},newsletter_subscribe_container_border_radius:{selector:".ct-newsletter-subscribe-block",type:"spacing",variable:"border-radius",responsive:!0}}),Object.keys(j).map((function(e){var t=document.querySelector("style#".concat(j[e]));if(t){var r=t.innerText,n=new x,o=(new S,n.parse(r));P[e].ast=o}})),wp.customize.bind("change",(function(e){if(O[e.id]){var t=O[e.id];R(t)&&(t=t(e())),Array.isArray(t)||(t=[t]),t.map((function(t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=p(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),E({variableDescriptor:e,value:t.desktop,device:"desktop",customReplaceVariableInStyleTag:r}),E({variableDescriptor:e,value:t.tablet,device:"tablet",customReplaceVariableInStyleTag:r}),E({variableDescriptor:e,value:t.mobile,device:"mobile",customReplaceVariableInStyleTag:r})):E({variableDescriptor:e,value:t,customReplaceVariableInStyleTag:r})}(t,e())}))}})),wp.customize("newsletter_subscribe_subscribe_visibility",(function(e){return e.bind((function(e){var t=document.querySelector(".ct-newsletter-subscribe-block");Object(n.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",t)}))})),(document.body.classList.contains("single")||document.body.classList.contains("page"))&&Object(n.checkAndReplace)({id:"newsletter_subscribe_single_post_enabled",strategy:"append",parent_selector:".site-main article",selector:".ct-newsletter-subscribe-block",fragment_id:"blocksy-mailchimp-subscribe",watch:["has_newsletter_subscribe_name","newsletter_subscribe_button_text","newsletter_subscribe_title","newsletter_subscribe_text","newsletter_subscribe_name_label","newsletter_subscribe_mail_label"],whenInserted:function(){if(document.body.classList.contains("single")||document.body.classList.contains("page")){var e=document.querySelector(".ct-newsletter-subscribe-block");Object(n.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",e),"yes"!==wp.customize("has_newsletter_subscribe_name")()?(e.querySelector("[data-fields]").dataset.fields=1,e.querySelector('[name="FNAME"]').remove()):(e.querySelector("[data-fields]").dataset.fields=2,e.querySelector('[name="FNAME"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_name_label")()))),e.querySelector('[name="EMAIL"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_mail_label")()," *")),e.querySelector("button").innerHTML=wp.customize("newsletter_subscribe_button_text")(),e.querySelector("h3").innerHTML=wp.customize("newsletter_subscribe_title")(),e.querySelector(".ct-newsletter-subscribe-description").innerHTML=wp.customize("newsletter_subscribe_text")()}}})}]);
framework/extensions/newsletter-subscribe/admin-static/js/variables.js CHANGED
@@ -1,6 +1,16 @@
1
  import { handleVariablesFor } from 'customizer-sync-helpers'
 
 
 
2
 
3
  handleVariablesFor({
 
 
 
 
 
 
 
4
  newsletter_subscribe_content: [
5
  {
6
  selector: '.ct-newsletter-subscribe-block',
@@ -29,10 +39,60 @@ handleVariablesFor({
29
  },
30
  ],
31
 
32
- newsletter_subscribe_background: {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  selector: '.ct-newsletter-subscribe-block',
34
- variable: 'mailchimpBackground',
35
- type: 'color',
 
 
36
  },
37
 
38
  newsletter_subscribe_shadow: {
@@ -42,10 +102,17 @@ handleVariablesFor({
42
  responsive: true,
43
  },
44
 
45
- newsletter_subscribe_spacing: {
46
  selector: '.ct-newsletter-subscribe-block',
 
47
  variable: 'padding',
48
- responsive: true,
49
- unit: 'px',
 
 
 
 
 
 
50
  },
51
  })
1
  import { handleVariablesFor } from 'customizer-sync-helpers'
2
+ import {
3
+ handleBackgroundOptionFor,
4
+ } from 'blocksy-customizer-sync'
5
 
6
  handleVariablesFor({
7
+ newsletter_subscribe_title_color: {
8
+ selector: '.ct-newsletter-subscribe-block',
9
+ variable: 'heading-color',
10
+ type: 'color:default',
11
+ responsive: true,
12
+ },
13
+
14
  newsletter_subscribe_content: [
15
  {
16
  selector: '.ct-newsletter-subscribe-block',
39
  },
40
  ],
41
 
42
+ newsletter_subscribe_input_font_color: [
43
+ {
44
+ selector: '.ct-newsletter-subscribe-block',
45
+ variable: 'form-text-initial-color',
46
+ type: 'color:default',
47
+ },
48
+
49
+ {
50
+ selector: '.ct-newsletter-subscribe-block',
51
+ variable: 'form-text-focus-color',
52
+ type: 'color:focus',
53
+ },
54
+ ],
55
+
56
+ newsletter_subscribe_border_color: [
57
+ {
58
+ selector: '.ct-newsletter-subscribe-block',
59
+ variable: 'form-field-border-initial-color',
60
+ type: 'color:default',
61
+ },
62
+
63
+ {
64
+ selector: '.ct-newsletter-subscribe-block',
65
+ variable: 'form-field-border-focus-color',
66
+ type: 'color:focus',
67
+ },
68
+ ],
69
+
70
+ newsletter_subscribe_input_background: [
71
+ {
72
+ selector: '.ct-newsletter-subscribe-block',
73
+ variable: 'form-field-initial-background',
74
+ type: 'color:default',
75
+ },
76
+
77
+ {
78
+ selector: '.ct-newsletter-subscribe-block',
79
+ variable: 'form-field-focus-background',
80
+ type: 'color:focus',
81
+ },
82
+ ],
83
+
84
+ ...handleBackgroundOptionFor({
85
+ id: 'newsletter_subscribe_container_background',
86
+ selector: '.ct-newsletter-subscribe-block',
87
+ responsive: true,
88
+ }),
89
+
90
+ newsletter_subscribe_container_border: {
91
  selector: '.ct-newsletter-subscribe-block',
92
+ variable: 'newsletter-container-border',
93
+ type: 'border',
94
+ responsive: true,
95
+ skip_none: true,
96
  },
97
 
98
  newsletter_subscribe_shadow: {
102
  responsive: true,
103
  },
104
 
105
+ newsletter_subscribe_container_spacing: {
106
  selector: '.ct-newsletter-subscribe-block',
107
+ type: 'spacing',
108
  variable: 'padding',
109
+ responsive: true
110
+ },
111
+
112
+ newsletter_subscribe_container_border_radius: {
113
+ selector: '.ct-newsletter-subscribe-block',
114
+ type: 'spacing',
115
+ variable: 'border-radius',
116
+ responsive: true
117
  },
118
  })
framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php CHANGED
@@ -18,12 +18,27 @@ $options = [
18
  'disableRevertButton' => true,
19
  ],
20
 
 
 
 
 
 
 
 
 
21
  'newsletter_subscribe_text' => [
22
- 'label' => __( 'Message', 'blc' ),
23
- 'type' => 'textarea',
24
- 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
25
  'design' => 'inline',
 
 
26
  'disableRevertButton' => true,
 
 
 
 
 
 
27
  ],
28
 
29
  'newsletter_subscribe_list_id_source' => [
18
  'disableRevertButton' => true,
19
  ],
20
 
21
+ // 'newsletter_subscribe_text' => [
22
+ // 'label' => __( 'Message', 'blc' ),
23
+ // 'type' => 'textarea',
24
+ // 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
25
+ // 'design' => 'inline',
26
+ // 'disableRevertButton' => true,
27
+ // ],
28
+
29
  'newsletter_subscribe_text' => [
30
+ 'label' => __( 'Text', 'blc' ),
31
+ 'type' => 'wp-editor',
 
32
  'design' => 'inline',
33
+ 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
34
+ 'desc' => __( 'You can add here some arbitrary HTML code.', 'blc' ),
35
  'disableRevertButton' => true,
36
+ 'setting' => [ 'transport' => 'postMessage' ],
37
+
38
+ 'mediaButtons' => false,
39
+ 'tinymce' => [
40
+ 'toolbar1' => 'bold,italic,link,undo,redo',
41
+ ],
42
  ],
43
 
44
  'newsletter_subscribe_list_id_source' => [
framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php CHANGED
@@ -13,7 +13,7 @@ $title = blocksy_default_akg( 'title', $atts, __( 'Newsletter', 'blc' ) );
13
 
14
 
15
  // Message
16
- $message = blocksy_default_akg( 'newsletter_subscribe_text', $atts, __( 'Enter your email address below to subscribe to our newsletter', 'blc' ) );
17
 
18
  // Button text
19
  $button_text = blocksy_default_akg( 'newsletter_subscribe_button_text', $atts, __( 'Subscribe', 'blc' ) );
13
 
14
 
15
  // Message
16
+ $message = do_shortcode(blocksy_default_akg( 'newsletter_subscribe_text', $atts, __( 'Enter your email address below to subscribe to our newsletter', 'blc' )));
17
 
18
  // Button text
19
  $button_text = blocksy_default_akg( 'newsletter_subscribe_button_text', $atts, __( 'Subscribe', 'blc' ) );
framework/extensions/newsletter-subscribe/customizer.php CHANGED
@@ -24,7 +24,7 @@ $options = [
24
  ],
25
 
26
  'newsletter_subscribe_text' => [
27
- 'label' => __( 'Message', 'blc' ),
28
  'type' => 'textarea',
29
  'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
30
  'design' => 'block',
@@ -148,8 +148,29 @@ $options = [
148
  'type' => 'tab',
149
  'options' => [
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  'newsletter_subscribe_content' => [
152
- 'label' => __( 'Content Color', 'blc' ),
153
  'type' => 'ct-color-picker',
154
  'design' => 'inline',
155
  'setting' => [ 'transport' => 'postMessage' ],
@@ -179,19 +200,20 @@ $options = [
179
  ],
180
  ],
181
 
182
- 'newsletter_subscribe_button' => [
183
- 'label' => __( 'Button Color', 'blc' ),
184
  'type' => 'ct-color-picker',
185
  'design' => 'inline',
 
186
  'setting' => [ 'transport' => 'postMessage' ],
187
 
188
  'value' => [
189
  'default' => [
190
- 'color' => 'var(--paletteColor1)',
191
  ],
192
 
193
- 'hover' => [
194
- 'color' => 'var(--paletteColor2)',
195
  ],
196
  ],
197
 
@@ -199,17 +221,19 @@ $options = [
199
  [
200
  'title' => __( 'Initial', 'blc' ),
201
  'id' => 'default',
 
202
  ],
203
 
204
  [
205
- 'title' => __( 'Hover', 'blc' ),
206
- 'id' => 'hover',
 
207
  ],
208
  ],
209
  ],
210
 
211
- 'newsletter_subscribe_background' => [
212
- 'label' => __( 'Background Color', 'blc' ),
213
  'type' => 'ct-color-picker',
214
  'design' => 'inline',
215
  'setting' => [ 'transport' => 'postMessage' ],
@@ -218,30 +242,128 @@ $options = [
218
  'default' => [
219
  'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
220
  ],
 
 
 
 
221
  ],
222
 
223
  'pickers' => [
224
  [
225
  'title' => __( 'Initial', 'blc' ),
226
  'id' => 'default',
227
- 'inherit' => '#ffffff'
 
 
 
 
 
 
228
  ],
229
  ],
230
  ],
231
 
232
- 'newsletter_subscribe_spacing' => [
233
- 'label' => __( 'Container Inner Spacing', 'blc' ),
234
- 'type' => 'ct-slider',
235
- 'value' => 30,
236
- 'min' => 0,
237
- 'max' => 300,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  'responsive' => true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  'divider' => 'top',
240
- 'setting' => [ 'transport' => 'postMessage' ],
 
 
 
 
 
 
 
241
  ],
242
 
243
  'newsletter_subscribe_shadow' => [
244
- 'label' => __( 'Shadow', 'blocksy' ),
245
  'type' => 'ct-box-shadow',
246
  'responsive' => true,
247
  'divider' => 'top',
@@ -258,6 +380,33 @@ $options = [
258
  ],
259
  ])
260
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  ],
262
  ],
263
  ],
24
  ],
25
 
26
  'newsletter_subscribe_text' => [
27
+ 'label' => __( 'Description', 'blc' ),
28
  'type' => 'textarea',
29
  'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
30
  'design' => 'block',
148
  'type' => 'tab',
149
  'options' => [
150
 
151
+ 'newsletter_subscribe_title_color' => [
152
+ 'label' => __( 'Title Color', 'blc' ),
153
+ 'type' => 'ct-color-picker',
154
+ 'design' => 'inline',
155
+ 'setting' => [ 'transport' => 'postMessage' ],
156
+
157
+ 'value' => [
158
+ 'default' => [
159
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
160
+ ],
161
+ ],
162
+
163
+ 'pickers' => [
164
+ [
165
+ 'title' => __( 'Initial', 'blc' ),
166
+ 'id' => 'default',
167
+ 'inherit' => 'var(--heading-color, var(--heading-3-color, var(--headings-color)))'
168
+ ],
169
+ ],
170
+ ],
171
+
172
  'newsletter_subscribe_content' => [
173
+ 'label' => __( 'Description Color', 'blc' ),
174
  'type' => 'ct-color-picker',
175
  'design' => 'inline',
176
  'setting' => [ 'transport' => 'postMessage' ],
200
  ],
201
  ],
202
 
203
+ 'newsletter_subscribe_input_font_color' => [
204
+ 'label' => __( 'Input Font Color', 'blc' ),
205
  'type' => 'ct-color-picker',
206
  'design' => 'inline',
207
+ 'divider' => 'top',
208
  'setting' => [ 'transport' => 'postMessage' ],
209
 
210
  'value' => [
211
  'default' => [
212
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
213
  ],
214
 
215
+ 'focus' => [
216
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
217
  ],
218
  ],
219
 
221
  [
222
  'title' => __( 'Initial', 'blc' ),
223
  'id' => 'default',
224
+ 'inherit' => 'var(--form-text-initial-color, var(--color))'
225
  ],
226
 
227
  [
228
+ 'title' => __( 'Focus', 'blc' ),
229
+ 'id' => 'focus',
230
+ 'inherit' => 'var(--form-text-focus-color, var(--color))'
231
  ],
232
  ],
233
  ],
234
 
235
+ 'newsletter_subscribe_border_color' => [
236
+ 'label' => __( 'Input Border Color', 'blc' ),
237
  'type' => 'ct-color-picker',
238
  'design' => 'inline',
239
  'setting' => [ 'transport' => 'postMessage' ],
242
  'default' => [
243
  'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
244
  ],
245
+
246
+ 'focus' => [
247
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
248
+ ],
249
  ],
250
 
251
  'pickers' => [
252
  [
253
  'title' => __( 'Initial', 'blc' ),
254
  'id' => 'default',
255
+ 'inherit' => 'var(--form-field-border-initial-color)'
256
+ ],
257
+
258
+ [
259
+ 'title' => __( 'Focus', 'blc' ),
260
+ 'id' => 'focus',
261
+ 'inherit' => 'var(--form-field-border-focus-color)'
262
  ],
263
  ],
264
  ],
265
 
266
+ blocksy_rand_md5() => [
267
+ 'type' => 'ct-condition',
268
+ 'condition' => ['forms_type' => 'classic-forms'],
269
+ 'values_source' => 'global',
270
+ 'options' => [
271
+
272
+ 'newsletter_subscribe_input_background' => [
273
+ 'label' => __( 'Input Background Color', 'blc' ),
274
+ 'type' => 'ct-color-picker',
275
+ 'design' => 'inline',
276
+ 'setting' => [ 'transport' => 'postMessage' ],
277
+
278
+ 'value' => [
279
+ 'default' => [
280
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword(),
281
+ ],
282
+
283
+ 'focus' => [
284
+ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword(),
285
+ ],
286
+ ],
287
+
288
+ 'pickers' => [
289
+ [
290
+ 'title' => __( 'Initial', 'blc' ),
291
+ 'id' => 'default',
292
+ ],
293
+
294
+ [
295
+ 'title' => __( 'Focus', 'blc' ),
296
+ 'id' => 'focus',
297
+ ],
298
+ ],
299
+ ],
300
+
301
+ ],
302
+ ],
303
+
304
+ 'newsletter_subscribe_button' => [
305
+ 'label' => __( 'Button Color', 'blc' ),
306
+ 'type' => 'ct-color-picker',
307
+ 'design' => 'inline',
308
+ 'setting' => [ 'transport' => 'postMessage' ],
309
+
310
+ 'value' => [
311
+ 'default' => [
312
+ 'color' => 'var(--paletteColor1)',
313
+ ],
314
+
315
+ 'hover' => [
316
+ 'color' => 'var(--paletteColor2)',
317
+ ],
318
+ ],
319
+
320
+ 'pickers' => [
321
+ [
322
+ 'title' => __( 'Initial', 'blc' ),
323
+ 'id' => 'default',
324
+ ],
325
+
326
+ [
327
+ 'title' => __( 'Hover', 'blc' ),
328
+ 'id' => 'hover',
329
+ ],
330
+ ],
331
+ ],
332
+
333
+ 'newsletter_subscribe_container_background' => [
334
+ 'label' => __( 'Container Background', 'blc' ),
335
+ 'type' => 'ct-background',
336
+ 'design' => 'block:right',
337
  'responsive' => true,
338
+ 'divider' => 'top:full',
339
+ 'sync' => 'live',
340
+ 'value' => blocksy_background_default_value([
341
+ 'backgroundColor' => [
342
+ 'default' => [
343
+ 'color' => '#ffffff',
344
+ ],
345
+ ],
346
+ ])
347
+ ],
348
+
349
+ 'newsletter_subscribe_container_border' => [
350
+ 'label' => __( 'Container Border', 'blc' ),
351
+ 'type' => 'ct-border',
352
+ 'sync' => 'live',
353
+ 'design' => 'block',
354
  'divider' => 'top',
355
+ 'value' => [
356
+ 'width' => 1,
357
+ 'style' => 'none',
358
+ 'color' => [
359
+ 'color' => 'var(--paletteColor5)',
360
+ ],
361
+ ],
362
+ 'responsive' => true,
363
  ],
364
 
365
  'newsletter_subscribe_shadow' => [
366
+ 'label' => __( 'Container Shadow', 'blocksy' ),
367
  'type' => 'ct-box-shadow',
368
  'responsive' => true,
369
  'divider' => 'top',
380
  ],
381
  ])
382
  ],
383
+
384
+ 'newsletter_subscribe_container_spacing' => [
385
+ 'label' => __( 'Container Inner Spacing', 'blc' ),
386
+ 'type' => 'ct-spacing',
387
+ 'divider' => 'top',
388
+ 'setting' => [ 'transport' => 'postMessage' ],
389
+ 'value' => blocksy_spacing_value([
390
+ 'linked' => true,
391
+ 'top' => '30px',
392
+ 'left' => '30px',
393
+ 'right' => '30px',
394
+ 'bottom' => '30px',
395
+ ]),
396
+ 'responsive' => true
397
+ ],
398
+
399
+ 'newsletter_subscribe_container_border_radius' => [
400
+ 'label' => __( 'Container Border Radius', 'blc' ),
401
+ 'type' => 'ct-spacing',
402
+ 'divider' => 'top',
403
+ 'setting' => [ 'transport' => 'postMessage' ],
404
+ 'value' => blocksy_spacing_value([
405
+ 'linked' => true,
406
+ ]),
407
+ 'responsive' => true
408
+ ],
409
+
410
  ],
411
  ],
412
  ],
framework/extensions/newsletter-subscribe/extension.php CHANGED
@@ -84,7 +84,7 @@ class BlocksyExtensionNewsletterSubscribe {
84
  ['ct-main-styles'],
85
  $data['Version']
86
  );
87
- });
88
 
89
  add_filter('blocksy:frontend:dynamic-js-chunks', function ($chunks) {
90
  $chunks[] = [
84
  ['ct-main-styles'],
85
  $data['Version']
86
  );
87
+ }, 50);
88
 
89
  add_filter('blocksy:frontend:dynamic-js-chunks', function ($chunks) {
90
  $chunks[] = [
framework/extensions/newsletter-subscribe/global.php CHANGED
@@ -1,6 +1,21 @@
1
  <?php
2
 
3
- // Mailchimp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
5
  'value' => get_theme_mod('newsletter_subscribe_content'),
6
  'default' => [
@@ -42,27 +57,105 @@ blc_call_fn(['fn' => 'blocksy_output_colors'], [
42
  ]);
43
 
44
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
45
- 'value' => get_theme_mod('newsletter_subscribe_background'),
46
- 'default' => ['default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ]],
 
 
 
47
  'css' => $css,
48
  'variables' => [
49
  'default' => [
50
  'selector' => '.ct-newsletter-subscribe-block',
51
- 'variable' => 'backgroundColor'
 
 
 
 
 
52
  ],
53
  ],
54
  ]);
55
 
56
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
57
- 'value' => get_theme_mod('newsletter_subscribe_shadow'),
58
- 'default' => ['default' => [ 'color' => 'rgba(210, 213, 218, 0.4)' ]],
 
 
 
59
  'css' => $css,
60
  'variables' => [
61
  'default' => [
62
  'selector' => '.ct-newsletter-subscribe-block',
63
- 'variable' => 'mailchimpShadow'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  ],
65
  ],
 
 
66
  ]);
67
 
68
  blc_call_fn(['fn' => 'blocksy_output_box_shadow'], [
@@ -87,16 +180,34 @@ blc_call_fn(['fn' => 'blocksy_output_box_shadow'], [
87
  'responsive' => true
88
  ]);
89
 
90
- $block_inner_spacing = get_theme_mod('newsletter_subscribe_spacing', 30);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
- if ($block_inner_spacing !== 30) {
93
- blc_call_fn(['fn' => 'blocksy_output_responsive'], [
94
- 'css' => $css,
95
- 'tablet_css' => $tablet_css,
96
- 'mobile_css' => $mobile_css,
97
- 'selector' => '.ct-newsletter-subscribe-block',
98
- 'variableName' => 'padding',
99
- 'value' => $block_inner_spacing,
100
- 'unit' => 'px'
101
- ]);
102
- }
 
 
1
  <?php
2
 
3
+ $forms_type = get_theme_mod('forms_type', 'classic-forms');
4
+
5
+ blc_call_fn(['fn' => 'blocksy_output_colors'], [
6
+ 'value' => get_theme_mod('newsletter_subscribe_title_color'),
7
+ 'default' => [
8
+ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
9
+ ],
10
+ 'css' => $css,
11
+ 'variables' => [
12
+ 'default' => [
13
+ 'selector' => '.ct-newsletter-subscribe-block',
14
+ 'variable' => 'heading-color'
15
+ ],
16
+ ],
17
+ ]);
18
+
19
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
20
  'value' => get_theme_mod('newsletter_subscribe_content'),
21
  'default' => [
57
  ]);
58
 
59
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
60
+ 'value' => get_theme_mod('newsletter_subscribe_input_font_color'),
61
+ 'default' => [
62
+ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
63
+ 'focus' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
64
+ ],
65
  'css' => $css,
66
  'variables' => [
67
  'default' => [
68
  'selector' => '.ct-newsletter-subscribe-block',
69
+ 'variable' => 'form-text-initial-color'
70
+ ],
71
+
72
+ 'focus' => [
73
+ 'selector' => '.ct-newsletter-subscribe-block',
74
+ 'variable' => 'form-text-focus-color'
75
  ],
76
  ],
77
  ]);
78
 
79
  blc_call_fn(['fn' => 'blocksy_output_colors'], [
80
+ 'value' => get_theme_mod('newsletter_subscribe_border_color'),
81
+ 'default' => [
82
+ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
83
+ 'focus' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
84
+ ],
85
  'css' => $css,
86
  'variables' => [
87
  'default' => [
88
  'selector' => '.ct-newsletter-subscribe-block',
89
+ 'variable' => 'form-field-border-initial-color'
90
+ ],
91
+
92
+ 'focus' => [
93
+ 'selector' => '.ct-newsletter-subscribe-block',
94
+ 'variable' => 'form-field-border-focus-color'
95
+ ],
96
+ ],
97
+ ]);
98
+
99
+ if ($forms_type !== 'classic-forms' || is_customize_preview()) {
100
+ blc_call_fn(['fn' => 'blocksy_output_colors'], [
101
+ 'value' => get_theme_mod('newsletter_subscribe_input_background'),
102
+ 'default' => [
103
+ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword() ],
104
+ 'focus' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword() ],
105
+ ],
106
+ 'css' => $css,
107
+ 'variables' => [
108
+ 'default' => [
109
+ 'selector' => '.ct-newsletter-subscribe-block',
110
+ 'variable' => 'form-field-initial-background'
111
+ ],
112
+
113
+ 'focus' => [
114
+ 'selector' => '.ct-newsletter-subscribe-block',
115
+ 'variable' => 'form-field-focus-background'
116
+ ],
117
+ ],
118
+ ]);
119
+ }
120
+
121
+ blc_call_fn(['fn' => 'blocksy_output_background_css'], [
122
+ 'selector' => '.ct-newsletter-subscribe-block',
123
+ 'css' => $css,
124
+ 'tablet_css' => $tablet_css,
125
+ 'mobile_css' => $mobile_css,
126
+ 'value' => get_theme_mod(
127
+ 'newsletter_subscribe_container_background',
128
+ blc_call_fn([
129
+ 'fn' => 'blocksy_background_default_value',
130
+ 'default' => null
131
+ ], [
132
+ 'backgroundColor' => [
133
+ 'default' => [
134
+ 'color' => '#ffffff'
135
+ ],
136
+ ],
137
+ ])
138
+ ),
139
+ 'responsive' => true,
140
+ ]);
141
+
142
+ blc_call_fn(['fn' => 'blocksy_output_border'], [
143
+ 'css' => $css,
144
+ 'tablet_css' => $tablet_css,
145
+ 'mobile_css' => $mobile_css,
146
+ 'selector' => '.ct-newsletter-subscribe-block',
147
+ 'variableName' => 'newsletter-container-border',
148
+ 'value' => get_theme_mod('newsletter_subscribe_container_border'),
149
+ 'skip_none' => true,
150
+ 'default' => [
151
+ 'width' => 1,
152
+ 'style' => 'none',
153
+ 'color' => [
154
+ 'color' => 'var(--paletteColor5)',
155
  ],
156
  ],
157
+ 'responsive' => true,
158
+ 'skip_none' => true
159
  ]);
160
 
161
  blc_call_fn(['fn' => 'blocksy_output_box_shadow'], [
180
  'responsive' => true
181
  ]);
182
 
183
+ blc_call_fn(['fn' => 'blocksy_output_spacing'], [
184
+ 'css' => $css,
185
+ 'tablet_css' => $tablet_css,
186
+ 'mobile_css' => $mobile_css,
187
+ 'selector' => '.ct-newsletter-subscribe-block',
188
+ 'property' => 'padding',
189
+ 'value' => get_theme_mod(
190
+ 'newsletter_subscribe_container_spacing',
191
+ blocksy_spacing_value([
192
+ 'linked' => true,
193
+ 'top' => '30px',
194
+ 'left' => '30px',
195
+ 'right' => '30px',
196
+ 'bottom' => '30px',
197
+ ])
198
+ )
199
+ ]);
200
 
201
+ blc_call_fn(['fn' => 'blocksy_output_spacing'], [
202
+ 'css' => $css,
203
+ 'tablet_css' => $tablet_css,
204
+ 'mobile_css' => $mobile_css,
205
+ 'selector' => '.ct-newsletter-subscribe-block',
206
+ 'property' => 'border-radius',
207
+ 'value' => get_theme_mod(
208
+ 'newsletter_subscribe_container_border_radius',
209
+ blocksy_spacing_value([
210
+ 'linked' => true,
211
+ ])
212
+ )
213
+ ]);
framework/extensions/newsletter-subscribe/static/bundle/main.min.css CHANGED
@@ -1,8 +1,8 @@
1
  /**
2
- * - v1.8.9.2
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
6
  */
7
 
8
- .ct-widget-inner{border-radius:3px}.ct-widget-inner[data-alignment='center']{text-align:center}.ct-widget-inner[data-alignment='right']{text-align:right}.ct-newsletter-subscribe-widget-form>*:not(:first-child){margin-top:10px}[class*="ct-newsletter-subscribe"] form [data-fields]{display:grid;grid-column-gap:15px;grid-row-gap:15px}@media (min-width: 690px){[class*="ct-newsletter-subscribe"] form [data-fields='1']{grid-template-columns:65% 1fr}}@media (min-width: 690px){[class*="ct-newsletter-subscribe"] form [data-fields='2']{grid-template-columns:32.5% 32.5% 1fr}}[class*="ct-newsletter-subscribe"] form button{width:100%;--padding: 0 15px;--buttonMinHeight: var(--form-field-height, 40px)}[class*="ct-newsletter-subscribe"] form .ct-newsletter-subscribe-description:not(:empty){margin-bottom:1.5em}[class*="ct-newsletter-subscribe"] form .ct-newsletter-subscribe-message,[class*="ct-newsletter-subscribe"] form .gdpr-confirm-policy{margin-top:15px;margin-bottom:0}.ct-newsletter-subscribe-block,.ct-newsletter-subscribe-widget [data-container='boxed']{padding:var(--padding, 30px);background:var(--backgroundColor, #fff);box-shadow:var(--box-shadow, 0px 12px 18px -6px rgba(34,56,101,0.04))}.ct-newsletter-subscribe-block{margin-top:60px;text-align:center;color:var(--color);--linkInitialColor: var(--color)}.ct-newsletter-subscribe-block>*:first-child{margin-top:20px}.ct-newsletter-subscribe-block>*:last-child{margin-bottom:20px}.ct-newsletter-subscribe-block>h3{--fontSize: 25px}.ct-newsletter-subscribe-block form{max-width:550px;margin:0 auto}@media (min-width: 690px){.ct-newsletter-subscribe-block form{width:85%}}form[class*='ct-newsletter-subscribe'] .button{--buttonFontWeight: 600}.ct-newsletter-subscribe-message{display:none;font-size:16px}.ct-newsletter-subscribe-message a{text-decoration:underline}.subscribe-error .ct-newsletter-subscribe-message{display:block;font-size:14px;color:#e42b2b}.subscribe-success button.button,.subscribe-success input[type='text'],.subscribe-success input[type='email'],.subscribe-success .gdpr-confirm-policy,.subscribe-success .ct-newsletter-subscribe-description{display:none}.subscribe-success .ct-newsletter-subscribe-message{display:block}
1
  /**
2
+ * - v1.8.9.3
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
6
  */
7
 
8
+ .ct-widget-inner{border-radius:3px}.ct-widget-inner[data-alignment='center']{text-align:center}.ct-widget-inner[data-alignment='right']{text-align:right}.ct-newsletter-subscribe-widget-form>*:not(:first-child){margin-top:10px}[class*="ct-newsletter-subscribe"] form [data-fields]{display:grid;grid-column-gap:15px;grid-row-gap:15px}@media (min-width: 690px){[class*="ct-newsletter-subscribe"] form [data-fields='1']{grid-template-columns:65% 1fr}}@media (min-width: 690px){[class*="ct-newsletter-subscribe"] form [data-fields='2']{grid-template-columns:32.5% 32.5% 1fr}}[class*="ct-newsletter-subscribe"] form button{width:100%;--padding: 0 15px;--buttonMinHeight: var(--form-field-height, 40px)}[class*="ct-newsletter-subscribe"] form .ct-newsletter-subscribe-description:not(:empty){margin-bottom:1.5em}[class*="ct-newsletter-subscribe"] form .ct-newsletter-subscribe-message,[class*="ct-newsletter-subscribe"] form .gdpr-confirm-policy{margin-top:15px;margin-bottom:0}.ct-newsletter-subscribe-block,.ct-newsletter-subscribe-widget [data-container='boxed']{padding:var(--padding, 30px);box-shadow:var(--box-shadow, 0px 12px 18px -6px rgba(34,56,101,0.04))}.ct-newsletter-subscribe-block{margin-top:60px;text-align:center;color:var(--color);border:var(--newsletter-container-border, none);border-radius:var(--border-radius, 0px);--linkInitialColor: var(--color)}.ct-newsletter-subscribe-block>*:first-child{margin-top:20px}.ct-newsletter-subscribe-block>*:last-child{margin-bottom:20px}.ct-newsletter-subscribe-block>h3{--fontSize: 25px}.ct-newsletter-subscribe-block form{max-width:550px;margin:0 auto}@media (min-width: 690px){.ct-newsletter-subscribe-block form{width:85%}}form[class*='ct-newsletter-subscribe'] .button{--buttonFontWeight: 600}.ct-newsletter-subscribe-message{display:none;font-size:16px}.ct-newsletter-subscribe-message a{text-decoration:underline}.subscribe-error .ct-newsletter-subscribe-message{display:block;font-size:14px;color:#e42b2b}.subscribe-success button.button,.subscribe-success input[type='text'],.subscribe-success input[type='email'],.subscribe-success .gdpr-confirm-policy,.subscribe-success .ct-newsletter-subscribe-description{display:none}.subscribe-success .ct-newsletter-subscribe-message{display:block}
framework/extensions/newsletter-subscribe/static/sass/single-block.scss CHANGED
@@ -39,7 +39,6 @@
39
  .ct-newsletter-subscribe-block,
40
  .ct-newsletter-subscribe-widget [data-container='boxed'] {
41
  padding: var(--padding, 30px);
42
- background: var(--backgroundColor, #fff);
43
  box-shadow: var(--box-shadow, 0px 12px 18px -6px rgba(34, 56, 101, 0.04));
44
  }
45
 
@@ -49,6 +48,8 @@
49
  margin-top: 60px;
50
  text-align: center;
51
  color: var(--color);
 
 
52
  --linkInitialColor: var(--color);
53
 
54
  > * {
39
  .ct-newsletter-subscribe-block,
40
  .ct-newsletter-subscribe-widget [data-container='boxed'] {
41
  padding: var(--padding, 30px);
 
42
  box-shadow: var(--box-shadow, 0px 12px 18px -6px rgba(34, 56, 101, 0.04));
43
  }
44
 
48
  margin-top: 60px;
49
  text-align: center;
50
  color: var(--color);
51
+ border: var(--newsletter-container-border, none);
52
+ border-radius: var(--border-radius, 0px);
53
  --linkInitialColor: var(--color);
54
 
55
  > * {
framework/extensions/product-reviews/extension.php CHANGED
@@ -19,13 +19,15 @@ class BlocksyExtensionProductReviews {
19
  get_the_ID()
20
  );
21
 
 
 
 
 
 
 
22
  $maybe_schema = blocksy_schema_org_definitions('itemReviewed', [
23
  'to_merge' => [
24
- 'itemtype' => "https://schema.org/" . blocksy_akg(
25
- 'product_review_entity',
26
- $atts,
27
- 'Thing'
28
- )
29
  ]
30
  ]);
31
 
@@ -33,11 +35,84 @@ class BlocksyExtensionProductReviews {
33
  return;
34
  }
35
 
36
- echo '<div ' . $maybe_schema . '>';
37
  echo '<meta itemprop="name" content="' . get_the_title() . '">';
38
  if (get_the_post_thumbnail_url()) {
39
  echo '<meta itemprop="image" content="' . get_the_post_thumbnail_url() . '">';
40
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
42
  );
43
 
@@ -205,7 +280,7 @@ class BlocksyExtensionProductReviews {
205
  ['ct-main-styles'],
206
  $data['Version']
207
  );
208
- });
209
 
210
  add_filter('blocksy_single_posts_post_elements_start', function ($options, $prefix) {
211
  if ($prefix !== 'blc-product-review_single') {
19
  get_the_ID()
20
  );
21
 
22
+ $product_review_entity = blocksy_akg(
23
+ 'product_review_entity',
24
+ $atts,
25
+ 'Thing'
26
+ );
27
+
28
  $maybe_schema = blocksy_schema_org_definitions('itemReviewed', [
29
  'to_merge' => [
30
+ 'itemtype' => "https://schema.org/" . $product_review_entity
 
 
 
 
31
  ]
32
  ]);
33
 
35
  return;
36
  }
37
 
38
+ echo '<div class="ct-item-review-meta" ' . $maybe_schema . '>';
39
  echo '<meta itemprop="name" content="' . get_the_title() . '">';
40
  if (get_the_post_thumbnail_url()) {
41
  echo '<meta itemprop="image" content="' . get_the_post_thumbnail_url() . '">';
42
  }
43
+
44
+ $product_description = blocksy_akg('product_description', $atts, '');
45
+
46
+ if (! empty($product_description)) {
47
+ echo blocksy_html_tag('meta', [
48
+ 'itemprop' => 'description',
49
+ 'content' => strip_tags($product_description)
50
+ ]);
51
+ }
52
+
53
+ if ($product_review_entity === 'Product') {
54
+ $product_entity_sku = blocksy_akg('product_entity_sku', $atts, '');
55
+ $product_entity_brand = blocksy_akg('product_entity_brand', $atts, '');
56
+ $product_entity_price = blocksy_akg('product_entity_price', $atts, '');
57
+
58
+ if (! empty($product_entity_sku)) {
59
+ echo blocksy_html_tag('meta', [
60
+ 'itemprop' => 'sku',
61
+ 'content' => $product_entity_sku
62
+ ]);
63
+ }
64
+
65
+ if (! empty($product_entity_brand)) {
66
+ echo blocksy_html_tag(
67
+ 'div',
68
+ [
69
+ 'itemprop' => 'brand',
70
+ 'itemscope' => '',
71
+ 'itemtype' => 'https://schema.org/Brand'
72
+ ],
73
+ blocksy_html_tag(
74
+ 'meta',
75
+ [
76
+ 'itemprop' => 'name',
77
+ 'content' => $product_entity_brand
78
+ ]
79
+ )
80
+ );
81
+ }
82
+
83
+ $product_link = blocksy_akg('product_link', $atts, '#');
84
+
85
+ $offers_contents = '';
86
+
87
+ if (! empty($product_link)) {
88
+ $offers_contents .= blocksy_html_tag('link', [
89
+ 'itemprop' => 'url',
90
+ 'href' => $product_link
91
+ ]);
92
+ }
93
+
94
+ $offers_contents .= blocksy_html_tag('meta', [
95
+ 'itemprop' => 'availability',
96
+ 'content' => 'https://schema.org/InStock'
97
+ ]);
98
+
99
+ if (! empty($product_entity_price)) {
100
+ $offers_contents .= blocksy_html_tag('meta', [
101
+ 'itemprop' => 'price',
102
+ 'content' => $product_entity_price
103
+ ]);
104
+ }
105
+
106
+ echo blocksy_html_tag(
107
+ 'div',
108
+ [
109
+ 'itemprop' => 'offers',
110
+ 'itemscope' => '',
111
+ 'itemtype' => 'https://schema.org/Offer'
112
+ ],
113
+ $offers_contents
114
+ );
115
+ }
116
  }
117
  );
118
 
280
  ['ct-main-styles'],
281
  $data['Version']
282
  );
283
+ }, 50);
284
 
285
  add_filter('blocksy_single_posts_post_elements_start', function ($options, $prefix) {
286
  if ($prefix !== 'blc-product-review_single') {
framework/extensions/product-reviews/metabox.php CHANGED
@@ -15,6 +15,7 @@ $options = [
15
  'choices' => blocksy_ordered_keys(
16
  [
17
  'Thing' => __( 'Default', 'blc' ),
 
18
  'Book' => __( 'Book', 'blc' ),
19
  // 'Course' => __( 'Course', 'blc' ),
20
  'CreativeWorkSeason' => __( 'Creative Work Season', 'blc' ),
@@ -29,7 +30,6 @@ $options = [
29
  'MusicPlaylist' => __( 'Music Playlist', 'blc' ),
30
  'MusicRecording' => __( 'Music Recording', 'blc' ),
31
  'Organization' => __( 'Organization', 'blc' ),
32
- // 'Product' => __( 'Product', 'blc' ),
33
  // 'Recipe' => __( 'Recipe', 'blc' ),
34
  // 'SoftwareApplication' => __( 'Software Application', 'blc' ),
35
  ]
@@ -44,6 +44,33 @@ $options = [
44
  ),
45
  ],
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  blocksy_rand_md5() => [
48
  'type' => 'ct-divider',
49
  ],
15
  'choices' => blocksy_ordered_keys(
16
  [
17
  'Thing' => __( 'Default', 'blc' ),
18
+ 'Product' => __( 'Product', 'blc' ),
19
  'Book' => __( 'Book', 'blc' ),
20
  // 'Course' => __( 'Course', 'blc' ),
21
  'CreativeWorkSeason' => __( 'Creative Work Season', 'blc' ),
30
  'MusicPlaylist' => __( 'Music Playlist', 'blc' ),
31
  'MusicRecording' => __( 'Music Recording', 'blc' ),
32
  'Organization' => __( 'Organization', 'blc' ),
 
33
  // 'Recipe' => __( 'Recipe', 'blc' ),
34
  // 'SoftwareApplication' => __( 'Software Application', 'blc' ),
35
  ]
44
  ),
45
  ],
46
 
47
+ blocksy_rand_md5() => [
48
+ 'type' => 'ct-condition',
49
+ 'condition' => ['product_review_entity' => 'Product'],
50
+ 'options' => [
51
+ 'product_entity_price' => [
52
+ 'type' => 'text',
53
+ 'label' => __('Product Price', 'blc'),
54
+ 'design' => 'inline',
55
+ 'value' => '',
56
+ ],
57
+
58
+ 'product_entity_sku' => [
59
+ 'type' => 'text',
60
+ 'label' => __('Product SKU', 'blc'),
61
+ 'design' => 'inline',
62
+ 'value' => ''
63
+ ],
64
+
65
+ 'product_entity_brand' => [
66
+ 'type' => 'text',
67
+ 'label' => __('Product Brand', 'blc'),
68
+ 'design' => 'inline',
69
+ 'value' => ''
70
+ ],
71
+ ]
72
+ ],
73
+
74
  blocksy_rand_md5() => [
75
  'type' => 'ct-divider',
76
  ],
framework/extensions/product-reviews/static/bundle/main-admin.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.9.2
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.9.3
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main.min.css CHANGED
@@ -1,8 +1,8 @@
1
  /**
2
- * - v1.8.9.2
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
6
  */
7
 
8
- .ct-product-hero .flexy-container{overflow:hidden}@media (max-width: 999.98px){.ct-product-hero .flexy-pills{--thumbs-spacing: 10px}}@media (min-width: 1000px){.ct-product-hero .flexy-pills{max-width:70%;margin:-8% auto 0 auto;--thumbs-spacing: 20px}}.ct-product-hero .flexy-pills ol{margin:0 calc(var(--thumbs-spacing) * -1)}.ct-product-hero .flexy-pills li{padding-top:var(--thumbs-spacing);padding-left:var(--thumbs-spacing);padding-right:var(--thumbs-spacing)}.ct-product-hero .flexy-pills li img{width:100%;border-radius:3px;border-radius:2px;border:3px solid #fff}.ct-product-hero .flexy-container+.hero-section{margin-top:var(--margin-bottom, 40px)}.ct-product-scores{display:grid;grid-column-gap:25px;grid-row-gap:25px;margin:0 auto;max-width:var(--product-scores-width, 800px)}@media (min-width: 690px){.ct-product-scores{grid-template-columns:2fr 1fr}}.ct-product-scores:not(:last-child){margin-bottom:60px}.ct-product-scores li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 20px;background:rgba(243,243,243,0.5);border-radius:2px}.ct-product-scores li:hover{background:#f3f3f3}.ct-product-scores li>span{font-size:15px;font-weight:500}.ct-overall-score{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color:var(--overall-score-text-color, #fff);border-radius:2px;background:var(--overall-score-box-background, #1A202C)}.ct-overall-score .ct-average-score{font-size:55px;font-weight:800;line-height:normal;margin-bottom:10px}.ct-overall-score .ct-score-label{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0.02em;margin:15px 0 0 0}.ct-overall-score-layer{display:flex;flex-wrap:wrap;align-items:center}.ct-overall-score-layer .ct-score-label,.ct-overall-score-layer .ct-average-score{font-size:14px;font-weight:600}.ct-overall-score-layer .ct-average-score{margin:0 5px;-webkit-margin-end:auto;margin-inline-end:auto}.ct-overall-score-layer .star-rating{margin:3px 0}.ct-product-actions-group{display:flex;align-items:center;justify-content:center}.ct-product-actions-group:not(:last-child){margin-bottom:60px}.ct-product-actions-group .ct-button:not(:last-child){-webkit-margin-end:25px;margin-inline-end:25px}.ct-product-actions-group .ct-icon-container{color:inherit;-webkit-margin-start:10px;margin-inline-start:10px}.ct-product-description:not(:last-child){margin-bottom:60px}.ct-product-info{display:grid;grid-template-columns:var(--grid-template-columns);grid-column-gap:40px;grid-row-gap:40px;border-top:1px solid #ececec;padding-top:var(--content-vertical-spacing, 60px)}@media (min-width: 1000px){.ct-product-info{--grid-template-columns: 1.5fr 1fr 1fr}}@media (min-width: 690px) and (max-width: 999.98px){.ct-product-info{--grid-template-columns: 1fr 1fr}}.ct-product-info li{position:relative;-webkit-padding-start:22px;padding-inline-start:22px}.ct-product-info .ct-icon-container{position:absolute;left:0;top:0.4em;opacity:0.8;--icon-size: 13px}@media (min-width: 690px) and (max-width: 999.98px){.ct-specs{grid-column:1/-1}}.ct-specs ul{display:grid;grid-column-gap:40px}@media (min-width: 690px){.ct-specs ul{grid-template-columns:repeat(2, 1fr)}}.ct-product-hero{padding-top:var(--content-vertical-spacing, 60px)}.ct-product-hero .ct-container{padding-bottom:var(--content-vertical-spacing, 60px);border-bottom:1px solid #ececec}.ct-product-hero ul{--listIndent: 0;--listStyleType: none;--contentSpacing: 0}
1
  /**
2
+ * - v1.8.9.3
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
6
  */
7
 
8
+ .ct-product-hero .flexy-container{overflow:hidden}@media (max-width: 999.98px){.ct-product-hero .flexy-pills{--thumbs-spacing: 10px}}@media (min-width: 1000px){.ct-product-hero .flexy-pills{max-width:70%;margin:-8% auto 0 auto;--thumbs-spacing: 20px}}.ct-product-hero .flexy-pills ol{margin:0 calc(var(--thumbs-spacing) * -1)}.ct-product-hero .flexy-pills li{padding-top:var(--thumbs-spacing);padding-left:var(--thumbs-spacing);padding-right:var(--thumbs-spacing)}.ct-product-hero .flexy-pills li img{width:100%;border-radius:3px;border-radius:2px;border:3px solid #fff}.ct-product-hero .hero-section:not(:first-child){margin-top:var(--margin-bottom, 40px)}.ct-product-hero .ct-item-review-meta{display:none;visibility:hidden}.ct-product-scores{display:grid;grid-column-gap:25px;grid-row-gap:25px;margin:0 auto;max-width:var(--product-scores-width, 800px)}@media (min-width: 690px){.ct-product-scores{grid-template-columns:2fr 1fr}}.ct-product-scores:not(:last-child){margin-bottom:60px}.ct-product-scores li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 20px;background:rgba(243,243,243,0.5);border-radius:2px}.ct-product-scores li:hover{background:#f3f3f3}.ct-product-scores li>span{font-size:15px;font-weight:500}.ct-overall-score{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color:var(--overall-score-text-color, #fff);border-radius:2px;background:var(--overall-score-box-background, #1A202C)}.ct-overall-score .ct-average-score{font-size:55px;font-weight:800;line-height:normal;margin-bottom:10px}.ct-overall-score .ct-score-label{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0.02em;margin:15px 0 0 0}.ct-overall-score-layer{display:flex;flex-wrap:wrap;align-items:center}.ct-overall-score-layer .ct-score-label,.ct-overall-score-layer .ct-average-score{font-size:14px;font-weight:600}.ct-overall-score-layer .ct-average-score{margin:0 5px;-webkit-margin-end:auto;margin-inline-end:auto}.ct-overall-score-layer .star-rating{margin:3px 0}.ct-product-actions-group{display:flex;align-items:center;justify-content:center}.ct-product-actions-group:not(:last-child){margin-bottom:60px}.ct-product-actions-group .ct-button:not(:last-child){-webkit-margin-end:25px;margin-inline-end:25px}.ct-product-actions-group .ct-icon-container{color:inherit;-webkit-margin-start:10px;margin-inline-start:10px}.ct-product-description:not(:last-child){margin-bottom:60px}.ct-product-info{display:grid;grid-template-columns:var(--grid-template-columns);grid-column-gap:40px;grid-row-gap:40px;border-top:1px solid #ececec;padding-top:var(--content-vertical-spacing, 60px)}@media (min-width: 1000px){.ct-product-info{--grid-template-columns: 1.5fr 1fr 1fr}}@media (min-width: 690px) and (max-width: 999.98px){.ct-product-info{--grid-template-columns: 1fr 1fr}}.ct-product-info li{position:relative;-webkit-padding-start:22px;padding-inline-start:22px}.ct-product-info .ct-icon-container{position:absolute;left:0;top:0.4em;opacity:0.8;--icon-size: 13px}@media (min-width: 690px) and (max-width: 999.98px){.ct-specs{grid-column:1/-1}}.ct-specs ul{display:grid;grid-column-gap:40px}@media (min-width: 690px){.ct-specs ul{grid-template-columns:repeat(2, 1fr)}}.ct-product-hero{padding-top:var(--content-vertical-spacing, 60px)}.ct-product-hero .ct-container{padding-bottom:var(--content-vertical-spacing, 60px);border-bottom:1px solid #ececec}.ct-product-hero ul{--listIndent: 0;--listStyleType: none;--content-spacing: 0}
framework/extensions/product-reviews/static/bundle/sync.js CHANGED
@@ -1 +1,100 @@
1
- !function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,o){"use strict";o.r(t);var r,n=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var o=t.forcedOutput,r=void 0!==o&&o;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return r?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return r?"none":"CT_CSS_SKIP_RULE";var n=[];return e.inset&&n.push("inset"),n.push("".concat(e.h_offset,"px")),n.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(n.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&n.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(n.push("".concat(e.blur,"px")),n.push("".concat(e.spread,"px"))),n.push(e.color.color),n.join(" ")},a=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},n=document.querySelector("style#".concat(r[o])),c=n.innerText,a="".concat(e["".concat(o,"_selector_prefix")]?"".concat(e["".concat(o,"_selector_prefix")]," "):"").concat(e.selector||":root"),i=null,l=c.match(i);0===c.trim().indexOf(a)?(i=new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)):(i=new RegExp("\\}\\s*?".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)),l||(0===(c="".concat(c," ").concat(a," { }")).trim().indexOf(a)?(i=new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)):(i=new RegExp("\\}\\s*?".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i))),n.innerText=c.replace(i,l[0].indexOf("--".concat(e.variable,":"))>-1?l[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):l[0].replace(new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(a," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},i=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(r=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(r=n(t)),"box-shadow"===(e.type||"")&&(r=c(t,e)),a(e,"".concat(r).concat(e.unit||"").concat(e.important?" !important":""),o)},l=function(e,t){var o=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,o),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),i(e,t.desktop,"desktop"),i(e,t.tablet,"tablet"),i(e,t.mobile,"mobile")):i(e,t)},s=o(0);function p(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u,d="blc-product-review_single";p(r={},"".concat(d,"_product_scores_width"),{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"product-scores-width",unit:"px"}),p(r,"".concat(d,"_star_rating_color"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"star-rating-initial-color",type:"color:default"},{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"star-rating-inactive-color",type:"color:inactive"}]),p(r,"".concat(d,"_overall_score_text"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"overall-score-text-color",type:"color:default"}]),p(r,"".concat(d,"_overall_score_backgroud"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"overall-score-box-background",type:"color:default"}]),u=r,wp.customize.bind("change",(function(e){return u[e.id]&&(Array.isArray(u[e.id])?u[e.id]:[u[e.id]]).map((function(t){return l(t,e())}))}))}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<i;a=n[++r])h(a)||!m(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var i,s={};function c(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),l(n,e,n.depth)}function a(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=l(e,o,n)),o}var i=function(e,t){if(T(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(h(t))return e.stylize("null","null")}(e,r);if(i)return i;var s=Object.keys(r),c=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),w(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(x(r)){var a=r.name?": "+r.name:"";return e.stylize("[Function"+a+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(w(r))return p(r)}var u,m="",O=!1,_=["{","}"];(d(r)&&(O=!0,_=["[","]"]),x(r))&&(m=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(m=" "+RegExp.prototype.toString.call(r)),k(r)&&(m=" "+Date.prototype.toUTCString.call(r)),w(r)&&(m=" "+p(r)),0!==s.length||O&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=O?function(e,t,r,n,o){for(var i=[],s=0,c=t.length;s<c;++s)P(t,String(s))?i.push(f(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,r,n,c,s):s.map((function(t){return f(e,r,n,c,t,O)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,m,_)):_[0]+m+_[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,i){var s,c,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(c=e.stylize("[Setter]","special")),P(n,o)||(s="["+o+"]"),c||(e.seen.indexOf(a.value)<0?(c=h(r)?l(e,a.value,null):l(e,a.value,r-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),T(s)){if(i&&o.match(/^\d+$/))return c;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+c}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function T(e){return void 0===e}function b(e){return m(e)&&"[object RegExp]"===O(e)}function m(e){return"object"==typeof e&&null!==e}function k(e){return m(e)&&"[object Date]"===O(e)}function w(e){return m(e)&&("[object Error]"===O(e)||e instanceof Error)}function x(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(T(i)&&(i=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=T,t.isRegExp=b,t.isObject=m,t.isDate=k,t.isError=w,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(3);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(4),t._extend=function(e,t){if(!t||!m(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function z(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=R,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,arguments)};t.apply(this,r).then((function(t){e.nextTick(s,null,t)}),(function(t){e.nextTick(z,t,s)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}}).call(this,r(2))},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var a,u=[],l=!1,p=-1;function f(){l&&a&&(l=!1,a.length?u=a.concat(u):p=-1,u.length&&d())}function d(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(a=u,u=[];++p<t;)a&&a[p].run();p=-1,t=u.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new y(e,t)),1!==u.length||l||c(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";r.r(t);var n=r(1),o=r.n(n);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(r,!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},l=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e},p=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return n?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e,t){return e(t={exports:{}},t.exports),t.exports}var y=d((function(e,t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
7
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
8
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
9
+ * Google as part of the polymer project is also subject to an additional IP
10
+ * rights grant found at http://polymer.github.io/PATENTS.txt
11
+ */
12
+ Object.defineProperty(t,"__esModule",{value:!0});t.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},function(e){e.stylesheet="stylesheet",e.comment="comment",e.atRule="atRule",e.ruleset="ruleset",e.expression="expression",e.declaration="declaration",e.rulelist="rulelist",e.discarded="discarded"}(t.nodeType||(t.nodeType={}))}));f(y);y.matcher,y.nodeType;var h=d((function(e,t){
13
+ /**
14
+ * @license
15
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
16
+ * This code may only be used under the BSD style license found at
17
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
18
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
19
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
20
+ * Google as part of the polymer project is also subject to an additional IP
21
+ * rights grant found at http://polymer.github.io/PATENTS.txt
22
+ */
23
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=function*e(t){switch(yield t,t.type){case y.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case y.nodeType.ruleset:return yield*e(t.rulelist);case y.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case y.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case y.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case y.nodeType.expression:case y.nodeType.comment:case y.nodeType.discarded:return;default:const r=t;console.error("Got a node of unknown type: "+o.a.inspect(r))}}}));f(h);h.iterateOverAst;var g=d((function(e,t){
24
+ /**
25
+ * @license
26
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
27
+ * This code may only be used under the BSD style license found at
28
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
29
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
30
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
31
+ * Google as part of the polymer project is also subject to an additional IP
32
+ * rights grant found at http://polymer.github.io/PATENTS.txt
33
+ */
34
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeFactory=class{stylesheet(e,t){return{type:y.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,r,n,o,i){return{type:y.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:i}}comment(e,t){return{type:y.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:y.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:y.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:y.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:y.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:y.nodeType.discarded,text:e,range:t}}}}));f(g);g.NodeFactory;var v=d((function(e,t){
35
+ /**
36
+ * @license
37
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
38
+ * This code may only be used under the BSD style license found at
39
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
40
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
41
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
42
+ * Google as part of the polymer project is also subject to an additional IP
43
+ * rights grant found at http://polymer.github.io/PATENTS.txt
44
+ */
45
+ Object.defineProperty(t,"__esModule",{value:!0});t.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}}}));f(v);v.NodeVisitor;var T=d((function(e,t){var r;
46
+ /**
47
+ * @license
48
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
49
+ * This code may only be used under the BSD style license found at
50
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
51
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
52
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
53
+ * Google as part of the polymer project is also subject to an additional IP
54
+ * rights grant found at http://polymer.github.io/PATENTS.txt
55
+ */
56
+ Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(r=t.TokenType||(t.TokenType={}));class n{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=r,t.Token=n;const o={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};t.boundaryTokenTypes=o}));f(T);T.TokenType,T.Token,T.boundaryTokenTypes;var b=d((function(e,t){
57
+ /**
58
+ * @license
59
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
60
+ * This code may only be used under the BSD style license found at
61
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
62
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
63
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
64
+ * Google as part of the polymer project is also subject to an additional IP
65
+ * rights grant found at http://polymer.github.io/PATENTS.txt
66
+ */
67
+ Object.defineProperty(t,"__esModule",{value:!0});t.Tokenizer=class{constructor(e){this.cursorToken_=new T.Token(T.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t){const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e,t){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=y.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):y.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):y.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new T.Token(T.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!y.matcher.boundary.test(r);)e++;return new T.Token(T.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;y.matcher.whitespaceGreedy.lastIndex=e;const r=y.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=y.matcher.whitespaceGreedy.lastIndex),new T.Token(T.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;return y.matcher.commentGreedy.lastIndex=e,e=null==y.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:y.matcher.commentGreedy.lastIndex,new T.Token(T.Token.type.comment,t,e)}tokenizeBoundary(e){const t=T.boundaryTokenTypes[this.cssText[e]]||T.Token.type.boundary;return new T.Token(t,e,e+1)}}}));f(b);b.Tokenizer;var m=d((function(e,t){
68
+ /**
69
+ * @license
70
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
71
+ * This code may only be used under the BSD style license found at
72
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
73
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
74
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
75
+ * Google as part of the polymer project is also subject to an additional IP
76
+ * rights grant found at http://polymer.github.io/PATENTS.txt
77
+ */
78
+ Object.defineProperty(t,"__esModule",{value:!0});t.Parser=class{constructor(e=new g.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new b.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const r=this.parseRule(e);r&&t.push(r)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(T.Token.type.whitespace)?(e.advance(),null):t.is(T.Token.type.comment)?this.parseComment(e):t.is(T.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(T.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(T.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(T.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;if(!e.currentToken)return null;const s=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(T.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(T.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(T.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(T.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(T.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===r)return null;let c=void 0,a="";o&&(c=e.trimRange(e.getRange(o,i)),a=e.cssText.slice(c.start,c.end));const u=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,a,n,r,c,{start:s,end:u})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(T.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=null;for(;e.currentToken;)if(e.currentToken.is(T.Token.type.whitespace))e.advance();else if(e.currentToken.is(T.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(T.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(T.Token.type.openBrace)||e.currentToken.is(T.Token.type.propertyBoundary))break;e.currentToken.is(T.Token.type.colon)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(T.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),i=e.cssText.slice(o.start,o.end);let s=void 0;if(n&&n.next){const t=e.getRange(n.next,r),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);s=this.nodeFactory.expression(i,o)}e.currentToken.is(T.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,s,o,c)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(T.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),i=e.cssText.slice(o.start,o.end),s=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,n,o,s)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.end),i=this.parseRulelist(e),s=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,n,{start:s,end:c})}}}}));f(m);m.Parser;var k=d((function(e,t){
79
+ /**
80
+ * @license
81
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
82
+ * This code may only be used under the BSD style license found at
83
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
84
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
85
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
86
+ * Google as part of the polymer project is also subject to an additional IP
87
+ * rights grant found at http://polymer.github.io/PATENTS.txt
88
+ */
89
+ Object.defineProperty(t,"__esModule",{value:!0});class r extends v.NodeVisitor{stringify(e){return this.visit(e)||""}[y.nodeType.stylesheet](e){let t="";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t}[y.nodeType.atRule](e){return"@"+e.name+(e.parameters?" "+e.parameters:"")+(e.rulelist?""+this.visit(e.rulelist):";")}[y.nodeType.rulelist](e){let t="{";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t+"}"}[y.nodeType.comment](e){return""+e.value}[y.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[y.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:e.name+";"}[y.nodeType.expression](e){return""+e.text}[y.nodeType.discarded](e){return""}}t.Stringifier=r}));f(k);k.Stringifier;var w=d((function(e,t){
90
+ /**
91
+ * @license
92
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
93
+ * This code may only be used under the BSD style license found at
94
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
95
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
96
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
97
+ * Google as part of the polymer project is also subject to an additional IP
98
+ * rights grant found at http://polymer.github.io/PATENTS.txt
99
+ */
100
+ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=h.iterateOverAst,t.nodeType=y.nodeType,t.NodeFactory=g.NodeFactory,t.NodeVisitor=v.NodeVisitor,t.Parser=m.Parser,t.Stringifier=k.Stringifier,t.Token=T.Token,t.Tokenizer=b.Tokenizer}));f(w);w.iterateOverAst,w.nodeType,w.NodeFactory,w.NodeVisitor;var x,O=w.Parser,_=w.Stringifier,S=(w.Token,w.Tokenizer,{desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"}),j={desktop:{ast:{}},tablet:{ast:{}},mobile:{ast:{}}},P=function(e){return e&&"[object Function]"==={}.toString.call(e)},R=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n="".concat(e["".concat(r,"_selector_prefix")]?"".concat(e["".concat(r,"_selector_prefix")]," "):"").concat(e.selector||":root"),o="--";"property"===e.variableType&&(o="");var i="".concat(o).concat(P(e.variable)?e.variable():e.variable),s=j[r].ast.rules.find((function(e){return e.selector===n})),u=j[r].ast.rules.find((function(e){var t=e.type,r=e.rulelist;return"ruleset"===t&&r.rules.length>0})),l=c({},j[r].ast,{rules:s?j[r].ast.rules.map((function(e){if(e.selector!==n)return e;if(t.indexOf("CT_CSS_SKIP_RULE")>-1)return c({},e,{rulelist:c({},e.rulelist,{rules:e.rulelist.rules.filter((function(e){return e.name!==i}))})});var r=e.rulelist.rules.find((function(e){return e.name===i}));return c({},e,{rulelist:c({},e.rulelist,{rules:r?e.rulelist.rules.map((function(e){return e.name===i?c({},e,{value:c({},e.value,{text:t})}):e})):[].concat(a(e.rulelist.rules),[c({},u.rulelist.rules[0],{name:i,value:c({},u.rulelist.rules[0].value,{text:t})})])})})})):[].concat(a(j[r].ast.rules),[c({},u,{selector:n,rulelist:c({},u.rulelist,{rules:[c({},u.rulelist.rules[0],{name:i,value:c({},u.rulelist.rules[0].value,{text:t})})]})})])}),p=new _;j[r].ast=l,document.querySelector("style#".concat(S[r])).innerText=p.stringify(l)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.variableDescriptor,r=e.value,n=e.device,o=void 0===n?"desktop":n,i=e.customReplaceVariableInStyleTag,s=void 0===i?null:i,c=(t.type||"").indexOf("color")>-1?r["color"===t.type?"default":t.type.split(":")[1]].color:r;"border"===(t.type||"")&&(c=r&&"none"!==r.style?"".concat(r.width,"px ").concat(r.style," ").concat(r.color.color):"none",t.skip_none&&"none"===c&&(c="CT_CSS_SKIP_RULE")),"spacing"===(t.type||"")&&(c=u(r)),"box-shadow"===(t.type||"")&&(c=p(r,t)),s?s({replaceVariableInStyleTag:R,variableDescriptor:t,value:"".concat(c).concat(t.unit||"").concat(t.important?" !important":""),device:o}):R(t,"".concat(c).concat(t.unit||"").concat(t.important?" !important":""),o)},F=r(0);function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,D="blc-product-review_single";E(x={},"".concat(D,"_product_scores_width"),{selector:Object(F.applyPrefixFor)(".ct-product-scores",D),variable:"product-scores-width",unit:"px"}),E(x,"".concat(D,"_star_rating_color"),[{selector:Object(F.applyPrefixFor)(".ct-product-scores",D),variable:"star-rating-initial-color",type:"color:default"},{selector:Object(F.applyPrefixFor)(".ct-product-scores",D),variable:"star-rating-inactive-color",type:"color:inactive"}]),E(x,"".concat(D,"_overall_score_text"),[{selector:Object(F.applyPrefixFor)(".ct-product-scores",D),variable:"overall-score-text-color",type:"color:default"}]),E(x,"".concat(D,"_overall_score_backgroud"),[{selector:Object(F.applyPrefixFor)(".ct-product-scores",D),variable:"overall-score-box-background",type:"color:default"}]),M=x,Object.keys(S).map((function(e){var t=document.querySelector("style#".concat(S[e]));if(t){var r=t.innerText,n=new O,o=(new _,n.parse(r));j[e].ast=o}})),wp.customize.bind("change",(function(e){if(M[e.id]){var t=M[e.id];P(t)&&(t=t(e())),Array.isArray(t)||(t=[t]),t.map((function(t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=l(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),z({variableDescriptor:e,value:t.desktop,device:"desktop",customReplaceVariableInStyleTag:r}),z({variableDescriptor:e,value:t.tablet,device:"tablet",customReplaceVariableInStyleTag:r}),z({variableDescriptor:e,value:t.mobile,device:"mobile",customReplaceVariableInStyleTag:r})):z({variableDescriptor:e,value:t,customReplaceVariableInStyleTag:r})}(t,e())}))}}))}]);
framework/extensions/product-reviews/static/sass/main.scss CHANGED
@@ -18,6 +18,6 @@
18
  --listIndent: 0;
19
  // --listItemSpacing: 0;
20
  --listStyleType: none;
21
- --contentSpacing: 0;
22
  }
23
  }
18
  --listIndent: 0;
19
  // --listItemSpacing: 0;
20
  --listStyleType: none;
21
+ --content-spacing: 0;
22
  }
23
  }
framework/extensions/product-reviews/static/sass/title.scss CHANGED
@@ -1,6 +1,11 @@
1
  .ct-product-hero {
2
 
3
- .flexy-container + .hero-section {
4
- margin-top: var(--margin-bottom, 40px);
 
 
 
 
 
5
  }
6
  }
1
  .ct-product-hero {
2
 
3
+ .hero-section:not(:first-child) {
4
+ margin-top: var(--margin-bottom, 40px);
5
+ }
6
+
7
+ .ct-item-review-meta {
8
+ display: none;
9
+ visibility: hidden;
10
  }
11
  }
framework/extensions/trending/extension.php CHANGED
@@ -19,7 +19,7 @@ class BlocksyExtensionTrending
19
  [ 'ct-main-styles' ],
20
  $data['Version']
21
  );
22
- } );
23
  add_filter( 'blocksy:frontend:dynamic-js-chunks', function ( $chunks ) {
24
  $chunks[] = [
25
  'id' => 'blocksy_ext_trending',
19
  [ 'ct-main-styles' ],
20
  $data['Version']
21
  );
22
+ }, 50 );
23
  add_filter( 'blocksy:frontend:dynamic-js-chunks', function ( $chunks ) {
24
  $chunks[] = [
25
  'id' => 'blocksy_ext_trending',
framework/extensions/trending/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.9.2
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.9.3
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/trending/static/bundle/sync.js CHANGED
@@ -1 +1,100 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,n){"use strict";n.r(t);var o,r=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var n=t.forcedOutput,o=void 0!==n&&n;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return o?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return o?"none":"CT_CSS_SKIP_RULE";var r=[];return e.inset&&r.push("inset"),r.push("".concat(e.h_offset,"px")),r.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(r.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&r.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(r.push("".concat(e.blur,"px")),r.push("".concat(e.spread,"px"))),r.push(e.color.color),r.join(" ")},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},r=document.querySelector("style#".concat(o[n])),c=r.innerText,i="".concat(e["".concat(n,"_selector_prefix")]?"".concat(e["".concat(n,"_selector_prefix")]," "):"").concat(e.selector||":root"),a=null,l=c.match(a);0===c.trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)),l||(0===(c="".concat(c," ").concat(i," { }")).trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a))),r.innerText=c.replace(a,l[0].indexOf("--".concat(e.variable,":"))>-1?l[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):l[0].replace(new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(i," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(o=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(o=r(t)),"box-shadow"===(e.type||"")&&(o=c(t,e)),i(e,"".concat(o).concat(e.unit||"").concat(e.important?" !important":""),n)},l=function(e,t){var n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),a(e,t.desktop,"desktop"),a(e,t.tablet,"tablet"),a(e,t.mobile,"mobile")):a(e,t)},s=n(0);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o=u(u({trendingBlockContainerSpacing:{selector:".ct-trending-block",variable:"padding",responsive:!0,unit:""}},Object(s.typographyOption)({id:"trendingBlockPostsFont",selector:".ct-trending-block .ct-item-title"})),{},{trendingBlockFontColor:[{selector:".ct-trending-block",variable:"color",type:"color:default",responsive:!0},{selector:".ct-trending-block",variable:"linkHoverColor",type:"color:hover",responsive:!0}]},Object(s.handleBackgroundOptionFor)({id:"trending_block_background",selector:".ct-trending-block",responsive:!0})),wp.customize.bind("change",(function(e){return o[e.id]&&(Array.isArray(o[e.id])?o[e.id]:[o[e.id]]).map((function(t){return l(t,e())}))})),wp.customize("trending_block_visibility",(function(e){return e.bind((function(e){return Object(s.responsiveClassesFor)("trending_block_visibility",document.querySelector(".ct-trending-block"))}))})),wp.customize("trending_block_label",(function(e){return e.bind((function(e){var t=document.querySelector(".ct-trending-block .ct-block-title");if(t){var n=t.innerHTML.split("<svg");n[0]=e,t.innerHTML=n.join("<svg")}}))}))}]);