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