"use strict";(globalThis.webpackChunkwoocommerce_product_options=globalThis.webpackChunkwoocommerce_product_options||[]).push([[50],{7591:(e,t,o)=>{o.d(t,{default:()=>r});const r=e=>{const t=e;return{init:function(){Array.from(t.querySelectorAll(".wpo-image-buttons")).forEach(e=>{!function(e){const t=e?.querySelector(".wpo-image-wrap"),o=t?.querySelector(".wpo-image-text"),r=o?.querySelector(".wpo-image-label");if(!r)return;const c=(e.classList.contains("wpo-image-buttons-partial")?.5:1)*t.getBoundingClientRect().height,i=parseFloat(getComputedStyle(r)["line-height"].replace("px","")),n=Math.floor(c/i)-2;e.style.setProperty("--wpo-image-buttons-line-clamp",n)}(e)})}}}}}]);