vendor: 4,250 bytes, lines 1-18
1import{X as t}from"./BafnB_O4.js";import{l as e}from"./DOqa5cws.js";const a=t("/brand/paypal2.svg"),r=t("/brand/visa.svg"),n=t("/brand/mastercard.svg"),o=t("/brand/paypal.svg"),s=t("/brand/applepay.svg"),c=t("/brand/googlepay.svg"),i=t("/brand/fastspring.svg");function u(t){var e="";return Object.keys(t).forEach((function(a){0!==e.length&&(e+="&"),e+=a+"="+t[a]})),e}function d(t,e){void 0===e&&(e={});var a=document.createElement("script");return a.src=t,Object.keys(e).forEach((function(t){a.setAttribute(t,e[t]),"data-csp-nonce"===t&&a.setAttribute("nonce",e["data-csp-nonce"])})),a}function l(t,e){if(void 0===e&&(e=Promise),p(t,e),"undefined"==typeof document)return e.resolve(null);var a=function(t){var e="https://www.paypal.com/sdk/js";t.sdkBaseUrl&&(e=t.sdkBaseUrl,delete t.sdkBaseUrl);var a=t,r=Object.keys(a).filter((function(t){return void 0!==a[t]&&null!==a[t]&&""!==a[t]})).reduce((function(t,e){var r,n=a[e].toString();return r=function(t,e){return(e?"-":"")+t.toLowerCase()},"data"===(e=e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)).substring(0,4)||"crossorigin"===e?t.attributes[e]=n:t.queryParams[e]=n,t}),{queryParams:{},attributes:{}}),n=r.queryParams,o=r.attributes;return n["merchant-id"]&&-1!==n["merchant-id"].indexOf(",")&&(o["data-merchant-id"]=n["merchant-id"],n["merchant-id"]="*"),{url:"".concat(e,"?").concat(u(n)),attributes:o}}(t),r=a.url,n=a.attributes,o=n["data-namespace"]||"paypal",s=f(o);return n["data-js-sdk-library"]||(n["data-js-sdk-library"]="paypal-js"), 2/*! 3 * paypal-js v8.0.5 (2024-04-16T22:14:11.318Z) 4 * Copyright 2020-present, PayPal, Inc. All rights reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18function(t,e){var a=document.querySelector('script[src="'.concat(t,'"]'));if(null===a)return null;var r=d(t,e),n=a.cloneNode();if(delete n.dataset.uidAuto,Object.keys(n.dataset).length!==Object.keys(r.dataset).length)return null;var o=!0;return Object.keys(n.dataset).forEach((function(t){n.dataset[t]!==r.dataset[t]&&(o=!1)})),o?a:null}(r,n)&&s?e.resolve(s):function(t,e){void 0===e&&(e=Promise);p(t,e);var a=t.url,r=t.attributes;if("string"!=typeof a||0===a.length)throw new Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw new Error("Expected attributes to be an object.");return new e((function(t,e){if("undefined"==typeof document)return t();!function(t){var e=t.url,a=t.attributes,r=t.onSuccess,n=t.onError,o=d(e,a);o.onerror=n,o.onload=r,document.head.insertBefore(o,document.head.firstElementChild)}({url:a,attributes:r,onSuccess:function(){return t()},onError:function(){var t=new Error('The script "'.concat(a,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return e(t)}})}))}({url:r,attributes:n},e).then((function(){var t=f(o);if(t)return t;throw new Error("The window.".concat(o," global variable is not available."))}))}function f(t){return window[t]}function p(t,e){if("object"!=typeof t||null===t)throw new Error("Expected an options object.");if(void 0!==e&&"function"!=typeof e)throw new Error("Expected PromisePonyfill to be a function.")}const b=async t=>await e({url:"/chatBase/stripe/createCheckoutSessionSubscription",method:"post",opts:t}),h=async t=>await e({url:"/chatBase/payPal/createOrderSub",method:"post",opts:t}),y=async()=>await e({url:"/chatBase/web/queryPayCommonConfig"}),m=async t=>await e({url:"/chatBase/branchInfo/check/"+t}),v=async t=>await e({url:"/chatBase/createDLocalPayment",method:"post",opts:t}),w=async t=>await e({url:"/chatBase/PayOrderInfo/addPayOrderInfo",method:"post",opts:t}),g=async t=>await e({url:"/chatBase/premierGateway/createOrder",method:"post",opts:t});export{r as _,m as a,g as b,h as c,w as d,v as e,a as f,b as g,n as h,o as i,s as j,c as k,l,i as m,y as q};
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.