{"version":3,"sources":["process-notification-banner.ts"],"names":["noticeBannerELem","document","querySelector","init","this","observeResize","setProperty","bind","body","style","clientHeight"],"mappings":"CAOsD,CAClDA,iBAAkBC,SAASC,cAA8B,6BACzDC,OACOC,KAAKJ,kBAIVI,KAAKJ,iBAAiBK,cAAcD,KAAKE,YAAYC,KAAKH,QAE5DE,cACMF,KAAKJ,kBACPC,SAASO,KAAKC,MAAMH,YAAY,yBAA0BF,KAAKJ,iBAAiBU,aAAe,SAKlFP","file":"process-notification-banner.js","sourcesContent":["export interface NotificationBannerModel {\n noticeBannerELem?: HTMLElement | null;\n init: () => void;\n setProperty: () => void;\n}\n\n(() => {\n const notificationBanner: NotificationBannerModel = {\n noticeBannerELem: document.querySelector('.fm-o-notification-banner'),\n init() {\n if (!this.noticeBannerELem) {\n return;\n }\n\n this.noticeBannerELem.observeResize(this.setProperty.bind(this));\n },\n setProperty() {\n if (this.noticeBannerELem) {\n document.body.style.setProperty(\"--notice-banner-height\", this.noticeBannerELem.clientHeight + \"px\");\n }\n }\n };\n\n notificationBanner.init();\n})();"]}