"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[222],{9222:function(e,t,n){n.r(t),n.d(t,{initMatchHeight:function(){return o}});const o=()=>{window.addEventListener("load",(()=>{l(".equal-height")})),window.addEventListener("resize",(()=>{l(".equal-height")})),window.addEventListener("contentResize",(()=>{l(".equal-height")})),window.dispatchEvent(new Event("contentResize"))},i=(e,t)=>{"function"==typeof t&&(t=t()),e.style.height="string"==typeof t?t:t+"px"},l=e=>{const t=[];let n,o,l=0,r=0;const s=document.querySelectorAll(e);for(const e of s)if(e.style.height="auto",r=e.offsetTop,void 0===n&&(n=r),n!==r){for(o=0;o<t.length;o++)i(t[o],l);t.length=0,n=r,l=parseFloat(getComputedStyle(e,null).height.replace("px","")),t.push(e)}else t.push(e),l=l<parseFloat(getComputedStyle(e,null).height.replace("px",""))?parseFloat(getComputedStyle(e,null).height.replace("px","")):l;for(o=0;o<t.length;o++)i(t[o],l)}}}]);