{"version":3,"sources":["webpack:///webpack/bootstrap be6ad78a58699c782a97","webpack:///src/components/KlarnaPayment.vue","webpack:///./src/components/KlarnaPayment.vue?c219","webpack:///./src/components/KlarnaPayment.vue","webpack:///./src/main.js","webpack:///./node_modules/vue-loader/lib/component-normalizer.js","webpack:///external \"Vue\""],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","KlarnaPayment","props","[object Object]","Klarna","Payments","init","client_token","this","clientToken","load","container","payment_method_category","paymentId","res","computed","data","isLoading","showError","methods","window","location","reload","_this","checkoutData","checkout","JSON","parse","authorize","approved","authorization_token","href","components_KlarnaPayment","render","_vm","_h","$createElement","_c","_self","staticClass","_v","attrs","disabled","on","click","abort","height","width","fill","_m","_e","_s","labelAbort","proceed","labelProceed","staticRenderFns","id","src_components_KlarnaPayment","normalizeComponent","ssrContext","Vue","component","rawScriptExports","compiledTemplate","functionalTemplate","injectStyles","scopeId","moduleIdentifier","esModule","scriptExports","type","default","hook","options","_compiled","functional","_scopeId","context","$vnode","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","existing","beforeCreate","_injectStyles","h","concat"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAA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C,EAAAlB,gBAAAQ,EAAAR,gBACAkB,EAAAC,WAAA,GAIAV,IACAS,EAAAE,YAAA,GAIAT,IACAO,EAAAG,SAAAV,GAIAC,GACAK,EAAA,SAAAK,IAEAA,EACAA,GACArE,KAAAsE,QAAAtE,KAAAsE,OAAAnB,YACAnD,KAAAuE,QAAAvE,KAAAuE,OAAAD,QAAAtE,KAAAuE,OAAAD,OAAAnB,aAEA,oBAAAqB,sBACAH,EAAAG,qBAGAf,GACAA,EAAApF,KAAA2B,KAAAqE,GAGAA,KAAAI,uBACAJ,EAAAI,sBAAAC,IAAAf,IAKAM,EAAAU,aAAAX,GACGP,IACHO,EAAAP,GAGAO,EAAA,CACA,IAAAG,EAAAF,EAAAE,WACAS,EAAAT,EACAF,EAAAxC,OACAwC,EAAAY,aAEAV,GAQAF,EAAAa,cAAAd,EAEAC,EAAAxC,OAAA,SAAAsD,EAAAV,GAEA,OADAL,EAAA3F,KAAAgG,GACAO,EAAAG,EAAAV,KAVAJ,EAAAY,aAAAD,KACAI,OAAAJ,EAAAZ,IACAA,GAaA,OACAJ,WACA5F,QAAA6F,EACAI,qDCpGAhG,EAAAD,QAAAoF","file":"js/app.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"NHnr\");\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap be6ad78a58699c782a97","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/KlarnaPayment.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"klarna_payment_modal_wrap mx-auto\"},[_c('h1',{staticClass:\"klarna_payment_modal_title text-center font-weight-bold\"},[_vm._v(\"\\n Klarna Payment\\n \"),_c('button',{staticClass:\"klarna_close_modal btn btn-link text-reset\",attrs:{\"disabled\":_vm.isLoading},on:{\"click\":_vm.abort}},[_c('svg',{attrs:{\"height\":\"20\",\"width\":\"20\"}},[_c('path',{attrs:{\"d\":\"M11.1,10 L18.8,2.3 C19.1,2 19.1,1.5 18.8,1.2 C18.5,0.9 18,0.9 17.7,1.2 L10,8.9 L2.3,1.2 C2,0.9 1.5,0.9 1.2,1.2 C0.9,1.5 0.9,2 1.2,2.3 L8.9,10 L1.2,17.7 C0.9,18 0.9,18.5 1.2,18.8 C1.4,18.9 1.6,19 1.7,19 C1.9,19 2.1,18.9 2.3,18.8 L10,11.1 L17.7,18.8 C17.9,18.9 18.1,19 18.2,19 C18.4,19 18.6,18.9 18.8,18.8 C19.1,18.5 19.1,18 18.8,17.7 L11.1,10 Z\",\"fill\":\"rgba(13, 13, 13, 1)\"}})])])]),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),(_vm.showError && !_vm.isLoading)?_c('p',{staticClass:\"alert alert-danger mx-auto text-center mb-4\"},[_vm._v(\"Something went wrong. Please try again.\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mb-5 klarna_payment_btn_container\"},[_c('div',{staticClass:\"col-xs-6\"},[_c('button',{staticClass:\"btn btn-danger btn-block py-3\",attrs:{\"disabled\":_vm.isLoading},on:{\"click\":_vm.abort}},[_vm._v(_vm._s(_vm.labelAbort))])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-6\"},[_c('button',{staticClass:\"btn btn-primary btn-block py-3\",attrs:{\"disabled\":_vm.isLoading},on:{\"click\":_vm.proceed}},[_vm._v(_vm._s(_vm.labelProceed))])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"klarna_payment_wrapper mb-5\"},[_c('div',{staticClass:\"klarna_payment_container d-block mx-auto\",attrs:{\"id\":\"klarna_payment_container\"}})])}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-8e971158\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/KlarnaPayment.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-8e971158\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./KlarnaPayment.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./KlarnaPayment.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./KlarnaPayment.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-8e971158\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./KlarnaPayment.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-8e971158\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/KlarnaPayment.vue\n// module id = null\n// module chunks = ","import Vue from 'vue';\nimport KlarnaPayment from './components/KlarnaPayment';\n\nVue.component('klarna-payments', KlarnaPayment);\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/component-normalizer.js\n// module id = VU/8\n// module chunks = 0","module.exports = Vue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"Vue\"\n// module id = lRwf\n// module chunks = 0"],"sourceRoot":""}