{
  "version": 3,
  "sources": ["/cdn/shop/t/545/assets/cv-custom-sticky-header.js?enable_js_minification=1"],
  "sourcesContent": ["//script for sticky header\n$(document).ready(function() {\n    var stickyHeader = document.querySelector(\"#shopify-section-header > sticky-header > header\");\n    var stickyLogo = document.querySelector(\"#shopify-section-header > sticky-header > header > h2\");\n    var stickyMenu = document.querySelector(\"#shopify-section-header > sticky-header > header > nav\");\n    var stickyIcon = document.querySelector(\".header__icons\");\n    var stickySearchIcon = document.querySelector(\".cv-search-icon\");\n    var stickySearchBar = document.querySelector(\".cv-search-input\");\n    var menuList = document.querySelector(\"#shopify-section-header > sticky-header > header > nav > div > nav > ul > li > a\")\n\n   if (window.pageYOffset > 135) {\n     addStickyHeader();\n   }\n    $(window).on('resize', function() {\n        var previousPosition = window.pageYOffset || document.documentElement.scrollTop;\n        document.addEventListener(\"scroll\", function() {\n            var currentPosition = window.pageYOffset || document.documentElement.scrollTop;\n            //changed the innerWidth min size from 768 to 989px\n            if (window.innerWidth > 989 ) {\n                if (previousPosition > currentPosition || window.pageYOffset > 135 ) {\n                    //start - added a condition to check if the current page is home page\n                    if (window.location.pathname === \"/\") {\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a > img\").classList.add(\"cv-hide-default-logo\");\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a\").innerHTML = ('<img src =\"//cdn.shopify.com/s/files/1/0042/0390/5136/files/logo_bimi.svg?v=1731699074\" class=\"cv-small-logo\" alt =\"logo\" style=\"height:45px;\">');\n                    } else {\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > a > img\").classList.add(\"cv-hide-default-logo\");\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > a\").innerHTML = ('<img src =\"//cdn.shopify.com/s/files/1/0042/0390/5136/files/logo_bimi.svg?v=1731699074\" class=\"cv-small-logo\" alt =\"logo\" style=\"height:45px; margin-right: 25px;\">');\n                    }\n                    //end - added a condition to check if the current page is home page   \n                    addStickyHeader();\n                }\n                previousPosition = currentPosition;\n\n                if (window.pageYOffset < 135) {\n                    //start - added a condition to check if the current page is home page\n                    if (window.location.pathname === \"/\") {\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a > img\").classList.remove(\"cv-hide-default-logo\");\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a > img\").src = \"//cdn.shopify.com/s/files/1/0042/0390/5136/files/Logo-Black.png?v=1739387326\";\n                    } else {\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > a > img\").classList.remove(\"cv-hide-default-logo\");\n                        document.querySelector(\"#shopify-section-header > sticky-header > header > a > img\").src = \"//cdn.shopify.com/s/files/1/0042/0390/5136/files/Logo-Black.png?v=1739387326\";\n                    }\n                    //end - added a condition to check if the current page is home page\n                     removeStickyHeader();\n                }\n            } else {\n                //start - added a condition to check if the current page is home page\n                if (window.location.pathname === \"/\") {\n                    document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a > img\").classList.remove(\"cv-hide-default-logo\");\n                    document.querySelector(\"#shopify-section-header > sticky-header > header > h2 > a\").classList.remove(\"cv-small-logo\");\n                } else {\n                    document.querySelector(\"#shopify-section-header > sticky-header > header > a > img\").classList.remove(\"cv-hide-default-logo\");\n                    document.querySelector(\"#shopify-section-header > sticky-header > header > a\").classList.remove(\"cv-small-logo\");\n                }\n                //end - added a condition to check if the current page is home page\n                removeStickyHeader();\n            }\n        });\n\n    });\n\n  function addStickyHeader(){\n    stickyMenu.classList.add(\"cv-sticky-menu\");\n    stickyHeader.classList.add(\"cv-sticky-header\");\n    stickyIcon.classList.add(\"cv-sticky-icon\");\n    stickySearchIcon.classList.add(\"cv-show-search-icon\");\n    stickySearchBar.classList.add(\"cv-hide-search-bar\");\n  }\n\n  function removeStickyHeader(){\n    stickyMenu.classList.remove(\"cv-sticky-menu\");\n    stickyHeader.classList.remove(\"cv-sticky-header\");\n    stickyIcon.classList.remove(\"cv-sticky-icon\");\n    stickySearchIcon.classList.remove(\"cv-show-search-icon\");\n    stickyS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