(window.blocksyJsonP=window.blocksyJsonP||[]).push([[14],{33:function(t,e,a){"use strict";a.r(e),a.d(e,"mount",(function(){return l}));var n=a(2),r=a.n(n);const s=()=>[...document.querySelectorAll(".quantity")].map(t=>{t.querySelector(".ct-increase")&&[...t.querySelectorAll("input")].map(t=>{t.hasInputListener||(t.hasInputListener=!0,t.addEventListener("input",e=>{t.closest("tr")&&[...t.closest("tr").querySelectorAll(".quantity input")].filter(e=>e!==t).map(t=>t.value=e.target.value)}))})});let o=!1;const l=(t,e)=>{let{event:a}=e;r.a&&!o&&(o=!0,r()(document.body).on("updated_cart_totals",s),s());const n=t.parentNode.querySelector("input"),l=parseFloat(n.value,10)||0;if(t.classList.contains("ct-increase")){const t=n.getAttribute("max")?parseFloat(n.getAttribute("max"),0):1/0;n.value=lt?Math.round(100*(l-parseFloat(n.step||"1")))/100:t}r()(n).trigger("change"),n.closest("tr")&&[...n.closest("tr").querySelectorAll(".quantity input")].filter(t=>t!==n).map(t=>t.value=n.value)}}}]);