(self.webpackChunkui=self.webpackChunkui||[]).push([[21],{215:t=>{(()=>{"use strict";var e={362:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getFromRemote=async function(t,e,r,s,i=3e3,c){const u=()=>async function(t,e){return(await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()}(n,{contentLookupKey:t,contentObjectString:JSON.stringify(e),projectId:r,handle:c,ACTION:"GET_CONTENT"}).then((t=>{if(t.success)return t.object;throw s&&delete o[a],new Error(t.error)}));if(!s)return u();const a=function(t,e){return`${e}:${t}`}(t,r);if(o[a])return o[a].promise;const p=u();return setTimeout((()=>{delete o[a]}),i),o[a]={promise:p},p};const n="https://deploys.services.outsmartly.app/content",o={}}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,o),s.exports}var r={};(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.setupContent=function({getFromCache:t,selectContentResult:n,projectId:o,featureAssignments:r,localRemoteCache:s}){return async function(i,c){const u=`content_${c&&i.key?`${i.type}_${c}`:i.type}`,a=`__${u}`,p=null==r?void 0:r[u];if(null==p?void 0:p.startsWith("SKA-")){const e=`__content_${i.type}_${p}`,n=await t(e);if(n){const{__meta:t,...e}=n;return e}}let l=null;if(o&&"true"===(null==r?void 0:r[`preview_${i.type}`])){const t=null==r?void 0:r[u];l=await(0,e.getFromRemote)(a,i,o,s,void 0,t)}if(l||(l=await t(a)),!l)return void(s&&console.warn(`No content found for "${i.type}"`));const f=await n(i,l,u);if(!f)return f;const{__meta:d,...y}=f;return y}};const e=o(362)})(),t.exports=r})()}}]);