PageSourceSearch

https://www.metzgerei-graenitz.de/theme/901323ea31a4188dcb76d82932…g-pay-pal.swag-paypal.acdc-fields.0499e3.js

js metzgerei-graenitz.de collected 2026-09-26 07:31:08 UTC 27,183 bytes, 31 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[92131],{156:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function s(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var d,c,u=Array.isArray(r);return u!==Array.isArray(e)?i(r,l):u?l.arrayMerge(e,r,l):(c={},(d=l).isMergeableObject(e)&&n(e).forEach(function(t){c[t]=i(e[t],d)}),n(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&d.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,d)(e[t],r[t],d):c[t]=i(r[t],d))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},795:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(707);class s{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!s.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===s.hasAttribute(e,t))throw Error(`The required property "${t}" does not exist!`);if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),o=i.A.toLowerCamelCase(n,"-");if(!s.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return a}return i.A.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(r&&!1===i)throw Error(`The required element "${t}" does not exist in parent node!`);return i}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),r&&!1===i)throw Error(`At least one item of "${t}" must exist in parent node!`);return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return e.querySelectorAll(t)}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}},707:(e,t,r)=>{r.d(t,{A:()=>i});class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=i.toUpperCamelCase(e,t);return i.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}},737:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(156),s=r.n(i),n=r(707);class o{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(i),i}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,s=e.split("."),n=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=n;n=function(r){i.unsubscribe(e),t(r)}}return this.el.addEventListener(s[0],n),this.listeners.push({splitEventName:s,opts:r,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,r)=>([...r.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):e.push(r),e),[]),!0}
8reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}}class a{constructor(e,t={},r=!1){if(!(e instanceof Node))throw Error("There is no valid element given.");this.el=e,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){throw Error(`The "init" method for the plugin "${this._pluginName}" is not defined.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),s().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.A.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-config`);return r?window.PluginConfigManager.get(this._pluginName,r):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.A.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-options`);if(r)try{return JSON.parse(r)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return e}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}}},68:(e,t,r)=>{r.d(t,{A:()=>i});class i{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",e,r);return this._sendRequest(i,null,t)}post(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("POST",e,i);return this._sendRequest(s,t,r)}delete(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("DELETE",e,i);return this._sendRequest(s,t,r)}patch(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("PATCH",e,i);return this._sendRequest(s,t,r)}
8abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn(`the request to ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${e.responseURL} timed out`)})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,r){return this._registerOnLoaded(e,r),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,r){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}}},88:(e,t,r)=>{r.d(t,{A:()=>i});class i{static serialize(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("FORM"!==e.nodeName){if(t)throw Error("The passed element is not a form!");return{}}return new FormData(e)}static serializeJson(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=i.serialize(e,t);if(!(r instanceof FormData)&&0===Object.keys(r).length||r instanceof FormData&&0===Array.from(r.entries()).length)return{};let s={};for(let[e,t]of r.entries())s[e]=t;return s}}},724:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(683);let s="element-loader-backdrop";class n extends i.A{static create(e){e.classList.add("has-element-loader"),n.exists(e)||(n.appendLoader(e),setTimeout(()=>{let t=e.querySelector(`.${s}`);t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(`.${s}`);t&&t.remove()}static exists(e){return e.querySelectorAll(`.${s}`).length>0}static getTemplate(){return`
9        <div class="${s}">
10            <div class="loader" role="status">
11                <span class="visually-hidden">Loading...</span>
12            </div>
13        </div>
14        `}static appendLoader(e){e.insertAdjacentHTML("beforeend",n.getTemplate())}}},683:(e,t,r)=>{r.d(t,{A:()=>n});let i="loader",s={BEFORE:"before",INNER:"inner"};class n{constructor(e,t=s.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===s.INNER){this.parent.innerHTML=n.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),n.getTemplate())}}remove(){this.parent.querySelectorAll(`.${i}`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${i}`).length>0}_getPosition(){return this.position===s.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${i}" role="status">
15                    <span class="visually-hidden">Loading...</span>
16                </div>`}static SELECTOR_CLASS(){return i}}},304:(e,t,r)=>{r.d(t,{A:()=>E});var i=r(795),s=r(88),n=r(68),o=r(683);class a{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return a.isIPhoneDevice()||a.isIPadDevice()}static isNativeWindowsBrowser(){return a.isIEBrowser()||a.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":a.isTouchDevice(),"is-ios":a.isIOSDevice(),"is-native-windows":a.isNativeWindowsBrowser(),"is-iphone":a.isIPhoneDevice(),"is-ipad":a.isIPadDevice(),"is-ie":a.isIEBrowser(),"is-edge":a.isEdgeBrowser()}}}let l="modal-backdrop",d="modal-backdrop-open",c="no-scroll",u={ON_CLICK:"backdrop/onclick"};class h{constructor(){return h.instance||(h.instance=this),h.instance}create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(c),setTimeout(function(){t.classList.add(d),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;
16this._getBackdrops().forEach(e=>e.classList.remove(d)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(c)}_dispatchEvents(){let e=a.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(l)&&document.dispatchEvent(new CustomEvent(u.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(`.${l}`)}_removeExistingBackdrops(){!1!==this._exists()&&this._getBackdrops().forEach(e=>e.remove())}_exists(){return document.querySelectorAll(`.${l}`).length>0}_getTemplate(){return`<div class="${l}"></div>`}}let p=Object.freeze(new h);class m{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;p.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;p.remove(e)}static SELECTOR_CLASS(){return l}}class f extends o.A{constructor(){super(document.body)}create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&e&&(m.create(),document.querySelector(`.${m.SELECTOR_CLASS()}`).insertAdjacentHTML("beforeend",o.A.getTemplate()))}remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),e&&m.remove()}}let g=Object.freeze(new f);class b{static create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];g.create(e)}static remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];g.remove(e)}}var v=r(331),y=r(724);class E extends v.A{static #e=this.product="spb";static #t=this.options={...super.options,orderId:null,confirmOrderFormSelector:"#confirmOrderForm",confirmOrderButtonSelector:'button[type="submit"]',preventErrorReload:!1,brandName:"",isCheckout:!0};init(){if(this.confirmOrderForm=i.A.querySelector(document,this.options.confirmOrderFormSelector),this.options.preventErrorReload){i.A.querySelector(this.confirmOrderForm,this.options.confirmOrderButtonSelector).disabled="disabled";return}y.A.create(this.el),i.A.querySelector(this.confirmOrderForm,this.options.confirmOrderButtonSelector).classList.add("d-none"),this._client=new n.A,this.createScript(async e=>{try{await this.render(e)}catch(e){this.handleError(this.SCRIPT_ERROR,!0,e)}y.A.remove(this.el)})}render(e){let t=e.Buttons(this.getButtonConfig(this.getFundingSource(e)));if(!t.isEligible())return void this.handleError(this.NOT_ELIGIBLE,!0,`Funding for PayPal button is not eligible (${this.getFundingSource(e)})`);t.render(this.el)}getFundingSource(e){return e.FUNDING.PAYPAL}getButtonConfig(e){return{fundingSource:e,style:{size:this.options.buttonSize,shape:this.options.buttonShape,color:this.options.buttonColor,label:"pay"},createOrder:this.createOrder.bind(this,this.constructor.product),onApprove:this.onApprove.bind(this),onCancel:this.onCancel.bind(this),onClick:this.onClick.bind(this),onError:this.onError.bind(this)}}createOrder(e){let t=s.A.serialize(this.confirmOrderForm);t.set("product",e);let r=this.options.orderId;return null!==r&&t.set("orderId",r),new Promise((e,r)=>{this._client.post(this.options.createOrderUrl,t,(t,i)=>{i.status>=400&&r(t);try{let r=JSON.parse(t);e(r.token)}catch(e){r(e)}})})}onApprove(e){if(this.confirmOrderForm.querySelector('[name="paypalOrderId"]'))return;b.create();let t=document.createElement("input");t.setAttribute("type","hidden"),t.setAttribute("name","paypalOrderId"),t.setAttribute("value",e.orderID??e.orderId),this.confirmOrderForm.appendChild(t),this.confirmOrderForm.submit()}onClick(e,t){return this.confirmOrderForm.checkValidity()?t.resolve():(this.focusFirstInvalidField(),t.reject())}focusFirstInvalidField(){let e=Array.from(this.confirmOrderForm.elements).find(e=>!e.validity.valid);e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus())}}},131:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var i=r(795),s=r(88),n=r(304);class o extends n.A{static #e=this.options={...super.options,buttonColor:"black",cardFieldFormSelector:"#swag-paypal-acdc-form",cardNumberFieldSelector:"#swag-paypal-acdc-form-cardnumber",cardExpiryFieldSelector:"#swag-paypal-acdc-form-expiration",cardCvvFieldSelector:"#swag-paypal-acdc-form-cvv",cardNameFieldSelector:"#swag-paypal-acdc-form-cardholder",fixedHeaderSelector:"header.fixed-top",validatedStyleClass:"was-validated",cardFieldStyleConfig:{input:{"font-family":'"Inter", sans-serif',"font-size":"0.875rem","font-weight":300,"letter-spacing":"0.03rem",padding:"0.5625rem"},"input::placeholder":{color:"#c3c3c3",opacity:1},body:{padding:0},"input.card-field-number.display-icon":{"padding-left":"calc(2rem 
16+ 40px) !important"}}};render(e){this.cardFieldForm=i.A.querySelector(document,this.options.cardFieldFormSelector);let t=e.CardFields(this.getFieldConfig());if(t.isEligible())this.cardFieldForm.classList.remove("d-none"),this.renderIndividualFields(t),this.bindFieldActions(t);else{let t=e.Buttons(this.getButtonConfig(e.FUNDING.CARD));if(!t.isEligible())return void this.handleError(this.NOT_ELIGIBLE,!0,"Neither hosted fields nor standalone buttons are eligible");t.render(this.el)}}getFieldConfig(){return{createOrder:this.createOrder.bind(this,"acdc"),onError:this.onError.bind(this),onApprove:this.onApprove.bind(this),style:this.options.cardFieldStyleConfig}}renderIndividualFields(e){this.fields={},this.fields.cardNameField=e.NameField({placeholder:i.A.querySelector(this.cardFieldForm,this.options.cardNameFieldSelector).dataset.placeholder}),this.fields.cardNameField.render(this.options.cardNameFieldSelector),this.fields.cardNumberField=e.NumberField({placeholder:i.A.querySelector(this.cardFieldForm,this.options.cardNumberFieldSelector).dataset.placeholder}),this.fields.cardNumberField.render(this.options.cardNumberFieldSelector),this.fields.cardCvvField=e.CVVField({placeholder:i.A.querySelector(this.cardFieldForm,this.options.cardCvvFieldSelector).dataset.placeholder}),this.fields.cardCvvField.render(this.options.cardCvvFieldSelector),this.fields.cardExpiryField=e.ExpiryField({placeholder:i.A.querySelector(this.cardFieldForm,this.options.cardExpiryFieldSelector).dataset.placeholder}),this.fields.cardExpiryField.render(this.options.cardExpiryFieldSelector)}bindFieldActions(e){i.A.querySelector(this.confirmOrderForm,this.options.confirmOrderButtonSelector).classList.remove("d-none"),this.confirmOrderForm.addEventListener("submit",this.onFieldSubmit.bind(this,e));let t=window.PluginManager.getPluginInstanceFromElement(this.confirmOrderForm,"FormAddHistory");t&&(t.options.entries=[])}onFieldSubmit(e,t){!s.A.serialize(this.confirmOrderForm).has("paypalOrderId")&&this.confirmOrderForm.reportValidity()&&(t.preventDefault(),t.stopPropagation(),e.getState().then(t=>{if(t.isFormValid){e.submit();return}this.confirmOrderForm.dispatchEvent(new CustomEvent("removeLoader"));let r=Object.keys(t.fields).find(e=>!t.fields[e].isValid);this.fields[r]?.focus(),i.A.querySelector(this.cardFieldForm,this.options[r+"Selector"]).scrollIntoView({behavior:"smooth",block:"center"})}))}}},331:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(179);class s extends i.A{static #e=this.options={...super.options,buttonColor:null,buttonShape:"sharp",buttonSize:"small",createOrderUrl:"",handleErrorUrl:""};handleError(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;r instanceof Error&&(r=String(r)),r&&"string"!=typeof r&&(r=JSON.stringify(r));let i=this._extractErrorCode(r);if(i&&(e=i),!this.options.handleErrorUrl){console.error(`PayPal ${t?"fatal ":""}error occurred: ${e} - ${String(r??"")}`);return}let s=!!this.options.isCheckout;this._client.post(this.options.handleErrorUrl,JSON.stringify({code:e,error:r,fatal:t,isCheckout:s}),()=>{this.onErrorHandled(e,t,r,s)})}onErrorHandled(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];i&&(window.scrollTo(0,0),window.location.reload())}onFatalError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.handleError(this.GENERIC_ERROR,!0,e)}onError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.handleError(this.GENERIC_ERROR,!1,e)}onCancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.handleError(this.USER_CANCELLED,!1,e)}_extractErrorCode(e){try{let t=JSON.parse(e)?.errors;if(!Array.isArray(t))return null;for(let e of t)if("object"==typeof e&&"string"==typeof e.code)return e.code}catch{}return null}constructor(...e){super(...e),this.GENERIC_ERROR="SWAG_PAYPAL__GENERIC_ERROR",this.NOT_ELIGIBLE="SWAG_PAYPAL__NOT_ELIGIBLE",this.USER_CANCELLED="SWAG_PAYPAL__USER_CANCELLED",this.BROWSER_UNSUPPORTED="SWAG_PAYPAL__BROWSER_UNSUPPORTED",this.SCRIPT_ERROR="SWAG_PAYPAL__SCRIPT_ERROR",this.SCRIPT_NOT_LOADED="SWAG_PAYPAL__SCRIPT_NOT_LOADED"}}},179:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(737);function s(e,t){void 0===t&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach(function(e){r.setAttribute(e,t[e]),"data-csp-nonce"===e&&r.setAttribute("nonce",t["data-csp-nonce"])}),r}function n(e,t){if("object"!=typeof e||null===e)throw Error("Expected an options object.");var r=e.environment;if(r&&"production"!==r&&"sandbox"!==r)throw Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==t&&"function"!=typeof t)throw Error("Expected PromisePonyfill to be a function.")}"function"==typeof SuppressedError&&SuppressedError;let o=["card","bancontact","blik","eps","giropay","ideal","mybank","p24","sepa","sofort","venmo"];class a extends i.A{static #e=this.options={clientId:"",clientToken:"",merchantPayerId:"",partnerAttributionId:"",currency:"EUR",intent:"capture",commit:!0,languageIso:"en_GB",showPayLater
16:!0,useAlternativePaymentMethods:!0,disabledAlternativePaymentMethods:[],userIdToken:null,scriptAwaitVisibility:!1,partOfDomContentLoading:!0};static #t=this.scriptPromises={};static #r=this.paypal={};_init(){this.options.partOfDomContentLoading||"complete"===document.readyState?super._init():window.addEventListener("load",()=>{super._init()})}get scriptOptionsHash(){return JSON.stringify(this.getScriptOptions())}async createScript(e){a.scriptPromises[this.scriptOptionsHash]??=this._loadScript();let t=async()=>{e(await a.scriptPromises[this.scriptOptionsHash])};this.options.scriptAwaitVisibility?await this._awaitVisibility(t):await t()}async _awaitVisibility(e){let t=new IntersectionObserver(r=>{let[i]=r;i.isIntersecting&&(t.disconnect(),e())},{rootMargin:"200px"});t.observe(this.el)}async _loadScript(){return a.paypal[this.scriptOptionsHash]=await function(e,t){if(void 0===t&&(t=Promise),n(e,t),"undefined"==typeof document)return t.resolve(null);var r,i,o,a,l,d,c,u,h=(i=Object.prototype.hasOwnProperty.call(e,"sdkBaseUrl")?e.sdkBaseUrl:void 0,o=e.environment,e.sdkBaseUrl,a=/*!
17 * paypal-js v10.0.3 (2026-07-07T20:12:20.227Z)
18 * Copyright 2020-present, PayPal, Inc. All rights reserved.
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 * http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}(e,["environment","sdkBaseUrl"]),l=i||("sandbox"===o?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"),c=(d=Object.keys(a).filter(function(e){return void 0!==a[e]&&null!==a[e]&&""!==a[e]}).reduce(function(e,t){var r=a[t].toString();return"data"===(t=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()})).substring(0,4)||"crossorigin"===t?e.attributes[t]=r:e.queryParams[t]=r,e},{queryParams:{},attributes:{}})).queryParams,u=d.attributes,c["merchant-id"]&&-1!==c["merchant-id"].indexOf(",")&&(u["data-merchant-id"]=c["merchant-id"],c["merchant-id"]="*"),{url:"".concat(l,"?").concat((r="",Object.keys(c).forEach(function(e){0!==r.length&&(r+="&"),r+=e+"="+c[e]}),r)),attributes:u}),p=h.url,m=h.attributes,f=m["data-namespace"]||"paypal",g=window[f];return(m["data-js-sdk-library"]||(m["data-js-sdk-library"]="paypal-js"),function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(null===r)return null;var i=s(e,t),n=r.cloneNode();if(delete n.dataset.uidAuto,Object.keys(n.dataset).length!==Object.keys(i.dataset).length)return null;var o=!0;return Object.keys(n.dataset).forEach(function(e){n.dataset[e]!==i.dataset[e]&&(o=!1)}),o?r:null}(p,m)&&g)?t.resolve(g):(function(e,t){void 0===t&&(t=Promise),n(e,t);var r=e.url,i=e.attributes;if("string"!=typeof r||0===r.length)throw Error("Invalid url.");if(void 0!==i&&"object"!=typeof i)throw Error("Expected attributes to be an object.");return new t(function(e,t){var n,o,a,l,d,c;if("undefined"==typeof document)return e();o=(n={url:r,attributes:i,onSuccess:function(){return e()},onError:function(){return t(Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.')))}}).url,a=n.attributes,l=n.onSuccess,d=n.onError,(c=s(o,a)).onerror=d,c.onload=l,document.head.insertBefore(c,document.head.firstElementChild)})})({url:p,attributes:m},t).then(function(){var e=window[f];if(e)return e;throw Error("The window.".concat(f," global variable is not available."))})}(this.getScriptOptions()),delete window.paypal,a.paypal[this.scriptOptionsHash]}getScriptOptions(){let e={components:"buttons,messages,card-fields,funding-eligibility,applepay,googlepay","client-id":this.options.clientId,commit:!!this.options.commit,locale:this.options.languageIso,currency:this.options.currency,intent:this.options.intent,"enable-funding":"paylater,venmo"};return(this.options.disablePayLater||!1===this.options.showPayLater)&&(e["enable-funding"]="venmo"),!1===this.options.useAlternativePaymentMethods?e["disable-funding"]=o.join(","):this.options.disabledAlternativePaymentMethods.length>0&&(e["disable-funding"]=this.options.disabledAlternativePaymentMethods.join(",")),this.options.merchantPayerId&&(e["merchant-id"]=this.options.merchantPayerId),this.options.clientToken&&
31(e["data-client-token"]=this.options.clientToken),this.options.userIdToken&&(e["data-user-id-token"]=this.options.userIdToken),this.options.partnerAttributionId&&(e["data-partner-attribution-id"]=this.options.partnerAttributionId),e}}}}]);

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.