1"use strict";Shopify.theme.jsAnnouncementBar={init:function($section){var _this=this;Shopify.theme.jsAnnouncementBar=$.extend(this,Shopify.theme.getSectionData($section));var template=this.homepage_only?".index":"";this.$el=$("#announcement-bar",template);var announcementCookie=Cookies.get("announcement-bar");if($(".announcement-bar__shadow").height(this.$el.height()),this.show_close_icon===!1)Cookies.remove("announcement-bar"),$("body").addClass("announcement-bar--visible"),Shopify.theme_settings.header_layout=="vertical"&&this.addVerticalHeaderTopMargin();else if(announcementCookie!=="dismiss")$("body").addClass("announcement-bar--visible"),Shopify.theme_settings.header_layout=="vertical"&&this.addVerticalHeaderTopMargin();else return $("body").addClass("announcement-bar--hidden"),this.disableSticky(),Shopify.theme_settings.header_layout=="vertical"&&this.removeVerticalHeaderTopMargin(),!1;this.enable_sticky===!0?this.enableSticky():this.disableSticky(),this.show_close_icon===!0&&($("body").addClass("has-announcement-bar-toggle"),this.$el.on("click",".js-close-announcement",function(){_this.hide(),Shopify.theme_settings.header_layout=="vertical"&&_this.removeVerticalHeaderTopMargin()}))},addVerticalHeaderTopMargin:function(){isScreenSizeLarge()&&($(".header--vertical").css("marginTop",-this.$el.height()),$(".announcement-bar__shadow").height(this.$el.height()))},removeVerticalHeaderTopMargin:function(){$(".header--vertical").removeAttr("style")},enableSticky:function(){this.$el.parent().sticky({wrapperClassName:"announcement-sticky-wrapper",zIndex:40}),this.resetHeader(this.$el.height())},disableSticky:function(){this.$el.parent().unstick(),this.resetHeader(0)},hide:function(){$("body").removeClass("announcement-bar--visible"),this.disableSticky(),Cookies.set("announcement-bar","dismiss",{expires:30})},resetHeader:function(offset){Shopify.theme.jsHeader.enable_sticky===!0&&isScreenSizeLarge()?Shopify.theme_settings.header_layout!="vertical"&&(Shopify.theme.jsHeader.disableSticky(),Shopify.theme.jsHeader.enableSticky(offset)):Shopify.theme.jsHeader.enable_sticky===!0&&!isScreenSizeLarge()&&(Shopify.theme.mobileMenu.disableSticky(),Shopify.theme.mobileMenu.enableSticky(offset))},getAnnouncementHeight:function(){var announcementHeight=$(".announcement-container").outerHeight()||0;return announcementHeight},unload:function($section){$("#announcement-bar").off(),$("#announcement-bar").unstick()}}; 2//# sourceMappingURL=/cdn/shop/t/49/assets/z__jsAnnouncementBar.js.map?v=59440407186614649631783501691
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.