text: !function(){function c(e,t,n){"use strict";var o=window.document.createElement("link"),r=t||window.document.getElementsByTagName("script")[0],a=window.document.styleSheets;return o.rel="stylesheet",o.href=e,o.media="only x",r.parentNode.insertBefore(o,r),o.onloadcssdefined=function(e){for(var t,n=0;n<a.length;n++)a[n].href&&a[n].href===o.href&&(t=!0);t?e():setTimeout(function(){o.onloadcssdefined(e)})},o.onloadcssdefined(function(){o.media=n||"all"}),o}function l(e,t){e.onload=function(){e.onload=null,t&&t.call(e)},"isApplicationInstalled"in navigator&&"onloadcssdefined"in e&&e.onloadcssdefined(t)}var s,d;s=this,(d=function(n,o){"use strict";if(n&&3===n.length){var e=s.navigator,t=s.document,r=s.Image,a=!(!t.createElementNS||!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||s.opera&&-1===e.userAgent.indexOf("Chrome")||-1!==e.userAgent.indexOf("Series40")),i=new r;i.onerror=function(){d.method="png",d.href=n[2],c(n[2])},i.onload=function(){var e=1===i.width&&1===i.height,t=n[e&&a?0:e?1:2];d.method=e&&a?"svg":e?"datapng":"png",l(c(d.href=t),o)},i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",t.documentElement.className+=" grunticon"}}).loadCSS=c,d.onloadCSS=l,s.grunticon=d,function(t,n){"use strict";var c=n.document,s="grunticon:",o=function(e){if(c.attachEvent?"complete"===c.readyState:"loading"!==c.readyState)e();else{var t=!1;c.addEventListener("readystatechange",function(){t||(t=!0,e())},!1)}},r=function(e){return n.document.querySelector('link[href$="'+e+'"]')},a=function(e){var t,n,o,r,a,i,c={};if(!(t=e.sheet))return c;n=t.cssRules?t.cssRules:t.rules;for(var l=0;l<n.length;l++)o=n[l].cssText,r=s+n[l].selectorText,(a=o.split(");")[0].match(/US\-ASCII\,([^"']+)/))&&a[1]&&(i=decodeURIComponent(a[1]),c[r]=i);return c},i=function(e){var t,n,o,r;for(var a in o="data-grunticon-embed",e){r=a.slice(s.length);try{t=c.querySelectorAll(r)}catch(e){continue}n=[];for(var i=0;i<t.length;i++)null!==t[i].getAttribute(o)&&n.push(t[i]);if(n.length)for(i=0;i<n.length;i++)n[i].innerHTML=e[a],n[i].style.backgroundImage="none",n[i].removeAttribute(o)}return n},e=function(e){"svg"===t.method&&o(function(){i(a(r(t.href))),"function"==typeof e&&e()})};t.embedIcons=i,t.getCSS=r,t.getIcons=a,t.ready=o,t.svgLoadedCallback=e,t.embedSVG=e}(grunticon,this)}();var client=ShopifyBuy.buildClient({storefrontAccessToken:"b7cfc2a8e8f47e1220c7b89c22be09aa",domain:"pressley-vineyards.myshopify.com",appId:"29388537919"}),buttonStyles={background:"transparent","border-radius":0,"font-family":"Acumin Pro","font-weight":"bold","text-transform":"uppercase",color:"#85754E",border:"1px solid #85754E"},ui=ShopifyBuy.UI.init(client);ui.createComponent("cart",{node:document.getElementById("cart-toggle"),options:{cart:{styles:{title:{"font-family":"Acumin Pro"},button:buttonStyles}},toggle:{iframe:!1,sticky:!1,contents:{count:!0,icon:!1,title:!0},events:{afterInit:function(e){document.getElementById("cart-toggle").appendChild(e.node)}},styles:{count:{"font-family":"Acumin Pro",float:"right"},title:{"font-family":"Acumin Pro",float:"left"}}}}}),jQuery(document).ready(function(t){new LazyLoad({threshold:500,throttle:30,show_while_loading:!1});if(window.matchMedia("(max-width: 480px)").matches)var e=!0;else e=!1;1==e&&(t(".menu--trigger").on("click touchstart",function(e){e.preventDefault(),t("body").toggleClass("open")}),cart=t("#cart-toggle"),t("#cart-toggle").remove(),t(".mobtoggle").html(cart)),t("#av-overlay").length&&t("input#av_verify").val("Continue Shopping"),0<t(".shopify-buy-frame").length&&t(".shopify-buy-frame").parent("body").addClass("shopify")});