\n","/* eslint no-console: 0 */\n// Run this example by adding <%= javascript_pack_tag 'hello_svelte' %> (and\n// <%= stylesheet_pack_tag 'hello_svelte' %> if you have styles in your component)\n// to the head of your layout file,\n// like app/views/layouts/application.html.erb.\n// All it does is render
Hello Svelte!
at the bottom of the page.\n\nimport IberostarLive from '../container/iberostarLive.svelte';\nimport PostsSlider from '../container/PostsSlider.svelte';\n\ndocument.addEventListener('DOMContentLoaded', () => {\n\n let iberostarLiveNode = document.getElementsByClassName(\"b-list-post_iberostar-live\");\n let postsSliderNode = document.getElementsByClassName(\"b-posts-slider\");\n\n // saves i18n strings in global variable\n let svelteAppContainer = document.getElementsByClassName(\"svelte-app\");\n if (svelteAppContainer.length > 0) {\n window.i18nIbeLive = JSON.parse(svelteAppContainer[0].dataset.posts);\n }\n\n if (iberostarLiveNode.length) {\n\n const app = new IberostarLive({ target: iberostarLiveNode[0] });\n\n window.app = app;\n }\n\n if (postsSliderNode.length) {\n const app = new PostsSlider({ target: postsSliderNode[0] });\n\n window.app = app;\n }\n});\n"],"sourceRoot":""}
{commentDescription}
\n