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ACV,CAAC,SAAAgC,EAAAhE,SAAA0L,EAAAC,IAAA,EAAA5L,EAAAC,SAAA0L,EAAA,CAHc,CAASE,EAAAA,aAMgB,oBAAjCC,8BACP,IAAInI,EAAAA,QAAY,IAAIgI,EAAcG,8BAA+B,CAC7DzL,YAAAA,EACAE,UAAW,4BACXwD,YAAa,oCAG0B,oBAApCgI,kCACP/C,OAAOgD,OAAOL,EAAcnI,UAAWyI,EAAAA,eAAezI,WACtD,IAAI8D,EAAAA,QAAe,IAAIqE,EAAcI,iCAAkC,CACnE1L,YAAAA,EACAE,UAAW,kCAG2B,oBAAnC2L,gCAC2B,QAAlCR,EAAIQ,sCAA8B,IAAAR,GAAU,QAAVA,EAA9BA,EAAgCS,gBAAQ,IAAAT,GAAxCA,EAA0CU,eAC1C,IAAI9F,EAAAA,QAAgB,IAAIqF,EAAcO,+BAA+BC,SAASC,eAAgB,CAC1F/L,YAAAA,EACAE,UAAW,uCAImB,oBAA/B8L,4BACP,IAAIvH,EAAAA,QACAC,EAAAA,OACAsH,2BACA,CACIpH,GAAI,gBACJ5E,YAAAA,EACAI,YAAa,kBAAM,CAAI,G","sources":["webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/abstract-message.js","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/cart-message.js","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/category-message.js","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/checkout-message.js","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/klarna/klarna-checkout-message.js","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/product-message.js","webpack://woo-stripe-payment/external window \"jQuery\"","webpack://woo-stripe-payment/external window [\"wc_stripe\"]","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/createClass.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/get.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/inherits.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://woo-stripe-payment/./node_modules/@babel/runtime/helpers/typeof.js","webpack://woo-stripe-payment/webpack/bootstrap","webpack://woo-stripe-payment/./assets/js/frontend/bnpl-messages/klarna/index.js"],"sourcesContent":["class AbstractMessage {\n\n constructor(\n gateway,\n {\n elementType = '',\n elementId = '',\n isSupported = () => true\n }\n ) {\n this.gateway = gateway;\n this.elementType = elementType;\n this.elementId = elementId;\n this.isSupported = isSupported;\n this.msgElement = null;\n }\n\n getElementType() {\n return this.elementType;\n }\n\n createMessage() {\n if (this.isSupported(this.gateway) && this.createMessageElement()) {\n const el = this.getElementContainer();\n if (el) {\n this.mount(el);\n }\n }\n }\n\n createMessageElement() {\n try {\n if (this.msgElement) {\n this.msgElement.update(this.getMessageOptions());\n } else {\n this.msgElement = this.gateway?.elements?.create(this.getElementType(), this.getMessageOptions());\n }\n } catch (error) {\n console.log(error);\n }\n return this.msgElement;\n }\n\n getMessageOptions() {\n return {\n amount: this.getTotalPriceCents(),\n currency: this.gateway.get_currency(),\n ...this.gateway.params.messageOptions\n }\n }\n\n mount(el) {\n try {\n this.msgElement.mount(el);\n } catch (error) {\n console.log(error);\n }\n\n }\n\n getElementContainer() {\n\n }\n\n getTotalPriceCents() {\n return this.gateway.get_gateway_data()?.total_cents;\n }\n\n getTotalPrice() {\n return this.gateway.get_gateway_data()?.total;\n }\n}\n\nexport default AbstractMessage;","import $ from 'jquery';\nimport AbstractMessage from './abstract-message';\n\nclass CartMessage extends AbstractMessage {\n\n constructor(gateway, props) {\n super(gateway, props);\n this.containerId = props.containerId;\n this.initialize();\n }\n\n initialize() {\n $(document.body).on('updated_wc_div', this.updatedHtml.bind(this));\n $(document.body).on('updated_cart_totals', this.updatedHtml.bind(this));\n this.createMessage();\n }\n\n updatedHtml() {\n if (this.gateway.has_gateway_data()) {\n this.createMessage();\n }\n }\n\n getElementContainer() {\n const $el = $(`#${this.elementId}`);\n if (!$el.length) {\n $('.cart_totals table.shop_table > tbody').append(`
`);\n }\n return document.getElementById(this.elementId);\n }\n}\n\nexport default CartMessage;\n\n","class CategoryMessage {\n\n constructor(\n stripe,\n data,\n props\n ) {\n this.id = props.id;\n this.elementType = props.elementType;\n this.props = props;\n this.stripe = stripe;\n this.elements = stripe.elements({locale: 'auto'});\n this.data = data;\n this.initialize();\n }\n\n initialize() {\n this.createMessages();\n }\n\n createMessages() {\n if (this.props.isSupported(this)) {\n for (const product of this.data.products) {\n if (this.isSupportedProduct(product)) {\n this.createMessage(product);\n }\n }\n }\n }\n\n createMessage(product) {\n try {\n const element = this.elements.create(this.elementType, this.getMessageOptions(product));\n const el = this.getMessageContainer(product);\n if (el) {\n element.mount(el);\n }\n } catch (error) {\n console.log(error);\n }\n }\n\n isSupportedProduct(product) {\n let result = this.data.product_types.includes(product.product_type);\n if (result && this.props.isSupportedProduct) {\n result = this.props.isSupportedProduct(this, product);\n }\n return result;\n }\n\n getMessageContainer(product) {\n let id = `${this.id}-${product.id}`;\n id = `wc-stripe-shop-message-${id}`;\n return document.getElementById(`${id}`);\n }\n\n getMessageOptions(product) {\n return {\n amount: product.price_cents,\n currency: this.data.currency,\n ...this.data[this.id].messageOptions\n }\n }\n}\n\nexport default CategoryMessage;","import $ from 'jquery';\nimport AbstractMessage from \"./abstract-message\";\n\nclass CheckoutMessage extends AbstractMessage {\n\n constructor(...params) {\n super(...params);\n this.initialize();\n }\n\n isEnabled() {\n return this.gateway.params.payment_sections.includes('checkout');\n }\n\n initialize() {\n if (this.isEnabled()) {\n $(document.body).on('updated_checkout', this.updatedCheckout.bind(this));\n if (this.gateway.has_gateway_data()) {\n this.createMessage();\n }\n }\n }\n\n updatedCheckout() {\n this.createMessage();\n }\n\n createMessage() {\n if (this.gateway.has_gateway_data()) {\n super.createMessage();\n }\n }\n\n getElementContainer() {\n if (!$(`#${this.elementId}`).length) {\n $(`label[for=\"payment_method_${this.gateway.gateway_id}\"]`).append(`
`);\n }\n return document.getElementById(this.elementId);\n }\n}\n\nexport default CheckoutMessage;","import $ from 'jquery'\nimport CheckoutMessage from '../checkout-message';\n\nclass KlarnaCheckoutMessage extends CheckoutMessage {\n\n getMessageOptions() {\n const options = super.getMessageOptions();\n const billingCountry = $('#billing_country').val();\n if (typeof billingCountry === 'string' && billingCountry.length > 0) {\n options.countryCode = billingCountry;\n }\n return options;\n }\n}\n\nexport default KlarnaCheckoutMessage;","import $ from 'jquery';\nimport AbstractMessage from './abstract-message';\n\nclass ProductMessage extends AbstractMessage {\n\n constructor(...params) {\n super(...params);\n this.initialize();\n }\n\n initialize() {\n $(document.body).on('change', '[name=\"quantity\"]', this.createMessage.bind(this, true));\n $('form.cart').on('found_variation', this.foundVariation.bind(this));\n $('form.cart').on('reset_data', this.resetVariationData.bind(this));\n this.createMessage();\n }\n\n foundVariation(...params) {\n this.gateway.found_variation(...params);\n this.createMessage();\n }\n\n resetVariationData(...params) {\n this.gateway.reset_variation_data(...params);\n this.createMessage();\n }\n\n getElementContainer() {\n const $el = $(`#${this.elementId}`);\n if (!$el.length) {\n if ($('.summary .price').length) {\n $('.summary .price').append(`
`);\n } else {\n if ($('.price').length) {\n $($('.price')[0]).append(`
`);\n }\n }\n }\n return document.getElementById(this.elementId);\n }\n\n getTotalPriceCents() {\n if (this.gateway.has_gateway_data()) {\n const price = this.gateway.get_gateway_data()?.product?.price_cents * this.getQuantity();\n return price;\n }\n return 0;\n }\n\n getQuantity() {\n let qty = $('[name=\"quantity\"]').val();\n if (isNaN(qty)) {\n qty = 0;\n }\n return parseInt(qty);\n }\n}\n\nexport default ProductMessage;","module.exports = window[\"jQuery\"];","module.exports = window[\"wc_stripe\"];","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var superPropBase = require(\"./superPropBase.js\");\nfunction _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n return desc.value;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n }\n return _get.apply(this, arguments);\n}\nmodule.exports = _get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n}\nmodule.exports = _superPropBase, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import {BaseGateway, ProductGateway, stripe} from '@paymentplugins/wc-stripe';\nimport CartMessage from '../cart-message';\nimport CheckoutMessage from './klarna-checkout-message';\nimport CategoryMessage from '../category-message';\nimport ProductMessage from '../product-message';\n\nconst elementType = 'paymentMethodMessaging';\n\nclass KlarnaGateway extends BaseGateway {\n constructor(params) {\n super(params);\n }\n};\n\nif (typeof wc_stripe_klarna_cart_params !== 'undefined') {\n new CartMessage(new KlarnaGateway(wc_stripe_klarna_cart_params), {\n elementType,\n elementId: 'wc-stripe-klarna-cart-msg',\n containerId: 'wc-stripe-klarna-cart-container'\n });\n}\nif (typeof wc_stripe_klarna_product_params !== 'undefined') {\n Object.assign(KlarnaGateway.prototype, ProductGateway.prototype);\n new ProductMessage(new KlarnaGateway(wc_stripe_klarna_product_params), {\n elementType,\n elementId: 'wc-stripe-klarna-product-msg'\n });\n}\nif (typeof wc_stripe_local_payment_params !== 'undefined') {\n if (wc_stripe_local_payment_params?.gateways?.stripe_klarna) {\n new CheckoutMessage(new KlarnaGateway(wc_stripe_local_payment_params.gateways.stripe_klarna), {\n elementType,\n elementId: 'wc-stripe-klarna-message-container'\n });\n }\n}\nif (typeof wc_stripe_bnpl_shop_params !== 'undefined') {\n new CategoryMessage(\n stripe,\n wc_stripe_bnpl_shop_params,\n {\n id: 'stripe_klarna',\n elementType,\n isSupported: () => true\n });\n}"],"names":["AbstractMessage","_createClass2","default","gateway","_ref","_ref$elementType","elementType","_ref$elementId","elementId","_ref$isSupported","isSupported","_classCallCheck2","this","msgElement","key","value","createMessageElement","el","getElementContainer","mount","_this$gateway","update","getMessageOptions","elements","create","getElementType","error","console","log","_objectSpread","amount","getTotalPriceCents","currency","get_currency","params","messageOptions","_this$gateway$get_gat","get_gateway_data","total_cents","_this$gateway$get_gat2","total","exports","_jquery","_interopRequireDefault","require","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","CartMessage","_AbstractMessage","props","_this","containerId","initialize","_inherits2","$","document","body","on","updatedHtml","bind","createMessage","has_gateway_data","concat","length","append","getElementById","CategoryMessage","stripe","data","id","locale","createMessages","_step","_iterator","_createForOfIteratorHelper","products","s","n","done","product","isSupportedProduct","err","f","element","getMessageContainer","result","product_types","includes","product_type","price_cents","CheckoutMessage","_len","arguments","Array","_key","payment_sections","isEnabled","updatedCheckout","_get2","gateway_id","KlarnaCheckoutMessage","_CheckoutMessage","options","billingCountry","val","countryCode","ProductMessage","foundVariation","resetVariationData","found_variation","_this$gateway2","reset_variation_data","getQuantity","qty","isNaN","parseInt","module","window","self","ReferenceError","__esModule","instance","Constructor","TypeError","toPropertyKey","_defineProperties","target","i","descriptor","enumerable","configurable","writable","Object","defineProperty","protoProps","staticProps","obj","superPropBase","_get","get","property","receiver","base","desc","getOwnPropertyDescriptor","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","subClass","superClass","_typeof","assertThisInitialized","_setPrototypeOf","p","object","hasOwnProperty","r","Symbol","toPrimitive","String","Number","iterator","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","_wcStripe","_cartMessage","_klarnaCheckoutMessage","_categoryMessage","_productMessage","_wc_stripe_local_paym","KlarnaGateway","_BaseGateway","BaseGateway","wc_stripe_klarna_cart_params","wc_stripe_klarna_product_params","assign","ProductGateway","wc_stripe_local_payment_params","gateways","stripe_klarna","wc_stripe_bnpl_shop_params"],"sourceRoot":""}