import*as t from"@wordpress/interactivity";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const o=(s={getContext:()=>t.getContext,store:()=>t.store},n={},e.d(n,s),n),r={actions:{startZoom:t=>{const e=t.target;if(!e.classList.contains("wc-block-woocommerce-product-gallery-large-image__image"))return a.resetZoom(t);const r=t.target,s=t.offsetX/r.clientWidth*100,n=t.offsetY/r.clientHeight*100,{selectedImageId:i}=(0,o.getContext)(void 0);i===parseInt(e.getAttribute("data-image-id")??"0",10)&&(e.style.transform="scale(1.3)",e.style.transformOrigin=`${s}% ${n}%`)},resetZoom:t=>{const e=t.target;e&&(e.style.transform="scale(1.0)",e.style.transformOrigin="")}}},{actions:a}=(0,o.store)("woocommerce/product-gallery",r,{lock:"I acknowledge that using a private store means my plugin will inevitably break on the next store release."});var s,n;