Blocksy Companion - Version 1.8.11

Version Description

Download this release

Release Info

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

Code changes from version 1.8.10 to 1.8.11

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.10
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.11
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blocksy-companion
framework/extensions/cookies-consent/extension.php CHANGED
@@ -63,7 +63,7 @@ class BlocksyExtensionCookiesConsent {
63
  wp_enqueue_script(
64
  'blocksy-ext-cookies-consent-scripts',
65
  BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.js',
66
- ['ct-scripts'],
67
  $data['Version'],
68
  true
69
  );
63
  wp_enqueue_script(
64
  'blocksy-ext-cookies-consent-scripts',
65
  BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.js',
66
+ [],
67
  $data['Version'],
68
  true
69
  );
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=3)}([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){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),c=n.n(i),a=n(2);function u(e){return function(e){if(Array.isArray(e))return f(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 f(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 f(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 f(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 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")}))})),u(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)}Object(a.onDocumentLoaded)((function(){s(),o.a.on("blocksy:cookies:init",(function(){s()}))}))}]);
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()}))}))}]);
framework/extensions/cookies-consent/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/cookies-consent/static/js/main.js CHANGED
@@ -1,6 +1,13 @@
1
  import ctEvents from 'ct-events'
2
  import cookie from 'js-cookie'
3
- import { onDocumentLoaded } from 'blocksy-frontend'
 
 
 
 
 
 
 
4
 
5
  const initCookies = () => {
6
  const notification = document.querySelector('.cookie-notification')
@@ -62,9 +69,11 @@ const initCookies = () => {
62
  onDocumentLoaded(() => {
63
  initCookies()
64
 
65
- ctEvents.on('blocksy:cookies:init', () => {
66
- initCookies()
67
- })
 
 
68
  })
69
 
70
  function whenTransitionEnds(el, cb) {
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)) {
6
+ cb()
7
+ } else {
8
+ document.addEventListener('DOMContentLoaded', cb, false)
9
+ }
10
+ }
11
 
12
  const initCookies = () => {
13
  const notification = document.querySelector('.cookie-notification')
69
  onDocumentLoaded(() => {
70
  initCookies()
71
 
72
+ if (ctEvents) {
73
+ ctEvents.on('blocksy:cookies:init', () => {
74
+ initCookies()
75
+ })
76
+ }
77
  })
78
 
79
  function whenTransitionEnds(el, cb) {
framework/extensions/newsletter-subscribe/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main-admin.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/trending/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/widgets/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/features/header.php CHANGED
@@ -236,7 +236,9 @@ class HeaderAdditions {
236
 
237
  add_filter('blocksy:footer:offcanvas-drawer', function ($els) {
238
  if (get_current_user_id()) {
239
- return $els;
 
 
240
  }
241
 
242
  $render = new \Blocksy_Header_Builder_Render();
@@ -553,8 +555,6 @@ class HeaderAdditions {
553
  }
554
 
555
  public function retrieve_account_modal() {
556
- do_action('blocksy:content-blocks:display-hooks');
557
-
558
  remove_filter('lostpassword_url', 'wc_lostpassword_url', 10, 1);
559
 
560
  $url = home_url();
236
 
237
  add_filter('blocksy:footer:offcanvas-drawer', function ($els) {
238
  if (get_current_user_id()) {
239
+ if (! is_customize_preview()) {
240
+ return $els;
241
+ }
242
  }
243
 
244
  $render = new \Blocksy_Header_Builder_Render();
555
  }
556
 
557
  public function retrieve_account_modal() {
 
 
558
  remove_filter('lostpassword_url', 'wc_lostpassword_url', 10, 1);
559
 
560
  $url = home_url();
framework/features/header/account-modal.php CHANGED
@@ -34,7 +34,7 @@ $close_button_type = blocksy_akg('account_close_button_type', $atts, 'type-1');
34
 
35
  <div id="account-modal" class="ct-panel" data-behaviour="modal">
36
  <div class="ct-panel-actions">
37
- <button class="ct-close-button" data-type="<?php echo $close_button_type ?>" aria-label="<?php echo __('Close account modal', 'blocksy-companion') ?>">
38
  <svg class="ct-icon" width="12" height="12" viewBox="0 0 15 15">
39
  <path d="M1 15a1 1 0 01-.71-.29 1 1 0 010-1.41l5.8-5.8-5.8-5.8A1 1 0 011.7.29l5.8 5.8 5.8-5.8a1 1 0 011.41 1.41l-5.8 5.8 5.8 5.8a1 1 0 01-1.41 1.41l-5.8-5.8-5.8 5.8A1 1 0 011 15z"/>
40
  </svg>
34
 
35
  <div id="account-modal" class="ct-panel" data-behaviour="modal">
36
  <div class="ct-panel-actions">
37
+ <button class="ct-toggle-close" data-type="<?php echo $close_button_type ?>" aria-label="<?php echo __('Close account modal', 'blocksy-companion') ?>">
38
  <svg class="ct-icon" width="12" height="12" viewBox="0 0 15 15">
39
  <path d="M1 15a1 1 0 01-.71-.29 1 1 0 010-1.41l5.8-5.8-5.8-5.8A1 1 0 011.7.29l5.8 5.8 5.8-5.8a1 1 0 011.41 1.41l-5.8 5.8 5.8 5.8a1 1 0 01-1.41 1.41l-5.8-5.8-5.8 5.8A1 1 0 011 15z"/>
40
  </svg>
framework/features/header/items/account/dynamic-styles.php CHANGED
@@ -561,7 +561,7 @@ blocksy_output_colors([
561
  ], [
562
  'selector' => [$root_selector[0]],
563
  'operation' => 'suffix',
564
- 'to_add' => '#account-modal .ct-close-button'
565
  ])),
566
  'variable' => 'icon-color'
567
  ],
@@ -575,9 +575,9 @@ blocksy_output_colors([
575
  ], [
576
  'selector' => [$root_selector[0]],
577
  'operation' => 'suffix',
578
- 'to_add' => '#account-modal .ct-close-button'
579
  ])),
580
- 'variable' => 'icon-hover-color'
581
  ]
582
  ],
583
  ]);
@@ -602,9 +602,9 @@ if (is_customize_preview() || $close_button_type === 'type-2') {
602
  ], [
603
  'selector' => [$root_selector[0]],
604
  'operation' => 'suffix',
605
- 'to_add' => '#account-modal .ct-close-button'
606
  ])),
607
- 'variable' => 'close-button-border-color'
608
  ],
609
 
610
  'hover' => [
@@ -616,9 +616,9 @@ if (is_customize_preview() || $close_button_type === 'type-2') {
616
  ], [
617
  'selector' => [$root_selector[0]],
618
  'operation' => 'suffix',
619
- 'to_add' => '#account-modal .ct-close-button'
620
  ])),
621
- 'variable' => 'close-button-hover-border-color'
622
  ]
623
  ],
624
  ]);
@@ -644,9 +644,9 @@ if (is_customize_preview() || $close_button_type === 'type-3') {
644
  ], [
645
  'selector' => [$root_selector[0]],
646
  'operation' => 'suffix',
647
- 'to_add' => '#account-modal .ct-close-button'
648
  ])),
649
- 'variable' => 'close-button-background'
650
  ],
651
 
652
  'hover' => [
@@ -658,9 +658,9 @@ if (is_customize_preview() || $close_button_type === 'type-3') {
658
  ], [
659
  'selector' => [$root_selector[0]],
660
  'operation' => 'suffix',
661
- 'to_add' => '#account-modal .ct-close-button'
662
  ])),
663
- 'variable' => 'close-button-hover-background'
664
  ]
665
  ],
666
  ]);
561
  ], [
562
  'selector' => [$root_selector[0]],
563
  'operation' => 'suffix',
564
+ 'to_add' => '#account-modal .ct-toggle-close'
565
  ])),
566
  'variable' => 'icon-color'
567
  ],
575
  ], [
576
  'selector' => [$root_selector[0]],
577
  'operation' => 'suffix',
578
+ 'to_add' => '#account-modal .ct-toggle-close:hover'
579
  ])),
580
+ 'variable' => 'icon-color'
581
  ]
582
  ],
583
  ]);
602
  ], [
603
  'selector' => [$root_selector[0]],
604
  'operation' => 'suffix',
605
+ 'to_add' => '#account-modal .ct-toggle-close[data-type="type-2"]'
606
  ])),
607
+ 'variable' => 'toggle-button-border-color'
608
  ],
609
 
610
  'hover' => [
616
  ], [
617
  'selector' => [$root_selector[0]],
618
  'operation' => 'suffix',
619
+ 'to_add' => '#account-modal .ct-toggle-close[data-type="type-2"]:hover'
620
  ])),
621
+ 'variable' => 'toggle-button-border-color'
622
  ]
623
  ],
624
  ]);
644
  ], [
645
  'selector' => [$root_selector[0]],
646
  'operation' => 'suffix',
647
+ 'to_add' => '#account-modal .ct-toggle-close[data-type="type-3"]'
648
  ])),
649
+ 'variable' => 'toggle-button-background'
650
  ],
651
 
652
  'hover' => [
658
  ], [
659
  'selector' => [$root_selector[0]],
660
  'operation' => 'suffix',
661
+ 'to_add' => '#account-modal .ct-toggle-close[data-type="type-3"]:hover'
662
  ])),
663
+ 'variable' => 'toggle-button-background'
664
  ]
665
  ],
666
  ]);
framework/features/header/items/account/sync.js CHANGED
@@ -141,42 +141,42 @@ ctEvents.on(
141
 
142
  account_close_button_color: [
143
  {
144
- selector: '#account-modal .ct-close-button',
145
  variable: 'icon-color',
146
  type: 'color:default',
147
  },
148
 
149
  {
150
- selector: '#account-modal .ct-close-button',
151
- variable: 'icon-hover-color',
152
  type: 'color:hover',
153
  },
154
  ],
155
 
156
  account_close_button_border_color: [
157
  {
158
- selector: '#account-modal .ct-close-button',
159
- variable: 'close-button-border-color',
160
  type: 'color:default',
161
  },
162
 
163
  {
164
- selector: '#account-modal .ct-close-button',
165
- variable: 'close-button-hover-border-color',
166
  type: 'color:hover',
167
  },
168
  ],
169
 
170
  account_close_button_shape_color: [
171
  {
172
- selector: '#account-modal .ct-close-button',
173
- variable: 'close-button-background',
174
  type: 'color:default',
175
  },
176
 
177
  {
178
- selector: '#account-modal .ct-close-button',
179
- variable: 'close-button-hover-background',
180
  type: 'color:hover',
181
  },
182
  ],
@@ -434,7 +434,7 @@ ctEvents.on('ct:header:sync:item:account', ({ optionId, optionValue }) => {
434
 
435
  if (optionId === 'account_close_button_type') {
436
  let offcanvasModalClose = document.querySelector(
437
- '#account-modal .ct-close-button'
438
  )
439
 
440
  setTimeout(() => {
141
 
142
  account_close_button_color: [
143
  {
144
+ selector: '#account-modal .ct-toggle-close',
145
  variable: 'icon-color',
146
  type: 'color:default',
147
  },
148
 
149
  {
150
+ selector: '#account-modal .ct-toggle-close:hover',
151
+ variable: 'icon-color',
152
  type: 'color:hover',
153
  },
154
  ],
155
 
156
  account_close_button_border_color: [
157
  {
158
+ selector: '#account-modal .ct-toggle-close[data-type="type-2"]',
159
+ variable: 'toggle-button-border-color',
160
  type: 'color:default',
161
  },
162
 
163
  {
164
+ selector: '#account-modal .ct-toggle-close[data-type="type-2"]:hover',
165
+ variable: 'toggle-button-border-color',
166
  type: 'color:hover',
167
  },
168
  ],
169
 
170
  account_close_button_shape_color: [
171
  {
172
+ selector: '#account-modal .ct-toggle-close[data-type="type-3"]',
173
+ variable: 'toggle-button-background',
174
  type: 'color:default',
175
  },
176
 
177
  {
178
+ selector: '#account-modal .ct-toggle-close[data-type="type-3"]:hover',
179
+ variable: 'toggle-button-background',
180
  type: 'color:hover',
181
  },
182
  ],
434
 
435
  if (optionId === 'account_close_button_type') {
436
  let offcanvasModalClose = document.querySelector(
437
+ '#account-modal .ct-toggle-close'
438
  )
439
 
440
  setTimeout(() => {
framework/theme-integration.php CHANGED
@@ -109,7 +109,11 @@ class ThemeIntegration {
109
  add_filter('blocksy:general:ct-scripts-localizations', function ($data) {
110
  $data['dynamic_styles_selectors'][] = [
111
  'selector' => '#account-modal',
112
- 'url' => blocksy_cdn_url(
 
 
 
 
113
  BLOCKSY_URL . 'static/bundle/account-lazy.min.css'
114
  )
115
  ];
109
  add_filter('blocksy:general:ct-scripts-localizations', function ($data) {
110
  $data['dynamic_styles_selectors'][] = [
111
  'selector' => '#account-modal',
112
+ 'url' => blc_call_fn(
113
+ [
114
+ 'fn' => 'blocksy_cdn_url',
115
+ 'default' => BLOCKSY_URL . 'static/bundle/account-lazy.min.css'
116
+ ],
117
  BLOCKSY_URL . 'static/bundle/account-lazy.min.css'
118
  )
119
  ];
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.10
9
 
10
  == Description ==
11
 
@@ -23,6 +23,9 @@ 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.10: 2021-12-15
27
  - Improvement: Account modal accessibility improvement
28
  - Improvement: Account modal default color values
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.11
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.11: 2021-12-16
27
+ - Improvement: General fixes and improvements
28
+
29
  1.8.10: 2021-12-15
30
  - Improvement: Account modal accessibility improvement
31
  - Improvement: Account modal default color values
static/bundle/account-lazy.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
static/bundle/dashboard.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
static/bundle/options.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.10
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.11
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
static/bundle/sync.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)o.d(r,c,function(t){return e[t]}.bind(null,c));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,o){"use strict";o.r(t);var r=o(1),c=o.n(r),a=o(0);o(2);function l(e){return function(e){if(Array.isArray(e))return n(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 n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(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 n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function s(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){u(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}c.a.on("ct:header:sync:collect-variable-descriptors",(function(e){e.account=function(e){var t=e.itemId;return s(s(s(s({accountHeaderIconSize:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"el-suffix",to_add:'[data-state="out"]'})),variable:"icon-size",responsive:!0,unit:"px"},account_loggedin_icon_size:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"el-suffix",to_add:'[data-state="in"]'})),variable:"icon-size",responsive:!0,unit:"px"},accountHeaderAvatarSize:{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"avatar-size",responsive:!0,unit:"px"}},Object(a.handleBackgroundOptionFor)({id:"accountHeaderFormBackground",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"}))})),Object(a.handleBackgroundOptionFor)({id:"accountHeaderBackground",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal"}))})),{},{account_form_shadow:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"})),type:"box-shadow",variable:"box-shadow"},account_modal_font_color:[{selector:"#account-modal .ct-account-form",variable:"color",type:"color:default"},{selector:"#account-modal .ct-account-form",variable:"linkHoverColor",type:"color:hover"}],account_modal_form_text_color:[{selector:"#account-modal form",variable:"form-text-initial-color",type:"color:default"},{selector:"#account-modal form",variable:"form-text-focus-color",type:"color:focus"}],account_modal_form_border_color:[{selector:"#account-modal form",variable:"form-field-border-initial-color",type:"color:default"},{selector:"#account-modal form",variable:"form-field-border-focus-color",type:"color:focus"}],account_modal_form_background_color:[{selector:"#account-modal form",variable:"form-field-initial-background",type:"color:default"},{selector:"#account-modal form",variable:"form-field-focus-background",type:"color:focus"}],account_close_button_color:[{selector:"#account-modal .ct-close-button",variable:"icon-color",type:"color:default"},{selector:"#account-modal .ct-close-button",variable:"icon-hover-color",type:"color:hover"}],account_close_button_border_color:[{selector:"#account-modal .ct-close-button",variable:"close-button-border-color",type:"color:default"},{selector:"#account-modal .ct-close-button",variable:"close-button-hover-border-color",type:"color:hover"}],account_close_button_shape_color:[{selector:"#account-modal .ct-close-button",variable:"close-button-background",type:"color:default"},{selector:"#account-modal .ct-close-button",variable:"close-button-hover-background",type:"color:hover"}],accountHeaderMargin:{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),type:"spacing",variable:"margin",responsive:!0,important:!0}},Object(a.typographyOption)({id:"account_label_font",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"suffix",to_add:".ct-label"}))})),{},{accountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"icon-hover-color",type:"color:hover",responsive:!0}],transparentAccountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],transparent_header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"icon-hover-color",type:"color:hover",responsive:!0}],stickyAccountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],sticky_header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"icon-hover-color",type:"color:hover",responsive:!0}]})}})),c.a.on("ct:header:sync:item:account",(function(e){var t=e.optionId,o=e.optionValue,r='[data-id="account"]';if("header_account_visibility"===t&&Object(a.updateAndSaveEl)(r,(function(e){return Object(a.responsiveClassesFor)(s(s({},o),{},{desktop:!0}),e)})),"loggedin_account_label_visibility"!==t&&"loggedout_account_label_visibility"!==t||Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){Object(a.responsiveClassesFor)(o,e)}))})),"loggedin_label"===t&&Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))})),"login_label"===t&&Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))})),"loggedout_label_position"!==t&&"loggedin_label_position"!==t||(Object(a.updateAndSaveEl)(r,(function(e){o.desktop||(o={desktop:o,mobile:o}),e.dataset.label=o.desktop}),{onlyView:"desktop"}),Object(a.updateAndSaveEl)(r,(function(e){o.desktop||(o={desktop:o,mobile:o}),e.dataset.label=o.mobile}),{onlyView:"mobile"})),"account_close_button_type"===t){var c=document.querySelector("#account-modal .ct-close-button");setTimeout((function(){c.classList.add("ct-disable-transitions"),requestAnimationFrame((function(){c&&(c.dataset.type=o),setTimeout((function(){c.classList.remove("ct-disable-transitions")}))}))}),300)}})),c.a.on("ct:header:sync:collect-variable-descriptors",(function(e){e.global=function(e){e.itemId;return{transparent_behaviour:{selector:'[data-header*="'.concat(document.body.dataset.header,'"]'),variable:"has-transparent-header",responsive:!0,extractValue:function(e){return{desktop:e.desktop?"var(--true)":"var(--false)",tablet:e.mobile?"var(--true)":"var(--false)",mobile:e.mobile?"var(--true)":"var(--false)"}},unit:""}}}})),c.a.on("ct:header:sync:item:global",(function(e){var t=e.optionId,o=e.optionValue,r=e.values;if("has_sticky_header"===t||"sticky_rows"===t||"sticky_behaviour"===t){var a=r.has_sticky_header,l=r.sticky_rows,n=r.sticky_behaviour;Array.from(document.querySelectorAll("[data-sticky]")).map((function(e){e.removeAttribute("data-sticky")})),"yes"===a&&Array.from(document.querySelectorAll("[data-row]")).map((function(e){var t=e.dataset.row;if(l[t]){var o=[];n.desktop&&o.push("desktop"),n.mobile&&o.push("mobile"),e.dataset.sticky=o.join(":")}})),c.a.trigger("blocksy:frontend:init")}if("transparent_behaviour"===t){if(!document.querySelector("[data-transparent]"))return;Array.from(document.querySelectorAll("[data-device]")).map((function(e){e.removeAttribute("data-transparent"),Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("data-transparent-row")})),o[e.dataset.device]&&(e.dataset.transparent="",Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.dataset.transparentRow="yes"}))),c.a.trigger("blocksy:frontend:init")}))}}))}]);
1
+ !function(e){var t={};function o(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)o.d(r,c,function(t){return e[t]}.bind(null,c));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,o){"use strict";o.r(t);var r=o(1),c=o.n(r),a=o(0);o(2);function l(e){return function(e){if(Array.isArray(e))return n(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 n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(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 n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function s(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){u(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}c.a.on("ct:header:sync:collect-variable-descriptors",(function(e){e.account=function(e){var t=e.itemId;return s(s(s(s({accountHeaderIconSize:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"el-suffix",to_add:'[data-state="out"]'})),variable:"icon-size",responsive:!0,unit:"px"},account_loggedin_icon_size:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"el-suffix",to_add:'[data-state="in"]'})),variable:"icon-size",responsive:!0,unit:"px"},accountHeaderAvatarSize:{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"avatar-size",responsive:!0,unit:"px"}},Object(a.handleBackgroundOptionFor)({id:"accountHeaderFormBackground",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"}))})),Object(a.handleBackgroundOptionFor)({id:"accountHeaderBackground",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal"}))})),{},{account_form_shadow:{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:[Object(a.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"})),type:"box-shadow",variable:"box-shadow"},account_modal_font_color:[{selector:"#account-modal .ct-account-form",variable:"color",type:"color:default"},{selector:"#account-modal .ct-account-form",variable:"linkHoverColor",type:"color:hover"}],account_modal_form_text_color:[{selector:"#account-modal form",variable:"form-text-initial-color",type:"color:default"},{selector:"#account-modal form",variable:"form-text-focus-color",type:"color:focus"}],account_modal_form_border_color:[{selector:"#account-modal form",variable:"form-field-border-initial-color",type:"color:default"},{selector:"#account-modal form",variable:"form-field-border-focus-color",type:"color:focus"}],account_modal_form_background_color:[{selector:"#account-modal form",variable:"form-field-initial-background",type:"color:default"},{selector:"#account-modal form",variable:"form-field-focus-background",type:"color:focus"}],account_close_button_color:[{selector:"#account-modal .ct-toggle-close",variable:"icon-color",type:"color:default"},{selector:"#account-modal .ct-toggle-close:hover",variable:"icon-color",type:"color:hover"}],account_close_button_border_color:[{selector:'#account-modal .ct-toggle-close[data-type="type-2"]',variable:"toggle-button-border-color",type:"color:default"},{selector:'#account-modal .ct-toggle-close[data-type="type-2"]:hover',variable:"toggle-button-border-color",type:"color:hover"}],account_close_button_shape_color:[{selector:'#account-modal .ct-toggle-close[data-type="type-3"]',variable:"toggle-button-background",type:"color:default"},{selector:'#account-modal .ct-toggle-close[data-type="type-3"]:hover',variable:"toggle-button-background",type:"color:hover"}],accountHeaderMargin:{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),type:"spacing",variable:"margin",responsive:!0,important:!0}},Object(a.typographyOption)({id:"account_label_font",selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"suffix",to_add:".ct-label"}))})),{},{accountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.getRootSelectorFor)({itemId:t})),variable:"icon-hover-color",type:"color:hover",responsive:!0}],transparentAccountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],transparent_header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"icon-hover-color",type:"color:hover",responsive:!0}],stickyAccountHeaderColor:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],sticky_header_account_icon_color:[{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"icon-color",type:"color:default",responsive:!0},{selector:Object(a.assembleSelector)(Object(a.mutateSelector)({selector:Object(a.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"icon-hover-color",type:"color:hover",responsive:!0}]})}})),c.a.on("ct:header:sync:item:account",(function(e){var t=e.optionId,o=e.optionValue,r='[data-id="account"]';if("header_account_visibility"===t&&Object(a.updateAndSaveEl)(r,(function(e){return Object(a.responsiveClassesFor)(s(s({},o),{},{desktop:!0}),e)})),"loggedin_account_label_visibility"!==t&&"loggedout_account_label_visibility"!==t||Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){Object(a.responsiveClassesFor)(o,e)}))})),"loggedin_label"===t&&Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))})),"login_label"===t&&Object(a.updateAndSaveEl)(r,(function(e){l(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))})),"loggedout_label_position"!==t&&"loggedin_label_position"!==t||(Object(a.updateAndSaveEl)(r,(function(e){o.desktop||(o={desktop:o,mobile:o}),e.dataset.label=o.desktop}),{onlyView:"desktop"}),Object(a.updateAndSaveEl)(r,(function(e){o.desktop||(o={desktop:o,mobile:o}),e.dataset.label=o.mobile}),{onlyView:"mobile"})),"account_close_button_type"===t){var c=document.querySelector("#account-modal .ct-toggle-close");setTimeout((function(){c.classList.add("ct-disable-transitions"),requestAnimationFrame((function(){c&&(c.dataset.type=o),setTimeout((function(){c.classList.remove("ct-disable-transitions")}))}))}),300)}})),c.a.on("ct:header:sync:collect-variable-descriptors",(function(e){e.global=function(e){e.itemId;return{transparent_behaviour:{selector:'[data-header*="'.concat(document.body.dataset.header,'"]'),variable:"has-transparent-header",responsive:!0,extractValue:function(e){return{desktop:e.desktop?"var(--true)":"var(--false)",tablet:e.mobile?"var(--true)":"var(--false)",mobile:e.mobile?"var(--true)":"var(--false)"}},unit:""}}}})),c.a.on("ct:header:sync:item:global",(function(e){var t=e.optionId,o=e.optionValue,r=e.values;if("has_sticky_header"===t||"sticky_rows"===t||"sticky_behaviour"===t){var a=r.has_sticky_header,l=r.sticky_rows,n=r.sticky_behaviour;Array.from(document.querySelectorAll("[data-sticky]")).map((function(e){e.removeAttribute("data-sticky")})),"yes"===a&&Array.from(document.querySelectorAll("[data-row]")).map((function(e){var t=e.dataset.row;if(l[t]){var o=[];n.desktop&&o.push("desktop"),n.mobile&&o.push("mobile"),e.dataset.sticky=o.join(":")}})),c.a.trigger("blocksy:frontend:init")}if("transparent_behaviour"===t){if(!document.querySelector("[data-transparent]"))return;Array.from(document.querySelectorAll("[data-device]")).map((function(e){e.removeAttribute("data-transparent"),Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("data-transparent-row")})),o[e.dataset.device]&&(e.dataset.transparent="",Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.dataset.transparentRow="yes"}))),c.a.trigger("blocksy:frontend:init")}))}}))}]);