Blocksy Companion - Version 1.8.18

Version Description

Download this release

Release Info

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

Code changes from version 1.8.17 to 1.8.18

Files changed (35) hide show
  1. blocksy-companion.php +1 -1
  2. framework/dashboard.php +2 -0
  3. framework/extensions/cookies-consent/static/bundle/main.js +2 -2
  4. framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
  5. framework/extensions/cookies-consent/static/bundle/sync.js +1 -100
  6. framework/extensions/cookies-consent/static/js/main.js +46 -18
  7. framework/extensions/cookies-consent/static/js/variables.js +42 -36
  8. framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js +1 -100
  9. framework/extensions/newsletter-subscribe/admin-static/js/variables.js +122 -118
  10. framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
  11. framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
  12. framework/extensions/product-reviews/static/bundle/main.min.css +1 -1
  13. framework/extensions/product-reviews/static/bundle/sync.js +1 -100
  14. framework/extensions/product-reviews/static/js/sync.js +40 -35
  15. framework/extensions/trending/static/bundle/main.min.css +1 -1
  16. framework/extensions/trending/static/bundle/sync.js +1 -100
  17. framework/extensions/trending/static/js/sync.js +38 -32
  18. framework/extensions/widgets/static/bundle/main.min.css +1 -1
  19. framework/extensions/widgets/widgets/ct-socials/options.php +7 -5
  20. framework/features/header/items/account/view.php +6 -6
  21. framework/features/header/items/account/views/login.php +3 -4
  22. framework/features/header/items/account/views/logout.php +1 -5
  23. framework/helpers/helpers.php +7 -7
  24. framework/views/blocksy-posts.php +2 -1
  25. freemius/includes/class-freemius.php +6 -4
  26. freemius/templates/connect.php +4 -1
  27. readme.txt +6 -1
  28. static/bundle/account-lazy.min.css +1 -1
  29. static/bundle/account.js +1 -1
  30. static/bundle/dashboard.min.css +1 -1
  31. static/bundle/options.min.css +1 -1
  32. static/bundle/sticky.js +1 -1
  33. static/js/account.js +4 -0
  34. static/js/frontend/account.js +6 -5
  35. static/js/frontend/sticky/shrink-utils.js +21 -21
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.17
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blocksy-companion
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.18
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blocksy-companion
framework/dashboard.php CHANGED
@@ -50,6 +50,8 @@ class Dashboard {
50
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug ) :
51
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug );
52
 
 
 
53
  return (($is_network_upgrade_mode ?
54
  '' :
55
  /* translators: %s: name (e.g. Hey John,) */
50
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug ) :
51
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug );
52
 
53
+ $default_optin_message = 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with.';
54
+
55
  return (($is_network_upgrade_mode ?
56
  '' :
57
  /* translators: %s: name (e.g. Hey John,) */
framework/extensions/cookies-consent/static/bundle/main.js CHANGED
@@ -1,8 +1,8 @@
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=2)}([function(e,t){e.exports=window.ctEvents},function(e,t,n){var r,o;
2
  /*!
3
  * JavaScript Cookie v2.2.1
4
  * https://github.com/js-cookie/js-cookie
5
  *
6
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
  * Released under the MIT license
8
- */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+a}}function c(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var f=t(a[0]);if(u=(r.read||r)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[f]=u,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,"onDocumentLoaded",(function(){return f}));var r=n(0),o=n.n(r),i=n(1),c=n.n(i);function a(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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 u(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 f=function(e){/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},s=function(){var e=document.querySelector(".cookie-notification");e&&(c.a.get("blocksy_cookies_consent_accepted")?e.remove():(requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),d(e,(function(){e.classList.remove("ct-fade-in-end")}))})),a(e.querySelectorAll("button")).map((function(t){t.addEventListener("click",(function(n){if(n.preventDefault(),t.classList.contains("ct-accept")){c.a.set("blocksy_cookies_consent_accepted","true",{expires:new Date(1*new Date+{onehour:36e5,oneday:864e5,oneweek:6048e5,onemonth:26784e5,threemonths:80352e5,sixmonths:160704e5,oneyear:31536e6,forever:864e9}[t.closest("[data-period]").dataset.period]),sameSite:"lax"})}e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),d(e,(function(){e.parentNode.removeChild(e)}))}))}))}))))};function d(e,t){setTimeout((function(){t()}),300)}f((function(){s(),o.a&&o.a.on("blocksy:cookies:init",(function(){s()}))}))}]);
1
+ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=3)}([function(e,n){e.exports=window.ctEvents},function(e,n,t){var r,o;
2
  /*!
3
  * JavaScript Cookie v2.2.1
4
  * https://github.com/js-cookie/js-cookie
5
  *
6
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
  * Released under the MIT license
8
+ */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(n,t,n,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var u=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=u,c}}}((function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}function n(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(r){function o(){}function i(n,t,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var u=JSON.stringify(t);/^[\{\[]/.test(u)&&(t=u)}catch(e){}t=r.write?r.write(t,n):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var a in i)i[a]&&(c+="; "+a,!0!==i[a]&&(c+="="+i[a].split(";")[0]));return document.cookie=n+"="+t+c}}function u(e,t){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],u=0;u<i.length;u++){var c=i[u].split("="),a=c.slice(1).join("=");t||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var f=n(c[0]);if(a=(r.read||r)(a,f)||n(a),t)try{a=JSON.parse(a)}catch(e){}if(o[f]=a,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return u(e,!1)},o.getJSON=function(e){return u(e,!0)},o.remove=function(n,t){i(n,"",e(t,{expires:-1}))},o.defaults={},o.withConverter=t,o}((function(){}))}))},,function(e,n,t){"use strict";t.r(n),t.d(n,"onDocumentLoaded",(function(){return Z}));var r=t(0),o=t.n(r),i=t(1),u=t.n(i),c=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},a=function(e){return Array.isArray(e)?e:[e]},f=function(){return document&&c(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e){return a(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute("data-focus-lock");return e.push.apply(e,t?function e(n){for(var t=n.length,r=0;r<t;r+=1)for(var o=function(t){if(r!==t&&n[r].contains(n[t]))return{v:e(n.filter((function(e){return e!==n[t]})))}},i=0;i<t;i+=1){var u=o(i);if("object"===(void 0===u?"undefined":d(u)))return u.v}return n}(c(function e(n){return n.parentNode?e(n.parentNode):n}(n).querySelectorAll('[data-focus-lock="'+t+'"]:not([data-focus-lock-disabled="disabled"])'))):[n]),e}),[])},s=function(e){return e===document.activeElement},m=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&l(e).reduce((function(e,t){return e||t.contains(n)||function(e){return n=c(e.querySelectorAll("iframe")),t=s,!!n.filter((function(e){return e===t}))[0];var n,t}(t)}),!1)},p=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return-1}return t||r},v=function(e,n,t){return c(e).map((function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(p)},y=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],b=y.join(","),h=b+", [data-focus-guard]",g=function(e,n){return e.reduce((function(e,t){return e.concat(c(t.querySelectorAll(n?h:b)),t.parentNode?c(t.parentNode.querySelectorAll(y.join(","))).filter((function(e){return e===t})):[])}),[])},x=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},S=function(e,n){for(var t=x(e),r=x(n),o=0;o<t.length;o+=1){var i=t[o];if(r.indexOf(i)>=0)return i}return!1},w=function(e){return c(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},k=function(e,n){return v(w(g(e,n)),!0,n)},O=function(e){return w((n=e.querySelectorAll("[data-autofocus-inside]"),c(n).map((function(e){return g([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},A=function(e){return"INPUT"===e.tagName&&"radio"===e.type},E=function(e,n){return n.filter(A).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e},C=function(e,n){return e.length>1&&A(e[n])&&e[n].name?e.indexOf(E(e[n],e)):n},N=function(e){return e[0]&&e.length>1&&A(e[0])&&e[0].name?E(e[0],e):e[0]},L=function(e){return e&&e.dataset&&e.dataset.focusGuard},I=function(e){return!L(e)},j=function(e,n,t){var r=a(e),o=a(n),i=r[0],u=null;return o.filter(Boolean).forEach((function(e){u=S(u||e,e)||u,t.filter(Boolean).forEach((function(e){var n=S(i,e);n&&(u=!u||n.contains(u)?n:S(n,u))}))})),u},D=function(e,n){var t=document&&document.activeElement,r=l(e).filter(I),o=j(t||e,e,r),i=k(r).filter((function(e){var n=e.node;return I(n)}));if(i[0]||(i=(u=r,v(w(g(u)),!1)).filter((function(e){var n=e.node;return I(n)})))[0]){var u,c,a,f,d,s=k([o]).map((function(e){return e.node})),m=(c=s,a=i,f=new Map,a.forEach((function(e){return f.set(e.node,e)})),c.map((function(e){return f.get(e)})).filter(Boolean)),p=m.map((function(e){return e.node})),y=function(e,n,t,r,o){var i=e.length,u=e[0],c=e[i-1],a=L(t);if(!(e.indexOf(t)>=0)){var f=n.indexOf(t),d=n.indexOf(r||f),l=e.indexOf(r),s=f-d,m=n.indexOf(u),p=n.indexOf(c),v=C(e,0),y=C(e,i-1);return-1===f||-1===l?e.indexOf(o&&o.length?N(o):N(e)):!s&&l>=0?l:f<=m&&a&&Math.abs(s)>1?y:f>=m&&a&&Math.abs(s)>1?v:s&&Math.abs(s)>1?l:f<=m?y:f>p?v:s?Math.abs(s)>1?l:(i+l+s)%i:void 0}}(p,s,t,n,p.filter((d=function(e){return e.reduce((function(e,n){return e.concat(O(n))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||d.indexOf(e)>=0})));return void 0===y?y:m[y]}},_=0,M=!1,T=function(e,n){var t,r=D(e,n);if(!M&&r){if(_>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),M=!0,void setTimeout((function(){M=!1}),1);_++,(t=r.node).focus(),t.contentWindow&&t.contentWindow.focus(),_--}},q=0,F=null,U=function(){return document&&document.activeElement===document.body||f()},P=function(e){q=e,e&&function(){var e=!1;if(q){var n=q;U()||(n&&!m(n)&&(e=T(n,F)),F=document.activeElement)}}()},B=[],R=function(e){return!!P((n=B,n.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var n};function G(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return J(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return J(e,n)}(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 J(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var V={on:function(e){0===B.length&&document.addEventListener("focusin",R),B.indexOf(e)<0&&(B.push(e),R())},off:function(e){B=B.filter((function(n){return n!==e})),R(),0===B.length&&document.removeEventListener("focusin",R)}};window.ctFrontend&&ctFrontend.focusLock?V=ctFrontend.focusLock:(window.ctFrontend=window.ctFrontend||{},ctFrontend.focusLock=V);var W=function(e){27===e.keyCode&&K(document.querySelector(".cookie-notification"))},K=function(e){V.off(e),document.removeEventListener("keyup",W),e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),z(e,(function(){e.parentNode.removeChild(e)}))}))},Z=function(e){/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},$=function(){var e,n=document.querySelector(".cookie-notification");n&&(u.a.get("blocksy_cookies_consent_accepted")?n.remove():(e=n,V.on(e),document.addEventListener("keyup",W),requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),z(e,(function(){e.classList.remove("ct-fade-in-end")}))})),G(n.querySelectorAll("button")).map((function(e){e.addEventListener("click",(function(t){if(t.preventDefault(),e.classList.contains("ct-accept")){u.a.set("blocksy_cookies_consent_accepted","true",{expires:new Date(1*new Date+{onehour:36e5,oneday:864e5,oneweek:6048e5,onemonth:26784e5,threemonths:80352e5,sixmonths:160704e5,oneyear:31536e6,forever:864e9}[e.closest("[data-period]").dataset.period]),sameSite:"lax"})}K(n)}))}))))};function z(e,n){setTimeout((function(){n()}),300)}Z((function(){$(),o.a&&o.a.on("blocksy:cookies:init",(function(){$()}))}))}]);
framework/extensions/cookies-consent/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/cookies-consent/static/bundle/sync.js CHANGED
@@ -1,100 +1 @@
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}))}))}))}]);
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.ctEvents},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n);function i(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(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,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||f(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 l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||f(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 f(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 p(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(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.a.on("ct:customizer:sync:collect-variable-descriptors",(function(e){e.result=c(c({},e.result),{},{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"}})}));var b=function(){var e=document.createElement("div");return e.innerHTML=document.querySelector(".ct-customizer-preview-cache-container").value,e},m=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=b()),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}},v=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(l(document.querySelectorAll("".concat(e.parent_selector," ").concat(e.selector))).map((function(e){return e.parentNode.removeChild(e)})),e.should_insert){var r=m(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=a(n,2),i=(o[0],o[1]);t.querySelector(i)?t.insertBefore(r.firstElementChild,t.querySelector(i)):t.appendChild(r.firstElementChild)}e.whenInserted()}}};function h(e){return function(e){if(Array.isArray(e))return O(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 O(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 O(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 O(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 v({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 o.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 h(document.querySelectorAll(".gdpr-confirm-policy label")).map((function(t){return t.innerHTML=e}))}))}))}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/cookies-consent/static/js/main.js CHANGED
@@ -1,5 +1,49 @@
1
  import ctEvents from 'ct-events'
2
  import cookie from 'js-cookie'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  export const onDocumentLoaded = (cb) => {
5
  if (/comp|inter|loaded/.test(document.readyState)) {
@@ -19,14 +63,7 @@ const initCookies = () => {
19
  return
20
  }
21
 
22
- requestAnimationFrame(() => {
23
- notification.classList.remove('ct-fade-in-start')
24
- notification.classList.add('ct-fade-in-end')
25
-
26
- whenTransitionEnds(notification, () => {
27
- notification.classList.remove('ct-fade-in-end')
28
- })
29
- })
30
  ;[...notification.querySelectorAll('button')].map((el) => {
31
  el.addEventListener('click', (e) => {
32
  e.preventDefault()
@@ -52,16 +89,7 @@ const initCookies = () => {
52
  })
53
  }
54
 
55
- notification.classList.add('ct-fade-start')
56
-
57
- requestAnimationFrame(() => {
58
- notification.classList.remove('ct-fade-start')
59
- notification.classList.add('ct-fade-end')
60
-
61
- whenTransitionEnds(notification, () => {
62
- notification.parentNode.removeChild(notification)
63
- })
64
- })
65
  })
66
  })
67
  }
1
  import ctEvents from 'ct-events'
2
  import cookie from 'js-cookie'
3
+ import focusLock from 'dom-focus-lock'
4
+
5
+ let focusLockToUse = focusLock
6
+
7
+ if (window.ctFrontend && ctFrontend.focusLock) {
8
+ focusLockToUse = ctFrontend.focusLock
9
+ } else {
10
+ window.ctFrontend = window.ctFrontend || {}
11
+ ctFrontend.focusLock = focusLockToUse
12
+ }
13
+
14
+ const onKeydown = (event) => {
15
+ if (event.keyCode !== 27) return
16
+ hideCookieConsent(document.querySelector('.cookie-notification'))
17
+ }
18
+
19
+ const showCookieConsent = (node) => {
20
+ focusLockToUse.on(node)
21
+ document.addEventListener('keyup', onKeydown)
22
+
23
+ requestAnimationFrame(() => {
24
+ node.classList.remove('ct-fade-in-start')
25
+ node.classList.add('ct-fade-in-end')
26
+
27
+ whenTransitionEnds(node, () => {
28
+ node.classList.remove('ct-fade-in-end')
29
+ })
30
+ })
31
+ }
32
+ const hideCookieConsent = (node) => {
33
+ focusLockToUse.off(node)
34
+ document.removeEventListener('keyup', onKeydown)
35
+
36
+ node.classList.add('ct-fade-start')
37
+
38
+ requestAnimationFrame(() => {
39
+ node.classList.remove('ct-fade-start')
40
+ node.classList.add('ct-fade-end')
41
+
42
+ whenTransitionEnds(node, () => {
43
+ node.parentNode.removeChild(node)
44
+ })
45
+ })
46
+ }
47
 
48
  export const onDocumentLoaded = (cb) => {
49
  if (/comp|inter|loaded/.test(document.readyState)) {
63
  return
64
  }
65
 
66
+ showCookieConsent(notification)
 
 
 
 
 
 
 
67
  ;[...notification.querySelectorAll('button')].map((el) => {
68
  el.addEventListener('click', (e) => {
69
  e.preventDefault()
89
  })
90
  }
91
 
92
+ hideCookieConsent(notification)
 
 
 
 
 
 
 
 
 
93
  })
94
  })
95
  }
framework/extensions/cookies-consent/static/js/variables.js CHANGED
@@ -1,43 +1,49 @@
1
- import { handleVariablesFor } from 'customizer-sync-helpers'
2
 
3
- handleVariablesFor({
4
- cookieContentColor: [
5
- {
6
- selector: '.cookie-notification',
7
- variable: 'color',
8
- type: 'color:default'
9
- },
 
 
 
 
10
 
11
- {
12
- selector: '.cookie-notification',
13
- variable: 'colorHover',
14
- type: 'color:hover'
15
- }
16
- ],
17
 
18
- cookieBackground: {
19
- selector: '.cookie-notification',
20
- variable: 'backgroundColor',
21
- type: 'color'
22
- },
23
 
24
- cookieButtonBackground: [
25
- {
26
- selector: '.cookie-notification',
27
- variable: 'buttonInitialColor',
28
- type: 'color:default'
29
- },
30
 
31
- {
32
- selector: '.cookie-notification',
33
- variable: 'buttonHoverColor',
34
- type: 'color:hover'
35
- }
36
- ],
37
 
38
- cookieMaxWidth: {
39
- selector: '.cookie-notification',
40
- variable: 'maxWidth',
41
- unit: 'px'
 
 
42
  }
43
- })
1
+ import ctEvents from 'ct-events'
2
 
3
+ ctEvents.on(
4
+ 'ct:customizer:sync:collect-variable-descriptors',
5
+ (allVariables) => {
6
+ allVariables.result = {
7
+ ...allVariables.result,
8
+ cookieContentColor: [
9
+ {
10
+ selector: '.cookie-notification',
11
+ variable: 'color',
12
+ type: 'color:default',
13
+ },
14
 
15
+ {
16
+ selector: '.cookie-notification',
17
+ variable: 'colorHover',
18
+ type: 'color:hover',
19
+ },
20
+ ],
21
 
22
+ cookieBackground: {
23
+ selector: '.cookie-notification',
24
+ variable: 'backgroundColor',
25
+ type: 'color',
26
+ },
27
 
28
+ cookieButtonBackground: [
29
+ {
30
+ selector: '.cookie-notification',
31
+ variable: 'buttonInitialColor',
32
+ type: 'color:default',
33
+ },
34
 
35
+ {
36
+ selector: '.cookie-notification',
37
+ variable: 'buttonHoverColor',
38
+ type: 'color:hover',
39
+ },
40
+ ],
41
 
42
+ cookieMaxWidth: {
43
+ selector: '.cookie-notification',
44
+ variable: 'maxWidth',
45
+ unit: 'px',
46
+ },
47
+ }
48
  }
49
+ )
framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js CHANGED
@@ -1,100 +1 @@
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")()}}})}]);
1
+ !function(e){var t={};function r(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},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 s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(s,o,function(t){return e[t]}.bind(null,o));return s},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=2)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t){e.exports=window.ctEvents},function(e,t,r){"use strict";r.r(t);var s=r(0),o=r(1);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.n(o).a.on("ct:customizer:sync:collect-variable-descriptors",(function(e){e.result=n(n(n({},e.result),{},{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(s.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}})})),wp.customize("newsletter_subscribe_subscribe_visibility",(function(e){return e.bind((function(e){var t=document.querySelector(".ct-newsletter-subscribe-block");Object(s.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",t)}))})),(document.body.classList.contains("single")||document.body.classList.contains("page"))&&Object(s.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(s.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,118 +1,122 @@
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',
17
- variable: 'color',
18
- type: 'color:default',
19
- },
20
-
21
- {
22
- selector: '.ct-newsletter-subscribe-block',
23
- variable: 'linkHoverColor',
24
- type: 'color:hover',
25
- },
26
- ],
27
-
28
- newsletter_subscribe_button: [
29
- {
30
- selector: '.ct-newsletter-subscribe-block',
31
- variable: 'buttonInitialColor',
32
- type: 'color:default',
33
- },
34
-
35
- {
36
- selector: '.ct-newsletter-subscribe-block',
37
- variable: 'buttonHoverColor',
38
- type: 'color:hover',
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: {
99
- selector: '.ct-newsletter-subscribe-block',
100
- type: 'box-shadow',
101
- variable: 'box-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
- })
 
 
 
 
1
+ import { handleBackgroundOptionFor } from 'blocksy-customizer-sync'
2
+ import ctEvents from 'ct-events'
3
+
4
+ ctEvents.on(
5
+ 'ct:customizer:sync:collect-variable-descriptors',
6
+ (allVariables) => {
7
+ allVariables.result = {
8
+ ...allVariables.result,
9
+ newsletter_subscribe_title_color: {
10
+ selector: '.ct-newsletter-subscribe-block',
11
+ variable: 'heading-color',
12
+ type: 'color:default',
13
+ responsive: true,
14
+ },
15
+
16
+ newsletter_subscribe_content: [
17
+ {
18
+ selector: '.ct-newsletter-subscribe-block',
19
+ variable: 'color',
20
+ type: 'color:default',
21
+ },
22
+
23
+ {
24
+ selector: '.ct-newsletter-subscribe-block',
25
+ variable: 'linkHoverColor',
26
+ type: 'color:hover',
27
+ },
28
+ ],
29
+
30
+ newsletter_subscribe_button: [
31
+ {
32
+ selector: '.ct-newsletter-subscribe-block',
33
+ variable: 'buttonInitialColor',
34
+ type: 'color:default',
35
+ },
36
+
37
+ {
38
+ selector: '.ct-newsletter-subscribe-block',
39
+ variable: 'buttonHoverColor',
40
+ type: 'color:hover',
41
+ },
42
+ ],
43
+
44
+ newsletter_subscribe_input_font_color: [
45
+ {
46
+ selector: '.ct-newsletter-subscribe-block',
47
+ variable: 'form-text-initial-color',
48
+ type: 'color:default',
49
+ },
50
+
51
+ {
52
+ selector: '.ct-newsletter-subscribe-block',
53
+ variable: 'form-text-focus-color',
54
+ type: 'color:focus',
55
+ },
56
+ ],
57
+
58
+ newsletter_subscribe_border_color: [
59
+ {
60
+ selector: '.ct-newsletter-subscribe-block',
61
+ variable: 'form-field-border-initial-color',
62
+ type: 'color:default',
63
+ },
64
+
65
+ {
66
+ selector: '.ct-newsletter-subscribe-block',
67
+ variable: 'form-field-border-focus-color',
68
+ type: 'color:focus',
69
+ },
70
+ ],
71
+
72
+ newsletter_subscribe_input_background: [
73
+ {
74
+ selector: '.ct-newsletter-subscribe-block',
75
+ variable: 'form-field-initial-background',
76
+ type: 'color:default',
77
+ },
78
+
79
+ {
80
+ selector: '.ct-newsletter-subscribe-block',
81
+ variable: 'form-field-focus-background',
82
+ type: 'color:focus',
83
+ },
84
+ ],
85
+
86
+ ...handleBackgroundOptionFor({
87
+ id: 'newsletter_subscribe_container_background',
88
+ selector: '.ct-newsletter-subscribe-block',
89
+ responsive: true,
90
+ }),
91
+
92
+ newsletter_subscribe_container_border: {
93
+ selector: '.ct-newsletter-subscribe-block',
94
+ variable: 'newsletter-container-border',
95
+ type: 'border',
96
+ responsive: true,
97
+ skip_none: true,
98
+ },
99
+
100
+ newsletter_subscribe_shadow: {
101
+ selector: '.ct-newsletter-subscribe-block',
102
+ type: 'box-shadow',
103
+ variable: 'box-shadow',
104
+ responsive: true,
105
+ },
106
+
107
+ newsletter_subscribe_container_spacing: {
108
+ selector: '.ct-newsletter-subscribe-block',
109
+ type: 'spacing',
110
+ variable: 'padding',
111
+ responsive: true,
112
+ },
113
+
114
+ newsletter_subscribe_container_border_radius: {
115
+ selector: '.ct-newsletter-subscribe-block',
116
+ type: 'spacing',
117
+ variable: 'border-radius',
118
+ responsive: true,
119
+ },
120
+ }
121
+ }
122
+ )
framework/extensions/newsletter-subscribe/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main-admin.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/sync.js CHANGED
@@ -1,100 +1 @@
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())}))}}))}]);
1
+ !function(e){var r={};function t(o){if(r[o])return r[o].exports;var c=r[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var c in e)t.d(o,c,function(r){return e[r]}.bind(null,c));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r){e.exports=window.blocksyCustomizerSync},function(e,r){e.exports=window.ctEvents},function(e,r,t){"use strict";t.r(r);var o=t(0),c=t(1);function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?n(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var a="blc-product-review_single";t.n(c).a.on("ct:customizer:sync:collect-variable-descriptors",(function(e){var r;e.result=i(i({},e.result),{},(l(r={},"".concat(a,"_product_scores_width"),{selector:Object(o.applyPrefixFor)(".ct-product-scores",a),variable:"product-scores-width",unit:"px"}),l(r,"".concat(a,"_star_rating_color"),[{selector:Object(o.applyPrefixFor)(".ct-product-scores",a),variable:"star-rating-initial-color",type:"color:default"},{selector:Object(o.applyPrefixFor)(".ct-product-scores",a),variable:"star-rating-inactive-color",type:"color:inactive"}]),l(r,"".concat(a,"_overall_score_text"),[{selector:Object(o.applyPrefixFor)(".ct-product-scores",a),variable:"overall-score-text-color",type:"color:default"}]),l(r,"".concat(a,"_overall_score_backgroud"),[{selector:Object(o.applyPrefixFor)(".ct-product-scores",a),variable:"overall-score-box-background",type:"color:default"}]),r))}))}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/product-reviews/static/js/sync.js CHANGED
@@ -1,43 +1,48 @@
1
- import { handleVariablesFor } from 'customizer-sync-helpers'
2
  import { applyPrefixFor } from 'blocksy-customizer-sync'
 
3
 
4
  const prefix = 'blc-product-review_single'
5
 
6
- handleVariablesFor({
 
 
 
 
 
 
 
 
 
7
 
8
- [`${prefix}_product_scores_width`]: {
9
- selector: applyPrefixFor('.ct-product-scores', prefix),
10
- variable: 'product-scores-width',
11
- unit: 'px',
12
- },
 
13
 
14
- [`${prefix}_star_rating_color`]: [
15
- {
16
- selector: applyPrefixFor('.ct-product-scores', prefix),
17
- variable: 'star-rating-initial-color',
18
- type: 'color:default',
19
- },
20
 
21
- {
22
- selector: applyPrefixFor('.ct-product-scores', prefix),
23
- variable: 'star-rating-inactive-color',
24
- type: 'color:inactive',
25
- },
26
- ],
 
27
 
28
- [`${prefix}_overall_score_text`]: [
29
- {
30
- selector: applyPrefixFor('.ct-product-scores', prefix),
31
- variable: 'overall-score-text-color',
32
- type: 'color:default',
33
- },
34
- ],
35
-
36
- [`${prefix}_overall_score_backgroud`]: [
37
- {
38
- selector: applyPrefixFor('.ct-product-scores', prefix),
39
- variable: 'overall-score-box-background',
40
- type: 'color:default',
41
- },
42
- ],
43
- })
 
1
  import { applyPrefixFor } from 'blocksy-customizer-sync'
2
+ import ctEvents from 'ct-events'
3
 
4
  const prefix = 'blc-product-review_single'
5
 
6
+ ctEvents.on(
7
+ 'ct:customizer:sync:collect-variable-descriptors',
8
+ (allVariables) => {
9
+ allVariables.result = {
10
+ ...allVariables.result,
11
+ [`${prefix}_product_scores_width`]: {
12
+ selector: applyPrefixFor('.ct-product-scores', prefix),
13
+ variable: 'product-scores-width',
14
+ unit: 'px',
15
+ },
16
 
17
+ [`${prefix}_star_rating_color`]: [
18
+ {
19
+ selector: applyPrefixFor('.ct-product-scores', prefix),
20
+ variable: 'star-rating-initial-color',
21
+ type: 'color:default',
22
+ },
23
 
24
+ {
25
+ selector: applyPrefixFor('.ct-product-scores', prefix),
26
+ variable: 'star-rating-inactive-color',
27
+ type: 'color:inactive',
28
+ },
29
+ ],
30
 
31
+ [`${prefix}_overall_score_text`]: [
32
+ {
33
+ selector: applyPrefixFor('.ct-product-scores', prefix),
34
+ variable: 'overall-score-text-color',
35
+ type: 'color:default',
36
+ },
37
+ ],
38
 
39
+ [`${prefix}_overall_score_backgroud`]: [
40
+ {
41
+ selector: applyPrefixFor('.ct-product-scores', prefix),
42
+ variable: 'overall-score-box-background',
43
+ type: 'color:default',
44
+ },
45
+ ],
46
+ }
47
+ }
48
+ )
 
 
 
 
 
 
framework/extensions/trending/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/trending/static/bundle/sync.js CHANGED
@@ -1,100 +1 @@
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(!b(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}})),u=n[r];r<i;u=n[++r])h(u)||!m(u)?s+=" "+u:s+=" "+c(u);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: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),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(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&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return b(o)||(o=l(e,o,n)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(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(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(T(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 a,m="",x=!1,_=["{","}"];(d(r)&&(x=!0,_=["[","]"]),O(r))&&(m=" [Function"+(r.name?": "+r.name:"")+"]");return T(r)&&(m=" "+RegExp.prototype.toString.call(r)),k(r)&&(m=" "+Date.prototype.toUTCString.call(r)),w(r)&&(m=" "+p(r)),0!==s.length||x&&0!=r.length?n<0?T(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),a=x?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,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]}(a,m,_)):_[0]+m+_[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,i){var s,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)||(s="["+o+"]"),c||(e.seen.indexOf(u.value)<0?(c=h(r)?l(e,u.value,null):l(e,u.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")),v(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 b(e){return"string"==typeof e}function v(e){return void 0===e}function T(e){return m(e)&&"[object RegExp]"===x(e)}function m(e){return"object"==typeof e&&null!==e}function k(e){return m(e)&&"[object Date]"===x(e)}function w(e){return m(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(v(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=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=T,t.isObject=m,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 j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),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 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===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];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=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 u(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 a=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 b=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(b);b.NodeVisitor;var v=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(v);v.TokenType,v.Token,v.boundaryTokenTypes;var T=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 v.Token(v.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 v.Token(v.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 v.Token(v.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 v.Token(v.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 v.Token(v.Token.type.comment,t,e)}tokenizeBoundary(e){const t=v.boundaryTokenTypes[this.cssText[e]]||v.Token.type.boundary;return new v.Token(t,e,e+1)}}}));f(T);T.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 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(v.Token.type.whitespace)?(e.advance(),null):t.is(v.Token.type.comment)?this.parseComment(e):t.is(v.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(v.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(v.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(v.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(v.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(v.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(v.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(v.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(v.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,u="";o&&(c=e.trimRange(e.getRange(o,i)),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:s,end:a})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(v.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(v.Token.type.whitespace))e.advance();else if(e.currentToken.is(v.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(v.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(v.Token.type.openBrace)||e.currentToken.is(v.Token.type.propertyBoundary))break;e.currentToken.is(v.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(v.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(v.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(v.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 b.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=b.NodeVisitor,t.Parser=m.Parser,t.Stringifier=k.Stringifier,t.Token=v.Token,t.Tokenizer=T.Tokenizer}));f(w);w.iterateOverAst,w.nodeType,w.NodeFactory,w.NodeVisitor;var O,x=w.Parser,_=w.Stringifier,j=(w.Token,w.Tokenizer,{desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"}),S={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=S[r].ast.rules.find((function(e){return e.selector===n})),a=S[r].ast.rules.find((function(e){var t=e.type,r=e.rulelist;return"ruleset"===t&&r.rules.length>0})),l=c({},S[r].ast,{rules:s?S[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(u(e.rulelist.rules),[c({},a.rulelist.rules[0],{name:i,value:c({},a.rulelist.rules[0].value,{text:t})})])})})})):[].concat(u(S[r].ast.rules),[c({},a,{selector:n,rulelist:c({},a.rulelist,{rules:[c({},a.rulelist.rules[0],{name:i,value:c({},a.rulelist.rules[0].value,{text:t})})]})})])}),p=new _;S[r].ast=l,document.querySelector("style#".concat(j[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=a(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){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 M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(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=M(M({trendingBlockContainerSpacing:{selector:".ct-trending-block",variable:"padding",responsive:!0,unit:""}},Object(F.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(F.handleBackgroundOptionFor)({id:"trending_block_background",selector:".ct-trending-block",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 _,n.parse(r));S[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")),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())}))}})),wp.customize("trending_block_visibility",(function(e){return e.bind((function(e){return Object(F.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 r=t.innerHTML.split("<svg");r[0]=e,t.innerHTML=r.join("<svg")}}))}))}]);
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=2)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t){e.exports=window.ctEvents},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(1);function i(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.n(o).a.on("ct:customizer:sync:collect-variable-descriptors",(function(e){e.result=c(c(c({},e.result),{},{trendingBlockContainerSpacing:{selector:".ct-trending-block",variable:"padding",responsive:!0,unit:""}},Object(n.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(n.handleBackgroundOptionFor)({id:"trending_block_background",selector:".ct-trending-block",responsive:!0}))})),wp.customize("trending_block_visibility",(function(e){return e.bind((function(e){return Object(n.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 r=t.innerHTML.split("<svg");r[0]=e,t.innerHTML=r.join("<svg")}}))}))}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/trending/static/js/sync.js CHANGED
@@ -1,45 +1,51 @@
1
- import { handleVariablesFor } from 'customizer-sync-helpers'
2
  import {
3
  handleBackgroundOptionFor,
4
  responsiveClassesFor,
5
  typographyOption,
6
  } from 'blocksy-customizer-sync'
 
7
 
8
- handleVariablesFor({
9
- trendingBlockContainerSpacing: {
10
- selector: '.ct-trending-block',
11
- variable: 'padding',
12
- responsive: true,
13
- unit: '',
14
- },
 
 
 
 
15
 
16
- ...typographyOption({
17
- id: 'trendingBlockPostsFont',
18
- selector: '.ct-trending-block .ct-item-title',
19
- }),
20
 
21
- trendingBlockFontColor: [
22
- {
23
- selector: '.ct-trending-block',
24
- variable: 'color',
25
- type: 'color:default',
26
- responsive: true,
27
- },
28
 
29
- {
30
- selector: '.ct-trending-block',
31
- variable: 'linkHoverColor',
32
- type: 'color:hover',
33
- responsive: true,
34
- },
35
- ],
36
 
37
- ...handleBackgroundOptionFor({
38
- id: 'trending_block_background',
39
- selector: '.ct-trending-block',
40
- responsive: true,
41
- }),
42
- })
 
 
43
 
44
  wp.customize('trending_block_visibility', (value) =>
45
  value.bind((to) =>
 
1
  import {
2
  handleBackgroundOptionFor,
3
  responsiveClassesFor,
4
  typographyOption,
5
  } from 'blocksy-customizer-sync'
6
+ import ctEvents from 'ct-events'
7
 
8
+ ctEvents.on(
9
+ 'ct:customizer:sync:collect-variable-descriptors',
10
+ (allVariables) => {
11
+ allVariables.result = {
12
+ ...allVariables.result,
13
+ trendingBlockContainerSpacing: {
14
+ selector: '.ct-trending-block',
15
+ variable: 'padding',
16
+ responsive: true,
17
+ unit: '',
18
+ },
19
 
20
+ ...typographyOption({
21
+ id: 'trendingBlockPostsFont',
22
+ selector: '.ct-trending-block .ct-item-title',
23
+ }),
24
 
25
+ trendingBlockFontColor: [
26
+ {
27
+ selector: '.ct-trending-block',
28
+ variable: 'color',
29
+ type: 'color:default',
30
+ responsive: true,
31
+ },
32
 
33
+ {
34
+ selector: '.ct-trending-block',
35
+ variable: 'linkHoverColor',
36
+ type: 'color:hover',
37
+ responsive: true,
38
+ },
39
+ ],
40
 
41
+ ...handleBackgroundOptionFor({
42
+ id: 'trending_block_background',
43
+ selector: '.ct-trending-block',
44
+ responsive: true,
45
+ }),
46
+ }
47
+ }
48
+ )
49
 
50
  wp.customize('trending_block_visibility', (value) =>
51
  value.bind((to) =>
framework/extensions/widgets/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
framework/extensions/widgets/widgets/ct-socials/options.php CHANGED
@@ -24,13 +24,15 @@ $options = [
24
  'label' => false,
25
  'manageable' => true,
26
  'desc' => sprintf(
27
- __( 'You can configure social URLs in %s.', 'blocksy-companion' ),
 
28
  sprintf(
29
- '<a href="%s" target="_blank">%s</a>',
30
- admin_url('/customize.php?autofocus[section]=social_accounts'),
31
- __('Customizer', 'blocksy-companion')
32
- )
33
  ),
 
34
  'value' => [
35
  [
36
  'id' => 'facebook',
24
  'label' => false,
25
  'manageable' => true,
26
  'desc' => sprintf(
27
+ // translators: placeholder here means the actual URL.
28
+ __( 'Configure the social links in Customizer ➝ General ➝ %sSocial Network Accounts%s.', 'blocksy-companion' ),
29
  sprintf(
30
+ '<a href="%s" data-trigger-section="general:social_section_options" target="_blank">',
31
+ admin_url('/customize.php?autofocus[section]=general&ct_autofocus=general:social_section_options')
32
+ ),
33
+ '</a>'
34
  ),
35
+
36
  'value' => [
37
  [
38
  'id' => 'facebook',
framework/features/header/items/account/view.php CHANGED
@@ -13,18 +13,18 @@ if (is_customize_preview()) {
13
  }
14
 
15
  $icon = apply_filters('blocksy:header:account:icons', [
16
- 'type-1' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M7.5,0C3.4,0,0,3.4,0,7.5c0,1.7,0.5,3.2,1.5,4.5c1.4,1.9,3.6,3,6,3s4.6-1.1,6-3c1-1.3,1.5-2.9,1.5-4.5C15,3.4,11.6,0,7.5,0zM7.5,13.5c-1.4,0-2.8-0.5-3.8-1.4c1.1-0.9,2.4-1.4,3.8-1.4s2.8,0.5,3.8,1.4C10.3,13,8.9,13.5,7.5,13.5z M12.3,11c-1.3-1.1-3-1.8-4.8-1.8S4,9.9,2.7,11c-0.8-1-1.2-2.2-1.2-3.5c0-3.3,2.7-6,6-6s6,2.7,6,6C13.5,8.8,13.1,10,12.3,11zM7.5,3C6.1,3,5,4.1,5,5.5S6.1,8,7.5,8S10,6.9,10,5.5S8.9,3,7.5,3zM7.5,6.5c-0.5,0-1-0.5-1-1s0.5-1,1-1s1,0.5,1,1S8,6.5,7.5,6.5z"/></svg>',
17
 
18
- 'type-2' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M13,7V6.1h0V3.9c0-1.4-1.1-2.6-2.6-2.6H9.7c0,0-0.6-1.3-3.2-1.3C4.1,0,1.9,2,2,4.5V7C1.4,7.4,1,8.1,1,8.8c0,0.9,0.6,1.8,1.4,2.1c0.8,2.1,2.7,3.7,4.9,4l0.1,0l0.1,0c2.3-0.4,4.1-1.9,5-4c0.8-0.3,1.4-1.2,1.4-2.1C14,8.1,13.6,7.4,13,7zM11.9,9.6l-0.5,0.1l-0.1,0.4c-0.5,1.7-2,3-3.8,3.3c-1.8-0.3-3.2-1.6-3.8-3.4L3.6,9.6L3.1,9.6C2.8,9.5,2.5,9.2,2.5,8.8c0-0.3,0.2-0.6,0.5-0.7L3.5,8V6.5h2.2c1.1,0,2-0.5,2.4-1.3h1.6c0.8,0,1.6,0.5,1.8,1.3V8L12,8.2c0.3,0.1,0.5,0.4,0.5,0.7C12.5,9.3,12.2,9.6,11.9,9.6z"/></svg>',
19
 
20
- 'type-3' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M10.5,9h-6c-2.1,0-3.8,1.7-3.8,3.8v1.5c0,0.4,0.3,0.8,0.8,0.8s0.8-0.3,0.8-0.8v-1.5c0-1.2,1-2.2,2.2-2.2h6c1.2,0,2.2,1,2.2,2.2v1.5c0,0.4,0.3,0.8,0.8,0.8s0.8-0.3,0.8-0.8v-1.5C14.2,10.7,12.6,9,10.5,9zM7.5,7C9.4,7,11,5.4,11,3.5
21
  S9.4,0,7.5,0S4,1.6,4,3.5S5.6,7,7.5,7zM7.5,1.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S6.4,1.5,7.5,1.5z"/></svg>',
22
 
23
- 'type-4' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M7.5 0C3.4 0 0 3.4 0 7.5S3.4 15 7.5 15 15 11.6 15 7.5 11.6 0 7.5 0zm0 2.1c1.4 0 2.5 1.1 2.5 2.4S8.9 7 7.5 7 5 5.9 5 4.5s1.1-2.4 2.5-2.4zm0 11.4c-2.1 0-3.9-1-5-2.6C3.4 9.6 6 9 7.5 9s4.1.6 5 1.9c-1.1 1.6-2.9 2.6-5 2.6z"/></svg>',
24
 
25
- 'type-5' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M7.5,0C3.4,0,0,3.4,0,7.5S3.4,15,7.5,15S15,11.6,15,7.5S11.6,0,7.5,0z M11.6,11.9c-0.5-0.6-1.5-1-2.7-1.3c0,0-0.6-0.2-0.4-0.7c0.6-0.6,0.7-1.1,0.7-1.2c0,0,0.6-0.5,0.6-1.1C10,7,9.8,6.9,9.8,6.9c0.2-0.7,0.3-3.3-1.4-3C8.1,3.4,6.4,3,5.7,4.4C5.3,5.1,5.1,6.2,5.5,6.9c0,0-0.1-0.1-0.2,0.3c0,0.4,0.2,0.9,0.4,1.1c0.1,0.1,0.2,0.2,0.3,0.2c0,0,0.1,0.6,0.6,1.2c0.1,0.6-0.4,0.8-0.4,0.8c-1.2,0.2-2.3,0.7-2.7,1.4c-1.2-1.1-1.9-2.6-1.9-4.4c0-3.3,2.7-6,6-6s6,2.7,6,6C13.5,9.2,12.8,10.8,11.6,11.9z"/></svg>',
26
 
27
- 'type-6' => '<svg class="ct-icon" width="15" height="15" viewBox="0 0 15 15"><title>'. __('Account header icon', 'blocksy-companion').'</title><path d="M14.2,5.2l-6.3-5C7.6-0.1,7.2-0.1,7,0.2l-6.2,5C0.6,5.3,0.5,5.5,0.5,5.7v7.5c0,1,0.8,1.8,1.8,1.8h10.5c1,0,1.8-0.8,1.8-1.8V5.7C14.5,5.5,14.4,5.3,14.2,5.2z M8.8,13.5H6.3V9h2.5V13.5zM13,13.2c0,0.1-0.1,0.2-0.2,0.2h-2.5V8.2c0-0.4-0.3-0.8-0.8-0.8h-4c-0.4,0-0.8,0.3-0.8,0.8v5.2H2.3c-0.1,0-0.2-0.1-0.2-0.2V6.1l5.4-4.4L13,6.1V13.2z"/></svg>',
28
  ]);
29
 
30
  $path = 'login';
13
  }
14
 
15
  $icon = apply_filters('blocksy:header:account:icons', [
16
+ 'type-1' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M7.5,0C3.4,0,0,3.4,0,7.5c0,1.7,0.5,3.2,1.5,4.5c1.4,1.9,3.6,3,6,3s4.6-1.1,6-3c1-1.3,1.5-2.9,1.5-4.5C15,3.4,11.6,0,7.5,0zM7.5,13.5c-1.4,0-2.8-0.5-3.8-1.4c1.1-0.9,2.4-1.4,3.8-1.4s2.8,0.5,3.8,1.4C10.3,13,8.9,13.5,7.5,13.5z M12.3,11c-1.3-1.1-3-1.8-4.8-1.8S4,9.9,2.7,11c-0.8-1-1.2-2.2-1.2-3.5c0-3.3,2.7-6,6-6s6,2.7,6,6C13.5,8.8,13.1,10,12.3,11zM7.5,3C6.1,3,5,4.1,5,5.5S6.1,8,7.5,8S10,6.9,10,5.5S8.9,3,7.5,3zM7.5,6.5c-0.5,0-1-0.5-1-1s0.5-1,1-1s1,0.5,1,1S8,6.5,7.5,6.5z"/></svg>',
17
 
18
+ 'type-2' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M13,7V6.1h0V3.9c0-1.4-1.1-2.6-2.6-2.6H9.7c0,0-0.6-1.3-3.2-1.3C4.1,0,1.9,2,2,4.5V7C1.4,7.4,1,8.1,1,8.8c0,0.9,0.6,1.8,1.4,2.1c0.8,2.1,2.7,3.7,4.9,4l0.1,0l0.1,0c2.3-0.4,4.1-1.9,5-4c0.8-0.3,1.4-1.2,1.4-2.1C14,8.1,13.6,7.4,13,7zM11.9,9.6l-0.5,0.1l-0.1,0.4c-0.5,1.7-2,3-3.8,3.3c-1.8-0.3-3.2-1.6-3.8-3.4L3.6,9.6L3.1,9.6C2.8,9.5,2.5,9.2,2.5,8.8c0-0.3,0.2-0.6,0.5-0.7L3.5,8V6.5h2.2c1.1,0,2-0.5,2.4-1.3h1.6c0.8,0,1.6,0.5,1.8,1.3V8L12,8.2c0.3,0.1,0.5,0.4,0.5,0.7C12.5,9.3,12.2,9.6,11.9,9.6z"/></svg>',
19
 
20
+ 'type-3' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M10.5,9h-6c-2.1,0-3.8,1.7-3.8,3.8v1.5c0,0.4,0.3,0.8,0.8,0.8s0.8-0.3,0.8-0.8v-1.5c0-1.2,1-2.2,2.2-2.2h6c1.2,0,2.2,1,2.2,2.2v1.5c0,0.4,0.3,0.8,0.8,0.8s0.8-0.3,0.8-0.8v-1.5C14.2,10.7,12.6,9,10.5,9zM7.5,7C9.4,7,11,5.4,11,3.5
21
  S9.4,0,7.5,0S4,1.6,4,3.5S5.6,7,7.5,7zM7.5,1.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S6.4,1.5,7.5,1.5z"/></svg>',
22
 
23
+ 'type-4' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M7.5 0C3.4 0 0 3.4 0 7.5S3.4 15 7.5 15 15 11.6 15 7.5 11.6 0 7.5 0zm0 2.1c1.4 0 2.5 1.1 2.5 2.4S8.9 7 7.5 7 5 5.9 5 4.5s1.1-2.4 2.5-2.4zm0 11.4c-2.1 0-3.9-1-5-2.6C3.4 9.6 6 9 7.5 9s4.1.6 5 1.9c-1.1 1.6-2.9 2.6-5 2.6z"/></svg>',
24
 
25
+ 'type-5' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M7.5,0C3.4,0,0,3.4,0,7.5S3.4,15,7.5,15S15,11.6,15,7.5S11.6,0,7.5,0z M11.6,11.9c-0.5-0.6-1.5-1-2.7-1.3c0,0-0.6-0.2-0.4-0.7c0.6-0.6,0.7-1.1,0.7-1.2c0,0,0.6-0.5,0.6-1.1C10,7,9.8,6.9,9.8,6.9c0.2-0.7,0.3-3.3-1.4-3C8.1,3.4,6.4,3,5.7,4.4C5.3,5.1,5.1,6.2,5.5,6.9c0,0-0.1-0.1-0.2,0.3c0,0.4,0.2,0.9,0.4,1.1c0.1,0.1,0.2,0.2,0.3,0.2c0,0,0.1,0.6,0.6,1.2c0.1,0.6-0.4,0.8-0.4,0.8c-1.2,0.2-2.3,0.7-2.7,1.4c-1.2-1.1-1.9-2.6-1.9-4.4c0-3.3,2.7-6,6-6s6,2.7,6,6C13.5,9.2,12.8,10.8,11.6,11.9z"/></svg>',
26
 
27
+ 'type-6' => '<svg class="ct-icon" aria-hidden="true" width="15" height="15" viewBox="0 0 15 15"><path d="M14.2,5.2l-6.3-5C7.6-0.1,7.2-0.1,7,0.2l-6.2,5C0.6,5.3,0.5,5.5,0.5,5.7v7.5c0,1,0.8,1.8,1.8,1.8h10.5c1,0,1.8-0.8,1.8-1.8V5.7C14.5,5.5,14.4,5.3,14.2,5.2z M8.8,13.5H6.3V9h2.5V13.5zM13,13.2c0,0.1-0.1,0.2-0.2,0.2h-2.5V8.2c0-0.4-0.3-0.8-0.8-0.8h-4c-0.4,0-0.8,0.3-0.8,0.8v5.2H2.3c-0.1,0-0.2-0.1-0.2-0.2V6.1l5.4-4.4L13,6.1V13.2z"/></svg>',
28
  ]);
29
 
30
  $path = 'login';
framework/features/header/items/account/views/login.php CHANGED
@@ -51,7 +51,8 @@ if ($loggedin_media === 'avatar') {
51
  [
52
  'img_atts' => [
53
  'width' => $avatar_size,
54
- 'height' => $avatar_size
 
55
  ]
56
  ]
57
  );
@@ -86,9 +87,7 @@ $attr['aria-label'] = $loggedin_label;
86
 
87
  echo '<a ' . blocksy_attr_to_html($attr) . '>';
88
 
89
- if (! empty($loggedin_label) && (blocksy_some_device(
90
- $loggedin_account_label_visibility
91
- ) || is_customize_preview())) {
92
  echo '<span class="' . trim('ct-label ' . blocksy_visibility_classes(
93
  $loggedin_account_label_visibility
94
  )) . '">';
51
  [
52
  'img_atts' => [
53
  'width' => $avatar_size,
54
+ 'height' => $avatar_size,
55
+ 'aria-hidden' => 'true',
56
  ]
57
  ]
58
  );
87
 
88
  echo '<a ' . blocksy_attr_to_html($attr) . '>';
89
 
90
+ if (! empty($loggedin_label)) {
 
 
91
  echo '<span class="' . trim('ct-label ' . blocksy_visibility_classes(
92
  $loggedin_account_label_visibility
93
  )) . '">';
framework/features/header/items/account/views/logout.php CHANGED
@@ -46,11 +46,7 @@ $attr['aria-label'] = $login_label;
46
 
47
  echo '<a ' . blocksy_attr_to_html($attr) . '>';
48
 
49
- if (
50
- blocksy_some_device($loggedout_account_label_visibility)
51
- ||
52
- is_customize_preview()
53
- ) {
54
  echo '<span class="' . trim('ct-label ' . blocksy_visibility_classes(
55
  $loggedout_account_label_visibility
56
  )) . '">';
46
 
47
  echo '<a ' . blocksy_attr_to_html($attr) . '>';
48
 
49
+ if (! empty($login_label)) {
 
 
 
 
50
  echo '<span class="' . trim('ct-label ' . blocksy_visibility_classes(
51
  $loggedout_account_label_visibility
52
  )) . '">';
framework/helpers/helpers.php CHANGED
@@ -93,19 +93,19 @@ function blc_get_contacts_output($args = []) {
93
  }
94
 
95
  $svgs = [
96
- 'address' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Address icon', 'blocksy') . '"><path d="M10,0C6.1,0,3,3.1,3,7c0,4.5,6,11.8,6.2,12.1L10,20l0.8-0.9C11,18.8,17,11.5,17,7C17,3.1,13.9,0,10,0z M10,2c2.8,0,5,2.2,5,5c0,2.7-3.1,7.4-5,9.8C8.1,14.4,5,9.7,5,7C5,4.2,7.2,2,10,2zM10,4.5C8.6,4.5,7.5,5.6,7.5,7S8.6,9.5,10,9.5s2.5-1.1,2.5-2.5S11.4,4.5,10,4.5z"/></svg>',
97
 
98
- 'phone' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Phone icon', 'blocksy') . '"><path d="M4.4,0C4,0,3.6,0.2,3.2,0.4l0,0l0,0L0.8,2.9l0,0C0,3.6-0.2,4.7,0.1,5.6c0,0,0,0,0,0c0.7,1.9,2.3,5.5,5.6,8.7c3.3,3.3,6.9,4.9,8.7,5.6h0c0.9,0.3,1.9,0.1,2.7-0.5l2.4-2.4c0.6-0.6,0.6-1.7,0-2.4l-3.1-3.1l0,0c-0.6-0.6-1.8-0.6-2.4,0l-1.5,1.5c-0.6-0.3-1.9-1-3.1-2.2C8,9.5,7.4,8.2,7.2,7.6l1.5-1.5c0.6-0.6,0.7-1.7,0-2.4l0,0L8.6,3.6L5.6,0.5l0,0l0,0C5.2,0.2,4.8,0,4.4,0zM4.4,1.5c0.1,0,0.1,0,0.2,0.1l3.1,3.1l0.1,0.1c0,0,0,0.1,0,0.2L5.7,6.9L5.3,7.3l0.2,0.5c0,0,0.9,2.4,2.7,4.1L8.4,12c1.8,1.6,3.9,2.5,3.9,2.5l0.5,0.2l2.3-2.3c0.1-0.1,0.1-0.1,0.2,0l3.1,3.1c0.1,0.1,0.1,0.1,0,0.2l-2.4,2.4c-0.4,0.3-0.7,0.4-1.2,0.2c-1.7-0.7-5.1-2.2-8.1-5.2c-3-3-4.6-6.5-5.2-8.2c-0.1-0.3,0-0.8,0.2-1l0,0l2.3-2.4C4.2,1.6,4.3,1.5,4.4,1.5z"/></svg>',
99
 
100
- 'mobile' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Mobile phone icon', 'blocksy') . '"><path d="M13.5,20H6.5c-1.6,0-2.9-1.3-2.9-2.9V2.9C3.5,1.3,4.8,0,6.5,0h7.1c1.6,0,2.9,1.3,2.9,2.9v14.1C16.5,18.7,15.2,20,13.5,20zM6.7,1.7C5.8,1.7,5,2.5,5,3.4v13.2c0,0.9,0.7,1.7,1.7,1.7h6.6c0.9,0,1.7-0.7,1.7-1.7V3.4c0-0.9-0.7-1.7-1.7-1.7H6.7z"/><path d="M11.2,4.4H8.8c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h2.4c0.3,0,0.6,0.3,0.6,0.6S11.5,4.4,11.2,4.4z"/><circle cx="10" cy="15.7" r="1.2"/></svg>',
101
 
102
- 'hours' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Working hours icon', 'blocksy') . '"><path d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10s10-4.5,10-10S15.5,0,10,0z M10,18.2c-4.5,0-8.2-3.7-8.2-8.2c0-4.5,3.7-8.2,8.2-8.2c4.5,0,8.2,3.7,8.2,8.2C18.2,14.5,14.5,18.2,10,18.2z M14.4,12.2c-0.2,0.3-0.5,0.5-0.8,0.5c-0.1,0-0.3,0-0.4-0.1l-3.6-1.8c-0.3-0.2-0.5-0.5-0.5-0.8V4.5C9.1,4,9.5,3.6,10,3.6s0.9,0.4,0.9,0.9v4.9L14,11C14.5,11.2,14.7,11.8,14.4,12.2z"/></svg>',
103
 
104
- 'fax' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Fax icon', 'blocksy') . '"><path d="M17.5,5.8h-1.7v-4V0h-1.7H5.8H4.2v1.8v4H2.5C1.1,5.8,0,7,0,8.3v8.3h4.2V20h11.7v-3.3H20V8.3C20,7,18.9,5.8,17.5,5.8zM5.8,1.8h8.3v4H5.8V1.8zM14.2,18.3H5.8v-5h8.3V18.3zM18.3,15h-2.5v-3.3H4.2V15H1.7V8.3c0-0.5,0.4-0.8,0.8-0.8h15c0.5,0,0.8,0.4,0.8,0.8V15zM4.2,9.2c0,0.5-0.4,0.8-0.8,0.8S2.5,9.6,2.5,9.2s0.4-0.8,0.8-0.8S4.2,8.7,4.2,9.2z"/></svg>',
105
 
106
- 'email' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Email icon', 'blocksy') . '"><path d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10h5v-2h-5c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8v1.5c0,0.8-0.7,1.5-1.5,1.5S15,12.3,15,11.5V10c0-2.7-2.3-5-5-5s-5,2.3-5,5s2.3,5,5,5c1.4,0,2.7-0.6,3.6-1.6c0.6,0.9,1.7,1.6,2.9,1.6c1.9,0,3.5-1.6,3.5-3.5V10C20,4.5,15.5,0,10,0zM10,7c1.7,0,3,1.3,3,3s-1.3,3-3,3s-3-1.3-3-3S8.3,7,10,7z"/></svg>',
107
 
108
- 'website' => '<svg width="18" height="18" viewBox="0 0 20 20" role="img" aria-label="'. __('Website icon', 'blocksy') . '"><path d="M9.3,0C4.4,0,0.4,4,0.4,8.9s4,8.9,8.9,8.9c0.8,0,1.5-0.1,2.2-0.3v-3.9c-0.6,1.7-1.4,2.7-2.2,2.7c-0.9,0-2-1.5-2.5-3.7h4.8
109
  v-1.5h-5c-0.1-0.7-0.1-1.4-0.1-2.2c0-0.8,0.1-1.5,0.2-2.2h5.6c0.1,0.7,0.2,1.4,0.2,2.2c0,0.2,0,0.4,0,0.6c0.4-0.4,0.9-0.6,1.5-0.6c0-0.8,0-1.5-0.1-2.2h2.8c0.2,0.7,0.3,1.4,0.3,2.2c0,0.5-0.1,1-0.2,1.5l1.3,0.9c0.2-0.8,0.3-1.6,0.3-2.4C18.1,4,14.2,0,9.3,0zM9.3,1.5c0.9,0,2,1.5,2.5,3.7h-5C7.3,2.9,8.3,1.5,9.3,1.5zM6.3,2.1C5.9,2.9,5.5,4,5.2,5.2H2.8C3.6,3.8,4.9,2.7,6.3,2.1zM12.2,2.1c1.5,0.6,2.7,1.7,3.5,3.1h-2.3C13.1,4,12.7,2.9,12.2,2.1zM2.2,6.7h2.8C4.9,7.4,4.8,8.1,4.8,8.9c0,0.8,0.1,1.5,0.1,2.2H2.2C2,10.4,1.9,9.7,1.9,8.9C1.9,8.1,2,7.4,2.2,6.7z M13.7,10.4c-0.4,0-0.7,0.3-0.8,0.7c0,0,0,0.1,0,0.1v6.6c0,0.4,0.3,0.7,0.7,0.7c0.2,0,0.4-0.1,0.5-0.2l0,0l1.4-1.6l1.5,3c0.2,0.4,0.6,0.5,1,0.3c0.4-0.2,0.5-0.6,0.3-1l-1.5-3l2.2-0.4l0,0c0.3-0.1,0.5-0.4,0.5-0.7c0-0.3-0.1-0.5-0.3-0.6l0,0l-5.1-3.6C14.1,10.4,13.9,10.4,13.7,10.4zM2.9,12.6h2.3c0.3,1.2,0.7,2.3,1.1,3.1C4.9,15.1,3.7,14,2.9,12.6z"/></svg>',
110
  ];
111
 
93
  }
94
 
95
  $svgs = [
96
+ 'address' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M10,0C6.1,0,3,3.1,3,7c0,4.5,6,11.8,6.2,12.1L10,20l0.8-0.9C11,18.8,17,11.5,17,7C17,3.1,13.9,0,10,0z M10,2c2.8,0,5,2.2,5,5c0,2.7-3.1,7.4-5,9.8C8.1,14.4,5,9.7,5,7C5,4.2,7.2,2,10,2zM10,4.5C8.6,4.5,7.5,5.6,7.5,7S8.6,9.5,10,9.5s2.5-1.1,2.5-2.5S11.4,4.5,10,4.5z"/></svg>',
97
 
98
+ 'phone' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M4.4,0C4,0,3.6,0.2,3.2,0.4l0,0l0,0L0.8,2.9l0,0C0,3.6-0.2,4.7,0.1,5.6c0,0,0,0,0,0c0.7,1.9,2.3,5.5,5.6,8.7c3.3,3.3,6.9,4.9,8.7,5.6h0c0.9,0.3,1.9,0.1,2.7-0.5l2.4-2.4c0.6-0.6,0.6-1.7,0-2.4l-3.1-3.1l0,0c-0.6-0.6-1.8-0.6-2.4,0l-1.5,1.5c-0.6-0.3-1.9-1-3.1-2.2C8,9.5,7.4,8.2,7.2,7.6l1.5-1.5c0.6-0.6,0.7-1.7,0-2.4l0,0L8.6,3.6L5.6,0.5l0,0l0,0C5.2,0.2,4.8,0,4.4,0zM4.4,1.5c0.1,0,0.1,0,0.2,0.1l3.1,3.1l0.1,0.1c0,0,0,0.1,0,0.2L5.7,6.9L5.3,7.3l0.2,0.5c0,0,0.9,2.4,2.7,4.1L8.4,12c1.8,1.6,3.9,2.5,3.9,2.5l0.5,0.2l2.3-2.3c0.1-0.1,0.1-0.1,0.2,0l3.1,3.1c0.1,0.1,0.1,0.1,0,0.2l-2.4,2.4c-0.4,0.3-0.7,0.4-1.2,0.2c-1.7-0.7-5.1-2.2-8.1-5.2c-3-3-4.6-6.5-5.2-8.2c-0.1-0.3,0-0.8,0.2-1l0,0l2.3-2.4C4.2,1.6,4.3,1.5,4.4,1.5z"/></svg>',
99
 
100
+ 'mobile' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M13.5,20H6.5c-1.6,0-2.9-1.3-2.9-2.9V2.9C3.5,1.3,4.8,0,6.5,0h7.1c1.6,0,2.9,1.3,2.9,2.9v14.1C16.5,18.7,15.2,20,13.5,20zM6.7,1.7C5.8,1.7,5,2.5,5,3.4v13.2c0,0.9,0.7,1.7,1.7,1.7h6.6c0.9,0,1.7-0.7,1.7-1.7V3.4c0-0.9-0.7-1.7-1.7-1.7H6.7z"/><path d="M11.2,4.4H8.8c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h2.4c0.3,0,0.6,0.3,0.6,0.6S11.5,4.4,11.2,4.4z"/><circle cx="10" cy="15.7" r="1.2"/></svg>',
101
 
102
+ 'hours' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10s10-4.5,10-10S15.5,0,10,0z M10,18.2c-4.5,0-8.2-3.7-8.2-8.2c0-4.5,3.7-8.2,8.2-8.2c4.5,0,8.2,3.7,8.2,8.2C18.2,14.5,14.5,18.2,10,18.2z M14.4,12.2c-0.2,0.3-0.5,0.5-0.8,0.5c-0.1,0-0.3,0-0.4-0.1l-3.6-1.8c-0.3-0.2-0.5-0.5-0.5-0.8V4.5C9.1,4,9.5,3.6,10,3.6s0.9,0.4,0.9,0.9v4.9L14,11C14.5,11.2,14.7,11.8,14.4,12.2z"/></svg>',
103
 
104
+ 'fax' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M17.5,5.8h-1.7v-4V0h-1.7H5.8H4.2v1.8v4H2.5C1.1,5.8,0,7,0,8.3v8.3h4.2V20h11.7v-3.3H20V8.3C20,7,18.9,5.8,17.5,5.8zM5.8,1.8h8.3v4H5.8V1.8zM14.2,18.3H5.8v-5h8.3V18.3zM18.3,15h-2.5v-3.3H4.2V15H1.7V8.3c0-0.5,0.4-0.8,0.8-0.8h15c0.5,0,0.8,0.4,0.8,0.8V15zM4.2,9.2c0,0.5-0.4,0.8-0.8,0.8S2.5,9.6,2.5,9.2s0.4-0.8,0.8-0.8S4.2,8.7,4.2,9.2z"/></svg>',
105
 
106
+ 'email' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10h5v-2h-5c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8v1.5c0,0.8-0.7,1.5-1.5,1.5S15,12.3,15,11.5V10c0-2.7-2.3-5-5-5s-5,2.3-5,5s2.3,5,5,5c1.4,0,2.7-0.6,3.6-1.6c0.6,0.9,1.7,1.6,2.9,1.6c1.9,0,3.5-1.6,3.5-3.5V10C20,4.5,15.5,0,10,0zM10,7c1.7,0,3,1.3,3,3s-1.3,3-3,3s-3-1.3-3-3S8.3,7,10,7z"/></svg>',
107
 
108
+ 'website' => '<svg width="18" height="18" viewBox="0 0 20 20" aria-hidden="true"><path d="M9.3,0C4.4,0,0.4,4,0.4,8.9s4,8.9,8.9,8.9c0.8,0,1.5-0.1,2.2-0.3v-3.9c-0.6,1.7-1.4,2.7-2.2,2.7c-0.9,0-2-1.5-2.5-3.7h4.8
109
  v-1.5h-5c-0.1-0.7-0.1-1.4-0.1-2.2c0-0.8,0.1-1.5,0.2-2.2h5.6c0.1,0.7,0.2,1.4,0.2,2.2c0,0.2,0,0.4,0,0.6c0.4-0.4,0.9-0.6,1.5-0.6c0-0.8,0-1.5-0.1-2.2h2.8c0.2,0.7,0.3,1.4,0.3,2.2c0,0.5-0.1,1-0.2,1.5l1.3,0.9c0.2-0.8,0.3-1.6,0.3-2.4C18.1,4,14.2,0,9.3,0zM9.3,1.5c0.9,0,2,1.5,2.5,3.7h-5C7.3,2.9,8.3,1.5,9.3,1.5zM6.3,2.1C5.9,2.9,5.5,4,5.2,5.2H2.8C3.6,3.8,4.9,2.7,6.3,2.1zM12.2,2.1c1.5,0.6,2.7,1.7,3.5,3.1h-2.3C13.1,4,12.7,2.9,12.2,2.1zM2.2,6.7h2.8C4.9,7.4,4.8,8.1,4.8,8.9c0,0.8,0.1,1.5,0.1,2.2H2.2C2,10.4,1.9,9.7,1.9,8.9C1.9,8.1,2,7.4,2.2,6.7z M13.7,10.4c-0.4,0-0.7,0.3-0.8,0.7c0,0,0,0.1,0,0.1v6.6c0,0.4,0.3,0.7,0.7,0.7c0.2,0,0.4-0.1,0.5-0.2l0,0l1.4-1.6l1.5,3c0.2,0.4,0.6,0.5,1,0.3c0.4-0.2,0.5-0.6,0.3-1l-1.5-3l2.2-0.4l0,0c0.3-0.1,0.5-0.4,0.5-0.7c0-0.3-0.1-0.5-0.3-0.6l0,0l-5.1-3.6C14.1,10.4,13.9,10.4,13.7,10.4zM2.9,12.6h2.3c0.3,1.2,0.7,2.3,1.1,3.1C4.9,15.1,3.7,14,2.9,12.6z"/></svg>',
110
  ];
111
 
framework/views/blocksy-posts.php CHANGED
@@ -107,7 +107,8 @@ if (isset($_GET['blocksy_term_id'])) {
107
 
108
  $query = new WP_Query(apply_filters(
109
  'blocksy:general:shortcodes:blocksy-posts:args',
110
- $query_args
 
111
  ));
112
 
113
  if (! $query->have_posts() && $args['no_results'] === 'skip') {
107
 
108
  $query = new WP_Query(apply_filters(
109
  'blocksy:general:shortcodes:blocksy-posts:args',
110
+ $query_args,
111
+ $args
112
  ));
113
 
114
  if (! $query->have_posts() && $args['no_results'] === 'skip') {
freemius/includes/class-freemius.php CHANGED
@@ -6902,7 +6902,8 @@
6902
 
6903
  $this->clear_cron_data( $name );
6904
 
6905
- if ( 0 < $cron_blog_id ) {
 
6906
  switch_to_blog( $cron_blog_id );
6907
  }
6908
 
@@ -6912,7 +6913,7 @@
6912
 
6913
  wp_clear_scheduled_hook( $this->get_action_tag( $action_tag ) );
6914
 
6915
- if ( 0 < $cron_blog_id ) {
6916
  restore_current_blog();
6917
  }
6918
  }
@@ -6944,7 +6945,7 @@
6944
  $cron_data->blog_id :
6945
  0;
6946
 
6947
- if ( 0 < $cron_blog_id ) {
6948
  switch_to_blog( $cron_blog_id );
6949
  }
6950
 
@@ -6954,7 +6955,8 @@
6954
 
6955
  $next_scheduled = wp_next_scheduled( $this->get_action_tag( $action_tag ) );
6956
 
6957
- if ( 0 < $cron_blog_id ) {
 
6958
  restore_current_blog();
6959
  }
6960
 
6902
 
6903
  $this->clear_cron_data( $name );
6904
 
6905
+ if ( 0 < $cron_blog_id && function_exists('switch_to_blog') ) {
6906
+
6907
  switch_to_blog( $cron_blog_id );
6908
  }
6909
 
6913
 
6914
  wp_clear_scheduled_hook( $this->get_action_tag( $action_tag ) );
6915
 
6916
+ if ( 0 < $cron_blog_id && function_exists('restore_current_blog') ) {
6917
  restore_current_blog();
6918
  }
6919
  }
6945
  $cron_data->blog_id :
6946
  0;
6947
 
6948
+ if ( 0 < $cron_blog_id && function_exists('switch_to_blog')) {
6949
  switch_to_blog( $cron_blog_id );
6950
  }
6951
 
6955
 
6956
  $next_scheduled = wp_next_scheduled( $this->get_action_tag( $action_tag ) );
6957
 
6958
+ if ( 0 < $cron_blog_id && function_exists('restore_current_blog')) {
6959
+
6960
  restore_current_blog();
6961
  }
6962
 
freemius/templates/connect.php CHANGED
@@ -207,6 +207,9 @@
207
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug ) :
208
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug );
209
 
 
 
 
210
  // If user customized the opt-in message on update, use
211
  // that message. Otherwise, fallback to regular opt-in
212
  // custom message if exist.
@@ -1044,4 +1047,4 @@
1044
 
1045
  //endregion
1046
  })(jQuery);
1047
- </script>
207
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug ) :
208
  fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug );
209
 
210
+ $default_optin_message = 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with.';
211
+
212
+
213
  // If user customized the opt-in message on update, use
214
  // that message. Otherwise, fallback to regular opt-in
215
  // custom message if exist.
1047
 
1048
  //endregion
1049
  })(jQuery);
1050
+ </script>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
5
  Tested up to: 5.8
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
- Stable tag: 1.8.17
9
 
10
  == Description ==
11
 
@@ -23,6 +23,11 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
23
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
24
 
25
  == Changelog ==
 
 
 
 
 
26
  1.8.17: 2022-01-21
27
  - Improvement: Product reviews image aspect ratio filter
28
  - Improvement: Customizer export/import module improvement
5
  Tested up to: 5.8
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
+ Stable tag: 1.8.18
9
 
10
  == Description ==
11
 
23
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
24
 
25
  == Changelog ==
26
+ 1.8.18: 2022-02-16
27
+ - Improvement: Account modal better compatibility with All In One WP Security plugin
28
+ - Improvement: Cookies consent popup focus lock
29
+ - Improvement: Integration with CAPTCHA 4WP in account modal
30
+
31
  1.8.17: 2022-01-21
32
  - Improvement: Product reviews image aspect ratio filter
33
  - Improvement: Customizer export/import module improvement
static/bundle/account-lazy.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
static/bundle/account.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},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=2)}([function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,r){"use strict";r.r(t);var o=r(0),n=r.n(o),c=r(1);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return s(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 s(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 s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var l=function(e,t){var r=function(e){var t=jQuery();return i(e.querySelectorAll("input")).map((function(e){t=t.add(e)})),t}(t);if("object"===("undefined"==typeof grecaptcha?"undefined":a(grecaptcha)))grecaptcha.ready((function(){grecaptcha.execute(WFLSVars.recaptchasitekey,{action:"login"}).then((function(t){var o=jQuery("#wfls-captcha-token");o.length?o.val(t):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val(t),r.parent().append(o)),"function"==typeof e&&e(!0)}))}));else{var o=jQuery("#wfls-captcha-token");o.length?o.val("grecaptcha-missing"):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val("grecaptcha-missing"),r.parent().append(o)),"function"==typeof e&&e(!0)}},u=function(e){i(e.querySelectorAll(".g-recaptcha, .anr_captcha_field")).map((function(e){e.classList.contains("anr_captcha_field")?grecaptcha.reset(parseFloat(e.firstElementChild.id.replace("anr_captcha_field_",""))-1):grecaptcha.reset(e.gID)}))},f=function(e){return new Promise((function(t){(function(e,t){return!(!window.WFLSVars||!parseInt(WFLSVars.useCAPTCHA))&&(l((function(){return e()}),t),!0)})(t,e)||t()}))},d=function(e,t){var r=t.screen,o=void 0===r?"login":r;e.querySelector(".ct-".concat(o,"-form"))||(o="login"),e.querySelector("ul")&&e.querySelector("ul .ct-".concat(o))&&(e.querySelector("ul .active").classList.remove("active"),e.querySelector("ul .ct-".concat(o)).classList.add("active")),e.querySelector('[class*="-form"].active').classList.remove("active"),e.querySelector(".ct-".concat(o,"-form")).classList.add("active"),e.querySelector(".ct-".concat(o,"-form form"))&&e.querySelector(".ct-".concat(o,"-form form")).reset(),e.querySelector(".ct-account-form").classList.remove("ct-error");var n=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-form-notification");n&&n.remove();var c=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-form-notification-error");c&&c.remove()},m=function(e,t){var r=e.querySelector(".ct-form-notification-error");r&&r.remove(),e.closest(".ct-account-form").classList.remove("ct-error"),t&&(e.insertAdjacentHTML("afterbegin",'<div class="ct-form-notification-error">'.concat(t,"</div>")),requestAnimationFrame((function(){e.closest(".ct-account-form").classList.add("ct-error")})))},p=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector("#login_error"),n="";return o&&(n=o.innerHTML),m(e,n),{hasError:!!o,doc:r}},y=function(e,t){var r=e.querySelector(".ct-form-notification");r&&r.remove(),e.closest(".ct-account-form").classList.remove("ct-error"),t&&e.insertAdjacentHTML("afterbegin",'<div class="ct-form-notification">'.concat(t,"</div>"))},v=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector(".message"),n="";return o&&(n=o.innerHTML),y(e,n),{doc:r}},h="";Object(c.registerDynamicChunk)("blocksy_account",{mount:function(e,t){var r=t.event;if(r.preventDefault(),!h){var o=document.querySelector("#account-modal");h=o.innerHTML,o.remove()}var a=document.querySelector(".ct-drawer-canvas").lastElementChild;a.id="account-modal";var i=ct_localizations.dynamic_styles_selectors.find((function(e){return a.matches(e.selector)})),s=function(){a.innerHTML=h,function(e){if(e&&!e.hasListeners){e.hasListeners=!0,e.addEventListener("click",(function(t){t.target.href&&t.target.href.indexOf("lostpassword")>-1&&(d(e,{screen:"forgot-password"}),t.preventDefault()),t.target.href&&t.target.classList.contains("showlogin")&&(d(e,{screen:"login"}),t.preventDefault()),t.target.href&&t.target.href.indexOf("wp-login")>-1&&-1===t.target.href.indexOf("lostpassword")&&(d(e,{screen:"login"}),t.preventDefault())}),!0);var t=e.querySelector('[name="loginform"]'),r=e.querySelector('[name="registerform"]'),o=e.querySelector('[name="lostpasswordform"]');t&&t.addEventListener("submit",(function(e){if(e.preventDefault(),!window.ct_customizer_localizations){var r=new FormData(t),o=t.action;if(window.WFLSVars&&!t.loginProceed)return r.append("action","wordfence_ls_authenticate"),o=WFLSVars.ajaxurl,void f(t).then((function(){fetch(o,{method:t.method,body:r}).then((function(e){return e.json()})).then((function(e){var r=!!e.error,o=t.closest(".ct-login-form"),n=t.closest(".ct-login-form").querySelector("form");if(r&&m(o,e.error),e.message&&y(n,e.message),e.login&&e.jwt){if(!jQuery("#wfls-token").length){var c=jQuery('<div id="wfls-prompt-overlay-blocksy"></div>'),a=jQuery('<div id="wfls-prompt-wrapper"></div>'),i=jQuery('<label for="wfls-token">2FA Code <a href="javascript:void(0)" class="wfls-2fa-code-help wfls-tooltip-trigger" title="The 2FA Code can be found within the authenticator app you used when first activating two-factor authentication. You may also use one of your recovery codes."><i class="dashicons dashicons-editor-help"></i></a></label>'),s=jQuery('<input type="text" name="wfls-token" id="wfls-token" aria-describedby="wfls-token-error" class="input" value="" size="6" autocomplete="off"/>'),l=jQuery('<label for="wfls-remember-device"><input name="wfls-remember-device" type="checkbox" id="wfls-remember-device" class="ct-checkbox" value="1" /> Remember for 30 days</label>');a.append(i),a.append(s),parseInt(WFLSVars.allowremember)&&a.append(l),c.append(a),jQuery(n).prepend(c),new jQuery.Zebra_Tooltips(jQuery(".wfls-tooltip-trigger"))}var f=jQuery("#wfls-token-jwt");f.length||(f=jQuery('<input type="hidden" name="wfls-token-jwt" id="wfls-token-jwt" value=""/>'),jQuery("#wfls-prompt-overlay-blocksy").append(f)),jQuery("#wfls-token-jwt").val(e.jwt)}e.combined&&(t.loginProceed=!0,n.submit()),(!r||r&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&u(t.closest(".ct-login-form"))}))}));f(t).then((function(){fetch(o,{method:t.method,body:r}).then((function(e){return e.text()})).then((function(e){var r=p(t.closest(".ct-login-form"),e),o=(r.doc,r.hasError);o||(location=t.querySelector('[name="redirect_to"]').value),(!o||o&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&u(t.closest(".ct-login-form"))}))}))}})),r&&r.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||f(r).then((function(){return fetch("".concat(ct_localizations.ajax_url,"?action=blc_implement_user_registration"),{method:r.method,body:new FormData(r)}).then((function(e){return e.text()})).then((function(e){var t=p(r.closest(".ct-register-form"),e),o=(t.doc,t.hasError);o||v(r.closest(".ct-register-form"),e),n.a.trigger("blocksy:account:register:".concat(o?"error":"success")),(!o||o&&-1===r.closest(".ct-register-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&u(r.closest(".ct-register-form"))}))}))})),o&&o.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||fetch("".concat(ct_localizations.ajax_url,"?action=blc_implement_user_lostpassword"),{method:o.method,body:new FormData(o)}).then((function(e){return e.text()})).then((function(e){var t=p(o.closest(".ct-forgot-password-form"),e),r=(t.doc,t.hasError);r||v(o.closest(".ct-forgot-password-form"),e),(!r||r&&-1===o.closest(".ct-forgot-password-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&u(o.closest(".ct-forgot-password-form"))}))})),["login","register","forgot-password"].map((function(t){Array.from(e.querySelectorAll(".ct-".concat(t))).map((function(r){r.addEventListener("click",(function(r){r.preventDefault(),d(e,{screen:t})})),r.addEventListener("keyup",(function(r){13===r.keyCode&&(r.preventDefault(),d(e,{screen:t}))}))}))}))}}(a),d(a,{screen:e.dataset.view||"login"}),n.a.trigger("ct:overlay:handle-click",{e:r,href:"#account-modal",options:{openStrategy:"skip",isModal:!0}})};i?Object(c.loadStyle)(i.url).then((function(){s()})):s()}}),n.a.on("ct:modal:closed",(function(e){e.closest("#account-modal")&&e.remove()}))}]);
1
+ !function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},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=2)}([function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,r){"use strict";r.r(t);var o=r(0),n=r.n(o),c=r(1);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return s(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 s(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 s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var l=function(e,t){var r=function(e){var t=jQuery();return i(e.querySelectorAll("input")).map((function(e){t=t.add(e)})),t}(t);if("object"===("undefined"==typeof grecaptcha?"undefined":a(grecaptcha)))grecaptcha.ready((function(){grecaptcha.execute(WFLSVars.recaptchasitekey,{action:"login"}).then((function(t){var o=jQuery("#wfls-captcha-token");o.length?o.val(t):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val(t),r.parent().append(o)),"function"==typeof e&&e(!0)}))}));else{var o=jQuery("#wfls-captcha-token");o.length?o.val("grecaptcha-missing"):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val("grecaptcha-missing"),r.parent().append(o)),"function"==typeof e&&e(!0)}},f=function(e){i(e.querySelectorAll(".g-recaptcha, .anr_captcha_field")).map((function(e){e.classList.contains("anr_captcha_field")?grecaptcha.reset(parseFloat(e.firstElementChild.id.replace("anr_captcha_field_",""))-1):grecaptcha.reset(e.gID)}))},u=function(e){return new Promise((function(t){(function(e,t){return!(!window.WFLSVars||!parseInt(WFLSVars.useCAPTCHA))&&(l((function(){return e()}),t),!0)})(t,e)||t()}))},d=function(e,t){var r=t.screen,o=void 0===r?"login":r;e.querySelector(".ct-".concat(o,"-form"))||(o="login"),e.querySelector("ul")&&e.querySelector("ul .ct-".concat(o))&&(e.querySelector("ul .active").classList.remove("active"),e.querySelector("ul .ct-".concat(o)).classList.add("active")),e.querySelector('[class*="-form"].active').classList.remove("active"),e.querySelector(".ct-".concat(o,"-form")).classList.add("active"),e.querySelector(".ct-".concat(o,"-form form"))&&e.querySelector(".ct-".concat(o,"-form form")).reset(),e.querySelector(".ct-account-form").classList.remove("ct-error");var n=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-form-notification");n&&n.remove();var c=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-form-notification-error");c&&c.remove()},m=function(e,t){var r=e.querySelector(".ct-form-notification-error");r&&r.remove(),e.closest(".ct-account-form").classList.remove("ct-error"),t&&(e.insertAdjacentHTML("afterbegin",'<div class="ct-form-notification-error">'.concat(t,"</div>")),requestAnimationFrame((function(){e.closest(".ct-account-form").classList.add("ct-error")})))},p=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector("#login_error"),n="";return o&&(n=o.innerHTML),m(e,n),{hasError:!!o,doc:r}},y=function(e,t){var r=e.querySelector(".ct-form-notification");r&&r.remove(),e.closest(".ct-account-form").classList.remove("ct-error"),t&&e.insertAdjacentHTML("afterbegin",'<div class="ct-form-notification">'.concat(t,"</div>"))},v=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector(".message"),n="";return o&&(n=o.innerHTML),y(e,n),{doc:r}},h="";Object(c.registerDynamicChunk)("blocksy_account",{mount:function(e,t){var r=t.event;if(r.preventDefault(),!h){var o=document.querySelector("#account-modal");h=o.innerHTML,o.remove()}var a=document.querySelector(".ct-drawer-canvas").lastElementChild;a.id="account-modal";var i=ct_localizations.dynamic_styles_selectors.find((function(e){return a.matches(e.selector)})),s=function(){a.innerHTML=h,function(e){if(e&&!e.hasListeners){e.hasListeners=!0;var t=e.querySelector('[name="loginform"]'),r=e.querySelector('[name="registerform"]'),o=e.querySelector('[name="lostpasswordform"]');e.addEventListener("click",(function(r){r.target.href&&r.target.href.indexOf("lostpassword")>-1&&(d(e,{screen:"forgot-password"}),r.preventDefault()),r.target.href&&r.target.classList.contains("showlogin")&&(d(e,{screen:"login"}),r.preventDefault()),r.target.href&&(r.target.href.indexOf("wp-login")>-1||t&&r.target.href===t.action)&&-1===r.target.href.indexOf("lostpassword")&&(d(e,{screen:"login"}),r.preventDefault())}),!0),t&&t.addEventListener("submit",(function(e){if(e.preventDefault(),!window.ct_customizer_localizations){var r=new FormData(t),o=t.action;if(window.WFLSVars&&!t.loginProceed)return r.append("action","wordfence_ls_authenticate"),o=WFLSVars.ajaxurl,void u(t).then((function(){fetch(o,{method:t.method,body:r}).then((function(e){return e.json()})).then((function(e){var r=!!e.error,o=t.closest(".ct-login-form"),n=t.closest(".ct-login-form").querySelector("form");if(r&&m(o,e.error),e.message&&y(n,e.message),e.login&&e.jwt){if(!jQuery("#wfls-token").length){var c=jQuery('<div id="wfls-prompt-overlay-blocksy"></div>'),a=jQuery('<div id="wfls-prompt-wrapper"></div>'),i=jQuery('<label for="wfls-token">2FA Code <a href="javascript:void(0)" class="wfls-2fa-code-help wfls-tooltip-trigger" title="The 2FA Code can be found within the authenticator app you used when first activating two-factor authentication. You may also use one of your recovery codes."><i class="dashicons dashicons-editor-help"></i></a></label>'),s=jQuery('<input type="text" name="wfls-token" id="wfls-token" aria-describedby="wfls-token-error" class="input" value="" size="6" autocomplete="off"/>'),l=jQuery('<label for="wfls-remember-device"><input name="wfls-remember-device" type="checkbox" id="wfls-remember-device" class="ct-checkbox" value="1" /> Remember for 30 days</label>');a.append(i),a.append(s),parseInt(WFLSVars.allowremember)&&a.append(l),c.append(a),jQuery(n).prepend(c),new jQuery.Zebra_Tooltips(jQuery(".wfls-tooltip-trigger"))}var u=jQuery("#wfls-token-jwt");u.length||(u=jQuery('<input type="hidden" name="wfls-token-jwt" id="wfls-token-jwt" value=""/>'),jQuery("#wfls-prompt-overlay-blocksy").append(u)),jQuery("#wfls-token-jwt").val(e.jwt)}e.combined&&(t.loginProceed=!0,n.submit()),(!r||r&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&f(t.closest(".ct-login-form"))}))}));u(t).then((function(){fetch(o,{method:t.method,body:r}).then((function(e){return e.text()})).then((function(e){var r=p(t.closest(".ct-login-form"),e),o=(r.doc,r.hasError);o||(location=t.querySelector('[name="redirect_to"]').value),(!o||o&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&f(t.closest(".ct-login-form"))}))}))}})),r&&r.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||u(r).then((function(){return fetch("".concat(ct_localizations.ajax_url,"?action=blc_implement_user_registration"),{method:r.method,body:new FormData(r)}).then((function(e){return e.text()})).then((function(e){var t=p(r.closest(".ct-register-form"),e),o=(t.doc,t.hasError);o||v(r.closest(".ct-register-form"),e),n.a.trigger("blocksy:account:register:".concat(o?"error":"success")),(!o||o&&-1===r.closest(".ct-register-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&f(r.closest(".ct-register-form"))}))}))})),o&&o.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||fetch("".concat(ct_localizations.ajax_url,"?action=blc_implement_user_lostpassword"),{method:o.method,body:new FormData(o)}).then((function(e){return e.text()})).then((function(e){var t=p(o.closest(".ct-forgot-password-form"),e),r=(t.doc,t.hasError);r||v(o.closest(".ct-forgot-password-form"),e),(!r||r&&-1===o.closest(".ct-forgot-password-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&f(o.closest(".ct-forgot-password-form"))}))})),["login","register","forgot-password"].map((function(t){Array.from(e.querySelectorAll(".ct-".concat(t))).map((function(r){r.addEventListener("click",(function(r){r.preventDefault(),d(e,{screen:t})})),r.addEventListener("keyup",(function(r){13===r.keyCode&&(r.preventDefault(),d(e,{screen:t}))}))}))}))}}(a),d(a,{screen:e.dataset.view||"login"}),window.anr_onloadCallback&&window.anr_onloadCallback(),n.a.trigger("ct:overlay:handle-click",{e:r,href:"#account-modal",options:{openStrategy:"skip",isModal:!0}})};i?Object(c.loadStyle)(i.url).then((function(){s()})):s()}}),n.a.on("ct:modal:closed",(function(e){e.closest("#account-modal")&&e.remove()}))}]);
static/bundle/dashboard.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
static/bundle/options.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.17
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.18
3
  *
4
  * Copyright (c) 2022
5
  * Licensed GPLv2+
static/bundle/sticky.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e){t.exports=window.ctEvents},function(t,e){t.exports=window.ctFrontend},function(t,e,r){"use strict";r.r(e);var n=r(0),i=r.n(n),o=r(1),a=function(t,e,r){return Math.max(t,Math.min(e,r))},c=function(t,e,r){return e[0]+(e[1]-e[0])/(t[1]-t[0])*(r-t[0])},s=function(t){if(t.blcInitialHeight)return t.blcInitialHeight;var e=t.firstElementChild.firstElementChild.getBoundingClientRect().height;return t.blcInitialHeight=e,e},u=function(t){var e=getComputedStyle(t),r=100;"middle"===t.dataset.row&&(r=e.getPropertyValue("--sticky-shrink"));var n=s(t);if(t.querySelector(".site-logo-container")){var i=getComputedStyle(t.querySelector(".site-logo-container")),o=parseFloat(i.getPropertyValue("--logo-max-height")||"50px"),a=parseFloat(i.getPropertyValue("--logo-sticky-shrink")||"1");if(a<1){var c=function(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("--height"))}(t);r&&(c*=parseFloat(r)/100);var u=n-o+o*a;return Math.max(c,u)}}return r&&(n*=parseFloat(r)/100),n};function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var y=null,f=function(t){var e=t.stickyContainer,r=t.startPosition;l(e.querySelectorAll('[data-row*="middle"]')).map((function(t){if(t.querySelector('[data-id="logo"] .site-logo-container')){var e=t.querySelector('[data-id="logo"] .site-logo-container'),n=function(t){var e=t.logo,r=t.row;if(y)return y;var n=parseFloat(getComputedStyle(e).getPropertyValue("--logo-max-height")||50),i=parseFloat(getComputedStyle(e).getPropertyValue("--logo-sticky-shrink").toString().replace(",",".")||1),o=s(r),a=u(r);return y={initialHeight:n,stickyShrink:i,rowInitialHeight:o,rowStickyHeight:a}}({logo:e,row:t}),i=n.initialHeight,o=n.stickyShrink,l=n.rowInitialHeight,d=n.rowStickyHeight,f=i*o;1!==o&&e.style.setProperty("--logo-shrink-height","".concat(c([r,r+Math.abs(l===d?i-f:l-d)],[1,o],a(r,r+Math.abs(l===d?i-f:l-d),scrollY))*i,"px"))}}))},m=null,p=function(t){var e=t.stickyContainer,r=(t.containerInitialHeight,t.startPosition);e.querySelector('[data-row*="middle"]')&&[e.querySelector('[data-row*="middle"]')].map((function(t){var e=function(t){var e=t.row;if(m)return m;var r=s(e),n=u(e);return m={rowInitialHeight:r,rowStickyHeight:n}}({row:t}),n=e.rowInitialHeight,i=e.rowStickyHeight;n!==i&&t.style.setProperty("--shrink-height","".concat(c([r,r+Math.abs(n-i)],[n,i],a(r,r+Math.abs(n-i),scrollY)),"px"))}))};function h(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t)||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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(t,e)}(t)||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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var w=window.scrollY;function v(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(t,e)}(t)||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 S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(t,e)}(t)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(t.querySelectorAll("[data-row][data-transparent-row]")).map((function(t){t.dataset.transparentRow=e}))},j=null,C=null,I=null;i.a.on("ct:header:update",(function(){j=null,C=null,I=null,Y()}));var P=function(t){if(-1===t.dataset.sticky.indexOf("shrink")&&-1===t.dataset.sticky.indexOf("auto-hide"))return t.parentNode.getBoundingClientRect().height+200;var e=t.closest("header").getBoundingClientRect().top+scrollY;if(e>0){var r=document.elementFromPoint(0,3);r&&function(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}(r).map((function(t){return getComputedStyle(t).position})).indexOf("fixed")>-1&&(e-=r.getBoundingClientRect().height)}var n=t.parentNode;return 1===n.parentNode.children.length||n.parentNode.children[0].classList.contains("ct-sticky-container")?e:Array.from(n.parentNode.children).reduce((function(t,e,r){return t.indexOf(0)>-1||!e.dataset.row?[].concat(A(t),[0]):[].concat(A(t),[e.classList.contains("ct-sticky-container")?0:e.getBoundingClientRect().height])}),[]).reduce((function(t,e){return t+e}),e)},q=null,Y=function(){if(q!==scrollY){q=scrollY;var t=document.querySelector('[data-device="'.concat(Object(o.getCurrentScreen)(),'"] [data-sticky]'));if(t){var e=j;null===e&&(e=P(t),j=e);var r=I;r||(r=parseInt(t.getBoundingClientRect().height),I=parseInt(r),document.body.style.setProperty("--header-sticky-height-animated","".concat(A(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+u(e)}),0),"px")));var n=t.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t&&"fixed"!==t})),i=e>0&&Math.abs(window.scrollY-e)<5||window.scrollY>e;n.indexOf("shrink")>-1&&(i=e>0?window.scrollY>=e:window.scrollY>0),setTimeout((function(){i&&-1===document.body.dataset.header.indexOf("shrink")&&(document.body.dataset.header="".concat(document.body.dataset.header,":shrink")),!i&&document.body.dataset.header.indexOf("shrink")>-1&&(document.body.dataset.header=document.body.dataset.header.replace(":shrink",""))}),300);var a=C;a||(a=C=Array.from(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+e.getBoundingClientRect().height}),0),t.parentNode.style.height="".concat(a,"px")),n.indexOf("shrink")>-1&&function(t){var e=t.containerInitialHeight,r=t.stickyContainer,n=(t.stickyContainerHeight,t.isSticky),i=t.startPosition,o=t.stickyComponents;if(0===i&&0===window.scrollY&&(r.dataset.sticky=["fixed"].concat(h(o)).join(":")),n){if(o.indexOf("yes")>-1)return;-1===r.dataset.sticky.indexOf("yes")&&(x(r,"no"),r.dataset.sticky=["yes"].concat(h(o)).join(":")),f({stickyContainer:r,startPosition:i}),p({stickyContainer:r,containerInitialHeight:e,startPosition:i})}else Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(r.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),x(r,"yes"),0===i&&0===window.scrollY?r.dataset.sticky=["fixed"].concat(h(o)).join(":"):r.dataset.sticky=o.join(":")}({stickyContainer:t,stickyContainerHeight:r,containerInitialHeight:a,isSticky:i,startPosition:e,stickyComponents:n}),n.indexOf("auto-hide")>-1&&function(t){var e=t.startPosition,r=t.stickyContainer,n=t.isSticky,i=t.stickyComponents;if(window.scrollY<e&&(w=window.scrollY),n&&window.scrollY-w==0&&document.body.style.setProperty("--header-sticky-height-animated","0px"),n&&window.scrollY-w<-5)-1===r.dataset.sticky.indexOf("yes")&&(r.dataset.sticky=["yes-start"].concat(b(i)).join(":"),requestAnimationFrame((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-end","yes")}),200)}))),x(r,"no"),document.body.removeAttribute("style");else{if(!n)return r.dataset.sticky=i.filter((function(t){return"yes-end"!==t})).join(":"),Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),x(r,"yes"),document.body.style.setProperty("--header-sticky-height-animated","0px"),void(w=window.scrollY);-1===r.dataset.sticky.indexOf("yes-hide")&&r.dataset.sticky.indexOf("yes:")>-1&&window.scrollY-w>5&&(r.dataset.sticky=["yes-hide-start"].concat(b(i)).join(":"),document.body.style.setProperty("--header-sticky-height-animated","0px"),requestAnimationFrame((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){r.dataset.sticky=i.join(":"),Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),x(r,"yes")}),200)})))}w=window.scrollY}({stickyContainer:t,isSticky:i,startPosition:e,stickyComponents:n}),(n.indexOf("slide")>-1||n.indexOf("fade")>-1)&&function(t){var e=t.stickyContainer,r=t.isSticky,n=t.startPosition,i=t.stickyComponents;r?(-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(v(i)).join(":"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}),1)),x(e,"no")):-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-n)>10?(e.dataset.sticky=i.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),x(e,"yes")):(e.dataset.sticky=["yes-hide-start"].concat(v(i)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=i.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),x(e,"yes")}),200)}))))}({stickyContainer:t,isSticky:i,startPosition:e,stickyComponents:n})}}},H=function(){document.querySelector("header [data-sticky]")&&(window.addEventListener("resize",(function(t){Y(t),i.a.trigger("ct:header:update")}),!1),window.addEventListener("orientationchange",(function(t){Y(t),i.a.trigger("ct:header:update")})),window.addEventListener("scroll",Y,!1),window.addEventListener("load",Y,!1),Y())};document.body.className.indexOf("e-preview")>-1?setTimeout((function(){H()}),500):H(),Object(o.registerDynamicChunk)("blocksy_sticky_header",{mount:function(t){}})}]);
1
+ !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e){t.exports=window.ctEvents},function(t,e){t.exports=window.ctFrontend},function(t,e,r){"use strict";r.r(e);var n=r(0),i=r.n(n),o=r(1),a=function(t,e,r){return Math.max(t,Math.min(e,r))},c=function(t,e,r){return e[0]+(e[1]-e[0])/(t[1]-t[0])*(r-t[0])},s=function(t){if(t.blcInitialHeight)return t.blcInitialHeight;var e=t.firstElementChild.firstElementChild.getBoundingClientRect().height;return t.blcInitialHeight=e,e},u=function(t){var e=getComputedStyle(t),r=100;"middle"===t.dataset.row&&(r=e.getPropertyValue("--sticky-shrink"));var n=s(t);return r&&(n*=parseFloat(r)/100),n};function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var y=null,f=function(t){var e=t.stickyContainer,r=t.startPosition;l(e.querySelectorAll('[data-row*="middle"]')).map((function(t){if(t.querySelector('[data-id="logo"] .site-logo-container')){var e=t.querySelector('[data-id="logo"] .site-logo-container'),n=function(t){var e=t.logo,r=t.row;if(y)return y;var n=parseFloat(getComputedStyle(e).getPropertyValue("--logo-max-height")||50),i=parseFloat(getComputedStyle(e).getPropertyValue("--logo-sticky-shrink").toString().replace(",",".")||1),o=s(r),a=u(r);return y={initialHeight:n,stickyShrink:i,rowInitialHeight:o,rowStickyHeight:a}}({logo:e,row:t}),i=n.initialHeight,o=n.stickyShrink,l=n.rowInitialHeight,d=n.rowStickyHeight,f=i*o;1!==o&&e.style.setProperty("--logo-shrink-height","".concat(c([r,r+Math.abs(l===d?i-f:l-d)],[1,o],a(r,r+Math.abs(l===d?i-f:l-d),scrollY))*i,"px"))}}))},m=null,h=function(t){var e=t.stickyContainer,r=(t.containerInitialHeight,t.startPosition);e.querySelector('[data-row*="middle"]')&&[e.querySelector('[data-row*="middle"]')].map((function(t){var e=function(t){var e=t.row;if(m)return m;var r=s(e),n=u(e);return m={rowInitialHeight:r,rowStickyHeight:n}}({row:t}),n=e.rowInitialHeight,i=e.rowStickyHeight;n!==i&&t.style.setProperty("--shrink-height","".concat(c([r,r+Math.abs(n-i)],[n,i],a(r,r+Math.abs(n-i),scrollY)),"px"))}))};function p(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t)||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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(t,e)}(t)||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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var w=window.scrollY;function v(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t)||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 A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(t,e)}(t)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(t.querySelectorAll("[data-row][data-transparent-row]")).map((function(t){t.dataset.transparentRow=e}))},x=null,C=null,I=null;i.a.on("ct:header:update",(function(){x=null,C=null,I=null,q()}));var P=function(t){if(-1===t.dataset.sticky.indexOf("shrink")&&-1===t.dataset.sticky.indexOf("auto-hide"))return t.parentNode.getBoundingClientRect().height+200;var e=t.closest("header").getBoundingClientRect().top+scrollY;if(e>0){var r=document.elementFromPoint(0,3);r&&function(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}(r).map((function(t){return getComputedStyle(t).position})).indexOf("fixed")>-1&&(e-=r.getBoundingClientRect().height)}var n=t.parentNode;return 1===n.parentNode.children.length||n.parentNode.children[0].classList.contains("ct-sticky-container")?e:Array.from(n.parentNode.children).reduce((function(t,e,r){return t.indexOf(0)>-1||!e.dataset.row?[].concat(S(t),[0]):[].concat(S(t),[e.classList.contains("ct-sticky-container")?0:e.getBoundingClientRect().height])}),[]).reduce((function(t,e){return t+e}),e)},Y=null,q=function(){if(Y!==scrollY){Y=scrollY;var t=document.querySelector('[data-device="'.concat(Object(o.getCurrentScreen)(),'"] [data-sticky]'));if(t){var e=x;null===e&&(e=P(t),x=e);var r=I;r||(r=parseInt(t.getBoundingClientRect().height),I=parseInt(r),document.body.style.setProperty("--header-sticky-height-animated","".concat(S(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+u(e)}),0),"px")));var n=t.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t&&"fixed"!==t})),i=e>0&&Math.abs(window.scrollY-e)<5||window.scrollY>e;n.indexOf("shrink")>-1&&(i=e>0?window.scrollY>=e:window.scrollY>0),setTimeout((function(){i&&-1===document.body.dataset.header.indexOf("shrink")&&(document.body.dataset.header="".concat(document.body.dataset.header,":shrink")),!i&&document.body.dataset.header.indexOf("shrink")>-1&&(document.body.dataset.header=document.body.dataset.header.replace(":shrink",""))}),300);var a=C;a||(a=C=Array.from(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+e.getBoundingClientRect().height}),0),t.parentNode.style.height="".concat(a,"px")),n.indexOf("shrink")>-1&&function(t){var e=t.containerInitialHeight,r=t.stickyContainer,n=(t.stickyContainerHeight,t.isSticky),i=t.startPosition,o=t.stickyComponents;if(0===i&&0===window.scrollY&&(r.dataset.sticky=["fixed"].concat(p(o)).join(":")),n){if(o.indexOf("yes")>-1)return;-1===r.dataset.sticky.indexOf("yes")&&(j(r,"no"),r.dataset.sticky=["yes"].concat(p(o)).join(":")),f({stickyContainer:r,startPosition:i}),h({stickyContainer:r,containerInitialHeight:e,startPosition:i})}else Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(r.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),j(r,"yes"),0===i&&0===window.scrollY?r.dataset.sticky=["fixed"].concat(p(o)).join(":"):r.dataset.sticky=o.join(":")}({stickyContainer:t,stickyContainerHeight:r,containerInitialHeight:a,isSticky:i,startPosition:e,stickyComponents:n}),n.indexOf("auto-hide")>-1&&function(t){var e=t.startPosition,r=t.stickyContainer,n=t.isSticky,i=t.stickyComponents;if(window.scrollY<e&&(w=window.scrollY),n&&window.scrollY-w==0&&document.body.style.setProperty("--header-sticky-height-animated","0px"),n&&window.scrollY-w<-5)-1===r.dataset.sticky.indexOf("yes")&&(r.dataset.sticky=["yes-start"].concat(b(i)).join(":"),requestAnimationFrame((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-end","yes")}),200)}))),j(r,"no"),document.body.removeAttribute("style");else{if(!n)return r.dataset.sticky=i.filter((function(t){return"yes-end"!==t})).join(":"),Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),j(r,"yes"),document.body.style.setProperty("--header-sticky-height-animated","0px"),void(w=window.scrollY);-1===r.dataset.sticky.indexOf("yes-hide")&&r.dataset.sticky.indexOf("yes:")>-1&&window.scrollY-w>5&&(r.dataset.sticky=["yes-hide-start"].concat(b(i)).join(":"),document.body.style.setProperty("--header-sticky-height-animated","0px"),requestAnimationFrame((function(){r.dataset.sticky=r.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){r.dataset.sticky=i.join(":"),Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),j(r,"yes")}),200)})))}w=window.scrollY}({stickyContainer:t,isSticky:i,startPosition:e,stickyComponents:n}),(n.indexOf("slide")>-1||n.indexOf("fade")>-1)&&function(t){var e=t.stickyContainer,r=t.isSticky,n=t.startPosition,i=t.stickyComponents;r?(-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(v(i)).join(":"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}),1)),j(e,"no")):-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-n)>10?(e.dataset.sticky=i.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),j(e,"yes")):(e.dataset.sticky=["yes-hide-start"].concat(v(i)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=i.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),j(e,"yes")}),200)}))))}({stickyContainer:t,isSticky:i,startPosition:e,stickyComponents:n})}}},H=function(){document.querySelector("header [data-sticky]")&&(window.addEventListener("resize",(function(t){q(t),i.a.trigger("ct:header:update")}),!1),window.addEventListener("orientationchange",(function(t){q(t),i.a.trigger("ct:header:update")})),window.addEventListener("scroll",q,!1),window.addEventListener("load",q,!1),q())};document.body.className.indexOf("e-preview")>-1?setTimeout((function(){H()}),500):H(),Object(o.registerDynamicChunk)("blocksy_sticky_header",{mount:function(t){}})}]);
static/js/account.js CHANGED
@@ -30,6 +30,10 @@ registerDynamicChunk('blocksy_account', {
30
  screen: el.dataset.view || 'login',
31
  })
32
 
 
 
 
 
33
  ctEvents.trigger('ct:overlay:handle-click', {
34
  e: event,
35
  href: '#account-modal',
30
  screen: el.dataset.view || 'login',
31
  })
32
 
33
+ if (window.anr_onloadCallback) {
34
+ window.anr_onloadCallback()
35
+ }
36
+
37
  ctEvents.trigger('ct:overlay:handle-click', {
38
  e: event,
39
  href: '#account-modal',
static/js/frontend/account.js CHANGED
@@ -132,6 +132,10 @@ export const handleAccountModal = (el) => {
132
 
133