Build 582977stable
Module 768672
565 characters · in 5f03c6c795f7b46d.jsDependencies
Required by (54)
1785318181700988684388918119393119621154006201207264140277262278176309370320102326014354331356479364162368499405479419208426476431835435628440006448026450177456141459061515166559491589245599078616533645826651386661605721378722135737279737952751667760024786414803581850886861654885974886788935374938040943956944982995605
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(l,t,d){d.d(t,{a:()=>b,i:()=>Z,n:()=>n,o:()=>c,r:()=>s,s:()=>a,t:()=>o});let i=null,e=null;function c(l){i=l}function a(l){e=l}function s(){return e}function n(){if(!i)throw Error('SDK not configured. Call setup({ apiURL: "..." }) first.');return i}function Z(){return null!==i}function b(){i=null,e=null}function m(l){return e?{...l,headers:{"X-Incode-Hardware-Id":e,...l?.headers}}:l??{}}let o={get:(l,t)=>n().get(l,m(t)),post:(l,t,d)=>n().post(l,t,m(d)),put:(l,t,d)=>n().put(l,t,m(d)),patch:(l,t,d)=>n().patch(l,t,m(d)),delete:(l,t)=>n().delete(l,m(t))}}