"use strict";(self.__ox=self.__ox||[]).push([[818],{818:function(e,n,t){function i(e,n,t,i,o,r,s){try{var c=e[r](s),u=c.value}catch(e){return void t(e)}c.done?n(u):Promise.resolve(u).then(i,o)}t.d(n,{i:function(){return c}});var o="POST",r="/tracking/tiktok";function s(e){return JSON.stringify({shop_id:e.shop_id,event:e.event,event_id:e.event_id,event_source_url:e.event_source_url,timestamp:e.event_time,properties:e.properties,context:e.context,collections:e.collections,tags:e.tags})}function c(e){return function(){var n,t=(n=function*(n,t){var i,c=e.baseUrl+r,u=yield fetch(c,{method:o,headers:yield null===(i=e.injectHeaders)||void 0===i?void 0:i.call(e,{}),signal:null==t?void 0:t.signal,body:s(n)});if(e.checkResponse){var l=yield e.checkResponse(u);if(l)throw l}return u.json()},function(){var e=this,t=arguments;return new Promise((function(o,r){var s=n.apply(e,t);function c(e){i(s,o,r,c,u,"next",e)}function u(e){i(s,o,r,c,u,"throw",e)}c(void 0)}))});return function(e,n){return t.apply(this,arguments)}}()}}}]);