UNPKG

digitalmarketplace-frontend

Version:

Digital Marketplace Frontend contains assets and components used in Digital Marketplace projects

1 lines 2.53 kB
{"version":3,"file":"init.mjs","sources":["../../src/digitalmarketplace/init.ts"],"sourcesContent":["import { ComplianceCommunicationAttachments } from './components/compliance-communication-attachments/compliance-communication-attachments'\nimport { CookieBanner } from './components/cookie-banner/cookie-banner'\nimport { CookieSettings } from './scripts/cookies/settings'\nimport { DigitalMarketplaceFrontendComponent } from './digitalmarketplace-frontend-component'\nimport { initGoogleAnalytics } from './scripts/analytics/init-google-analytics'\nimport { ListInput } from './components/list-input/list-input'\nimport { OptionSelect } from './components/option-select/option-select'\nimport { Question } from './components/question/question'\nimport { QuestionCheckboxTree } from './components/question-checkbox-tree/question-checkbox-tree'\nimport { QuestionList } from './components/question-list/question-list'\nimport { QuestionListMultiquestionClientSide } from './components/question-list-multiquestion-client-side/question-list-multiquestion-client-side'\nimport { SearchBox } from './components/search-box/search-box'\nimport { SelectCountryFromForm } from './components/select-country-from-form/select-country-from-form'\n\nconst createAll = (Component: typeof DigitalMarketplaceFrontendComponent) => {\n $(`[data-module=\"${Component.moduleName}\"]`).each((_index, componentElement) => {\n new Component($(componentElement)).init()\n })\n}\n\nconst initAll = () => {\n const components: Array<typeof DigitalMarketplaceFrontendComponent> = [\n ComplianceCommunicationAttachments,\n CookieSettings,\n CookieBanner,\n ListInput,\n OptionSelect,\n QuestionCheckboxTree,\n QuestionList,\n QuestionListMultiquestionClientSide,\n Question,\n SearchBox,\n SelectCountryFromForm\n ]\n\n components.forEach((Component) => {\n createAll(Component)\n })\n\n initGoogleAnalytics()\n}\n\nexport { initAll, createAll }\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcA,MAAM,SAAS,GAAG,CAAC,SAAqD,KAAI;AAC1E,IAAA,CAAC,CAAC,CAAA,cAAA,EAAiB,SAAS,CAAC,UAAU,CAAI,EAAA,CAAA,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,gBAAgB,KAAI;QAC7E,IAAI,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE;AAC3C,KAAC,CAAC;AACJ;AAEM,MAAA,OAAO,GAAG,MAAK;AACnB,IAAA,MAAM,UAAU,GAAsD;QACpE,kCAAkC;QAClC,cAAc;QACd,YAAY;QACZ,SAAS;QACT,YAAY;QACZ,oBAAoB;QACpB,YAAY;QACZ,mCAAmC;QACnC,QAAQ;QACR,SAAS;QACT;KACD;AAED,IAAA,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,KAAI;QAC/B,SAAS,CAAC,SAAS,CAAC;AACtB,KAAC,CAAC;AAEF,IAAA,mBAAmB,EAAE;AACvB;;;;"}