import*as e from"@wordpress/interactivity";var t,r,n={d:function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},o=(t={getElement:function(){return e.getElement},store:function(){return e.store}},r={},n.d(r,t),r);const i=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin,{state:a}=(0,o.store)("surecart/product-review",{state:{loading:!1,open:!1},actions:{*navigate(e){const{ref:t}=(0,o.getElement)(),r=t.closest("[data-wp-router-region]");if(i(t)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(e)&&r){e.preventDefault();const{actions:r}=yield import("@wordpress/interactivity-router");a.loading=!0,yield r.navigate(t.href),a.loading=!1}},*prefetch(){const{ref:e}=(0,o.getElement)();if(i(e)){const{actions:t}=yield import("@wordpress/interactivity-router");yield t.prefetch(e.href)}}}});