1!function(e){function t(t){for(var n,i,s=t[0],u=t[1],c=t[2],l=0,p=[];l<s.length;l++)i=s[l],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&p.push(a[i][0]),a[i]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(d&&d(t);p.length;)p.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,s=1;s<r.length;s++){var u=r[s];0!==a[u]&&(n=!1)}n&&(o.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},a={45:0},o=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.shopifySlateJsonp=window.shopifySlateJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var d=u;o.push([358,0]),r()}({193:function(e,t,r){"use strict";var n=i(r(151)),a=i(r(152)),o=function(){var e=(0,a.default)(n.default.mark((function e(t){var r,a,o,i,c,d,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.reservation,a=t.destination,o=t.subtotal,i=t.cart_token,!0!==(c=t.test)){e.next=3;break}return e.abrupt("return",!1);case 3:return d=void 0,window._MILKBAR_SHIPPING_TEST_GROUP&&(d=window._MILKBAR_SHIPPING_TEST_GROUP),console.log("Reservation:",r),l={reservation:r,postal_code:a,subtotal:o,cart_token:i,test_group:d,test:c},e.next=9,s.ajax({type:"GET",url:u.API_BASE_URL+"/rates/shipping/calendar-v4",data:l});case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function i(e){return e&&e.__esModule?e:{default:e}}var s=r(1),u=r(4);r(2),e.exports={getShippingAvailability:o}},358:function(e,t,r){"use strict";var n=s(r(150)),a=s(r(151)),o=s(r(152)),i=function(){var e=(0,o.default)(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/cart.js");case 3:if((t=e.sent).ok){e.next=6;break}throw new Error("Failed to fetch cart data");case 6:return e.next=8,t.json();case 8:return r=e.sent,e.abrupt("return",r);case 12:throw e.prev=12,e.t0=e.catch(0),console.error("Error fetching cart data:",e.t0),e.t0;case 16:case"end":return e.stop()}}),e,this,[[0,12]])})));return function(){return e.apply(this,arguments)}}();function s(e){return e&&e.__esModule?e:{default:e}}r(8),r(9);var u=r(1),c=r(5),d=r(2);u.fn.asEventStream=c.$.asEventStream;var l=r(193);u(".product-popup-modal").on("click",".back-in-stock-submit",(function(e){e.preventDefault();var t=u(e.target).closest("form"),r=u(e.target).closest("form").serializeArray();if(t.validate({rules:{email_address:{required:!0,email:!0}},messages:{email_address:{required:"Email is required",email:"Please enter a valid email address - example: [email protected]"}}}),t.valid()){u(e.target).addClass("loading");var n={product_id:t.data("product-id"),variant_id:t.data("variant-id")};r.forEach((function(e){n[e.name]=e.value})),BIS.create(n.email_address,n.variant_id,n.product_id).then((function(e){"OK"==e.status?(console.log("Back in stock sign up success!",e.status),t.find(".signup").addClass("hide"),t.find(".back-in-stock-signup-success").removeClass("hide"),t.find(".back-in-stock-signup-error").addClass("hide")):(console.log("Back in stock sign up error!",e.status,e.errors),t.find(".back-in-stock-signup-error").html(e.errors.base[0]).removeClass("hide"),t.find(".animate-enter.loading").removeClass("loading"))}))}}));function p(){var e=document.querySelector(".quick-add-modal[open] .product-popup-modal__toggle");e&&e.click()}function f(e){document.querySelector(".meter-wrap")&&(50==e&&document.querySelector(".meter-wrap").classList.add("fiftyMet"),100==e&&document.querySelector(".meter-wrap").classList.add("hundredMet"),document.querySelector(".meter-wrap .meter .progress").style.width=e+"%")}function m(e,t){switch(e){case"relatedProducts":console.log("PDP Upsell",t);break;case"bundleTradeUp":console.log("PDP Bundle Upsell",t);break;case"stickyATC":console.log("PDP Sticky ATC",t);break;case"byob":console.log("PDP Build Your Own Bundle",t);break;default:console.log("Default case...")}}document.addEventListener("submit",(function(e){e.target.matches(".pdp-form")&&(e.preventDefault(),function(e){var t=e.target.closest(".pdp-form"),r=t.querySelector("[type=submit]"),a=t.classList.contains("primary-form"),o=t.classList.contains("byob-base-true"),s=t.classList.contains("byob-true"),c=t.classList.contains("addon-true"),l=t.closest(".pdp-atc").getAttribute("data-base-product"),v=t.querySelector(".product-variant-id").value,h=t.querySelector(".product-variant-id").value,y=t.querySelector(".product-variant-id").value,b=new FormData(t),g=Object.fromEntries(b.entries()),_=t.getAttribute("data-type"),A=t.getAttribute("data-item-title"),w=t.getAttribute("data-delivery-statement"),S=t.getAttribute("data-ships-separately"),k=t.getAttribute("data-purchased-separately"),E=t.getAttribute("data-limited-availability"),C="";g.properties={},w&&(C=w,g.properties.Note=C),"true"===E&&(g.properties._limited_availability=!0),"true"===S&&(g.properties._ships_separately=!0),console.log("%%%%%%",g),"true"===k&&(g.properties._purchased_separately=!0);var D=u('.belly-band-toggle[data-parent-id="'+v+'"]:checked');if(D.length&&a){var R=D[0];return console.log("Belly band detected"),void function(e,t,r){i().then((function(a){var o=1;a.items.map((function(e){e.id===t&&(o+=e.quantity)}));var i={items:[[e,1],[t,o]].map((function(t,a){var o=(0,n.default)(t,2),i=o[0],s=o[1],u={};0===a&&r&&(u._partOf="byob|40760608948297",u._byob=!0),a>0&&(u._pairs_with=parseInt(e));try{u._sessionId=window.MilkBar.session.id}catch(e){}return{id:i,quantity:s,properties:u}}))};console.log("ADDING TO CART",i),fetch("/cart/add.js",{method:"POST",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){console.log("PDP ATC with Belly band result",e),p();var t=new CustomEvent("MILKBAR:REFRESH_CART");document.dispatchEvent(t)}))}
1))}(v,R.getAttribute("data-variant-id"),o)}if(o)return function(e,t){var r={id:e,quantity:1,properties:{_partOf:"byob|40760608948297",_byob:!0,_add_to_cart_source:"pdp"}};try{r.properties._sessionId=window.MilkBar.session.id,t&&(r.properties=d.mergeRight(r.properties,t))}catch(e){}console.log("ADDING TO CART",r);var n=new CustomEvent("MILKBAR:ADD_TO_CART",{detail:{items:{items:[r]},callback:function(){p();var e=new CustomEvent("MILKBAR:REFRESH_CART");document.dispatchEvent(e)}}});document.dispatchEvent(n)}(v,g.properties),void m(_,A);if(s)return function(e,t,r){i().then((function(a){var o=a.items.filter((function(e){return e.properties&&e.properties._byob}));0==o.length&&f(50),o.length>1&&f(100);var i=void 0;0===a.items.length||!a.items.find((function(t){return String(t.id)===e}))?(console.log("add base item"),i=[[e,1],[t,1]]):(console.log("Add byob only"),i=[[t,1]]);var s=i.map((function(t){var a=(0,n.default)(t,2),o=a[0],i=a[1],s={_partOf:"byob|40760608948297",_byob:!0,_add_to_cart_source:"pdp"};try{s._sessionId=window.MilkBar.session.id}catch(e){}return o===e&&r&&(item.properties.Note=r),{id:o,quantity:i,properties:s}}));console.log("ADDING TO CART",s);var u=new CustomEvent("MILKBAR:ADD_TO_CART",{detail:{items:{items:s},callback:function(){p();var e=new CustomEvent("MILKBAR:REFRESH_CART");document.dispatchEvent(e);var t=new CustomEvent("MILKBAR:SYNC_BUNDLE_DATA");document.dispatchEvent(t)}}});document.dispatchEvent(u)})).catch((function(e){}))}(l,h,C),r.querySelector(".add-text")&&(r.querySelector(".add-text").textContent="Added"),void m(_,A);if(c)return function(e,t,r){i().then((function(a){var o=(a.items.length?[[t,1]]:[[e,1],[t,1]]).map((function(t){var a=(0,n.default)(t,2),o=a[0],i=a[1];return o===e&&r&&(item.properties.Note=r),{id:o,quantity:i}}));console.log("ADDING TO CART",o);var i=new CustomEvent("MILKBAR:ADD_TO_CART",{detail:{items:{items:o},callback:function(){p();var e=new CustomEvent("MILKBAR:REFRESH_CART");document.dispatchEvent(e)}}});document.dispatchEvent(i)}))}(l,y,C),m(_,A),void(r.querySelector(".add-text").textContent="Added");r.disabled=!0;var T=new CustomEvent("MILKBAR:ADD_TO_CART",{detail:{items:g,always:function(){r.disabled=!1,m(_,A)},error:alert}});document.dispatchEvent(T),p(),document.body.classList.add("post-atc-active")}(e))}));var v=document.querySelector('section[id^="MainProduct"]'),h=v.getAttribute("data-reservation"),y=v.getAttribute("data-price");c.fromPromise(l.getShippingAvailability({reservation:h,destination:"10001",subtotal:y,test:!0})).onValue((function(e){var t=d.propOr(!1,"scheduled",e);if(t){var r=Object.keys(t).find((function(e){return t[e]}));if(!r)return console.log("No availability found."),void(document.querySelector("#pdpDeliveryDetailsModal").style.display="none");!function e(t){var r=document.getElementById("counter"),n=new Date,a=new Date(t)-n,o=a>=864e5?36e5:6e4;if(a>=864e5){var i=Math.floor(a/864e5);a-=864e5*i;var s=Math.floor(a/36e5),u=i>1?"days":"day",c=s>1?"hours":"hour";r.innerHTML=i+" "+u+" "+s+" "+c}else{var d=Math.floor(a/36e5),l=Math.floor(a%36e5/6e4),p=d>1?"hours":"hour",f=l>1?"minutes":"minute";r&&(r.innerHTML=d+" "+p+" "+l+" "+f)}setTimeout((function(){return e(t)}),o)}(t[r].ship_date);var n=new Date(r),a=n.toLocaleDateString("en-US",{weekday:"long"}),o=function(e){if(e>=11&&e<=13)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}(n.getDate());!function(e,t,r){document.querySelector(".dayName")&&document.querySelector(".nextDate").textContent&&(document.querySelector(".dayName").textContent="this "+e,document.querySelector(".nextDate").textContent="Get this delivered by "+e+", "+t+" "+r+"*")}(a,n.toLocaleDateString("en-US",{month:"long"}),o)}})),u(".belly-band").on("click",".card__media",(function(e){u(e.target).closest(".belly-band").toggleClass("show-secondary-image")}))},4:function(e,t,r){"use strict";var n=r(2),a=n.pathOr("",["theme","permanent_domain"])(window),o=n.pathOr(!1,["Shopify","theme","id"])(window);e.exports={API_BASE_URL:44359483465===o||58372522084===o||129864663113===o?"http://localhost:8080/api":a.includes("experimental")?"https://milk-support-experimental.herokuapp.com/api":"https://milk-support.herokuapp.com/api"}}});
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.