PageSourceSearch

https://assets.jiffy.com/packs/js/1323-72996bfecb1fa747.chunk.js

js jiffy.com collected 2026-10-03 21:43:12 UTC 7,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["1323"],{311798(t,r,e){e.d(r,{loadPaypalSdk:()=>loadPaypalSdk});var n=e(896696);function _array_like_to_array(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function _array_with_holes(t){if(Array.isArray(t))return t}function _assert_this_initialized(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function asyncGeneratorStep(t,r,e,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){e(t);return}c.done?r(u):Promise.resolve(u).then(n,o)}function _async_to_generator(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var a=t.apply(r,e);function _next(t){asyncGeneratorStep(a,n,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(a,n,o,_next,_throw,"throw",t)}_next(void 0)})}}function _call_super(t,r,e){return r=_get_prototype_of(r),_possible_constructor_return(t,_is_native_reflect_construct()?Reflect.construct(r,e||[],_get_prototype_of(t).constructor):r.apply(t,e))}function _class_call_check(t,r){if(!(t instanceof r))throw TypeError("Cannot call a class as a function")}function _construct(t,r,e){return(_construct=_is_native_reflect_construct()?Reflect.construct:function(t,r,e){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(t,n));return e&&_set_prototype_of(o,e.prototype),o}).apply(null,arguments)}function _get_prototype_of(t){return(_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_set_prototype_of(t,r)}function _instanceof(t,r){return null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r}function _is_native_function(t){return -1!==Function.toString.call(t).indexOf("[native code]")}function _iterable_to_array_limit(t,r){var e,n,o=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var a=[],i=!0,c=!1;try{for(o=o.call(t);!(i=(e=o.next()).done)&&(a.push(e.value),!r||a.length!==r);i=!0);}catch(t){c=!0,n=t}finally{try{i||null==o.return||o.return()}finally{if(c)throw n}}return a}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _possible_constructor_return(t,r){return r&&("object"===_type_of(r)||"function"==typeof r)?r:_assert_this_initialized(t)}function _set_prototype_of(t,r){return(_set_prototype_of=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function _sliced_to_array(t,r){return _array_with_holes(t)||_iterable_to_array_limit(t,r)||_unsupported_iterable_to_array(t,r)||_non_iterable_rest()}function _type_of(t){return t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _unsupported_iterable_to_array(t,r){if(t){if("string"==typeof t)return _array_like_to_array(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _array_like_to_array(t,r)}}function _wrap_native_super(t){var r="function"==typeof Map?new Map:void 0;return(_wrap_native_super=function(t){if(null===t||!_is_native_function(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_get_prototype_of(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(Wrapper,t)})(t)}function _is_native_reflect_construct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_is_native_reflect_construct=function(){return!!t})()}function _ts_generator(t,r){var e,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(i,"next",{value:verb(0)}),c(i,"throw",{value:verb(1)}),c(i,"return",{value:verb(2)}),"function"==typeof Symbol&&c(i,Symbol.iterator,{value:function(){return this}}),i;function verb(t){return function(r){return step([t,r])}}function step(c){if(e)throw TypeError("Generator is already executing.");for(;
1i&&(i=0,c[0]&&(a=0)),a;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(t,a)}catch(t){c=[6,t],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var o=function(t){function PaypalSdkOptionsMissingError(){var t;return _class_call_check(this,PaypalSdkOptionsMissingError),(t=_call_super(this,PaypalSdkOptionsMissingError,["paypal-sdk-options JSON blob not found in document — eager script path expected"])).name="PaypalSdkOptionsMissingError",t}return _inherits(PaypalSdkOptionsMissingError,t),PaypalSdkOptionsMissingError}(_wrap_native_super(Error)),a=["https://www.paypal.com/sdk/"],i=null;function readSdkOptions(){var t,r=document.getElementById("paypal-sdk-options");if(!r)throw new o;var e=null!=(t=r.textContent)?t:"";if(!e.trim())throw new o;var n=JSON.parse(e);if(!n||(void 0===n?"undefined":_type_of(n))!=="object"||Array.isArray(n))throw new o;return n}function buildSdkUrl(t){var r=new URLSearchParams;Object.entries(t).forEach(function(t){var e=_sliced_to_array(t,2),n=e[0],o=e[1];null!=o&&r.append(n,String(o))});var e="".concat("https://www.paypal.com/sdk/js","?").concat(r.toString());if(!a.some(function(t){return e.startsWith(t)}))throw Error("Blocked untrusted PayPal SDK URL: ".concat(e));return e}function fireTelemetry(t){var r,e,n=window;try{null==(e=n.jiffy)||null==(r=e.paypalSdkLoadEvent)||r.call(e,t)}catch(t){}}function injectScript(t){return new Promise(function(r,e){var n=document.querySelector('script[src="'.concat(CSS.escape(t),'"]'));if(n){var o=n.dataset.loadState;if("loaded"===o)return void r();if("error"===o)n.remove();else{n.addEventListener("load",function(){return r()},{once:!0}),n.addEventListener("error",function(){return e(Error("Failed to load PayPal SDK at ".concat(t)))},{once:!0});return}}var a=document.createElement("script");a.src=t,a.async=!0,a.dataset.loadState="loading",a.addEventListener("load",function(){a.dataset.loadState="loaded",r()},{once:!0}),a.addEventListener("error",function(){a.dataset.loadState="error",e(Error("Failed to load PayPal SDK at ".concat(t)))},{once:!0}),document.head.appendChild(a)})}function loadPaypalSdk(){var t=window;return(0,n.z9)()?Promise.resolve(t.paypal):i||(i=_async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,injectScript(buildSdkUrl(readSdkOptions()))];case 1:if(r.sent(),!(0,n.z9)())throw Error("PayPal SDK script loaded but window.paypal.Buttons / FUNDING not populated");return fireTelemetry("success"),[2,t.paypal]}})})().catch(function(t){throw i=null,_instanceof(t,o)||fireTelemetry("failure"),t}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.