!function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.ctEvents,r=t.n(e),o=window.blocksyCustomizerSync;r().on("ct:customizer:sync:collect-variable-descriptors",function(t){t.result={...t.result,...(0,o.withKeys)(["shortcuts_container_height","shortcuts_bar_visibility","shortcuts_bar_type"],{selector:".ct-drawer-canvas[data-shortcuts-bar]",variable:"shortcuts-bar-height",responsive:!0,unit:"px",extractValue:function(t){const e={...(0,o.maybePromoteScalarValueIntoResponsive)(wp.customize("shortcuts_container_height")())};"type-2"===wp.customize("shortcuts_bar_type")()&&(e.desktop=parseFloat(e.desktop)+30,e.tablet=parseFloat(e.tablet)+30,e.mobile=parseFloat(e.mobile)+30);const r=wp.customize("shortcuts_bar_visibility")();return r.desktop||(e.desktop=0),r.tablet||(e.tablet=0),r.mobile||(e.mobile=0),e}}),shortcuts_container_width:{selector:".ct-shortcuts-bar-items",variable:"shortcuts-bar-width",unit:""},shortcuts_icon_size:{selector:".ct-shortcuts-bar-items",variable:"theme-icon-size",responsive:!0,unit:"px"},...(0,o.typographyOption)({id:"shortcuts_font",selector:".ct-shortcuts-bar-items"}),shortcuts_font_color:[{selector:".ct-shortcuts-bar-items a",variable:"theme-link-initial-color",type:"color:default",responsive:!0},{selector:".ct-shortcuts-bar-items a",variable:"theme-link-hover-color",type:"color:hover",responsive:!0}],shortcuts_icon_color:[{selector:".ct-shortcuts-bar-items",variable:"theme-icon-color",type:"color:default",responsive:!0},{selector:".ct-shortcuts-bar-items",variable:"theme-icon-hover-color",type:"color:hover",responsive:!0}],shortcuts_item_color:[{selector:".ct-shortcuts-bar-items",variable:"item-color",type:"color:default",responsive:!0},{selector:".ct-shortcuts-bar-items",variable:"item-hover-color",type:"color:hover",responsive:!0}],shortcuts_cart_badge_color:[{selector:'.ct-shortcuts-bar-items [data-shortcut="cart"]',variable:"theme-cart-badge-background",type:"color:background",responsive:!0},{selector:'.ct-shortcuts-bar-items [data-shortcut="cart"]',variable:"theme-cart-badge-text",type:"color:text",responsive:!0}],shortcuts_wishlist_badge_color:[{selector:'.ct-shortcuts-bar-items [data-shortcut="wishlist"]',variable:"theme-cart-badge-background",type:"color:background",responsive:!0},{selector:'.ct-shortcuts-bar-items [data-shortcut="wishlist"]',variable:"theme-cart-badge-text",type:"color:text",responsive:!0}],shortcuts_compare_badge_color:[{selector:'.ct-shortcuts-bar-items [data-shortcut="compare"]',variable:"theme-cart-badge-background",type:"color:background",responsive:!0},{selector:'.ct-shortcuts-bar-items [data-shortcut="compare"]',variable:"theme-cart-badge-text",type:"color:text",responsive:!0}],shortcuts_divider:{selector:".ct-shortcuts-bar-items",variable:"shortcuts-divider",type:"border"},shortcuts_divider_height:[{selector:".ct-shortcuts-bar-items",variable:"shortcuts-divider-height",unit:"%"}],...(0,o.handleBackgroundOptionFor)({id:"shortcuts_container_background",selector:".ct-shortcuts-bar-items",responsive:!0}),shortcuts_container_blur:{selector:".ct-shortcuts-bar-items",variable:"theme-backdrop-blur",responsive:!0,unit:"px",forceOutput:!0},shortcuts_container_shadow:{selector:".ct-shortcuts-bar-items",type:"box-shadow",variable:"theme-box-shadow",responsive:!0},shortcuts_container_border_radius:{selector:".ct-shortcuts-bar-items",type:"spacing",variable:"theme-border-radius",emptyValue:7,responsive:!0}}}),wp.customize("shortcuts_bar_visibility",function(t){return t.bind(function(t){return(0,o.responsiveClassesFor)("shortcuts_bar_visibility",document.querySelector(".ct-shortcuts-bar"))})}),wp.customize("shortcuts_bar_type",function(t){t.bind(function(t){let e=document.querySelector(".ct-shortcuts-bar");e&&(e.dataset.type=t)})}),wp.customize("shortcuts_label_position",function(t){t.bind(function(t){[...document.querySelectorAll(".ct-shortcuts-bar a")].map(function(e){e.dataset.label=t})})}),wp.customize("shortcuts_bar_items",function(t){t.bind(function(t){let e=document.querySelector(".ct-shortcuts-bar-items");e&&t.filter(function({enabled:t}){return!!t}).map(function(t,r){const s="custom_link"!==t.id?t.id:`${t.id}:${t.__id.substring(0,1)}`,c=e.querySelector(`[data-shortcut="${s}"]`);if(c){(0,o.responsiveClassesFor)(t.item_visibility||{desktop:!0,tablet:!0,mobile:!0},c.parentNode);let e=c.querySelector(".ct-label");"custom_link"===t.id&&c.setAttribute("href",t.link),e&&(e.innerHTML=t.label)}})})})}();