"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[497],{7328:function(n,t,e){e.r(t);var o=e(2297),r=e(8665),u=e(2367),i=function(n,t,e,o){return new(e||(e=Promise))((function(r,u){function i(n){try{s(o.next(n))}catch(n){u(n)}}function c(n){try{s(o.throw(n))}catch(n){u(n)}}function s(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,c)}s((o=o.apply(n,t||[])).next())}))};t.default={changeLanguage:function(n){return i(this,void 0,void 0,(function*(){const t=u.Z.customer.slug,e=(0,o.Bv)(),i=yield(0,o.ki)(`${e}/locales/${n}/${t}.json`);return new Promise(((t,e)=>{i||r.Z.setDefaultNamespace("translation"),r.Z.changeLanguage(n,(n=>{n&&e(new Error("R2U - Change language failed")),t()}))}))}))}}},2297:function(n,t,e){e.d(t,{U2:function(){return i},v_:function(){return c},ki:function(){return s},Bv:function(){return a}});var o=e(2367),r=function(n,t,e,o){return new(e||(e=Promise))((function(r,u){function i(n){try{s(o.next(n))}catch(n){u(n)}}function c(n){try{s(o.throw(n))}catch(n){u(n)}}function s(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,c)}s((o=o.apply(n,t||[])).next())}))};const u="https://api.r2u.io";function i(n){return r(this,void 0,void 0,(function*(){const t={};o.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${u}${n}`,{method:"get",headers:t})).json()}))}function c(n,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${u}${n}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function s(n){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(n,{method:"HEAD"});return 200===t}catch(n){return console.error(n),!1}}))}const a=()=>"https://sdk.r2u.io"},2367:function(n,t){const e={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(n,t)=>{},send:({event:n,data:t,scope:e})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=e}}]);