-
Notifications
You must be signed in to change notification settings - Fork 1
/
multiselect-5.js
1 lines (1 loc) · 5.24 KB
/
multiselect-5.js
1
(window.shopifySpbJsonp=window.shopifySpbJsonp||[]).push([[5,10],{217:function(n,e,t){"use strict";t.r(e),t.d(e,"init",function(){return f}),t.d(e,"reset",function(){return p});var r=t(0),o=t.n(r),i=(t(159),t(57),t(76)),u=t.n(i),a=t(149),c=t(333),s={paymentInstruments:{accessToken:"",currency:"",locale:"",supportsDiscounts:!1,supportsGiftCards:!1,checkoutDisabled:!1,checkoutConfig:{domain:"",shopId:-1}}};function f(){return l.apply(this,arguments)}function l(){return(l=u()(o.a.mark(function n(){return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!window.Shopify.Checkout||!window.Shopify.Checkout.dynamicCheckoutPaymentInstrumentsConfig){n.next=4;break}Object.assign(s,window.Shopify.Checkout.dynamicCheckoutPaymentInstrumentsConfig),n.next=10;break;case 4:return n.t0=Object,n.t1=s,n.next=8,h();case 8:n.t2=n.sent,n.t0.assign.call(n.t0,n.t1,n.t2);case 10:return n.abrupt("return",s);case 11:case"end":return n.stop()}},n,this)}))).apply(this,arguments)}function p(){for(var n in s)s.hasOwnProperty(n)&&delete s[n]}function h(){return d.apply(this,arguments)}function d(){return(d=u()(o.a.mark(function n(){var e,t,r,i,u;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c.a.info("Fetching configuration..."),e=new a.b(null,{"x-shopify-api-version":"2018-02-15"}),t="/payments/config",""!==(r=y())&&(t="".concat(t,"?currency=").concat(r)),n.next=7,e.get(t);case 7:return i=n.sent,n.next=10,i.json();case 10:return u=n.sent,c.a.info("Configuration fetched.",u),n.abrupt("return",u);case 13:case"end":return n.stop()}},n,this)}))).apply(this,arguments)}function y(){var n="";return window.Shopify.currency&&"string"==typeof window.Shopify.currency.active&&(n=window.Shopify.currency.active),window.Shopify.Checkout&&"string"==typeof window.Shopify.Checkout.currency&&(n=window.Shopify.Checkout.currency),n}e.default=s},331:function(n,e,t){"use strict";t.d(e,"b",function(){return r}),t.d(e,"a",function(){return o}),t.d(e,"c",function(){return i}),t.d(e,"d",function(){return u});t(182),t(181),t(179),t(148),t(180),t(223),t(222),t(150);function r(n){if(document.cookie.length>0){var e=document.cookie.split("; ").find(function(e){return 0===e.indexOf("".concat(n,"="))});if(e)return unescape(e.split("=")[1])}return""}function o(n){document.cookie="".concat(n,"=;Path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")}function i(n){return void 0!==n.render}function u(){var n=new Map;return decodeURIComponent(location.search).replace(/([^?=&]+)(=([^&]*))?/g,function(e,t,r,o){return n.set(t,o),n.get(t)}),n}},333:function(n,e,t){"use strict";var r=t(4),o=t.n(r),i=t(7),u=t.n(i),a=(t(179),t(148),t(350),t(331)),c=t(0),s=t.n(c),f=(t(57),t(76)),l=t.n(f),p=t(37),h=t.n(p);function d(n){return n.context="",0!==n.stacktrace.length}var y=function(){function n(){o()(this,n)}var e;return u()(n,[{key:"notify",value:(e=l()(s.a.mark(function n(e){var r=this;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",t.e(12).then(t.t.bind(null,411,7)).then(function(n){var t=n.default;r.notifier=r.notifier||t({apiKey:h.a.bugsnagApiKey||"",autoNotify:!1,releaseStage:"production",notifyReleaseStages:["production"],appVersion:"b8a10a6aa0125af77ba83edb9a99ed5b56a5f55e\n",beforeSend:d}),r.notifier.notify(e)}));case 1:case"end":return n.stop()}},n,this)})),function(n){return e.apply(this,arguments)})}]),n}();t(78);function g(n){return n instanceof Error||Boolean(n.errorClass&&n.errorMessage)||Boolean(n.name&&n.message)}var v;t.d(e,"a",function(){return k}),function(n){n[n.error=1]="error",n[n.warn=2]="warn",n[n.log=3]="log",n[n.info=4]="info",n[n.debug=5]="debug"}(v||(v={}));Object.values(v).map(function(n){return v[n]}).filter(function(n){return"string"==typeof n});var w="[SPB]";function b(n){return"string"==typeof n&&n in v}var k=new(function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.error;o()(this,n),this.level=e,this.notifier=new y}return u()(n,[{key:"debug",value:function(){if(this.levelGuard(v.debug)){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r,o;if(console.debug)(r=console).debug.apply(r,[w].concat(e));else(o=console).log.apply(o,[w].concat(e))}}},{key:"log",value:function(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.levelGuard(v.log)&&(n=console).log.apply(n,[w].concat(t))}},{key:"warn",value:function(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.levelGuard(v.warn)&&(n=console).warn.apply(n,[w].concat(t))}},{key:"error",value:function(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0];return g(o)&&this.notifier.notify(o),this.levelGuard(v.error)&&(n=console).error.apply(n,[w].concat(t))}},{key:"info",value:function(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.levelGuard(v.info)&&(n=console).info.apply(n,[w].concat(t))}},{key:"isDebugMode",value:function(){return this.levelGuard(v.debug)}},{key:"levelGuard",value:function(n){return n<=this.loggingLevel}},{key:"loggingLevel",get:function(){var n=Object(a.d)().get("loggingLevel");if(!n)return this.level;if(!b(n))throw new Error("Unknown logging level: ".concat(n));return v[n]}}]),n}())},350:function(n,e,t){var r=t(29),o=t(224)(!1);r(r.S,"Object",{values:function(n){return o(n)}})}}]);