{"version":3,"file":"sticky-change-0baf664056.js","sources":["sticky-change-0baf664056.js"],"sourcesContent":["\r\nconst init = () => {\r\n const stickyEl = document.querySelector('.js-sticky-change-element');\r\n const rowEl = stickyEl.querySelector('.form-row');\r\n const navEl = document.querySelector('nav');\r\n const padding = 10;\r\n const setStickyTop = () => stickyEl.style.top = `-${rowEl.offsetTop - (navEl.offsetHeight || 50) - padding}px`;\r\n let resizeTimer;\r\n\r\n setStickyTop();\r\n\r\n window.addEventListener('resize', () => {\r\n clearTimeout(resizeTimer);\r\n resizeTimer = setTimeout(setStickyTop, 100);\r\n })\r\n}\r\n\r\nexport default init;\r\n"],"names":["init","stickyEl","document","querySelector","rowEl","navEl","setStickyTop","style","top","offsetTop","offsetHeight","let","resizeTimer","window","addEventListener","clearTimeout","setTimeout"],"mappings":"AACA,MAAMA,KAAO,KACT,MAAMC,EAAWC,SAASC,cAAc,2BAA2B,EAC7DC,EAAQH,EAASE,cAAc,WAAW,EAC1CE,EAAQH,SAASC,cAAc,KAAK,EAEpCG,EAAe,IAAML,EAASM,MAAMC,QAAUJ,EAAMK,WAAaJ,EAAMK,cAAgB,IAD7E,OAEhBC,IAAIC,EAEJN,EAAa,EAEbO,OAAOC,iBAAiB,SAAU,KAC9BC,aAAaH,CAAW,EACxBA,EAAcI,WAAWV,EAAc,GAAG,CAC9C,CAAC,CACL,iBAEeN"}