(function (d, w) {
  var script, config, container, style;
  var embedUuid = '17988bb2c6a09d6903ef26ee6c09d20e';

  function mergeDeep(target, source) {
    if (typeof target == "object" && typeof source == "object") {
      for (var key in source) {
        if (source[key] === null && (target[key] === undefined || target[key] === null)) {
          target[key] = null;
        } else if (source[key] instanceof Array) {
          target[key] = source[key];
        } else if (typeof source[key] == "object" && source[key] !== null) {
          if (!target[key]) target[key] = {};
          mergeDeep(target[key], source[key]);
        } else {
          target[key] = source[key];
        }
      }
    }
    return target;
  }

  function merge(target, source) {
    return mergeDeep(mergeDeep({}, target), source);
  }

  w.flcklr = w.flcklr || {};

  w._flocklerEditVersion = null;

  w._flocklerOverride = w._flocklerOverride || {};
  w.flcklr.EmbedConfigs = w.flcklr.EmbedConfigs || {};
  w.flcklr.EmbedConfigs[embedUuid] = merge({"embedUuid":"17988bb2c6a09d6903ef26ee6c09d20e","embedVersion":"v3","container":"flockler-embed-17988bb2c6a09d6903ef26ee6c09d20e","section":[49644],"site":15186,"style":"wall_v2","count":4,"defaultCss":true,"defaultJs":true,"extra":{"wall_timestamps":true,"wall_timestamps_format":"relative"},"refresh":0,"showLikes":1,"showComments":1,"showRetweets":1,"showProfile":true}, w._flocklerOverride[embedUuid]);

    w.flcklr.EmbedConfigsV3 = w.flcklr.EmbedConfigsV3 || {};
    w.flcklr.EmbedConfigsV3[embedUuid] = {"embedUuid":"17988bb2c6a09d6903ef26ee6c09d20e","embedVersion":"v3","siteUuid":"17868a952430b6b61f91b78bde8668ac","configuration":{"count":4,"locale":"fi","filters":{"filterBySectionIds":[49644],"filterByTags":[],"filterByChannels":[],"tagFilterType":"any","filterByProductIds":[],"filterByProductCategoryIds":[],"filterByProductFeedIds":[],"filterByFallbacks":null},"localizations":{"relativeTime":{"seconds":{"singular":"# s sitten","plural":"# s sitten"},"minutes":{"singular":"# min sitten","plural":"# min sitten"},"hours":{"singular":"# t sitten","plural":"# t sitten"},"days":{"singular":"# pv sitten","plural":"# pv sitten"},"weeks":{"singular":"# vk sitten","plural":"# vk sitten"},"months":{"singular":"# kk sitten","plural":"# kk sitten"},"years":{"singular":"# v sitten","plural":"# v sitten"}},"actions":{"buyNow":"Osta nyt","next":"Seuraava","previous":"Edellinen","tapToPlay":"Aloita napauttamalla","viewProducts":"Näytä tuotteet","showMore":"Näytä lisää…","loadMorePosts":"Lataa lisää viestejä","showNewerPosts":"Näytä uudet viestit"},"help":{"noAltText":"Kuvan kuvausta ei ole saatavilla.","playVideo":"Toista video","anonymous":"Anonymous","recommends":"Suosittelee kohdetta %{page_name}","doesNotRecommend":"Ei suosittele kohdetta %{page_name}","seeOriginalPost":"Avaa alkuperäinen julkaisu","seePostOn":"Avaa alkuperäinen julkaisu palvelussa %{channel}","seeProfileOf":"Näytä profiilisivu käyttäjälle %{user}","profilePictureOf":"Profiilikuva: %{user}","openInPopupView":"Open in popup view","opensInANewWindow":"Linkki avautuu uuteen ikkunaan","readMoreNotice":"(enlarge visible text above – no impact for screenreader users)"},"postLabels":{"facebook":"Facebook-julkaisu","flickr":"Flickr-julkaisu","flockler":"Julkaisu","fromUser":"käyttäjältä %{user}","google_review":"Google-arvostelu","instagram":"Instagram-julkaisu","linkedin":"LinkedIn-julkaisu","pinterest":"Pinterest-julkaisu","reddit":"Reddit-julkaisu","review":"Arvostelu","rss":"Julkaisu RSS-syötteestä","soundcloud":"SoundCloud-julkaisu","tiktok":"TikTok-julkaisu","twitter":"Twitter-julkaisu","video":"Videojulkaisu","vimeo":"Vimeo-video","youtube":"YouTube-video"},"stats":{"commentsLabelSingular":"%{count} kommentti","commentsLabelPlural":"%{count} kommenttia","likesLabelSingular":"%{count} tykkäys","likesLabelPlural":"%{count} tykkäystä","retweetsLabelSingular":"%{count} uudelleentwiittaus","retweetsLabelPlural":"%{count} uudelleentwiittausta","facebookLikeReactionsSingular":"ihminen reagoi: Tykkää","facebookLikeReactionsPlural":"ihmistä reagoi: Tykkää","facebookLoveReactionsSingular":"ihminen reagoi: Ihastu","facebookLoveReactionsPlural":"ihmistä reagoi: Ihastu","facebookHahaReactionsSingular":"ihminen reagoi: Haha","facebookHahaReactionsPlural":"ihmistä reagoi: Haha","facebookWowReactionsSingular":"ihminen reagoi: Vau","facebookWowReactionsPlural":"ihmistä reagoi: Vau","facebookSadReactionsSingular":"ihminen reagoi: Surullinen","facebookSadReactionsPlural":"ihmistä reagoi: Surullinen","facebookAngryReactionsSingular":"ihminen reagoi: Vihainen","facebookAngryReactionsPlural":"ihmistä reagoi: Vihainen"}},"theme":{"name":"wall_v2","elements":{"profileDetails":true,"captions":true,"publishedAt":true,"publishedAtFormat":"relative","stats":{"likeCount":true,"commentCount":true,"retweetCount":true},"products":true},"features":{"popup":false,"infiniteScroll":false,"randomize":false,"autoRefresh":{"type":"none","intervalInSeconds":0},"animation":{"type":"none","intervalInSeconds":0},"emojiFallback":false,"embedScreen":false},"text":{"loadMoreText":"Lataa lisää viestejä","showMoreText":"Näytä lisää…"},"customization":{"css":null,"ctaLink":{"defaultText":null,"backgroundColor":null,"textColor":null,"icon":null,"utmSource":null,"utmMedium":null,"utmCampaign":null}}}}};


    style = d.createElement('style');
    style.setAttribute('data-flockler-embed-id', embedUuid);
    style.textContent = '';
    style.textContent += '#flockler-embed-17988bb2c6a09d6903ef26ee6c09d20e { --fl-preview-background:#ffffff;--fl-item-background:#ffffff;--fl-text-color:#111111;--fl-link-color:#111111;--fl-link-color-hover:#1771e0 }';

    document.head.insertAdjacentElement('beforeend', style);

    container = d.getElementById('flockler-embed-' + embedUuid);
    if (!container) return;

      if (w.flcklr && w.flcklr.Embeds && w.flcklr.Embeds.versions && w.flcklr.Embeds.versions.v3 && w.flcklr.Embeds.versions.v3['__wall_v2']) {
        w.flcklr.Embeds.create(w.flcklr.EmbedConfigs[embedUuid]);
        return;
      }

      w.flcklr.EmbedsToAutoload = w.flcklr.EmbedsToAutoload || [];
      w.flcklr.EmbedsToAutoload.push({ embedUuid: embedUuid });

    if (!(w.flcklr.embedJsV3HasBeenAddedToDOM || {})['wall_v2']) {
      script = d.createElement('script');
        script.async = true;

        script.src = "https://plugins.flockler.com/embed/v3/embed-wall_v2.js";


      (d.head || d.body).insertAdjacentElement('beforeend', script);
      w.flcklr.embedJsV3HasBeenAddedToDOM = w.flcklr.embedJsV3HasBeenAddedToDOM || {};
      w.flcklr.embedJsV3HasBeenAddedToDOM['wall_v2'] = true;

      if ( console && console.log ) {
        console.log('🟦 Social Plugin powered by Flockler — Learn more at flockler.com');
      }
    }
})(document, window);
