{"version":3,"file":"js/5139.chunk.js?v=1742528680091","mappings":"gJAGMA,EAAU,WACZ,IAAMC,EAASC,IAAE,+CAEK,IAAlBD,EAAOE,QAIXF,EAAOG,MAAK,WACR,IAAMC,EAAQH,IAAEI,MAEVC,EADOF,EAAMG,SACAC,KAAK,qBAAqBN,OAAS,EAClDO,EAAQC,KAAKC,MAAML,EAAQ,GAAK,EAAI,GACpCM,OAAOC,YAAc,OACrBJ,EAAQC,KAAKC,MAAML,EAAQ,GAAK,EAAI,IAExC,IAAMQ,EAAW,IAAML,EAEvBL,EAAMW,IAAI,SAAU,GAAFC,OAAK,IAAiB,EAAXF,EAAY,KAC7C,GACJ,EAgBAb,KAAE,WAde,IACTgB,EAcChB,IAAE,+CAA+CC,SAdlDe,EAAc,EAElBL,OAAOM,SAAW,WACd,IAAMC,EAAWP,OAAOC,WACpBI,IAAgBE,IAChBpB,IACAkB,EAAcE,EAEtB,EAEApB,IASJ,G","sources":["webpack://fed-boilerplate/./src/4-sections/grid-widget/s-grid-widget-tile-mailing.js"],"sourcesContent":["/* eslint-disable no-mixed-operators */\nimport $ from 'jquery';\n\nconst formTop = () => {\n    const $forms = $('.is-reversed .grid-widget-content .has-form');\n\n    if ($forms.length === 0) {\n        return;\n    }\n\n    $forms.each(function() {\n        const $form = $(this);\n        const $div = $form.parent();\n        const child = $div.find('.grid-widget-item').length - 1;\n        let stack = Math.ceil((child - 1) / 2 + 2);\n        if (window.outerWidth >= 1024) {\n            stack = Math.ceil((child - 3) / 3 + 2);\n        }\n        const perStack = 100 / stack;\n\n        $form.css('bottom', `${100 - perStack * 2}%`);\n    });\n};\n\nconst onResize = () => {\n    let windowWidth = 0;\n\n    window.onresize = () => {\n        const newWidth = window.outerWidth;\n        if (windowWidth !== newWidth) {\n            formTop();\n            windowWidth = newWidth;\n        }\n    };\n\n    formTop();\n};\n\n$(() => {\n    if (!$('.is-reversed .grid-widget-content .has-form').length) {\n        return;\n    }\n\n    onResize();\n});\n"],"names":["formTop","$forms","$","length","each","$form","this","child","parent","find","stack","Math","ceil","window","outerWidth","perStack","css","concat","windowWidth","onresize","newWidth"],"sourceRoot":""}