{"version":3,"file":"masthead-DG1Fd0pz.js","sources":["../../src/scripts/modules/masthead.ts"],"sourcesContent":["import { Component } from '@verndale/core';\nimport { ReplaceHeading } from '../helpers/global';\n\nclass Masthead extends Component {\n  setupDefaults() {\n    this.dom = {\n      heading: this.el.querySelectorAll('.city'),\n      subheading: this.el.querySelectorAll('.masthead-subheading')\n    };\n\n    if ((this.dom.heading as NodeList).length > 0) {\n      (this.dom.heading as NodeListOf<HTMLElement>).forEach(heading => {\n        ReplaceHeading(heading);\n      });\n    }\n\n    if ((this.dom.subheading as NodeList).length > 0) {\n      (this.dom.subheading as NodeListOf<HTMLElement>).forEach(subheading => {\n        ReplaceHeading(subheading);\n      });\n    }\n\n    if (this.dom.headingPassport) {\n      ReplaceHeading(this.dom.headingPassport as HTMLElement);\n    }\n  }\n}\n\nexport default Masthead;\n"],"names":["Masthead","Component","heading","ReplaceHeading","subheading"],"mappings":"8EAGA,MAAMA,UAAiBC,CAAU,CAC/B,eAAgB,CACd,KAAK,IAAM,CACT,QAAS,KAAK,GAAG,iBAAiB,OAAO,EACzC,WAAY,KAAK,GAAG,iBAAiB,sBAAsB,CAAA,EAGxD,KAAK,IAAI,QAAqB,OAAS,GACzC,KAAK,IAAI,QAAoC,QAAmBC,GAAA,CAC/DC,EAAeD,CAAO,CAAA,CACvB,EAGE,KAAK,IAAI,WAAwB,OAAS,GAC5C,KAAK,IAAI,WAAuC,QAAsBE,GAAA,CACrED,EAAeC,CAAU,CAAA,CAC1B,EAGC,KAAK,IAAI,iBACID,EAAA,KAAK,IAAI,eAA8B,CAE1D,CACF"}