Build 589089stable
Module 41851
565 characters · in 07003d094efd42da.jsDependencies
Required by (54)
650926706875970123990136966162748200432201110215628217870259617269882271977278893297200299473307289327473327487334954377253393108402165424449441262453080462633464628497951588080588816632127635385637767647051673661684853717837721889730667748434755703756147816984829601844887903158914055920272924260931347934350946284979555
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))}}