@imtbl/sdk 0.23.0-alpha → 0.23.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[150],{47296:function(t,e,n){n.r(e),n.d(e,{loadLegacyVideoPlugins:function(){return u}});var i=n(33621);function u(t){return(0,i.mG)(this,void 0,void 0,(function(){var e;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(692).then(n.t.bind(n,28692,23))];case 1:return e=i.sent(),t._plugins=e,[2]}}))}))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[96],{56115:function(r,t,e){function i(r,t){return Object.keys(t).reduce((function(e,i){i.startsWith(r)&&(e[i.substr(r.length)]=t[i]);return e}),{})}e.r(t),e.d(t,{queryString:function(){return n}});var s=e(39623),a=e(20298);function n(r,t){var e=document.createElement("a");e.href=t;var n=e.search.slice(1).split("&").reduce((function(r,t){var e=t.split("="),i=e[0],a=e[1];return r[i]=(0,s.a)(a),r}),{}),u=[],_=n.ajs_uid,c=n.ajs_event,d=n.ajs_aid,o=(0,a.PO)(r.options.useQueryString)?r.options.useQueryString:{},j=o.aid,f=void 0===j?/.+/:j,v=o.uid,l=void 0===v?/.+/:v;if(d){var y=Array.isArray(n.ajs_aid)?n.ajs_aid[0]:n.ajs_aid;f.test(y)&&r.setAnonymousId(y)}if(_){var h=Array.isArray(n.ajs_uid)?n.ajs_uid[0]:n.ajs_uid;if(l.test(h)){var p=i("ajs_trait_",n);u.push(r.identify(h,p))}}if(c){var b=Array.isArray(n.ajs_event)?n.ajs_event[0]:n.ajs_event,k=i("ajs_prop_",n);u.push(r.track(b,k))}return Promise.all(u)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[214],{30208:function(e,t,n){n.r(t),n.d(t,{remoteMiddlewares:function(){return s}});var r=n(33621),i=n(68119),c=n(93325),a=n(3256);function s(e,t,n){var s;return(0,r.mG)(this,void 0,void 0,(function(){var u,l,o,d,f=this;return(0,r.Jh)(this,(function(h){switch(h.label){case 0:return(0,i.s)()?[2,[]]:(u=(0,a.Kg)(),l=null!==(s=t.enabledMiddleware)&&void 0!==s?s:{},o=Object.entries(l).filter((function(e){e[0];return e[1]})).map((function(e){return e[0]})),d=o.map((function(t){return(0,r.mG)(f,void 0,void 0,(function(){var i,a,s,l;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:i=t.replace("@segment/",""),a=i,n&&(a=btoa(i).replace(/=/g,"")),s="".concat(u,"/middleware/").concat(a,"/latest/").concat(a,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,c.v)(s)];case 2:return r.sent(),[2,window["".concat(i,"Middleware")]];case 3:return l=r.sent(),e.log("error",l),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,h.sent().filter(Boolean)]}}))}))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[493],{264:function(n,e,t){function i(n,e){var t,i;return"boolean"===typeof(null===e||void 0===e?void 0:e.enabled)?e.enabled:null===(i=null===(t=null===n||void 0===n?void 0:n.__default)||void 0===t?void 0:t.enabled)||void 0===i||i}t.d(e,{n:function(){return i}})},84071:function(n,e,t){t.r(e),t.d(e,{schemaFilter:function(){return o}});var i=t(33621),r=t(264);function o(n,e){function t(t){var o=n,u=t.event.event;if(o&&u){var a=o[u];if(!(0,r.n)(o,a))return t.updateEvent("integrations",(0,i.pi)((0,i.pi)({},t.event.integrations),{All:!1,"Segment.io":!0})),t;var c=function(n,e){var t,i;if(!n||!Object.keys(n))return{};var r=n.integrations?Object.keys(n.integrations).filter((function(e){return!1===n.integrations[e]})):[],o=[];return(null!==(t=e.remotePlugins)&&void 0!==t?t:[]).forEach((function(n){r.forEach((function(e){(n.name.includes(e)||e.includes(n.name))&&o.push(n.name)}))})),(null!==(i=e.remotePlugins)&&void 0!==i?i:[]).reduce((function(n,e){return e.settings.subscriptions&&o.includes(e.name)&&e.settings.subscriptions.forEach((function(t){return n["".concat(e.name," ").concat(t.partnerAction)]=!1})),n}),{})}(a,e);t.updateEvent("integrations",(0,i.pi)((0,i.pi)((0,i.pi)({},t.event.integrations),null===a||void 0===a?void 0:a.integrations),c))}return t}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:t,alias:t,track:t,identify:t,group:t}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see tsub-middleware.bb1047fe.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[604],{66215:function(t,r,e){"use strict";e.r(r),e.d(r,{tsubMiddleware:function(){return o}});var n=e(3097),o=function(t){return function(r){var e=r.payload,o=r.integration,i=r.next;new n.Store(t).getRulesByDestinationName(o).forEach((function(t){for(var r=t.matchers,o=t.transformers,u=0;u<r.length;u++)if(n.matches(e.obj,r[u])&&(e.obj=n.transform(e.obj,o[u]),null===e.obj))return i(null)})),i(e)}}},3097:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=e(20435);Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(o).default}});var i=e(10482);Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(i).default}});var u=e(27182);Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(u).default}})},10482:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(10683));function i(t,r){if(!Array.isArray(t))return!0===u(t,r);var e=t[0];switch(e){case"!":return!i(t[1],r);case"or":for(var n=1;n<t.length;n++)if(i(t[n],r))return!0;return!1;case"and":for(n=1;n<t.length;n++)if(!i(t[n],r))return!1;return!0;case"=":case"!=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));"object"===typeof t&&"object"===typeof r&&(t=JSON.stringify(t),r=JSON.stringify(r));switch(e){case"=":return t===r;case"!=":return t!==r;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"<=":case"<":case">":case">=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));if("number"!==typeof t||"number"!==typeof r)return!1;switch(e){case"<=":return t<=r;case">=":return t>=r;case"<":return t<r;case">":return t>r;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"in":return function(t,r,e){return void 0!==r.find((function(r){return u(r,e)===t}))}(u(t[1],r),u(t[2],r),r);case"contains":return function(t,r){if("string"!==typeof t||"string"!==typeof r)return!1;return-1!==t.indexOf(r)}(u(t[1],r),u(t[2],r));case"match":return function(t,r){if("string"!==typeof t||"string"!==typeof r)return!1;return function(t,r){var e,n;t:for(;t.length>0;){var o=void 0,i=void 0;if(o=(e=c(t)).star,i=e.chunk,t=e.pattern,o&&""===i)return!0;var u=a(i,r),s=u.t,f=u.ok,p=u.err;if(p)return!1;if(!f||!(0===s.length||t.length>0)){if(o)for(var l=0;l<r.length;l++){if(s=(n=a(i,r.slice(l+1))).t,f=n.ok,p=n.err,f){if(0===t.length&&s.length>0)continue;r=s;continue t}if(p)return!1}return!1}r=s}return 0===r.length}(r,t)}(u(t[1],r),u(t[2],r));case"lowercase":var o=u(t[1],r);return"string"!==typeof o?null:o.toLowerCase();case"typeof":return typeof u(t[1],r);case"length":return function(t){if(null===t)return 0;if(!Array.isArray(t)&&"string"!==typeof t)return NaN;return t.length}(u(t[1],r));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function u(t,r){return Array.isArray(t)?t:"object"===typeof t?t.value:(0,o.default)(r,t)}function s(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function c(t){for(var r={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),r.star=!0;var e,n=!1;t:for(e=0;e<t.length;e++)switch(t[e]){case"\\":e+1<t.length&&e++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break t}return r.chunk=t.slice(0,e),r.pattern=t.slice(e),r}function a(t,r){for(var e,n,o={t:"",ok:!1,err:!1};t.length>0;){if(0===r.length)return o;switch(t[0]){case"[":var i=r[0];r=r.slice(1);var u=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(u=!1,t=t.slice(1));for(var s=!1,c=0;;){if(t.length>0&&"]"===t[0]&&c>0){t=t.slice(1);break}var a,p="";if(a=(e=f(t)).char,t=e.newChunk,e.err)return o;if(p=a,"-"===t[0]&&(p=(n=f(t.slice(1))).char,t=n.newChunk,n.err))return o;a<=i&&i<=p&&(s=!0),c++}if(s!==u)return o;break;case"?":r=r.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return o.err=!0,o;default:if(t[0]!==r[0])return o;r=r.slice(1),t=t.slice(1)}}return o.t=r,o.ok=!0,o.err=!1,o}function f(t){var r={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(r.err=!0,r):(r.char=t[0],r.newChunk=t.slice(1),0===r.newChunk.length&&(r.err=!0),r)}r.default=function(t,r){if(!r)throw new Error("No matcher supplied!");switch(r.type){case"all":return!0;case"fql":return function(t,r){if(!t)return!1;try{t=JSON.parse(t)}catch(n){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(n))}var e=i(t,r);if("boolean"!==typeof e)return!1;return e}(r.ir,t);default:throw new Error("Matcher of type ".concat(r.type," unsupported."))}}},27182:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var r=[],e=0,n=this.rules;e<n.length;e++){var o=n[e];o.destinationName!==t&&void 0!==o.destinationName||r.push(o)}return r},t}();r.default=e},20435:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(36339)),i=n(e(10683)),u=n(e(47625)),s=e(67948),c=e(61852);function a(t,r){p(t,r.drop,(function(t,r){r.forEach((function(r){return delete t[r]}))}))}function f(t,r){p(t,r.allow,(function(t,r){Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}))}function p(t,r,e){Object.entries(r).forEach((function(r){var n=r[0],o=r[1],u=function(t){"object"===typeof t&&null!==t&&e(t,o)},s=""===n?t:(0,i.default)(t,n);Array.isArray(s)?s.forEach(u):u(s)}))}function l(t,r){var e=JSON.parse(JSON.stringify(t));for(var n in r.map)if(r.map.hasOwnProperty(n)){var o=r.map[n],u=n.split("."),a=void 0;if(u.length>1?(u.pop(),a=(0,i.default)(e,u.join("."))):a=t,"object"===typeof a){if(o.copy){var f=(0,i.default)(e,o.copy);void 0!==f&&(0,s.dset)(t,n,f)}else if(o.move){var p=(0,i.default)(e,o.move);void 0!==p&&(0,s.dset)(t,n,p),(0,c.unset)(t,o.move)}else o.hasOwnProperty("set")&&(0,s.dset)(t,n,o.set);if(o.to_string){var l=(0,i.default)(t,n);if("string"===typeof l||"object"===typeof l&&null!==l)continue;void 0!==l?(0,s.dset)(t,n,JSON.stringify(l)):(0,s.dset)(t,n,"undefined")}}}}function v(t,r){return!(r.sample.percent<=0)&&(r.sample.percent>=1||(r.sample.path?function(t,r){var e=(0,i.default)(t,r.sample.path),n=(0,o.default)(JSON.stringify(e)),s=-64,c=[];y(n.slice(0,8),c);for(var a=0,f=0;f<64&&1!==c[f];f++)a++;if(0!==a){var p=[];y(n.slice(9,16),p),s-=a,c.splice(0,a),p.splice(64-a),c=c.concat(p)}return c[63]=0===c[63]?1:0,(0,u.default)(parseInt(c.join(""),2),s)<r.sample.percent}(t,r):(e=r.sample.percent,Math.random()<=e)));var e}function y(t,r){for(var e=0;e<8;e++)for(var n=t[e],o=128;o>=1;o/=2)n-o>=0?(n-=o,r.push(1)):r.push(0)}r.default=function(t,r){for(var e=t,n=0,o=r;n<o.length;n++){var i=o[n];switch(i.type){case"drop":return null;case"drop_properties":a(e,i.config);break;case"allow_properties":f(e,i.config);break;case"sample_event":if(v(e,i.config))break;return null;case"map_properties":l(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}},61852:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.unset=void 0;var o=n(e(10683));r.unset=function(t,r){if((0,o.default)(t,r)){for(var e=r.split("."),n=e.pop();e.length&&"\\"===e[e.length-1].slice(-1);)n=e.pop().slice(0,-1)+"."+n;for(;e.length;)t=t[r=e.shift()];return delete t[n]}return!0}},37791:function(t){"use strict";var r="function"===typeof Float64Array?Float64Array:void 0;t.exports=r},49614:function(t,r,e){"use strict";var n,o=e(43681),i=e(37791),u=e(22573);n=o()?i:u,t.exports=n},22573:function(t){"use strict";t.exports=function(){throw new Error("not implemented")}},33547:function(t,r,e){"use strict";var n,o=e(98700),i=e(77832),u=e(46920);n=o()?i:u,t.exports=n},46920:function(t){"use strict";t.exports=function(){throw new Error("not implemented")}},77832:function(t){"use strict";var r="function"===typeof Uint16Array?Uint16Array:void 0;t.exports=r},58106:function(t,r,e){"use strict";var n,o=e(84998),i=e(8485),u=e(77392);n=o()?i:u,t.exports=n},77392:function(t){"use strict";t.exports=function(){throw new Error("not implemented")}},8485:function(t){"use strict";var r="function"===typeof Uint32Array?Uint32Array:void 0;t.exports=r},79560:function(t,r,e){"use strict";var n,o=e(39337),i=e(78117),u=e(51637);n=o()?i:u,t.exports=n},51637:function(t){"use strict";t.exports=function(){throw new Error("not implemented")}},78117:function(t){"use strict";var r="function"===typeof Uint8Array?Uint8Array:void 0;t.exports=r},24951:function(t){"use strict";var r="function"===typeof Float64Array?Float64Array:null;t.exports=r},43681:function(t,r,e){"use strict";var n=e(20781);t.exports=n},20781:function(t,r,e){"use strict";var n=e(23393),o=e(24951);t.exports=function(){var t,r;if("function"!==typeof o)return!1;try{r=new o([1,3.14,-3.14,NaN]),t=n(r)&&1===r[0]&&3.14===r[1]&&-3.14===r[2]&&r[3]!==r[3]}catch(e){t=!1}return t}},84317:function(t,r,e){"use strict";var n=e(93675);t.exports=n},93675:function(t){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return void 0!==t&&null!==t&&r.call(t,e)}},63957:function(t,r,e){"use strict";var n=e(50420);t.exports=n},50420:function(t){"use strict";t.exports=function(){return"function"===typeof Symbol&&"symbol"===typeof Symbol("foo")}},41500:function(t,r,e){"use strict";var n=e(98393);t.exports=n},98393:function(t,r,e){"use strict";var n=e(63957)();t.exports=function(){return n&&"symbol"===typeof Symbol.toStringTag}},98700:function(t,r,e){"use strict";var n=e(90473);t.exports=n},90473:function(t,r,e){"use strict";var n=e(16205),o=e(14786),i=e(46805);t.exports=function(){var t,r;if("function"!==typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(e){t=!1}return t}},46805:function(t){"use strict";var r="function"===typeof Uint16Array?Uint16Array:null;t.exports=r},84998:function(t,r,e){"use strict";var n=e(34500);t.exports=n},34500:function(t,r,e){"use strict";var n=e(31658),o=e(25082),i=e(34280);t.exports=function(){var t,r;if("function"!==typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(e){t=!1}return t}},34280:function(t){"use strict";var r="function"===typeof Uint32Array?Uint32Array:null;t.exports=r},39337:function(t,r,e){"use strict";var n=e(65546);t.exports=n},65546:function(t,r,e){"use strict";var n=e(19886),o=e(81084),i=e(64589);t.exports=function(){var t,r;if("function"!==typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(e){t=!1}return t}},64589:function(t){"use strict";var r="function"===typeof Uint8Array?Uint8Array:null;t.exports=r},23393:function(t,r,e){"use strict";var n=e(56052);t.exports=n},56052:function(t,r,e){"use strict";var n=e(89379),o="function"===typeof Float64Array;t.exports=function(t){return o&&t instanceof Float64Array||"[object Float64Array]"===n(t)}},19895:function(t,r,e){"use strict";var n=e(79560),o={uint16:e(33547),uint8:n};t.exports=o},89786:function(t,r,e){"use strict";var n=e(26181);t.exports=n},26181:function(t,r,e){"use strict";var n,o=e(19895);n=function(){var t;return(t=new o.uint16(1))[0]=4660,52===new o.uint8(t.buffer)[0]}(),t.exports=n},16205:function(t,r,e){"use strict";var n=e(90590);t.exports=n},90590:function(t,r,e){"use strict";var n=e(89379),o="function"===typeof Uint16Array;t.exports=function(t){return o&&t instanceof Uint16Array||"[object Uint16Array]"===n(t)}},31658:function(t,r,e){"use strict";var n=e(2645);t.exports=n},2645:function(t,r,e){"use strict";var n=e(89379),o="function"===typeof Uint32Array;t.exports=function(t){return o&&t instanceof Uint32Array||"[object Uint32Array]"===n(t)}},19886:function(t,r,e){"use strict";var n=e(15003);t.exports=n},15003:function(t,r,e){"use strict";var n=e(89379),o="function"===typeof Uint8Array;t.exports=function(t){return o&&t instanceof Uint8Array||"[object Uint8Array]"===n(t)}},76671:function(t){"use strict";t.exports=1023},45486:function(t){"use strict";t.exports=2147483647},10674:function(t){"use strict";t.exports=2146435072},12897:function(t){"use strict";t.exports=2147483648},50523:function(t){"use strict";t.exports=-1023},7967:function(t){"use strict";t.exports=1023},46732:function(t){"use strict";t.exports=-1074},49391:function(t,r,e){"use strict";var n=e(92804).NEGATIVE_INFINITY;t.exports=n},13839:function(t){"use strict";var r=Number.POSITIVE_INFINITY;t.exports=r},71409:function(t){"use strict";t.exports=22250738585072014e-324},14786:function(t){"use strict";t.exports=65535},25082:function(t){"use strict";t.exports=4294967295},81084:function(t){"use strict";t.exports=255},11283:function(t,r,e){"use strict";var n=e(56026);t.exports=n},56026:function(t,r,e){"use strict";var n=e(13839),o=e(49391);t.exports=function(t){return t===n||t===o}},80879:function(t,r,e){"use strict";var n=e(2569);t.exports=n},2569:function(t){"use strict";t.exports=function(t){return t!==t}},36543:function(t,r,e){"use strict";var n=e(43302);t.exports=n},43302:function(t){"use strict";t.exports=function(t){return Math.abs(t)}},81877:function(t,r,e){"use strict";var n=e(47889);t.exports=n},47889:function(t,r,e){"use strict";var n=e(12897),o=e(45486),i=e(25587),u=e(11348),s=e(42797),c=[0,0];t.exports=function(t,r){var e,a;return i.assign(t,c,1,0),e=c[0],e&=o,a=u(r),s(e|=a&=n,c[1])}},47625:function(t,r,e){"use strict";var n=e(69184);t.exports=n},69184:function(t,r,e){"use strict";var n=e(13839),o=e(49391),i=e(76671),u=e(7967),s=e(50523),c=e(46732),a=e(80879),f=e(11283),p=e(81877),l=e(40104),v=e(95961),y=e(25587),h=e(42797),d=[0,0],x=[0,0];t.exports=function(t,r){var e,b;return 0===t||a(t)||f(t)?t:(l(d,t),r+=d[1],(r+=v(t=d[0]))<c?p(0,t):r>u?t<0?o:n:(r<=s?(r+=52,b=2220446049250313e-31):b=1,y(x,t),e=x[0],e&=2148532223,b*h(e|=r+i<<20,x[1])))}},92804:function(t,r,e){"use strict";var n=e(89803);t.exports=n},89803:function(t){"use strict";t.exports=Number},95961:function(t,r,e){"use strict";var n=e(55925);t.exports=n},55925:function(t,r,e){"use strict";var n=e(11348),o=e(10674),i=e(76671);t.exports=function(t){var r=n(t);return(r=(r&o)>>>20)-i|0}},42797:function(t,r,e){"use strict";var n=e(73262);t.exports=n},60105:function(t,r,e){"use strict";var n,o,i;!0===e(89786)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},73262:function(t,r,e){"use strict";var n=e(58106),o=e(49614),i=e(60105),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r){return s[c]=t,s[a]=r,u[0]}},24391:function(t,r,e){"use strict";var n;n=!0===e(89786)?1:0,t.exports=n},11348:function(t,r,e){"use strict";var n=e(5936);t.exports=n},5936:function(t,r,e){"use strict";var n=e(58106),o=e(49614),i=e(24391),u=new o(1),s=new n(u.buffer);t.exports=function(t){return u[0]=t,s[i]}},35146:function(t,r,e){"use strict";var n=e(71409),o=e(11283),i=e(80879),u=e(36543);t.exports=function(t,r,e,s){return i(t)||o(t)?(r[s]=t,r[s+e]=0,r):0!==t&&u(t)<n?(r[s]=4503599627370496*t,r[s+e]=-52,r):(r[s]=t,r[s+e]=0,r)}},40104:function(t,r,e){"use strict";var n=e(9030),o=e(57053);n(o,"assign",e(35146)),t.exports=o},57053:function(t,r,e){"use strict";var n=e(35146);t.exports=function(t){return n(t,[0,0],1,0)}},62835:function(t,r,e){"use strict";var n=e(58106),o=e(49614),i=e(96219),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r,e,n){return u[0]=t,r[n]=s[c],r[n+e]=s[a],r}},25587:function(t,r,e){"use strict";var n=e(9030),o=e(38769);n(o,"assign",e(62835)),t.exports=o},96219:function(t,r,e){"use strict";var n,o,i;!0===e(89786)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},38769:function(t,r,e){"use strict";var n=e(62835);t.exports=function(t){return n(t,[0,0],1,0)}},9030:function(t,r,e){"use strict";var n=e(98364);t.exports=n},98364:function(t,r,e){"use strict";var n=e(67962);t.exports=function(t,r,e){n(t,r,{configurable:!1,enumerable:!1,writable:!1,value:e})}},45834:function(t){"use strict";var r=Object.defineProperty;t.exports=r},31173:function(t){"use strict";var r="function"===typeof Object.defineProperty?Object.defineProperty:null;t.exports=r},74138:function(t,r,e){"use strict";var n=e(31173);t.exports=function(){try{return n({},"x",{}),!0}catch(t){return!1}}},67962:function(t,r,e){"use strict";var n,o=e(74138),i=e(45834),u=e(88945);n=o()?i:u,t.exports=n},88945:function(t){"use strict";var r=Object.prototype,e=r.toString,n=r.__defineGetter__,o=r.__defineSetter__,i=r.__lookupGetter__,u=r.__lookupSetter__;t.exports=function(t,s,c){var a,f,p,l;if("object"!==typeof t||null===t||"[object Array]"===e.call(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if("object"!==typeof c||null===c||"[object Array]"===e.call(c))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+c+"`.");if((f="value"in c)&&(i.call(t,s)||u.call(t,s)?(a=t.__proto__,t.__proto__=r,delete t[s],t[s]=c.value,t.__proto__=a):t[s]=c.value),p="get"in c,l="set"in c,f&&(p||l))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return p&&n&&n.call(t,s,c.get),l&&o&&o.call(t,s,c.set),t}},89379:function(t,r,e){"use strict";var n,o=e(41500),i=e(60912),u=e(25874);n=o()?u:i,t.exports=n},60912:function(t,r,e){"use strict";var n=e(95180);t.exports=function(t){return n.call(t)}},25874:function(t,r,e){"use strict";var n=e(84317),o=e(1028),i=e(95180);t.exports=function(t){var r,e,u;if(null===t||void 0===t)return i.call(t);e=t[o],r=n(t,o);try{t[o]=void 0}catch(s){return i.call(t)}return u=i.call(t),r?t[o]=e:delete t[o],u}},95180:function(t){"use strict";var r=Object.prototype.toString;t.exports=r},1028:function(t){"use strict";var r="function"===typeof Symbol?Symbol.toStringTag:"";t.exports=r},10683:function(t){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},67948:function(t,r){r.dset=function(t,r,e){r.split&&(r=r.split("."));for(var n,o,i=0,u=r.length,s=t;i<u&&"__proto__"!==(o=r[i++])&&"constructor"!==o&&"prototype"!==o;)s=s[o]=i===u?e:typeof(n=s[o])===typeof r?n:0*r[i]!==0||~(""+r[i]).indexOf(".")?{}:[]}},36339:function(t,r,e){"use strict";e.r(r),e.d(r,{default:function(){return i}});for(var n=[],o=0;o<64;)n[o]=0|4294967296*Math.sin(++o%Math.PI);function i(t){var r,e,i,u=[r=1732584193,e=4023233417,~r,~e],s=[],c=unescape(encodeURI(t))+"\x80",a=c.length;for(t=--a/4+2|15,s[--t]=8*a;~a;)s[a>>2]|=c.charCodeAt(a)<<8*a--;for(o=c=0;o<t;o+=16){for(a=u;c<64;a=[i=a[3],r+((i=a[0]+[r&e|~r&i,i&r|~i&e,r^e^i,e^(r|~i)][a=c>>4]+n[c]+~~s[o|15&[c,5*c+1,3*c+5,7*c][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+c++%4])|i>>>-a),r,e])r=0|a[1],e=a[2];for(c=4;c;)u[--c]+=a[c]}for(t="";c<32;)t+=(u[c>>3]>>4*(1^c++)&15).toString(16);return t}}}]);
@@ -11222,11 +11222,6 @@ type ERC721ItemRequirement = {
11222
11222
  id: string;
11223
11223
  spenderAddress: string;
11224
11224
  };
11225
- /**
11226
- * Represents the item requirements for a transaction.
11227
- * NativeItem, ERC20Item or ERC721Item {@link Checkout.smartCheckout}.
11228
- */
11229
- type ItemRequirement = NativeItem | ERC20Item | ERC721Item;
11230
11225
  /**
11231
11226
  * An enum representing the item types
11232
11227
  * @enum {string}
@@ -11239,41 +11234,6 @@ declare enum ItemType {
11239
11234
  ERC20 = "ERC20",
11240
11235
  ERC721 = "ERC721"
11241
11236
  }
11242
- /**
11243
- * Represents a native item.
11244
- * @property {ItemType} type - The type indicate this is a native item.
11245
- * @property {BigNumber} amount - The amount of the item.
11246
- */
11247
- type NativeItem = {
11248
- type: ItemType.NATIVE;
11249
- amount: BigNumber;
11250
- };
11251
- /**
11252
- * Represents an ERC20 item.
11253
- * @property {ItemType} type - The type to indicate this is an ERC20 item.
11254
- * @property {string} contractAddress - The contract address of the ERC20.
11255
- * @property {BigNumber} amount - The amount of the item.
11256
- * @property {string} spenderAddress - The contract address of the approver.
11257
- */
11258
- type ERC20Item = {
11259
- type: ItemType.ERC20;
11260
- contractAddress: string;
11261
- amount: BigNumber;
11262
- spenderAddress: string;
11263
- };
11264
- /**
11265
- * Represents an ERC721 item.
11266
- * @property {ItemType} type - The type to indicate this is an ERC721 item.
11267
- * @property {string} contractAddress - The contract address of the ERC721 collection.
11268
- * @property {string} id - The ID of this ERC721 in the collection.
11269
- * @property {string} spenderAddress - The contract address of the approver.
11270
- */
11271
- type ERC721Item = {
11272
- type: ItemType.ERC721;
11273
- contractAddress: string;
11274
- id: string;
11275
- spenderAddress: string;
11276
- };
11277
11237
  /**
11278
11238
  * An enum representing transaction or gas types
11279
11239
  * @enum {string}
@@ -11418,32 +11378,21 @@ type NoRouteOptions = {
11418
11378
  * Represents a funding route
11419
11379
  * @property {number} priority - The priority of the route
11420
11380
  * @property {FundingStep[]} steps - The steps associated with this funding route
11421
- * @property {TotalFees | undefined} totalFees - The total fees for this route
11422
11381
  */
11423
11382
  type FundingRoute = {
11424
11383
  priority: number;
11425
11384
  steps: FundingStep[];
11426
- totalFees?: TotalFees;
11427
- };
11428
- /**
11429
- * Represents the total fees for a route
11430
- * @property {Fee} gas - The total gas fees for this funding step
11431
- * @property {Fee} other - The total of all other fees associated with this funding step
11432
- * @property {Fee} total - The total combined gas and other fees for this funding step
11433
- */
11434
- type TotalFees = {
11435
- gas: Fee;
11436
- other: Fee;
11437
- total: Fee;
11438
11385
  };
11439
11386
  /**
11440
11387
  * Represents a fee
11441
11388
  * @property {BigNumber} amount - The amount of the fee
11442
11389
  * @property {string} formatted - The formatted amount of the fee
11390
+ * @property {TokenInfo | undefined} token - The token info for the fee
11443
11391
  */
11444
11392
  type Fee = {
11445
11393
  amount: BigNumber;
11446
11394
  formattedAmount: string;
11395
+ token?: TokenInfo;
11447
11396
  };
11448
11397
  type FundingStep = BridgeFundingStep | SwapFundingStep | OnRampFundingStep;
11449
11398
  /**
@@ -11610,6 +11559,24 @@ type AvailableRoutingOptions = {
11610
11559
  swap?: boolean;
11611
11560
  bridge?: boolean;
11612
11561
  };
11562
+ type FundingRouteFeeEstimate = SwapRouteFeeEstimate | BridgeRouteFeeEstimate;
11563
+ type SwapRouteFeeEstimate = {
11564
+ type: FundingStepType.SWAP;
11565
+ estimatedAmount: BigNumber;
11566
+ token: TokenInfo;
11567
+ };
11568
+ type BridgeRouteFeeEstimate = {
11569
+ type: FundingStepType.BRIDGE;
11570
+ gasFee: {
11571
+ estimatedAmount: BigNumber;
11572
+ token?: TokenInfo;
11573
+ };
11574
+ bridgeFee: {
11575
+ estimatedAmount: BigNumber;
11576
+ token?: TokenInfo;
11577
+ };
11578
+ totalFees: BigNumber;
11579
+ };
11613
11580
  /**
11614
11581
  * Interface representing the parameters for {@link Checkout.buy}
11615
11582
  * @property {Web3Provider} provider - The provider to use for the buy.
@@ -12300,4 +12267,4 @@ declare class Checkout {
12300
12267
  getExchangeFeeEstimate(): Promise<OnRampProviderFees>;
12301
12268
  }
12302
12269
 
12303
- export { AllowedNetworkConfig, BuyOrder, BuyParams, BuyResult, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemRequirement, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrderFee, RemoteConfiguration, SellOrder, SellParams, SellResult, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
12270
+ export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BuyOrder, BuyParams, BuyResult, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingRouteFeeEstimate, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrderFee, RemoteConfiguration, RoutingOutcome, RoutingOutcomeType, SellOrder, SellParams, SellResult, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };