Get in touch to be the first to hear about our new products...
urn""}},g=(e="",t="",o="/")=>`${e}=; ${t?`domain=${t};`:""} max-age=0; path=${o}; expires=Thu, 01 Jan 1970 00:00:01 GMT`;function m(){(function(){if("undefined"!=typeof window){const e=performance.getEntriesByType("navigation")[0];return"back_forward"===(e?.type||"")}return!1})()&&function(){const{counter:e}=function(){const e=b("getItem");if(e){const[t,o]=e.split("-"),r=o?parseInt(o,10):0;if(r>=3){const e=t?Number(t):0;if(Date.now()-e>6e4)return{counter:0}}return{counter:r}}return{counter:0}}();e<3?(!function(e=1){b("setItem",`${Date.now()}-${e}`)}(e+1),window.location.reload()):console.error("ATS: Max reload attempts reached")}()}function b(e,t){try{return sessionStorage[e]("reload",t||"")}catch(e){console.error("ATS: Error calling sessionStorage:",e)}}const h="client-session-bind",v="sec-fetch-unsupported",{experiments:w}=window.viewerModel,T=[h,"client-binding",v,"svSession","smSession","server-session-bind","wixSession2","wixSession3"].map(e=>e.toLowerCase()),{cookie:S}=function(t,o){let r=new Set(t);return e({context:document,property:"cookie",set:{func:e=>function(e,t,o,r){let n=u(),i=c(t.split(";")[0]||"")||"";[...o].every(e=>!i.startsWith(e.toLowerCase()))&&n?.set?n.set.call(e,t):r&&console.warn(r)}(document,e,r,o)},get:{func:()=>function(e,t){let o=u();if(!o?.get)throw new Error("Cookie descriptor or getter not available");return a(o.get.call(e),t).join("; ")}(document,r)},enumerable:!0}),{cookieStore:p(r,o),cookie:u()}}(T),k="tbReady",x="security_overrideGlobals",{experiments:E,siteFeaturesConfigs:C,accessTokensUrl:P}=window.viewerModel,R=P,M={},O=(()=>{const e=y(h,S);if(w["specs.thunderbolt.browserCacheReload"]){y(v,S)||e?b("removeItem"):m()}return(()=>{const e=g(h),t=g(h,location.hostname);S.set.call(document,e),S.set.call(document,t)})(),e})();O&&(M["client-binding"]=O);const D=fetch;addEventListener(k,function e(t){const{logger:o}=t.detail;try{window.tb.init({fetch:D,fetchHeaders:M})}catch(e){const t=new Error("TB003");o.meter(`${x}_${t.message}`,{paramsOverrides:{errorType:x,eventString:t.message}}),window?.viewerModel?.mode.debug&&console.error(e)}finally{removeEventListener(k,e)}}),E["specs.thunderbolt.hardenFetchAndXHR"]||(window.fetchDynamicModel=()=>C.sessionManager.isRunningInDifferentSiteContext?Promise.resolve({}):fetch(R,{credentials:"same-origin",headers:M}).then(function(e){if(!e.ok)throw new Error(`[${e.status}]${e.statusText}`);return e.json()}),window.dynamicModelPromise=window.fetchDynamicModel())})(); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/handleAccessTokens.inline.4f2f9a53.bundle.min.js.map
Get in touch to be the first to hear about our new products...