PageSourceSearch

https://parklanejewelry.com/npm-public.js

js parklanejewelry.com collected 2026-10-09 23:03:13 UTC 4,467 bytes, 111 lines download raw bytes

1(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2"use strict";
3Object.defineProperty(exports, "__esModule", { value: true });
4function isValidationError(error) {
5    return error != null && error.name === 'Validation';
6}
7exports.isValidationError = isValidationError;
8function isRevolutCheckoutError(error) {
9    return error != null && error.name === 'RevolutCheckout';
10}
11exports.isRevolutCheckoutError = isRevolutCheckoutError;
12
13},{}],2:[function(require,module,exports){
14"use strict";
15var _a;
16Object.defineProperty(exports, "__esModule", { value: true });
17exports.MODE = {
18    PRODUCTION: 'prod',
19    DEVELOPMENT: 'dev',
20    SANDBOX: 'sandbox',
21};
22exports.URLS = (_a = {},
23    _a[exports.MODE.SANDBOX] = 'https://sandbox-merchant.revolut.com/embed.js',
24    _a[exports.MODE.PRODUCTION] = 'https://merchant.revolut.com/embed.js',
25    _a[exports.MODE.DEVELOPMENT] = 'https://merchant.revolut.codes/embed.js',
26    _a);
27
28},{}],3:[function(require,module,exports){
29"use strict";
30Object.defineProperty(exports, "__esModule", { value: true });
31var loader_1 = require("./loader");
32exports.default = loader_1.RevolutCheckoutLoader;
33var checks_1 = require("./checks");
34exports.isRevolutCheckoutError = checks_1.isRevolutCheckoutError;
35exports.isValidationError = checks_1.isValidationError;
36
37},{"./checks":1,"./loader":4}],4:[function(require,module,exports){
38"use strict";
39Object.defineProperty(exports, "__esModule", { value: true });
40var constants_1 = require("./constants");
41var loaded = null;
42/**
43 * Load [`RevolutCheckout.js`](https://developer.revolut.com/docs/revolut-checkout-js/#revolutcheckout)
44 * and create [`Instance`](https://developer.revolut.com/docs/revolut-checkout-js/#instance) for the order `token`.
45 *
46 * @param token `public_id`  from [create payment order](https://developer.revolut.com/api-reference/merchant/#operation/createOrder) API request
47 * @param mode [API](https://developer.revolut.com/docs/revolut-checkout-js/#revolutcheckout-parameters) environment, defaults to `'prod'`
48 *
49 * @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/revolut-checkout-js)
50 *
51 * @example
52 * ```js
53 * RevolutCheckout('TOKEN_XXX', 'prod').then(function(instance) {
54 *   // Work with instance
55 * });
56 * ```
57 */
58function RevolutCheckoutLoader(token, mode) {
59    if (mode === void 0) { mode = RevolutCheckoutLoader.mode; }
60    if (loaded) {
61        return loaded(token);
62    }
63    var script = document.createElement('script');
64    script.id = 'revolut-checkout';
65    script.src = constants_1.URLS[mode];
66    script.async = true;
67    document.head.appendChild(script);
68    return new Promise(function (resolve, reject) {
69        function handleError() {
70            document.head.removeChild(script);
71            reject(new Error("'RevolutCheckout' is failed to load"));
72        }
73        function handleLoad() {
74            if (typeof RevolutCheckout === 'function') {
75                resolve(RevolutCheckout(token));
76                loaded = RevolutCheckout;
77                delete window.RevolutCheckout;
78            }
79            else {
80                handleError();
81            }
82        }
83        script.onload = handleLoad;
84        script.onerror = handleError;
85    });
86}
87exports.RevolutCheckoutLoader = RevolutCheckoutLoader;
88RevolutCheckoutLoader.mode = constants_1.MODE.PRODUCTION;
89
90},{"./constants":2}],5:[function(require,module,exports){
91(function (global){(function (){
92/*
93    NPM wrapper that loads all NPM modules.
94
95    Requires browserify:
96        npm install -g browserify;
97
98    Needs to be exported using browserify:
99        browserify npm.js -o htdocs/npm-public.js
100
101    Example:
102        var Buffer = require('buffer').Buffer
103        global.window.Buffer = Buffer
104
105*/
106
107var RevolutCheckout = require('@revolut/checkout').RevolutCheckout;
108global.window.RevolutCheckout = RevolutCheckout;
109
110}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
111},{"@revolut/checkout":3}]},{},[5]);

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.