{"version":3,"sources":["webpack:///./app/components/m/simple-teaser/index.js"],"names":["resizeTimer","resizer","clearTimeout","setTimeout","$","each","_a","component","curHeight","$teaserContents","find","_b","teaser","$teaserContent","outerHeight","css","screenTest","e","matches","window","off","on","mql","matchMedia","addListener"],"mappings":";;;;;;;;;;AAAA,IAAIA,WAAW;AAEf,MAAMC,OAAO,GAAGA,CAAA,KAAM;EACpBC,YAAY,CAACF,WAAW,CAAC;EACzBA,WAAW,GAAGG,UAAU,CAAC,MAAM;IAC7BC,CAAC,CAAC,gBAAgB,CAAC,CAACC,IAAI,CAAC,CAACC,EAAE,EAAEC,SAAS,KAAK;MAC1C,IAAIC,SAAS,GAAG,CAAC;MACjB,MAAMC,eAAe,GAAGL,CAAC,CAACG,SAAS,CAAC,CAACG,IAAI,CAAC,yBAAyB,CAAC;MAEpED,eAAe,CAACJ,IAAI,CAAC,CAACM,EAAE,EAAEC,MAAM,KAAK;QACnC,MAAMC,cAAc,GAAGT,CAAC,CAACQ,MAAM,CAAC;QAChCJ,SAAS,GAAGK,cAAc,CAACC,WAAW,EAAE,GAAGN,SAAS,GAAGK,cAAc,CAACC,WAAW,EAAE,GAAGN,SAAS;MACjG,CAAC,CAAC;MACFC,eAAe,CAACM,GAAG,CAAC,YAAY,EAAEP,SAAS,CAAC;IAC9C,CAAC,CAAC;EACJ,CAAC,EAAE,GAAG,CAAC;AACT,CAAC;AAED,SAASQ,UAAUA,CAACC,CAAC,EAAE;EACrB,IAAIA,CAAC,CAACC,OAAO,EAAE;IACb;IACAhB,YAAY,CAACF,WAAW,CAAC;IACzBI,CAAC,CAACe,MAAM,CAAC,CAACC,GAAG,CAAC,0BAA0B,EAAEnB,OAAO,CAAC;IAClDG,CAAC,CAAC,yBAAyB,CAAC,CAACW,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC;EACnD,CAAC,MAAM;IACL;IACAX,CAAC,CAACe,MAAM,CAAC,CAACE,EAAE,CAAC,0BAA0B,EAAEpB,OAAO,CAAC;IACjDA,OAAO,EAAE;EACX;AACF;AAEA,MAAMqB,GAAG,GAAGH,MAAM,CAACI,UAAU,CAAC,oBAAoB,CAAC;AACnD;AACAP,UAAU,CAACM,GAAG,CAAC;;AAEf;AACAA,GAAG,CAACE,WAAW,CAACR,UAAU,CAAC,C","file":"simple-teaser.chunk.js","sourcesContent":["let resizeTimer;\r\n\r\nconst resizer = () => {\r\n clearTimeout(resizeTimer);\r\n resizeTimer = setTimeout(() => {\r\n $('.simple-teaser').each((_a, component) => {\r\n let curHeight = 0;\r\n const $teaserContents = $(component).find('.simple-teaser__content');\r\n\r\n $teaserContents.each((_b, teaser) => {\r\n const $teaserContent = $(teaser);\r\n curHeight = $teaserContent.outerHeight() > curHeight ? $teaserContent.outerHeight() : curHeight;\r\n });\r\n $teaserContents.css('min-height', curHeight);\r\n });\r\n }, 500);\r\n};\r\n\r\nfunction screenTest(e) {\r\n if (e.matches) {\r\n // +++ MOBILE +++\r\n clearTimeout(resizeTimer);\r\n $(window).off('resize orientationchange', resizer);\r\n $('.simple-teaser__content').css('min-height', 0);\r\n } else {\r\n // +++ DESKTOP/TABLET +++\r\n $(window).on('resize orientationchange', resizer);\r\n resizer();\r\n }\r\n}\r\n\r\nconst mql = window.matchMedia('(max-width: 767px)');\r\n// Call listener function at run time\r\nscreenTest(mql);\r\n\r\n// Attach listener function on state changes\r\nmql.addListener(screenTest);\r\n"],"sourceRoot":""}