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://wcPPCP/webpack/bootstrap","webpack://wcPPCP/webpack/runtime/compat get default export","webpack://wcPPCP/webpack/runtime/define property getters","webpack://wcPPCP/webpack/runtime/hasOwnProperty shorthand","webpack://wcPPCP/webpack/runtime/make namespace object","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://wcPPCP/external window \"regeneratorRuntime\"","webpack://wcPPCP/external window \"jQuery\"","webpack://wcPPCP/external window [\"wcPPCP\",\"utils\"]","webpack://wcPPCP/external window [\"wp\",\"apiFetch\"]","webpack://wcPPCP/external window [\"wp\",\"hooks\"]","webpack://wcPPCP/./assets/js/ppcp/cart.js","webpack://wcPPCP/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://wcPPCP/./assets/js/ppcp/event.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function _defineProperty(obj, key, value) {\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\n return obj;\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _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, descriptor.key, descriptor);\n }\n}\n\nexport default function _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}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _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\n return assertThisInitialized(self);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"regeneratorRuntime\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"jQuery\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wcPPCP\"][\"utils\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"apiFetch\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","import $ from 'jquery';\nimport {getRestRoute, getSetting, setSetting} from \"@ppcp/utils\";\nimport apiFetch from \"@wordpress/api-fetch\";\nimport Event from './event';\n\nclass Cart extends Event {\n\n constructor() {\n super();\n this.data = getSetting('cart');\n this.page = getSetting('generalData').page;\n this.processing = false;\n $(document.body).on('updated_wc_div', this.onCartUpdated.bind(this));\n $(document.body).on('updated_cart_totals', this.onCartUpdated.bind(this));\n $(document.body).on('updated_checkout', this.onUpdatedCheckout.bind(this));\n $(document.body).on('wc_fragments_refreshed wc_fragments_loaded', this.onCartFragmentsChanged.bind(this));\n }\n\n async onCartUpdated(e) {\n if (window.wcPPCPCartData) {\n await this.refreshData(window.wcPPCPCartData);\n } else {\n await this.refreshData(null);\n }\n setSetting('queryParams', this.data.queryParams);\n this.trigger('cartUpdated', this);\n }\n\n async onUpdatedCheckout(e) {\n await this.refreshData(window.wcPPCPCartData ? window.wcPPCPCartData : null);\n setSetting('queryParams', this.data.queryParams);\n this.trigger('updatedCheckout', this);\n }\n\n onCartFragmentsChanged() {\n // fetch updated cart data\n setTimeout(() => {\n if (window.wcPPCPMiniCartUpdate) {\n this.data = {...this.data, ...wcPPCPMiniCartUpdate};\n }\n this.trigger('fragmentsChanged', this);\n }, 250);\n }\n\n getData() {\n return getSetting('cart');\n }\n\n needsShipping() {\n return this.data?.needsShipping;\n }\n\n async refreshData(data = null) {\n if (data) {\n this.data = {...this.data, ...data};\n } else {\n if (!this.processing) {\n try {\n this.processing = true;\n const response = await apiFetch({\n method: 'POST',\n url: getRestRoute('cart/refresh'),\n data: {page: this.page},\n });\n this.data = {...this.data, ...response.cart};\n this.data.queryParams = response.queryParams;\n } catch (error) {\n console.log(error);\n } finally {\n this.processing = false;\n }\n }\n }\n }\n\n async addToCart(data) {\n return apiFetch({\n method: 'POST',\n url: getRestRoute('cart/item'),\n data: this.applyFilters('addToCartData', data, this)\n }).then(response => {\n return this.sanitizeResponse(response);\n }).catch(error => {\n throw error;\n })\n }\n\n async createOrder(data) {\n return apiFetch({\n method: 'POST',\n url: getRestRoute('cart/order'),\n data\n }).then(orderId => {\n return this.sanitizeResponse(orderId);\n });\n }\n\n async doOrderPay(payment_method) {\n const order = getSetting('order');\n return apiFetch({\n method: 'POST',\n url: getRestRoute('order/pay'),\n data: {\n payment_method,\n ...order\n }\n }).then(response => this.sanitizeResponse(response));\n }\n\n getTotal() {\n return this.data?.total;\n }\n\n sanitizeResponse(response) {\n if (typeof response === 'string') {\n response = response.replace(/<[^>]*>/g, '');\n } else if (Array.isArray(response)) {\n // some 3rd party plugins manipulate the WordPress REST API response\n // and make it an array\n response = this.sanitizeResponse(response[0]);\n }\n return response;\n }\n}\n\nexport default new Cart();","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _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\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}","import {createHooks} from \"@wordpress/hooks\";\n\nclass Event {\n\n constructor() {\n this.hooks = createHooks();\n }\n\n on(event, callback, priority = 10) {\n this.hooks.addAction(event, 'wcPPCP', callback, priority);\n }\n\n trigger(event, ...args) {\n this.hooks.doAction(event, ...args);\n }\n\n addFilter(event, callback, priority = 10) {\n this.hooks.addFilter(event, 'wcPPCP', callback, priority);\n }\n\n applyFilters(event, ...args) {\n return this.hooks.applyFilters(event, ...args);\n }\n\n}\n\nexport default Event;"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","_defineProperty","configurable","writable","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","info","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","_createClass","protoProps","staticProps","_assertThisInitialized","ReferenceError","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_typeof","iterator","constructor","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","window","Cart","subClass","superClass","create","data","getSetting","page","processing","$","document","body","on","onCartUpdated","onUpdatedCheckout","onCartFragmentsChanged","e","wcPPCPCartData","refreshData","setSetting","queryParams","trigger","setTimeout","wcPPCPMiniCartUpdate","needsShipping","apiFetch","method","url","getRestRoute","response","cart","console","log","applyFilters","sanitizeResponse","catch","orderId","payment_method","order","total","replace","Array","isArray","Event","hooks","createHooks","event","callback","priority","addAction","doAction","addFilter"],"sourceRoot":""}