/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js":
/*!*********************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   enableMarginControlOnBlocks: () => (/* binding */ enableMarginControlOnBlocks)\n/* harmony export */ });\nvar addFilter = wp.hooks.addFilter;\n// Enable spacing control on the following blocks\nvar enableMarginControlOnBlocks = ['core/paragraph'];\n\n/**\n * Add margin control attribute to block.\n *\n * @param {object} settings Current block settings.\n * @param {string} name Name of block.\n *\n * @returns {object} Modified block settings.\n */\nvar addMarginControlAttribute = function addMarginControlAttribute(settings, name) {\n  // Do nothing if it's another block than our defined ones.\n  // if( name === 'core/column'){\n  //   if (!settings.attributes.border) {\n  //     Object.assign(settings.attributes, {\n  //       border: {\n  //         type: 'object',\n  //         default: {\n  //           top: '0px',\n  //           left: '0px',\n  //           right: '0px',\n  //           bottom: '0px',\n  //         },\n  //       },\n  //     });\n  //   }\n  //   if (!settings.attributes.borderColor) {\n  //     Object.assign(settings.attributes, {\n  //       borderColor: {\n  //         type: 'string',\n  //         default: '#fff',\n  //       },\n  //     });\n  //   }\n  // }\n\n  if (!enableMarginControlOnBlocks.includes(name)) {\n    return settings;\n  }\n  if (!settings.attributes.margin) {\n    Object.assign(settings.attributes, {\n      margin: {\n        type: 'object',\n        \"default\": {\n          top: '0px',\n          left: '0px',\n          right: '0px',\n          bottom: '30px'\n        }\n      }\n    });\n  }\n  if (!settings.attributes.paddingBlock) {\n    Object.assign(settings.attributes, {\n      paddingBlock: {\n        type: 'object',\n        \"default\": {\n          top: '0px',\n          left: '0px',\n          right: '0px',\n          bottom: '0px'\n        }\n      }\n    });\n  }\n  return settings;\n};\naddFilter('blocks.registerBlockType', 'ywpi-extend-blocks/attribute/margin', addMarginControlAttribute);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/margin-padding/edit.js":
/*!***********************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/margin-padding/edit.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js\");\nvar createHigherOrderComponent = wp.compose.createHigherOrderComponent;\nvar Fragment = wp.element.Fragment;\n\n\nvar addFilter = wp.hooks.addFilter;\nvar __ = wp.i18n.__;\n\n\n/**\n * Create HOC to add margin control to inspector controls of block.\n */\nvar withMarginControl = createHigherOrderComponent(function (BlockEdit) {\n  return function (props) {\n    // Do nothing if it's another block than our defined ones.\n    if (!_add_attributes__WEBPACK_IMPORTED_MODULE_2__.enableMarginControlOnBlocks.includes(props.name)) {\n      return /*#__PURE__*/React.createElement(BlockEdit, props);\n    }\n    var units = (0,_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.__experimentalUseCustomUnits)({\n      availableUnits: ['px']\n    });\n    var attributes = props.attributes,\n      setAttributes = props.setAttributes;\n    var margin = attributes.margin,\n      paddingBlock = attributes.paddingBlock;\n    var style = '';\n    if (paddingBlock) {\n      style = \"#block-\".concat(props.clientId, \" { padding-top: \").concat(paddingBlock.top, \";padding-bottom: \").concat(paddingBlock.bottom, \";padding-left: \").concat(paddingBlock.left, \";padding-right: \").concat(paddingBlock.right, \";}\");\n    }\n    if (margin) {\n      style += \" #block-\".concat(props.clientId, \" { margin-top: \").concat(margin.top, \";margin-bottom: \").concat(margin.bottom, \";margin-left: \").concat(margin.left, \";margin-right: \").concat(margin.right, \";}\");\n    }\n    return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(\"style\", null, style), /*#__PURE__*/React.createElement(BlockEdit, props), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, {\n      title: __('Dimensions', 'yith-woocommerce-pdf-invoice'),\n      initialOpen: true\n    }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.__experimentalBoxControl, {\n      values: margin,\n      label: __('Margin', 'yith-woocommerce-pdf-invoice'),\n      units: units,\n      allowReset: false,\n      onChange: function onChange(nextValues) {\n        return setAttributes({\n          margin: nextValues\n        });\n      },\n      splitOnAxis: false\n    }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.__experimentalBoxControl, {\n      values: paddingBlock,\n      label: __('Padding', 'yith-woocommerce-pdf-invoice'),\n      units: units,\n      allowReset: false,\n      onChange: function onChange(nextValues) {\n        return setAttributes({\n          paddingBlock: nextValues\n        });\n      },\n      splitOnAxis: false\n    }))));\n  };\n}, 'withMarginControl');\naddFilter('editor.BlockEdit', 'ywpar-extend-blocks/with-margin-control', withMarginControl);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/margin-padding/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/margin-padding/index.js":
/*!************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/margin-padding/index.js ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/save.js\");\n\n\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/margin-padding/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/margin-padding/save.js":
/*!***********************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/margin-padding/save.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash.assign */ \"./node_modules/lodash.assign/index.js\");\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/add-attributes.js\");\n\n\nvar addFilter = wp.hooks.addFilter;\n/**\n * Add margin style attribute to save element of block.\n *\n * @param {object} saveElementProps Props of save element.\n * @param {Object} blockType Block type information.\n * @param {Object} attributes Attributes of block.\n *\n * @returns {object} Modified props of save element.\n */\nvar addMarginExtraProps = function addMarginExtraProps(saveElementProps, blockType, attributes) {\n  // Do nothing if it's another block than our defined ones.\n  if (!_add_attributes__WEBPACK_IMPORTED_MODULE_1__.enableMarginControlOnBlocks.includes(blockType.name)) {\n    return saveElementProps;\n  }\n  var style = saveElementProps.style;\n  var margin = attributes.margin,\n    paddingBlock = attributes.paddingBlock;\n  if (!margin && !paddingBlock) {\n    return saveElementProps;\n  }\n  if (margin) {\n    lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(style, {\n      marginTop: margin.top,\n      marginBottom: margin.bottom,\n      marginLeft: margin.left,\n      marginRight: margin.right\n    });\n  }\n  if (paddingBlock) {\n    lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(style, {\n      paddingTop: paddingBlock.top,\n      paddingBottom: paddingBlock.bottom,\n      paddingLeft: paddingBlock.left,\n      paddingRight: paddingBlock.right\n    });\n  }\n  lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(saveElementProps, {\n    style: style\n  });\n  return saveElementProps;\n};\naddFilter('blocks.getSaveContent.extraProps', 'ywpi-extend-blocks/get-save-content/extra-props', addMarginExtraProps);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/margin-padding/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   enableWidthControlOnBlocks: () => (/* binding */ enableWidthControlOnBlocks)\n/* harmony export */ });\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash.assign */ \"./node_modules/lodash.assign/index.js\");\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);\n\nvar addFilter = wp.hooks.addFilter;\n\n// Enable spacing control on the following blocks\nvar enableWidthControlOnBlocks = ['core/separator'];\n\n/**\n * Add width control attribute to block.\n *\n * @param {object} settings Current block settings.\n * @param {string} name Name of block.\n *\n * @returns {object} Modified block settings.\n */\nvar addWidthControlAttribute = function addWidthControlAttribute(settings, name) {\n  // Do nothing if it's another block than our defined ones.\n  if (!enableWidthControlOnBlocks.includes(name)) {\n    return settings;\n  }\n\n  // Use Lodash's assign to gracefully handle if attributes are undefined\n  settings.attributes = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(settings.attributes, {\n    width: {\n      type: 'number',\n      \"default\": 1\n    }\n  });\n  return settings;\n};\naddFilter('blocks.registerBlockType', 'ywpi-extend-blocks/attribute/width', addWidthControlAttribute);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/separator/block-styles.js":
/*!**************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/separator/block-styles.js ***!
  \**************************************************************************/
/***/ (() => {

eval("var __ = wp.i18n.__;\nwp.blocks.registerBlockStyle('core/separator', {\n  name: 'dotted',\n  label: __('Dotted', 'yith-woocommerce-pdf-invoice'),\n  customColor: '#ccc'\n});\nwp.blocks.registerBlockStyle('core/separator', {\n  name: 'dashed',\n  label: __('Dashed', 'yith-woocommerce-pdf-invoice'),\n  customColor: '#ccc'\n});\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/separator/block-styles.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/separator/edit.js":
/*!******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/separator/edit.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n\n\nvar createHigherOrderComponent = wp.compose.createHigherOrderComponent;\nvar Fragment = wp.element.Fragment;\nvar _wp$components = wp.components,\n  PanelBody = _wp$components.PanelBody,\n  RangeControl = _wp$components.RangeControl;\nvar addFilter = wp.hooks.addFilter;\nvar __ = wp.i18n.__;\n\n\n/**\n * Create HOC to add spacing control to inspector controls of block.\n */\nvar withWidthControl = createHigherOrderComponent(function (BlockEdit) {\n  return function (props) {\n    // Do nothing if it's another block than our defined ones.\n    if (!_add_attributes__WEBPACK_IMPORTED_MODULE_2__.enableWidthControlOnBlocks.includes(props.name)) {\n      return /*#__PURE__*/React.createElement(BlockEdit, props);\n    }\n    var width = props.attributes.width;\n    if (width) {\n      var classes = typeof props.attributes.className !== 'undefined' ? props.attributes.className.split(' ') : [];\n      var classList = [];\n      for (var i = 0; i < classes.length; i++) {\n        if (classes[i].includes('has-width-')) {\n          continue;\n        }\n        classList = [].concat(_toConsumableArray(classList), [classes[i]]);\n      }\n      var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-width-\".concat(width), width));\n      classList = [].concat(_toConsumableArray(classList), [className]);\n      props.attributes.className = classList.join(' ');\n    }\n    return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BlockEdit, props), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {\n      title: __('Additional Settings'),\n      initialOpen: true\n    }, /*#__PURE__*/React.createElement(RangeControl, {\n      label: __('Height', 'yith-woocommerce-pdf-invoice'),\n      value: width,\n      onChange: function onChange(value) {\n        props.setAttributes({\n          width: value\n        });\n      },\n      min: 1,\n      max: 5\n    }))));\n  };\n}, 'withWidthControl');\naddFilter('editor.BlockEdit', 'ywpar-extend-blocks/with-width-control', withWidthControl);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/separator/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/separator/index.js":
/*!*******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/separator/index.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/separator/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/separator/save.js\");\n/* harmony import */ var _block_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block-styles */ \"./includes/pdf-builder/editor/src/blocks/separator/block-styles.js\");\n/* harmony import */ var _block_styles__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_block_styles__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/separator/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/separator/save.js":
/*!******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/separator/save.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash.assign */ \"./node_modules/lodash.assign/index.js\");\n/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _add_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./add-attributes */ \"./includes/pdf-builder/editor/src/blocks/separator/add-attributes.js\");\n\n\n/**\n * Add margin style attribute to save element of block.\n *\n * @param {object} saveElementProps Props of save element.\n * @param {Object} blockType Block type information.\n * @param {Object} attributes Attributes of block.\n *\n * @returns {object} Modified props of save element.\n */\nvar addWidthExtraProps = function addWidthExtraProps(saveElementProps, blockType, attributes) {\n  // Do nothing if it's another block than our defined ones.\n  if (!_add_attributes__WEBPACK_IMPORTED_MODULE_1__.enableWidthControlOnBlocks.includes(blockType.name)) {\n    return saveElementProps;\n  }\n  var style = saveElementProps.style;\n  lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(style, {\n    'border-top-width': attributes.width + 'px'\n  });\n  lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()(saveElementProps, {\n    style: style\n  });\n  return saveElementProps;\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/separator/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/block.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/block.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   placeholders: () => (/* binding */ placeholders),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\nvar attributes = {\n  title: {\n    type: 'text',\n    \"default\": '{{billing_first_name}} {{billing_last_name}}<br>{{billing_company}}<br>{{billing_address_1}}<br>{{billing_address_2}}<br>' + '{{billing_city}}  {{billing_state}} {{billing_postcode}}<br>{{billing_country}}'\n  },\n  \"textAlign\": {\n    \"type\": \"string\",\n    \"default\": \"right\"\n  }\n};\nvar supports = {\n  spacing: {\n    padding: true // Enable padding UI control.\n  },\n  color: {\n    // Disable text color support.\n    text: true\n  },\n  typography: {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": true,\n    \"__experimentalFontWeight\": true,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": true,\n      \"textTransform\": true\n    }\n  }\n};\nvar placeholders = '{{' + ywpi_pdf_template.customer_info_placeholders.join('}}, {{') + '}}';\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/edit.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/edit.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nfunction EditorCustomerInfo(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign)),\n    style: style\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"ywpi-customer-info\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'p',\n    value: title,\n    className: \"pdf-customer-info\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        title: value\n      });\n    },\n    textAlign: textAlign\n  }, blockProps))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorCustomerInfo);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/index.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/index.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Customer info', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the information about the customer who requested the order. Placeholders available:', 'yith-woocommerce-pdf-invoice') + ' ' + _block__WEBPACK_IMPORTED_MODULE_2__.placeholders,\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-customer-info', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/save.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/save.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(\"p\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    value: title\n  }));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-date/block.js":
/*!*******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-date/block.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n\nvar attributes = {\n  labelOrderCreationDate: {\n    type: 'text',\n    \"default\": 'Order date: '\n  },\n  labelCurrentDate: {\n    type: 'text',\n    \"default\": 'Date: '\n  },\n  labelOrderCompletedDate: {\n    type: 'text',\n    \"default\": 'Order completed on: '\n  },\n  labelDocumentCreationDate: {\n    type: 'text',\n    \"default\": 'Invoice date: '\n  },\n  dateType: {\n    type: \"string\",\n    \"default\": \"current\"\n  },\n  textAlign: {\n    type: \"string\",\n    \"default\": \"left\"\n  }\n};\nvar supports = {\n  style: {\n    type: 'object',\n    \"default\": {\n      color: {\n        text: '#000'\n      }\n    }\n  },\n  spacing: {\n    padding: true,\n    // Enable padding UI control.\n    margin: true\n  },\n  color: {\n    // Disable text color support.\n    text: true,\n    link: false\n  },\n  typography: {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": true,\n    \"__experimentalFontWeight\": true,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": true,\n      \"textTransform\": true\n    }\n  }\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-date/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-date/edit.js":
/*!******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-date/edit.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nfunction EditorDate(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var labelOrderCreationDate = attributes.labelOrderCreationDate,\n    labelOrderCompletedDate = attributes.labelOrderCompletedDate,\n    labelCurrentDate = attributes.labelCurrentDate,\n    labelDocumentCreationDate = attributes.labelDocumentCreationDate,\n    textAlign = attributes.textAlign,\n    fontSize = attributes.fontSize,\n    dateType = attributes.dateType;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(_defineProperty(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign), \"has-\".concat(fontSize, \"-font-size\"), fontSize)),\n    style: style\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Order Date type', 'yith-woocommerce-pdf-invoice'),\n    className: \"blocks-order-date-settings\"\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RadioControl, {\n    label: \"\",\n    help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Choose the date information to display.', 'Builder pdf template: description option', 'yith-woocommerce-pdf-invoice'),\n    selected: dateType,\n    options: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Order creation date', 'Builder pdf template: option', 'yith-woocommerce-pdf-invoice'),\n      value: 'order_created'\n    }, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Order completed date', 'Builder pdf template: option', 'yith-woocommerce-pdf-invoice'),\n      value: 'order_completed'\n    }, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Invoice creation date', 'Builder pdf template: option', 'yith-woocommerce-pdf-invoice'),\n      value: 'invoice_created'\n    }, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Current date', 'Builder pdf template: option', 'yith-woocommerce-pdf-invoice'),\n      value: 'current'\n    }],\n    onChange: function onChange(newAlign) {\n      return setAttributes({\n        dateType: newAlign\n      });\n    }\n  }))), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"ywpi-order-date\"\n  }, dateType === 'order_created' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'span',\n    value: labelOrderCreationDate,\n    className: \"pdf_order_date_item\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        labelOrderCreationDate: value\n      });\n    }\n  }), ywpi_pdf_template.today, \" \"), dateType === 'order_completed' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'span',\n    value: labelOrderCompletedDate,\n    className: \"pdf_order_date_item\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        labelOrderCompletedDate: value\n      });\n    }\n  }), ywpi_pdf_template.today, \" \"), dateType === 'invoice_created' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'span',\n    value: labelDocumentCreationDate,\n    className: \"pdf_order_date_item\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        labelDocumentCreationDate: value\n      });\n    }\n  }), ywpi_pdf_template.today, \" \"), dateType === 'current' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'span',\n    value: labelCurrentDate,\n    className: \"pdf_order_date_item\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        labelCurrentDate: value\n      });\n    }\n  }), ywpi_pdf_template.today)));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorDate);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-date/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-date/index.js":
/*!*******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-date/index.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-date/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-date/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-date/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Date', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the information about the date inside the document.', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-date', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-date/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-date/save.js":
/*!******************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-date/save.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var labelOrderCreationDate = attributes.labelOrderCreationDate,\n    labelOrderCompletedDate = attributes.labelOrderCompletedDate,\n    labelCurrentDate = attributes.labelCurrentDate,\n    labelDocumentCreationDate = attributes.labelDocumentCreationDate,\n    textAlign = attributes.textAlign,\n    dateType = attributes.dateType;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, dateType === 'order_created' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    tagName: 'span',\n    value: labelOrderCreationDate,\n    className: \"pdf_order_date_item\"\n  }), \" \", '{{order_created}}', \" \"), dateType === 'order_completed' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    tagName: 'span',\n    value: labelOrderCompletedDate,\n    className: \"pdf_order_date_item\"\n  }), \" \", '{{order_completed}}', \" \"), dateType === 'invoice_created' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    tagName: 'span',\n    value: labelDocumentCreationDate,\n    className: \"pdf_order_date_item\"\n  }), \" \", '{{invoice_created}}', \" \"), dateType === 'current' && /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    tagName: 'span',\n    value: labelCurrentDate,\n    className: \"pdf_order_date_item\"\n  }), \" \", '{{current_date}}', \" \"));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-date/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-document-number/block.js":
/*!******************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-document-number/block.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n\nvar attributes = {\n  title: {\n    type: 'text',\n    \"default\": 'Invoice #{{document_number}}'\n  },\n  textAlign: {\n    type: \"string\",\n    \"default\": \"left\"\n  }\n};\nvar supports = {\n  color: {\n    // Disable text color support.\n    text: true\n  },\n  \"typography\": {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": false,\n    \"__experimentalFontWeight\": false,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalTextTransform\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": false,\n      \"textTransform\": true\n    }\n  }\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-document-number/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-document-number/edit.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-document-number/edit.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nfunction EditorDocumentNumber(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var title = attributes.title,\n    textAlign = attributes.textAlign,\n    fontSize = attributes.fontSize;\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({\n    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign))\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText, {\n    tagName: 'p',\n    value: title,\n    className: \"pdf_document_number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        title: value\n      });\n    },\n    textAlign: textAlign\n  })));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorDocumentNumber);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-document-number/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-document-number/index.js":
/*!******************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-document-number/index.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-document-number/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-document-number/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-document-number/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Document number', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the number of the document. Use the placeholder {{document_number}} to show the number of the document.', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-document-number', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-document-number/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-document-number/save.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-document-number/save.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(\"p\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    value: title\n  }));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-document-number/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/block.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/block.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n\nvar attributes = {\n  titleInvoice: {\n    type: 'text',\n    \"default\": 'Order amount {{order_amount}}'\n  },\n  titleCreditNote: {\n    type: 'text',\n    \"default\": 'Refunded amount {{refunded_amount}}'\n  },\n  textAlign: {\n    type: 'text'\n  },\n  invoiceType: {\n    type: 'boolean',\n    \"default\": true\n  }\n};\nvar supports = {\n  color: {\n    // Disable text color support.\n    text: true\n  },\n  \"typography\": {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": false,\n    \"__experimentalFontWeight\": false,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalTextTransform\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": false,\n      \"textTransform\": true\n    }\n  }\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/edit.js":
/*!**************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/edit.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nfunction EditorOrderAmount(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var titleInvoice = attributes.titleInvoice,\n    titleCreditNote = attributes.titleCreditNote,\n    textAlign = attributes.textAlign,\n    invoiceType = attributes.invoiceType;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('ywpi-order-amount', _defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign)),\n    style: style\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product Table settings', 'yith-woocommerce-pdf-invoice'),\n    className: \"blocks-table-settings\"\n  }, \" \", /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ButtonGroup, null, /*#__PURE__*/React.createElement(\"p\", {\n    className: \"document-type\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Document type', 'PDF template builder product table label for the option to select the document type', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {\n    variant: invoiceType ? 'primary' : 'isSecondary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: true\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Invoice', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {\n    variant: invoiceType ? 'isSecondary' : 'primary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: false\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Credit note', 'yith-woocommerce-pdf-invoice'))))), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(\"div\", blockProps, invoiceType ? /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'p',\n    value: titleInvoice,\n    className: \"pdf_order_number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        titleInvoice: value\n      });\n    },\n    textAlign: textAlign\n  }) : /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, {\n    tagName: 'p',\n    value: titleCreditNote,\n    className: \"pdf_order_number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        titleCreditNote: value\n      });\n    },\n    textAlign: textAlign\n  })));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorOrderAmount);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/index.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/index.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Order amount', 'PDF template block title', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Add the amount of the order. Use the placeholder {{order_amount}} to show the order amount or {{refunded_amount}} for credit notes.', 'PDF template block order amount block description', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-order-amount', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/save.js":
/*!**************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/save.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var titleInvoice = attributes.titleInvoice,\n    invoiceType = attributes.invoiceType,\n    titleCreditNote = attributes.titleCreditNote,\n    textAlign = attributes.textAlign;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(\"p\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    value: invoiceType ? titleInvoice : titleCreditNote\n  }));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-number/block.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-number/block.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n\nvar attributes = {\n  title: {\n    type: 'text',\n    \"default\": 'Order #{{order_number}}'\n  },\n  \"textAlign\": {\n    \"type\": \"string\"\n  }\n};\nvar supports = {\n  color: {\n    // Disable text color support.\n    text: true\n  },\n  \"typography\": {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": false,\n    \"__experimentalFontWeight\": false,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalTextTransform\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": false,\n      \"textTransform\": true\n    }\n  }\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-number/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-number/edit.js":
/*!**************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-number/edit.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nfunction EditorOrderNumber(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('ywpi-order-number', _defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign)),\n    style: style\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(\"div\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText, {\n    tagName: 'p',\n    value: title,\n    className: \"pdf_order_number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        title: value\n      });\n    },\n    textAlign: textAlign\n  })));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorOrderNumber);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-number/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-number/index.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-number/index.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-number/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-number/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-number/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Order number', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the number of the order. Use the placeholder {{order_number}} to show the order number.', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-order-number', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-number/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-order-number/save.js":
/*!**************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-order-number/save.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(\"p\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    value: title\n  }));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-order-number/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-table/block.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-table/block.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n\nvar attributes = {\n  invoiceType: {\n    type: 'boolean',\n    \"default\": true\n  },\n  thumbnails: {\n    type: 'boolean',\n    \"default\": true\n  },\n  productName: {\n    type: 'boolean',\n    \"default\": true\n  },\n  productNameLabel: {\n    type: 'text',\n    \"default\": 'Product'\n  },\n  productSku: {\n    type: 'boolean',\n    \"default\": true\n  },\n  productDescription: {\n    type: 'boolean',\n    \"default\": false\n  },\n  productWeight: {\n    type: 'boolean',\n    \"default\": false\n  },\n  productDimensions: {\n    type: 'boolean',\n    \"default\": false\n  },\n  quantity: {\n    type: 'boolean',\n    \"default\": true\n  },\n  quantityLabel: {\n    type: 'text',\n    \"default\": 'Qty'\n  },\n  regularPrice: {\n    type: 'boolean',\n    \"default\": false\n  },\n  regularPriceLabel: {\n    type: 'text',\n    \"default\": 'Regular price'\n  },\n  salePrice: {\n    type: 'boolean',\n    \"default\": true\n  },\n  salePriceLabel: {\n    type: 'text',\n    \"default\": 'Sale price'\n  },\n  price: {\n    type: 'boolean',\n    \"default\": true\n  },\n  priceLabel: {\n    type: 'text',\n    \"default\": 'Price'\n  },\n  discountPercentage: {\n    type: 'boolean',\n    \"default\": false\n  },\n  discountPercentageLabel: {\n    type: 'text',\n    \"default\": 'Discount Percentage'\n  },\n  tax: {\n    type: 'boolean',\n    \"default\": true\n  },\n  taxLabel: {\n    type: 'text',\n    \"default\": 'Tax'\n  },\n  percentageTax: {\n    type: 'boolean',\n    \"default\": false\n  },\n  percentageTaxLabel: {\n    type: 'text',\n    \"default\": 'Percentage tax'\n  },\n  productSubtotal: {\n    type: 'boolean',\n    \"default\": true\n  },\n  productSubtotalLabel: {\n    type: 'text',\n    \"default\": 'Total'\n  },\n  productTotal: {\n    type: 'boolean',\n    \"default\": true\n  },\n  productTotalLabel: {\n    type: 'text',\n    \"default\": 'Total (inc.tax)'\n  },\n  refundDescription: {\n    type: 'boolean',\n    \"default\": true\n  },\n  refundDescriptionLabel: {\n    type: 'text',\n    \"default\": 'Description'\n  },\n  textAlign: {\n    type: \"string\",\n    \"default\": \"left\"\n  },\n  fontSize: {\n    type: 'string',\n    \"default\": 'small'\n  },\n  titlesFontSize: {\n    type: 'number',\n    \"default\": 13\n  },\n  titlesFontColor: {\n    type: 'string',\n    \"default\": '#2e2e2e'\n  },\n  titlesTextTransform: {\n    type: 'string',\n    \"default\": 'none'\n  },\n  titlesBorderColor: {\n    type: 'string',\n    \"default\": '#cccccc'\n  },\n  itemsFontSize: {\n    type: 'number',\n    \"default\": 13\n  },\n  itemsFontColor: {\n    type: 'string',\n    \"default\": '#000000'\n  },\n  itemsTextTransform: {\n    type: 'string',\n    \"default\": 'none'\n  },\n  itemsBorderColor: {\n    type: 'string',\n    \"default\": '#ffffff'\n  },\n  feeItems: {\n    type: 'boolean',\n    \"default\": true\n  },\n  shippingItems: {\n    type: 'boolean',\n    \"default\": true\n  }\n};\nvar supports = {\n  \"anchor\": true,\n  spacing: {\n    padding: true // Enable padding UI control.\n  }\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-table/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-table/edit.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-table/edit.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _components_OrderItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/OrderItem */ \"./includes/pdf-builder/editor/src/components/OrderItem/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _packages_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../packages/constants */ \"./includes/pdf-builder/editor/src/packages/constants.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nfunction EditorTable(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes;\n  var style = props.style;\n  var invoiceType = attributes.invoiceType,\n    thumbnails = attributes.thumbnails,\n    productName = attributes.productName,\n    productNameLabel = attributes.productNameLabel,\n    productDescription = attributes.productDescription,\n    productWeight = attributes.productWeight,\n    productDimensions = attributes.productDimensions,\n    price = attributes.price,\n    priceLabel = attributes.priceLabel,\n    quantity = attributes.quantity,\n    quantityLabel = attributes.quantityLabel,\n    regularPrice = attributes.regularPrice,\n    regularPriceLabel = attributes.regularPriceLabel,\n    salePrice = attributes.salePrice,\n    salePriceLabel = attributes.salePriceLabel,\n    discountPercentage = attributes.discountPercentage,\n    discountPercentageLabel = attributes.discountPercentageLabel,\n    tax = attributes.tax,\n    taxLabel = attributes.taxLabel,\n    percentageTax = attributes.percentageTax,\n    percentageTaxLabel = attributes.percentageTaxLabel,\n    productSubtotal = attributes.productSubtotal,\n    productSubtotalLabel = attributes.productSubtotalLabel,\n    productTotal = attributes.productTotal,\n    productTotalLabel = attributes.productTotalLabel,\n    fontSize = attributes.fontSize,\n    textAlign = attributes.textAlign,\n    productSku = attributes.productSku,\n    refundDescription = attributes.refundDescription,\n    refundDescriptionLabel = attributes.refundDescriptionLabel,\n    shippingItems = attributes.shippingItems,\n    feeItems = attributes.feeItems;\n  var titlesFontColor = attributes.titlesFontColor,\n    titlesBorderColor = attributes.titlesBorderColor,\n    titlesFontSize = attributes.titlesFontSize,\n    titlesTextTransform = attributes.titlesTextTransform;\n  var itemsFontColor = attributes.itemsFontColor,\n    itemsBorderColor = attributes.itemsBorderColor,\n    itemsFontSize = attributes.itemsFontSize,\n    itemsTextTransform = attributes.itemsTextTransform;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('ywpi_template', _defineProperty(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign), \"has-\".concat(fontSize, \"-font-size\"), fontSize)),\n    style: _objectSpread({\n      borderBottomColor: titlesBorderColor\n    }, style)\n  });\n  var theadBlockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    style: {\n      color: titlesFontColor,\n      borderColor: titlesBorderColor,\n      fontSize: titlesFontSize,\n      textTransform: titlesTextTransform\n    }\n  });\n  var theadBlockPropsNumber = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    style: {\n      color: titlesFontColor,\n      borderColor: titlesBorderColor,\n      fontSize: titlesFontSize,\n      textTransform: titlesTextTransform,\n      textAlign: 'right'\n    }\n  });\n  var columnsNum = 1;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product Table settings', 'yith-woocommerce-pdf-invoice'),\n    className: \"blocks-table-settings\"\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ButtonGroup, null, /*#__PURE__*/React.createElement(\"p\", {\n    className: \"document-type\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Document type', 'PDF template builder product table label for the option to select the document type', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {\n    variant: invoiceType ? 'primary' : 'isSecondary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: true\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Invoice', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {\n    variant: invoiceType ? 'isSecondary' : 'primary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: false\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Credit note', 'yith-woocommerce-pdf-invoice'))), /*#__PURE__*/React.createElement(\"p\", {\n    className: \"show-hide-columns\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Show/Hide table columns', 'PDF template builder product table label for the option to show or hide columns', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product thumbnail', 'yith-woocommerce-pdf-invoice'),\n    checked: thumbnails,\n    onChange: function onChange(value) {\n      return setAttributes({\n        thumbnails: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product name', 'yith-woocommerce-pdf-invoice'),\n    checked: productName,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productName: value\n      });\n    }\n  }), productName && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"product-name-dep\"\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product SKU', 'yith-woocommerce-pdf-invoice'),\n    checked: productSku,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productSku: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Description', 'yith-woocommerce-pdf-invoice'),\n    checked: productDescription,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productDescription: value\n      });\n    }\n  }), invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Weight', 'yith-woocommerce-pdf-invoice'),\n    checked: productWeight,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productWeight: value\n      });\n    }\n  }), invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Dimensions', 'yith-woocommerce-pdf-invoice'),\n    checked: productDimensions,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productDimensions: value\n      });\n    }\n  })), !invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Refund description', 'yith-woocommerce-pdf-invoice'),\n    checked: refundDescription,\n    onChange: function onChange(value) {\n      return setAttributes({\n        refundDescription: value\n      });\n    }\n  }), invoiceType && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Quantity', 'yith-woocommerce-pdf-invoice'),\n    checked: quantity,\n    onChange: function onChange(value) {\n      return setAttributes({\n        quantity: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Regular price', 'yith-woocommerce-pdf-invoice'),\n    checked: regularPrice,\n    onChange: function onChange(value) {\n      return setAttributes({\n        regularPrice: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Sale price', 'yith-woocommerce-pdf-invoice'),\n    checked: salePrice,\n    onChange: function onChange(value) {\n      return setAttributes({\n        salePrice: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Price', 'yith-woocommerce-pdf-invoice'),\n    checked: price,\n    onChange: function onChange(value) {\n      return setAttributes({\n        price: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Discount percentage', 'yith-woocommerce-pdf-invoice'),\n    checked: discountPercentage,\n    onChange: function onChange(value) {\n      return setAttributes({\n        discountPercentage: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tax', 'yith-woocommerce-pdf-invoice'),\n    checked: tax,\n    onChange: function onChange(value) {\n      return setAttributes({\n        tax: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Show percentage tax', 'yith-woocommerce-pdf-invoice'),\n    checked: percentageTax,\n    onChange: function onChange(value) {\n      return setAttributes({\n        percentageTax: value\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Total', 'yith-woocommerce-pdf-invoice'),\n    checked: productSubtotal,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productSubtotal: value\n      });\n    }\n  }), invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Total with taxes', 'yith-woocommerce-pdf-invoice'),\n    checked: productTotal,\n    onChange: function onChange(value) {\n      return setAttributes({\n        productTotal: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(\"p\", {\n    className: \"show-additional-items\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Show/Hide additional items', 'PDF template builder product table label for the option to show or hide additional items', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Fees', 'yith-woocommerce-pdf-invoice'),\n    checked: feeItems,\n    onChange: function onChange(value) {\n      setAttributes({\n        feeItems: value\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Shipping', 'yith-woocommerce-pdf-invoice'),\n    checked: shippingItems,\n    onChange: function onChange(value) {\n      return setAttributes({\n        shippingItems: value\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.__experimentalPanelColorGradientSettings, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Titles', 'yith-woocommerce-pdf-invoice'),\n    initialOpen: false,\n    settings: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          titlesFontColor: color\n        });\n      },\n      colorValue: titlesFontColor\n    }, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Border color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          titlesBorderColor: color\n        });\n      },\n      colorValue: titlesBorderColor\n    }]\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.FontSizePicker, {\n    fontSizes: _packages_constants__WEBPACK_IMPORTED_MODULE_5__.fontSizes,\n    value: titlesFontSize || 20,\n    fallbackFontSize: 20,\n    withSlider: false,\n    onChange: function onChange(newFontSize) {\n      setAttributes({\n        titlesFontSize: newFontSize\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.__experimentalTextTransformControl, {\n    value: titlesTextTransform,\n    onChange: function onChange(textTransform) {\n      setAttributes({\n        titlesTextTransform: textTransform\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.__experimentalPanelColorGradientSettings, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Items', 'yith-woocommerce-pdf-invoice'),\n    initialOpen: false,\n    settings: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          itemsFontColor: color\n        });\n      },\n      colorValue: itemsFontColor\n    }, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Border color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          itemsBorderColor: color\n        });\n      },\n      colorValue: itemsBorderColor\n    }]\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.FontSizePicker, {\n    fontSizes: _packages_constants__WEBPACK_IMPORTED_MODULE_5__.fontSizes,\n    value: itemsFontSize || 20,\n    fallbackFontSize: 20,\n    withSlider: false,\n    onChange: function onChange(newFontSize) {\n      setAttributes({\n        itemsFontSize: newFontSize\n      });\n    }\n  }), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.__experimentalTextTransformControl, {\n    value: itemsTextTransform,\n    onChange: function onChange(textTransform) {\n      setAttributes({\n        itemsTextTransform: textTransform\n      });\n    }\n  }))), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"ywpi_template-wrapper\"\n  }, /*#__PURE__*/React.createElement(\"table\", blockProps, /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", null, (thumbnails || productName) && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: productNameLabel,\n    className: \"pdf_product_table__header_item product_name\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        productNameLabel: value\n      });\n    },\n    colSpan: thumbnails && productName ? 2 : 1\n  }, theadBlockProps)), invoiceType && quantity && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: quantityLabel,\n    className: \"pdf_product_table__header_item quantity-field number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        quantityLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), !invoiceType && refundDescription && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: refundDescriptionLabel,\n    className: \"pdf_product_table__header_item refund-description-field\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        refundDescriptionLabel: value\n      });\n    }\n  }, theadBlockProps)), invoiceType && regularPrice && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: regularPriceLabel,\n    className: \"pdf_product_table__header_item regular-price number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        regularPriceLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && salePrice && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: salePriceLabel,\n    className: \"pdf_product_table__header_item sale-price number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        salePriceLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && price && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: priceLabel,\n    className: \"pdf_product_table__header_item price number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        priceLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && discountPercentage && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: discountPercentageLabel,\n    className: \"pdf_product_table__header_item discount-percentage number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        discountPercentageLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && tax && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: taxLabel,\n    className: \"pdf_product_table__header_item tax number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        taxLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && percentageTax && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: percentageTaxLabel,\n    className: \"pdf_product_table__header_item percentage-tax number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        percentageTaxLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), productSubtotal && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: productSubtotalLabel,\n    className: \"pdf_product_table__header_item product-subtotal number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        productSubtotalLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)), invoiceType && productTotal && columnsNum++ && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, _extends({\n    tagName: 'th',\n    value: productTotalLabel,\n    className: \"pdf_product_table__header_item product-total number\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        productTotalLabel: value\n      });\n    }\n  }, theadBlockPropsNumber)))), /*#__PURE__*/React.createElement(\"tbody\", null, _packages_constants__WEBPACK_IMPORTED_MODULE_5__.previewOrder.map(function (item, index) {\n    return /*#__PURE__*/React.createElement(_components_OrderItem__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n      key: index,\n      item: item,\n      show: attributes\n    });\n  }), feeItems && _packages_constants__WEBPACK_IMPORTED_MODULE_5__.previewFee.map(function (item, index) {\n    return /*#__PURE__*/React.createElement(_components_OrderItem__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n      key: \"fee-\".concat(index),\n      item: item,\n      show: attributes\n    });\n  }), shippingItems && _packages_constants__WEBPACK_IMPORTED_MODULE_5__.previewShipping.map(function (item, index) {\n    return /*#__PURE__*/React.createElement(_components_OrderItem__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n      key: \"shipping-\".concat(index),\n      item: item,\n      show: attributes\n    });\n  })))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorTable);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-table/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-table/index.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-table/index.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-table/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-table/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-table/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Product Table', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the product table inside the template.', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-products-table', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-table/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-table/save.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-table/save.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * WordPress dependencies\n */\n\n\n\nfunction save(props) {\n  var attributes = props.attributes,\n    style = props.style;\n  var invoiceType = attributes.invoiceType,\n    thumbnails = attributes.thumbnails,\n    productName = attributes.productName,\n    productNameLabel = attributes.productNameLabel,\n    price = attributes.price,\n    priceLabel = attributes.priceLabel,\n    quantity = attributes.quantity,\n    quantityLabel = attributes.quantityLabel,\n    regularPrice = attributes.regularPrice,\n    regularPriceLabel = attributes.regularPriceLabel,\n    salePrice = attributes.salePrice,\n    salePriceLabel = attributes.salePriceLabel,\n    discountPercentage = attributes.discountPercentage,\n    discountPercentageLabel = attributes.discountPercentageLabel,\n    tax = attributes.tax,\n    taxLabel = attributes.taxLabel,\n    percentageTax = attributes.percentageTax,\n    percentageTaxLabel = attributes.percentageTaxLabel,\n    productSubtotal = attributes.productSubtotal,\n    productSubtotalLabel = attributes.productSubtotalLabel,\n    productTotal = attributes.productTotal,\n    productTotalLabel = attributes.productTotalLabel,\n    fontSize = attributes.fontSize,\n    textAlign = attributes.textAlign,\n    refundDescription = attributes.refundDescription,\n    refundDescriptionLabel = attributes.refundDescriptionLabel;\n  var titlesFontColor = attributes.titlesFontColor,\n    titlesBorderColor = attributes.titlesBorderColor,\n    titlesFontSize = attributes.titlesFontSize,\n    titlesTextTransform = attributes.titlesTextTransform;\n  var itemsFontColor = attributes.itemsFontColor,\n    itemsBorderColor = attributes.itemsBorderColor,\n    itemsFontSize = attributes.itemsFontSize,\n    itemsTextTransform = attributes.itemsTextTransform;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ywpi_template', _defineProperty(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign), \"has-\".concat(fontSize, \"-font-size\"), fontSize));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({\n    className: className,\n    style: _objectSpread({\n      borderColor: titlesBorderColor\n    }, style)\n  });\n  var theadBlockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({\n    style: {\n      color: titlesFontColor,\n      borderColor: titlesBorderColor,\n      fontSize: titlesFontSize,\n      textTransform: titlesTextTransform\n    }\n  });\n  var theadBlockPropsNumber = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({\n    style: {\n      color: titlesFontColor,\n      borderColor: titlesBorderColor,\n      fontSize: titlesFontSize,\n      textTransform: titlesTextTransform,\n      textAlign: 'right'\n    }\n  });\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"ywpi_template\"\n  }, /*#__PURE__*/React.createElement(\"table\", _extends({}, blockProps, {\n    style: \"& td{ color: \".concat(itemsFontColor, \";border-bottom-color: \").concat(itemsBorderColor, \";font-size:\").concat(itemsFontSize, \"px;text-transform: \").concat(itemsTextTransform, \"}\")\n  }), /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", null, (thumbnails || productName) && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: productNameLabel,\n    className: \"pdf_product_table__header_item product-name\",\n    colSpan: thumbnails && productName ? 2 : 1\n  }, theadBlockProps)), !invoiceType && refundDescription && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: refundDescriptionLabel,\n    className: \"pdf_product_table__header_item refund-description\"\n  }, theadBlockProps)), invoiceType && quantity && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: quantityLabel,\n    className: \"pdf_product_table__header_item quantity-field number\"\n  }, theadBlockPropsNumber)), invoiceType && regularPrice && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: regularPriceLabel,\n    className: \"pdf_product_table__header_item regular-price number\"\n  }, theadBlockPropsNumber)), invoiceType && salePrice && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: salePriceLabel,\n    className: \"pdf_product_table__header_item sale-price number\"\n  }, theadBlockPropsNumber)), invoiceType && price && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: priceLabel,\n    className: \"pdf_product_table__header_item price number\"\n  }, theadBlockPropsNumber)), invoiceType && discountPercentage && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: discountPercentageLabel,\n    className: \"pdf_product_table__header_item discount-percentage number\"\n  }, theadBlockPropsNumber)), invoiceType && tax && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: taxLabel,\n    className: \"pdf_product_table__header_item tax number\"\n  }, theadBlockPropsNumber)), invoiceType && percentageTax && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: percentageTaxLabel,\n    className: \"pdf_product_table__header_item percentage-tax number\"\n  }, theadBlockPropsNumber)), productSubtotal && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: productSubtotalLabel,\n    className: \"pdf_product_table__header_item product-subtotal number\"\n  }, theadBlockPropsNumber)), invoiceType && productTotal && /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, _extends({\n    tagName: 'th',\n    value: productTotalLabel,\n    className: \"pdf_product_table__header_item product-total number\"\n  }, theadBlockPropsNumber)))), /*#__PURE__*/React.createElement(\"tbody\", null, '##table_content')));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-table/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/block.js":
/*!******************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/block.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\nvar attributes = {\n  invoiceType: {\n    type: 'boolean',\n    \"default\": true\n  },\n  color: {\n    type: 'string',\n    \"default\": '#000000'\n  },\n  backgroundColor: {\n    type: 'string',\n    \"default\": 'transparent'\n  },\n  fontSize: {\n    type: 'string',\n    \"default\": '13px'\n  },\n  subtotalLabelColor: {\n    type: 'string',\n    \"default\": '#000000'\n  },\n  subtotalLabelFontSize: {\n    type: 'string',\n    \"default\": '15px'\n  },\n  totalColor: {\n    type: 'string',\n    \"default\": '#000000'\n  },\n  totalFontSize: {\n    type: 'string',\n    \"default\": '17px'\n  },\n  subtotalInclusiveDiscount: {\n    type: 'boolean',\n    \"default\": true\n  },\n  showDiscount: {\n    type: 'boolean',\n    \"default\": true\n  },\n  showSubtotal: {\n    type: 'boolean',\n    \"default\": true\n  },\n  showTax: {\n    type: 'boolean',\n    \"default\": true\n  },\n  brokenDownTaxes: {\n    type: 'boolean',\n    \"default\": true\n  }\n};\nvar supports = {\n  'anchor': true\n};\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/edit.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/edit.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_OrderTotals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/OrderTotals */ \"./includes/pdf-builder/editor/src/components/OrderTotals/index.js\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _packages_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../packages/constants */ \"./includes/pdf-builder/editor/src/packages/constants.js\");\n\n\n\n\n\nfunction EditorProductTotals(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes;\n  var backgroundColor = attributes.backgroundColor,\n    fontSize = attributes.fontSize,\n    color = attributes.color;\n  var subtotalLabelColor = attributes.subtotalLabelColor,\n    subtotalLabelFontSize = attributes.subtotalLabelFontSize;\n  var totalColor = attributes.totalColor,\n    totalFontSize = attributes.totalFontSize;\n  var invoiceType = attributes.invoiceType,\n    subtotalInclusiveDiscount = attributes.subtotalInclusiveDiscount,\n    showDiscount = attributes.showDiscount,\n    brokenDownTaxes = attributes.brokenDownTaxes,\n    showSubtotal = attributes.showSubtotal,\n    showTax = attributes.showTax;\n  var tableProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({\n    className: 'order-totals-wrapper',\n    style: {\n      backgroundColor: backgroundColor,\n      fontSize: fontSize,\n      color: color\n    }\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Product Table settings', 'yith-woocommerce-pdf-invoice'),\n    className: \"blocks-table-settings\"\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, null, /*#__PURE__*/React.createElement(\"p\", {\n    className: \"document-type\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Document type', 'PDF template builder product table label for the option to select the document type', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, {\n    variant: invoiceType ? 'primary' : 'isSecondary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: true\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Invoice', 'yith-woocommerce-pdf-invoice')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, {\n    variant: invoiceType ? 'isSecondary' : 'primary',\n    onClick: function onClick() {\n      return setAttributes({\n        invoiceType: false\n      });\n    }\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Credit note', 'yith-woocommerce-pdf-invoice'))), /*#__PURE__*/React.createElement(\"p\", {\n    className: \"show-hide-columns\"\n  }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Show/Hide table columns', 'PDF template builder product table label for the option to show or hide columns', 'yith-woocommerce-pdf-invoice')), invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Order discount in the invoice summary amounts', 'yith-woocommerce-pdf-invoice'),\n    checked: showDiscount,\n    onChange: function onChange(value) {\n      return setAttributes({\n        showDiscount: value\n      });\n    }\n  }), invoiceType && showDiscount && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"product-name-dep\"\n  }, \" \", /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Order subtotal inclusive of order discount', 'yith-woocommerce-pdf-invoice'),\n    checked: subtotalInclusiveDiscount,\n    onChange: function onChange(value) {\n      return setAttributes({\n        subtotalInclusiveDiscount: value\n      });\n    }\n  })), invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Broken down taxes in the invoice summary', 'yith-woocommerce-pdf-invoice'),\n    checked: brokenDownTaxes,\n    onChange: function onChange(value) {\n      return setAttributes({\n        brokenDownTaxes: value\n      });\n    }\n  }), !invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Subtotal', 'yith-woocommerce-pdf-invoice'),\n    checked: showSubtotal,\n    onChange: function onChange(value) {\n      return setAttributes({\n        showSubtotal: value\n      });\n    }\n  }), !invoiceType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToggleControl, {\n    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tax', 'yith-woocommerce-pdf-invoice'),\n    checked: showTax,\n    onChange: function onChange(value) {\n      return setAttributes({\n        showTax: value\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.__experimentalPanelColorGradientSettings, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Table settings', 'yith-woocommerce-pdf-invoice'),\n    initialOpen: true,\n    settings: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          color: color\n        });\n      },\n      colorValue: color\n    },, {\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Background color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          backgroundColor: color\n        });\n      },\n      colorValue: backgroundColor\n    }]\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.FontSizePicker, {\n    fontSizes: _packages_constants__WEBPACK_IMPORTED_MODULE_4__.fontSizes,\n    value: fontSize || 14,\n    fallbackFontSize: 14,\n    withSlider: false,\n    onChange: function onChange(newFontSize) {\n      setAttributes({\n        fontSize: newFontSize\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.__experimentalPanelColorGradientSettings, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Subtotal labels', 'yith-woocommerce-pdf-invoice'),\n    initialOpen: true,\n    settings: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          subtotalLabelColor: color\n        });\n      },\n      colorValue: subtotalLabelColor\n    }]\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.FontSizePicker, {\n    fontSizes: _packages_constants__WEBPACK_IMPORTED_MODULE_4__.fontSizes,\n    value: subtotalLabelFontSize || 16,\n    fallbackFontSize: 16,\n    withSlider: false,\n    onChange: function onChange(newFontSize) {\n      setAttributes({\n        subtotalLabelFontSize: newFontSize\n      });\n    }\n  })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.__experimentalPanelColorGradientSettings, {\n    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Total settings', 'yith-woocommerce-pdf-invoice'),\n    initialOpen: true,\n    settings: [{\n      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Color', 'yith-woocommerce-pdf-invoice'),\n      onColorChange: function onColorChange(color) {\n        return setAttributes({\n          totalColor: color\n        });\n      },\n      colorValue: totalColor\n    }]\n  }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.FontSizePicker, {\n    fontSizes: _packages_constants__WEBPACK_IMPORTED_MODULE_4__.fontSizes,\n    value: totalFontSize || 18,\n    fallbackFontSize: 18,\n    withSlider: false,\n    onChange: function onChange(newFontSize) {\n      setAttributes({\n        totalFontSize: newFontSize\n      });\n    }\n  }))), /*#__PURE__*/React.createElement(\"div\", tableProps, /*#__PURE__*/React.createElement(\"table\", {\n    width: \"100%\",\n    className: \"order-totals\"\n  }, /*#__PURE__*/React.createElement(\"tbody\", null, /*#__PURE__*/React.createElement(_components_OrderTotals__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    items: _packages_constants__WEBPACK_IMPORTED_MODULE_4__.previewOrder,\n    attributes: attributes\n  })))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorProductTotals);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/index.js":
/*!******************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/index.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Total Table', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the total table inside the template.', 'yith-woocommerce-pdf-invoice'),\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-products-totals', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/save.js":
/*!*****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/save.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var backgroundColor = attributes.backgroundColor,\n    fontSize = attributes.fontSize,\n    color = attributes.color;\n  var subtotalLabelColor = attributes.subtotalLabelColor,\n    subtotalLabelFontSize = attributes.subtotalLabelFontSize;\n  var totalColor = attributes.totalColor,\n    totalFontSize = attributes.totalFontSize;\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({\n    className: 'order-totals-wrapper',\n    style: {\n      backgroundColor: backgroundColor,\n      color: color\n    }\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", _extends({}, blockProps, {\n    style: \"& .order-totals td{ font-size:\".concat(fontSize, \" } & .order-totals td.subtotal-label{ color: \").concat(subtotalLabelColor, \"; font-size:\").concat(subtotalLabelFontSize, \";} & .order-totals .total-row td{ color: \").concat(totalColor, \"; font-size:\").concat(totalFontSize, \"; font-weight:bold }\")\n  }), /*#__PURE__*/React.createElement(\"table\", {\n    className: \"order-totals\",\n    autosize: \"1\",\n    style: \"page-break-inside:avoid\"\n  }, /*#__PURE__*/React.createElement(\"tbody\", null, '##table_totals'))));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/block.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/block.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   attributes: () => (/* binding */ attributes),\n/* harmony export */   placeholders: () => (/* binding */ placeholders),\n/* harmony export */   supports: () => (/* binding */ supports)\n/* harmony export */ });\nvar attributes = {\n  title: {\n    type: 'text',\n    \"default\": '{{shipping_first_name}} {{shipping_last_name}}<br/>{{shipping_address_1}}<br/>{{shipping_postcode}}{{shipping_city}}<br/>{{shipping_country}}'\n  },\n  \"textAlign\": {\n    \"type\": \"string\",\n    \"default\": \"left\"\n  }\n};\nvar supports = {\n  spacing: {\n    padding: true // Enable padding UI control.\n  },\n  color: {\n    // Disable text color support.\n    text: true\n  },\n  \"typography\": {\n    \"fontSize\": true,\n    \"lineHeight\": true,\n    \"__experimentalFontStyle\": true,\n    \"__experimentalFontWeight\": true,\n    \"__experimentalLetterSpacing\": true,\n    \"__experimentalDefaultControls\": {\n      \"fontSize\": false,\n      \"fontAppearance\": true,\n      \"textTransform\": true\n    }\n  }\n};\nvar placeholders = '{{' + ywpi_pdf_template.shipping_info_placeholders.join('}}, {{') + '}}';\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/block.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/edit.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/edit.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nfunction EditorShippingInfo(props) {\n  var attributes = props.attributes,\n    setAttributes = props.setAttributes,\n    style = props.style;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)({\n    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign)),\n    style: style\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.BlockControls, {\n    group: \"block\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.AlignmentControl, {\n    value: textAlign,\n    onChange: function onChange(nextAlign) {\n      setAttributes({\n        textAlign: nextAlign\n      });\n    }\n  })), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"ywpi-shipping-info\"\n  }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText, _extends({\n    tagName: 'p',\n    value: title,\n    className: \"pdf-shipping-info\",\n    onChange: function onChange(value) {\n      return setAttributes({\n        title: value\n      });\n    },\n    textAlign: textAlign\n  }, blockProps))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorShippingInfo);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/edit.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/index.js":
/*!****************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/index.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ \"./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/block.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ \"./includes/pdf-builder/editor/src/common.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/edit.js\");\n/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ \"./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/save.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\nvar blockConfig = {\n  title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Shipping info', 'yith-woocommerce-pdf-invoice'),\n  description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Add the information about the shipping order. Placeholders available:', 'yith-woocommerce-pdf-invoice') + ' ' + _block__WEBPACK_IMPORTED_MODULE_2__.placeholders,\n  icon: _common__WEBPACK_IMPORTED_MODULE_3__.yith_icon,\n  category: 'yith-blocks',\n  attributes: _block__WEBPACK_IMPORTED_MODULE_2__.attributes,\n  supports: _block__WEBPACK_IMPORTED_MODULE_2__.supports,\n  edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  save: _save__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('yith/ywpi-shipping-info', _objectSpread({}, blockConfig));\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/save.js":
/*!***************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/save.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nfunction save(props) {\n  var attributes = props.attributes;\n  var title = attributes.title,\n    textAlign = attributes.textAlign;\n  var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()(_defineProperty({}, \"has-text-align-\".concat(textAlign), textAlign));\n  var blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({\n    className: className\n  });\n  return /*#__PURE__*/React.createElement(\"p\", blockProps, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {\n    value: title\n  }));\n}\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/save.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/common.js":
/*!***************************************************!*\
  !*** ./includes/pdf-builder/editor/src/common.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   yith_icon: () => (/* binding */ yith_icon)\n/* harmony export */ });\nvar el = wp.element.createElement;\nvar yith_icon = el('svg', {\n  width: 22,\n  height: 22\n}, el('path', {\n  d: \"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z  M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z\"\n}));\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/common.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/components/OrderItem/index.js":
/*!***********************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/components/OrderItem/index.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dinero_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dinero.js */ \"./node_modules/dinero.js/build/esm/dinero.js\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _packages_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../packages/constants */ \"./includes/pdf-builder/editor/src/packages/constants.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nfunction OrderItem(props) {\n  var item = props.item,\n    show = props.show;\n  var invoiceType = show.invoiceType,\n    thumbnails = show.thumbnails,\n    productName = show.productName,\n    productSku = show.productSku,\n    productDescription = show.productDescription,\n    productWeight = show.productWeight,\n    productDimensions = show.productDimensions,\n    price = show.price,\n    regularPrice = show.regularPrice,\n    discountPercentage = show.discountPercentage,\n    quantity = show.quantity,\n    salePrice = show.salePrice,\n    tax = show.tax,\n    percentageTax = show.percentageTax,\n    productSubtotal = show.productSubtotal,\n    productTotal = show.productTotal,\n    refundDescription = show.refundDescription;\n  var itemsFontColor = show.itemsFontColor,\n    itemsBorderColor = show.itemsBorderColor,\n    itemsFontSize = show.itemsFontSize,\n    itemsTextTransform = show.itemsTextTransform;\n  var currencySymbol = wc.wcSettings.CURRENCY.symbol;\n  var currencyCode = wc.wcSettings.CURRENCY.code;\n  var sign = invoiceType || 'yes' === _packages_constants__WEBPACK_IMPORTED_MODULE_3__.positiveAmount ? '' : '-';\n  var itemStyle = {\n    color: itemsFontColor,\n    borderColor: itemsBorderColor,\n    fontSize: itemsFontSize,\n    textTransform: itemsTextTransform\n  };\n  var itemsBlockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    style: itemStyle\n  });\n  var itemsBlockPropsNum = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({\n    style: _objectSpread({\n      textAlign: 'right'\n    }, itemStyle)\n  });\n  var adjustPrice = function adjustPrice(price) {\n    return parseInt(price * 100);\n  };\n  var getImage = function getImage() {\n    if (item.thumbnail) {\n      return /*#__PURE__*/React.createElement(\"td\", _extends({\n        width: \"1\",\n        className: \"thumbnail\"\n      }, itemsBlockProps), /*#__PURE__*/React.createElement(\"img\", {\n        src: item.thumbnail\n      }));\n    } else {\n      return /*#__PURE__*/React.createElement(\"td\", _extends({\n        width: \"1\",\n        className: \"thumbnail\"\n      }, itemsBlockProps));\n    }\n  };\n  var getSKU = function getSKU() {\n    if (productSku && item.sku != '') {\n      return /*#__PURE__*/React.createElement(\"small\", null, /*#__PURE__*/React.createElement(\"br\", null), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('SKU:', 'yith-woocommerce-pdf-invoice'), \" \", item.sku);\n    }\n    return '';\n  };\n  var getDescription = function getDescription() {\n    if (productDescription && item.description != '') {\n      return /*#__PURE__*/React.createElement(\"small\", null, /*#__PURE__*/React.createElement(\"br\", null), item.description);\n    }\n    return '';\n  };\n  var getWeight = function getWeight() {\n    if (invoiceType && productWeight && item.weight != '') {\n      return /*#__PURE__*/React.createElement(\"small\", null, /*#__PURE__*/React.createElement(\"br\", null), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Weight:', 'yith-woocommerce-pdf-invoice'), \" \", item.weight + ' ' + item.weight_unit);\n    }\n    return '';\n  };\n  var getDimensions = function getDimensions() {\n    if (invoiceType && productDimensions && item.dimensions !== 'N/A' && item.dimensions !== '') {\n      var dimensions = item.dimensions.replaceAll('&times;', 'x');\n      return /*#__PURE__*/React.createElement(\"small\", null, /*#__PURE__*/React.createElement(\"br\", null), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Dimensions:', 'yith-woocommerce-pdf-invoice'), \" \", dimensions);\n    }\n    return '';\n  };\n  var getName = function getName() {\n    return /*#__PURE__*/React.createElement(\"td\", _extends({\n      className: \"name\"\n    }, itemsBlockProps), item.name, \" \", getSKU(), \" \", getDescription(), \" \", getWeight(), \" \", getDimensions());\n  };\n  var formatPrice = function formatPrice(productPrice) {\n    var td = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n    if ('' === productPrice) {\n      return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, \"-\");\n    }\n    var price = adjustPrice(productPrice);\n    price = (0,dinero_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n      amount: parseInt(price),\n      currency: currencyCode\n    });\n    if (td) {\n      return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, price.toFormat(currencySymbol + '0,0.00'));\n    } else {\n      return price.toFormat(currencySymbol + '0,0.00');\n    }\n  };\n  var getQuantity = function getQuantity() {\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, item.quantity);\n  };\n  var getTax = function getTax() {\n    var productTax = adjustPrice(item.line_total_tax);\n    var price = (0,dinero_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n      amount: productTax,\n      currency: currencyCode\n    });\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, price.toFormat(currencySymbol + '0,0.00'));\n  };\n  var getPercentageTax = function getPercentageTax() {\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, item.percentage_tax, \"%\");\n  };\n  var getSubtotal = function getSubtotal() {\n    var total = adjustPrice(item.line_total);\n    var price = (0,dinero_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n      amount: total,\n      currency: currencyCode\n    });\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, sign, price.toFormat(currencySymbol + '0,0.00'));\n  };\n  var getTotal = function getTotal() {\n    var total = adjustPrice(item.line_total + item.line_total_tax);\n    var price = (0,dinero_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n      amount: total,\n      currency: currencyCode\n    });\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, price.toFormat(currencySymbol + '0,0.00'));\n  };\n  var getDiscountPercentage = function getDiscountPercentage() {\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, item.discount_percentage * 100, \"%\");\n  };\n  var getPrice = function getPrice() {\n    if (parseFloat(item.sale_price) > 0 && item.sale_price < item.regular_price) {\n      return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, /*#__PURE__*/React.createElement(\"small\", {\n        className: \"old-price\"\n      }, formatPrice(item.regular_price, false)), formatPrice(item.price, false));\n    } else {\n      return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, formatPrice(item.price, false));\n    }\n  };\n  var getSalePrice = function getSalePrice() {\n    if (parseFloat(item.sale_price) > 0) {\n      return formatPrice(item.sale_price);\n    } else {\n      return /*#__PURE__*/React.createElement(\"td\", itemsBlockPropsNum, \"-\");\n    }\n  };\n  var getRefundDescription = function getRefundDescription() {\n    return /*#__PURE__*/React.createElement(\"td\", itemsBlockProps, \"Lorem ipsum dolor sit amet, consectetur adipiscing elit\");\n  };\n  return /*#__PURE__*/React.createElement(\"tr\", null, thumbnails && getImage(), productName && getName(), invoiceType && quantity && getQuantity(), invoiceType && regularPrice && formatPrice(item.regular_price), invoiceType && salePrice && getSalePrice(), invoiceType && price && getPrice(), invoiceType && discountPercentage && getDiscountPercentage(), invoiceType && tax && getTax(), invoiceType && percentageTax && getPercentageTax(), !invoiceType && refundDescription && getRefundDescription(), productSubtotal && getSubtotal(), invoiceType && productTotal && getTotal());\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OrderItem);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/components/OrderItem/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/components/OrderTotals/index.js":
/*!*************************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/components/OrderTotals/index.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dinero_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dinero.js */ \"./node_modules/dinero.js/build/esm/dinero.js\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _packages_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../packages/constants */ \"./includes/pdf-builder/editor/src/packages/constants.js\");\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n\n\n\n\nfunction OrderTotals(props) {\n  var items = props.items,\n    attributes = props.attributes;\n  var subtotalLabelColor = attributes.subtotalLabelColor,\n    subtotalLabelFontSize = attributes.subtotalLabelFontSize;\n  var totalColor = attributes.totalColor,\n    totalFontSize = attributes.totalFontSize;\n  var invoiceType = attributes.invoiceType,\n    showSubtotal = attributes.showSubtotal,\n    showTax = attributes.showTax,\n    subtotalInclusiveDiscount = attributes.subtotalInclusiveDiscount,\n    showDiscount = attributes.showDiscount,\n    brokenDownTaxes = attributes.brokenDownTaxes;\n  var currencySymbol = wc.wcSettings.CURRENCY.symbol;\n  var currencyCode = wc.wcSettings.CURRENCY.code;\n  var totalTax = 0;\n  var total = 0;\n  var sign = invoiceType || 'yes' === _packages_constants__WEBPACK_IMPORTED_MODULE_3__.positiveAmount ? '' : '-';\n  var calculateTotals = function calculateTotals() {\n    items.map(function (item) {\n      total += item.line_total;\n      totalTax += item.line_total_tax;\n    });\n    total = parseInt(total * 100);\n    totalTax = parseInt(totalTax * 100);\n  };\n  var labelProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({\n    className: 'subtotal-label',\n    style: {\n      fontSize: subtotalLabelFontSize,\n      color: subtotalLabelColor\n    }\n  });\n  var totalProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({\n    className: 'total',\n    style: {\n      fontSize: totalFontSize,\n      color: totalColor,\n      fontWeight: 'bold'\n    }\n  });\n  var totalItemProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({\n    style: {\n      fontSize: totalFontSize,\n      color: totalColor,\n      textAlign: 'right',\n      fontWeight: 'bold'\n    }\n  });\n  var getTotal = function getTotal(total) {\n    var priceObj = (0,dinero_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n      amount: total,\n      currency: currencyCode\n    });\n    return /*#__PURE__*/React.createElement(\"td\", _extends({\n      className: \"unit-price number\"\n    }, props), sign, priceObj.toFormat(currencySymbol + '0,0.00'));\n  };\n  var getSubtotalLabel = function getSubtotalLabel() {\n    var label = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Subtotal', 'subtotal label', 'yith-woocommerce-pdf-invoice');\n    if (!invoiceType || !showDiscount) {\n      return label;\n    }\n    label = \"\".concat(label, \" (\").concat((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Discount', 'Label for subtotal which include the discount', 'yith-woocommerce-pdf-invoice'), \" \").concat(subtotalInclusiveDiscount ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('inc', ' subtotal with included discount', 'yith-woocommerce-pdf-invoice') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('exc', 'subtotal with excluded discount', 'yith-woocommerce-pdf-invoice'), \")\");\n    return label;\n  };\n  calculateTotals();\n  return /*#__PURE__*/React.createElement(React.Fragment, null, invoiceType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), getSubtotalLabel()), getTotal(total, [])), showDiscount && /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Discount', 'yith-woocommerce-pdf-invoice')), getTotal(0, [])), brokenDownTaxes && /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tax', 'yith-woocommerce-pdf-invoice')), getTotal(totalTax, [])), /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tax total', 'yith-woocommerce-pdf-invoice')), getTotal(totalTax, [])), /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, totalProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Total', 'yith-woocommerce-pdf-invoice')), getTotal(total + totalTax, totalItemProps))), !invoiceType && /*#__PURE__*/React.createElement(React.Fragment, null, showSubtotal && /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), getSubtotalLabel()), getTotal(total, [])), showTax && /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, labelProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tax total', 'yith-woocommerce-pdf-invoice')), getTotal(totalTax, [])), /*#__PURE__*/React.createElement(\"tr\", {\n    className: \"subtotal-row\"\n  }, /*#__PURE__*/React.createElement(\"td\", _extends({\n    className: \"subtotal-label\"\n  }, totalProps), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Refunded amount', 'yith-woocommerce-pdf-invoice')), getTotal(total + totalTax, totalItemProps))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OrderTotals);\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/components/OrderTotals/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/index.js":
/*!**************************************************!*\
  !*** ./includes/pdf-builder/editor/src/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blocks_separator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/separator */ \"./includes/pdf-builder/editor/src/blocks/separator/index.js\");\n/* harmony import */ var _blocks_ywpi_customer_info__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./blocks/ywpi-customer-info */ \"./includes/pdf-builder/editor/src/blocks/ywpi-customer-info/index.js\");\n/* harmony import */ var _blocks_ywpi_shipping_info__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blocks/ywpi-shipping-info */ \"./includes/pdf-builder/editor/src/blocks/ywpi-shipping-info/index.js\");\n/* harmony import */ var _blocks_ywpi_products_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./blocks/ywpi-products-table */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-table/index.js\");\n/* harmony import */ var _blocks_ywpi_date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./blocks/ywpi-date */ \"./includes/pdf-builder/editor/src/blocks/ywpi-date/index.js\");\n/* harmony import */ var _blocks_ywpi_order_number__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./blocks/ywpi-order-number */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-number/index.js\");\n/* harmony import */ var _blocks_ywpi_document_number__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./blocks/ywpi-document-number */ \"./includes/pdf-builder/editor/src/blocks/ywpi-document-number/index.js\");\n/* harmony import */ var _blocks_ywpi_order_amount__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./blocks/ywpi-order-amount */ \"./includes/pdf-builder/editor/src/blocks/ywpi-order-amount/index.js\");\n/* harmony import */ var _blocks_ywpi_products_totals__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./blocks/ywpi-products-totals */ \"./includes/pdf-builder/editor/src/blocks/ywpi-products-totals/index.js\");\n/* harmony import */ var _blocks_margin_padding__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./blocks/margin-padding */ \"./includes/pdf-builder/editor/src/blocks/margin-padding/index.js\");\n/* harmony import */ var _meta_custom_postmeta__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./meta/custom-postmeta */ \"./includes/pdf-builder/editor/src/meta/custom-postmeta.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/index.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/meta/custom-postmeta.js":
/*!*****************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/meta/custom-postmeta.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _packages_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../packages/constants */ \"./includes/pdf-builder/editor/src/packages/constants.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\nvar ALLOWED_MEDIA_TYPES = ['svg'];\nwp.domReady(function () {\n  var _wp = wp,\n    _wp$data = _wp.data,\n    useSelect = _wp$data.useSelect,\n    useDispatch = _wp$data.useDispatch,\n    registerPlugin = _wp.plugins.registerPlugin,\n    _wp$element = _wp.element,\n    useState = _wp$element.useState,\n    useEffect = _wp$element.useEffect,\n    TextareaControl = _wp.components.TextareaControl,\n    PluginDocumentSettingPanel = _wp.editPost.PluginDocumentSettingPanel;\n\n  /**\n   * Sidebar metabox.\n   */\n  var FooterDataSettings = function FooterDataSettings() {\n    var _useSelect = useSelect(function (select) {\n        return {\n          meta: select('core/editor').getEditedPostAttribute('meta') || {}\n        };\n      }),\n      meta = _useSelect.meta,\n      _useSelect$meta = _useSelect.meta,\n      _footer_content = _useSelect$meta._footer_content,\n      _custom_background = _useSelect$meta._custom_background;\n    var _useDispatch = useDispatch('core/editor'),\n      editPost = _useDispatch.editPost;\n    var _useState = useState(_footer_content),\n      _useState2 = _slicedToArray(_useState, 2),\n      footer = _useState2[0],\n      setFooter = _useState2[1];\n    var _useState3 = useState(_custom_background),\n      _useState4 = _slicedToArray(_useState3, 2),\n      bg = _useState4[0],\n      setBg = _useState4[1];\n    useEffect(function () {\n      editPost({\n        meta: _objectSpread(_objectSpread({}, meta), {}, {\n          _footer_content: footer,\n          _custom_background: bg\n        })\n      });\n    }, [footer, bg]);\n    var changeBg = function changeBg(bg) {\n      var elements = document.querySelectorAll('.editor-styles-wrapper');\n      for (var i = 0; i < elements.length; i++) {\n        if (bg) {\n          elements[i].style.background = 'url(' + bg.url + ') no-repeat 0 0';\n        } else {\n          elements[i].style.background = 'none';\n        }\n      }\n    };\n    var resetBG = function resetBG() {\n      var templateMeta = wp.data.select('core/editor').getEditedPostAttribute('meta');\n      var templateParent = templateMeta['_template_parent'];\n      setBg(false);\n      if ('default' !== templateParent) {\n        changeBg({\n          url: _packages_constants__WEBPACK_IMPORTED_MODULE_3__.templateURL['baseURL'] + _packages_constants__WEBPACK_IMPORTED_MODULE_3__.templateURL['folder'] + _packages_constants__WEBPACK_IMPORTED_MODULE_3__.templateURL['images'] + templateParent + '/' + templateParent + '.svg'\n        });\n      } else {\n        changeBg(false);\n      }\n    };\n    return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PluginDocumentSettingPanel, {\n      name: \"bg-data\",\n      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Background image', 'Builder pdf template - Label background option', 'yith-woocommerce-pdf-invoice')\n    }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.MediaUploadCheck, null, bg && changeBg(bg) && /*#__PURE__*/React.createElement(\"div\", {\n      className: \"preview-bg\"\n    }, /*#__PURE__*/React.createElement(\"img\", {\n      src: bg.url,\n      width: \"130\"\n    })), bg && /*#__PURE__*/React.createElement(\"div\", {\n      className: \"preview-bg\"\n    }, /*#__PURE__*/React.createElement(\"img\", {\n      src: bg.url,\n      width: \"130\"\n    })), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.MediaUpload, {\n      onSelect: function onSelect(media) {\n        changeBg(media);\n        setBg({\n          id: media.id,\n          title: media.title,\n          filename: media.filename,\n          url: media.url\n        });\n      },\n      allowedTypes: ALLOWED_MEDIA_TYPES,\n      value: bg ? bg.id : '',\n      multiple: false,\n      render: function render(_ref) {\n        var open = _ref.open;\n        return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {\n          className: \"is-primary\",\n          onClick: open\n        }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Upload', 'Label to upload a background image for the pdf document', 'yith-woocommerce-pdf-invoice')), bg && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {\n          className: \"reset-background-image is-secondary\",\n          onClick: function onClick() {\n            return resetBG();\n          }\n        }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Reset', 'Label to reset the background image for the pdf document', 'yith-woocommerce-pdf-invoice')));\n      }\n    }))), /*#__PURE__*/React.createElement(PluginDocumentSettingPanel, {\n      name: \"footer-data\",\n      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Footer', 'Builder pdf template - Label Footer option', 'yith-woocommerce-pdf-invoice')\n    }, /*#__PURE__*/React.createElement(TextareaControl, {\n      value: footer,\n      onChange: setFooter\n    }), /*#__PURE__*/React.createElement(\"small\", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)('Use {PAGENO} to show the number of the page.', 'Builder pdf template - Description Footer option', 'yith-woocommerce-pdf-invoice'))));\n  };\n  registerPlugin('document-setting-test', {\n    render: FooterDataSettings,\n    icon: null\n  });\n});\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/meta/custom-postmeta.js?");

/***/ }),

/***/ "./includes/pdf-builder/editor/src/packages/constants.js":
/*!***************************************************************!*\
  !*** ./includes/pdf-builder/editor/src/packages/constants.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   YWPI_LICENCE: () => (/* binding */ YWPI_LICENCE),\n/* harmony export */   YWPI_LICENCE_URL: () => (/* binding */ YWPI_LICENCE_URL),\n/* harmony export */   YWPI_PREVIEW_IMAGE_URL: () => (/* binding */ YWPI_PREVIEW_IMAGE_URL),\n/* harmony export */   fontSizes: () => (/* binding */ fontSizes),\n/* harmony export */   positiveAmount: () => (/* binding */ positiveAmount),\n/* harmony export */   previewFee: () => (/* binding */ previewFee),\n/* harmony export */   previewOrder: () => (/* binding */ previewOrder),\n/* harmony export */   previewShipping: () => (/* binding */ previewShipping),\n/* harmony export */   templateURL: () => (/* binding */ templateURL),\n/* harmony export */   templates: () => (/* binding */ templates)\n/* harmony export */ });\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__);\n\nvar __ = wp.i18n.__;\n/** global ywpi_pdf_template */\nvar YWPI_PREVIEW_IMAGE_URL = ywpi_pdf_template.preview_image_url;\nvar YWPI_LICENCE = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.applyFilters)('ywpi_pdf_template_demo', ywpi_pdf_template.licence_key);\nvar YWPI_LICENCE_URL = ywpi_pdf_template.licence_url;\nvar templateURL = {\n  'baseURL': 'https://plugins.yithemes.com/resources/',\n  'folder': ywpi_pdf_template.slug + '/pdf-templates/',\n  'preview': 'preview/',\n  'content': 'content/',\n  'images': 'images/'\n};\nvar templates = ywpi_pdf_template.templates;\nvar previewOrder = ywpi_pdf_template.preview_products;\nvar previewFee = ywpi_pdf_template.preview_fee;\nvar previewShipping = ywpi_pdf_template.preview_shipping;\nvar positiveAmount = ywpi_pdf_template.credit_notes_positive_amounts;\nvar fontSizes = [{\n  name: __('Small'),\n  slug: 'small',\n  size: 13\n}, {\n  name: __('Medium'),\n  slug: 'medium',\n  size: 20\n}, {\n  name: __('Large'),\n  slug: 'large',\n  size: 36\n}, {\n  name: __('Extra Large'),\n  slug: 'extralarge',\n  size: 42\n}];\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./includes/pdf-builder/editor/src/packages/constants.js?");

/***/ }),

/***/ "./node_modules/dinero.js/build/esm/dinero.js":
/*!****************************************************!*\
  !*** ./node_modules/dinero.js/build/esm/dinero.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Default values for all Dinero objects.\n *\n * You can override default values for all subsequent Dinero objects by changing them directly on the global `Dinero` object.\n * Existing instances won't be affected.\n *\n * @property {Number} defaultAmount - The default amount for new Dinero objects (see {@link module:Dinero Dinero} for format).\n * @property {String} defaultCurrency - The default currency for new Dinero objects (see {@link module:Dinero Dinero} for format).\n * @property {Number} defaultPrecision - The default precision for new Dinero objects (see {@link module:Dinero Dinero} for format).\n *\n * @example\n * // Will set currency to 'EUR' for all Dinero objects.\n * Dinero.defaultCurrency = 'EUR'\n *\n * @type {Object}\n */\nvar Defaults = {\n  defaultAmount: 0,\n  defaultCurrency: 'USD',\n  defaultPrecision: 2\n};\n/**\n * Global settings for all Dinero objects.\n *\n * You can override global values for all subsequent Dinero objects by changing them directly on the global `Dinero` object.\n * Existing instances won't be affected.\n *\n * @property {String}  globalLocale - The global locale for new Dinero objects (see {@link module:Dinero~setLocale setLocale} for format).\n * @property {String}  globalFormat - The global format for new Dinero objects (see {@link module:Dinero~toFormat toFormat} for format).\n * @property {String}  globalRoundingMode - The global rounding mode for new Dinero objects (see {@link module:Dinero~multiply multiply} or {@link module:Dinero~divide divide} for format).\n * @property {String}  globalFormatRoundingMode - The global rounding mode to format new Dinero objects (see {@link module:Dinero~toFormat toFormat} or {@link module:Dinero~toRoundedUnit toRoundedUnit} for format).\n * @property {(String|Promise)}  globalExchangeRatesApi.endpoint - The global exchange rate API endpoint for new Dinero objects, or the global promise that resolves to the exchanges rates (see {@link module:Dinero~convert convert} for format).\n * @property {String}  globalExchangeRatesApi.propertyPath - The global exchange rate API property path for new Dinero objects (see {@link module:Dinero~convert convert} for format).\n * @property {Object}  globalExchangeRatesApi.headers - The global exchange rate API headers for new Dinero objects (see {@link module:Dinero~convert convert} for format).\n *\n * @example\n * // Will set locale to 'fr-FR' for all Dinero objects.\n * Dinero.globalLocale = 'fr-FR'\n * @example\n * // Will set global exchange rate API parameters for all Dinero objects.\n * Dinero.globalExchangeRatesApi = {\n *  endpoint: 'https://yourexchangerates.api/latest?base={{from}}',\n *  propertyPath: 'data.rates.{{to}}',\n *  headers: {\n *    'user-key': 'xxxxxxxxx'\n *  }\n * }\n *\n * @type {Object}\n */\n\nvar Globals = {\n  globalLocale: 'en-US',\n  globalFormat: '$0,0.00',\n  globalRoundingMode: 'HALF_EVEN',\n  globalFormatRoundingMode: 'HALF_AWAY_FROM_ZERO',\n  globalExchangeRatesApi: {\n    endpoint: undefined,\n    headers: undefined,\n    propertyPath: undefined\n  }\n};\n\nfunction _typeof(obj) {\n  \"@babel/helpers - typeof\";\n\n  if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n    _typeof = function (obj) {\n      return typeof obj;\n    };\n  } else {\n    _typeof = function (obj) {\n      return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n    };\n  }\n\n  return _typeof(obj);\n}\n\nfunction _toArray(arr) {\n  return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n  if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n  if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n  var n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === \"Object\" && o.constructor) n = o.constructor.name;\n  if (n === \"Map\" || n === \"Set\") return Array.from(o);\n  if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n  return arr2;\n}\n\nfunction _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n/**\n * Static methods for Dinero.\n * @ignore\n *\n * @type {Object}\n */\nvar Static = {\n  /**\n   * Returns an array of Dinero objects, normalized to the same precision (the highest).\n   *\n   * @memberof module:Dinero\n   * @method\n   *\n   * @param {Dinero[]} objects - An array of Dinero objects\n   *\n   * @example\n   * // returns an array of Dinero objects\n   * // both with a precision of 3\n   * // and an amount of 1000\n   * Dinero.normalizePrecision([\n   *   Dinero({ amount: 100, precision: 2 }),\n   *   Dinero({ amount: 1000, precision: 3 })\n   * ])\n   *\n   * @return {Dinero[]}\n   */\n  normalizePrecision: function normalizePrecision(objects) {\n    var highestPrecision = objects.reduce(function (a, b) {\n      return Math.max(a.getPrecision(), b.getPrecision());\n    });\n    return objects.map(function (object) {\n      return object.getPrecision() !== highestPrecision ? object.convertPrecision(highestPrecision) : object;\n    });\n  },\n\n  /**\n   * Returns the smallest Dinero object from an array of Dinero objects\n   *\n   * @memberof module:Dinero\n   * @method\n   *\n   * @param {Dinero[]} objects - An array of Dinero objects\n   *\n   * @example\n   * // returns the smallest Dinero object with amount of 500 from an array of Dinero objects with different precisions\n   * Dinero.minimum([\n   *   Dinero({ amount: 500, precision: 3 }),\n   *   Dinero({ amount: 100, precision: 2 })\n   * ])\n   * @example\n   * // returns the smallest Dinero object with amount of 50 from an array of Dinero objects\n   * Dinero.minimum([\n   *   Dinero({ amount: 50 }),\n   *   Dinero({ amount: 100 })\n   * ])\n   *\n   * @return {Dinero[]}\n   */\n  minimum: function minimum(objects) {\n    var _objects = _toArray(objects),\n        firstObject = _objects[0],\n        tailObjects = _objects.slice(1);\n\n    var currentMinimum = firstObject;\n    tailObjects.forEach(function (obj) {\n      currentMinimum = currentMinimum.lessThan(obj) ? currentMinimum : obj;\n    });\n    return currentMinimum;\n  },\n\n  /**\n   * Returns the biggest Dinero object from an array of Dinero objects\n   *\n   * @memberof module:Dinero\n   * @method\n   *\n   * @param {Dinero[]} objects - An array of Dinero objects\n   *\n   * @example\n   * // returns the biggest Dinero object with amount of 20, from an array of Dinero objects with different precisions\n   * Dinero.maximum([\n   *   Dinero({ amount: 20, precision: 2 }),\n   *   Dinero({ amount: 150, precision: 3 })\n   * ])\n   * @example\n   * // returns the biggest Dinero object with amount of 100, from an array of Dinero objects\n   * Dinero.maximum([\n   *   Dinero({ amount: 100 }),\n   *   Dinero({ amount: 50 })\n   * ])\n   *\n   * @return {Dinero[]}\n   */\n  maximum: function maximum(objects) {\n    var _objects2 = _toArray(objects),\n        firstObject = _objects2[0],\n        tailObjects = _objects2.slice(1);\n\n    var currentMaximum = firstObject;\n    tailObjects.forEach(function (obj) {\n      currentMaximum = currentMaximum.greaterThan(obj) ? currentMaximum : obj;\n    });\n    return currentMaximum;\n  }\n};\n\n/**\n * Returns whether a value is numeric.\n * @ignore\n *\n * @param  {} value - The value to test.\n *\n * @return {Boolean}\n */\nfunction isNumeric(value) {\n  return !isNaN(parseInt(value)) && isFinite(value);\n}\n/**\n * Returns whether a value is a percentage.\n * @ignore\n *\n * @param  {}  percentage - The percentage to test.\n *\n * @return {Boolean}\n */\n\nfunction isPercentage(percentage) {\n  return isNumeric(percentage) && percentage <= 100 && percentage >= 0;\n}\n/**\n * Returns whether an array of ratios is valid.\n * @ignore\n *\n * @param  {}  ratios - The ratios to test.\n *\n * @return {Boolean}\n */\n\nfunction areValidRatios(ratios) {\n  return ratios.length > 0 && ratios.every(function (ratio) {\n    return ratio >= 0;\n  }) && ratios.some(function (ratio) {\n    return ratio > 0;\n  });\n}\n/**\n * Returns whether a value is even.\n * @ignore\n *\n * @param  {Number} value - The value to test.\n *\n * @return {Boolean}\n */\n\nfunction isEven(value) {\n  return value % 2 === 0;\n}\n/**\n * Returns whether a value is a float.\n * @ignore\n *\n * @param  {}  value - The value to test.\n *\n * @return {Boolean}\n */\n\nfunction isFloat(value) {\n  return isNumeric(value) && !Number.isInteger(value);\n}\n/**\n * Returns how many fraction digits a number has.\n * @ignore\n *\n * @param  {Number} [number=0] - The number to test.\n *\n * @return {Number}\n */\n\nfunction countFractionDigits() {\n  var number = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n  var stringRepresentation = number.toString();\n\n  if (stringRepresentation.indexOf('e-') > 0) {\n    // It's too small for a normal string representation, e.g. 1e-7 instead of 0.00000001\n    return parseInt(stringRepresentation.split('e-')[1]);\n  } else {\n    var fractionDigits = stringRepresentation.split('.')[1];\n    return fractionDigits ? fractionDigits.length : 0;\n  }\n}\n/**\n * Returns whether a number is half.\n * @ignore\n *\n * @param {Number} number - The number to test.\n *\n * @return {Number}\n */\n\nfunction isHalf(number) {\n  return Math.abs(number) % 1 === 0.5;\n}\n/**\n * Fetches a JSON resource.\n * @ignore\n *\n * @param  {String} url - The resource to fetch.\n * @param  {Object} [options.headers] - The headers to pass.\n *\n * @throws {Error} If `request.status` is lesser than 200 or greater or equal to 400.\n * @throws {Error} If network fails.\n *\n * @return {JSON}\n */\n\nfunction getJSON(url) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  return new Promise(function (resolve, reject) {\n    var request = Object.assign(new XMLHttpRequest(), {\n      onreadystatechange: function onreadystatechange() {\n        if (request.readyState === 4) {\n          if (request.status >= 200 && request.status < 400) resolve(JSON.parse(request.responseText));else reject(new Error(request.statusText));\n        }\n      },\n      onerror: function onerror() {\n        reject(new Error('Network error'));\n      }\n    });\n    request.open('GET', url, true);\n    setXHRHeaders(request, options.headers);\n    request.send();\n  });\n}\n/**\n * Returns an XHR object with attached headers.\n * @ignore\n *\n * @param {XMLHttpRequest} xhr - The XHR request to set headers to.\n * @param {Object} headers - The headers to set.\n *\n * @return {XMLHttpRequest}\n */\n\nfunction setXHRHeaders(xhr) {\n  var headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  for (var header in headers) {\n    xhr.setRequestHeader(header, headers[header]);\n  }\n\n  return xhr;\n}\n/**\n * Returns whether a value is undefined.\n * @ignore\n *\n * @param {} value - The value to test.\n *\n * @return {Boolean}\n */\n\nfunction isUndefined(value) {\n  return typeof value === 'undefined';\n}\n/**\n * Returns an object flattened to one level deep.\n * @ignore\n *\n * @param {Object} object - The object to flatten.\n * @param {String} separator - The separator to use between flattened nodes.\n *\n * @return {Object}\n */\n\nfunction flattenObject(object) {\n  var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.';\n  var finalObject = {};\n  Object.entries(object).forEach(function (item) {\n    if (_typeof(item[1]) === 'object') {\n      var flatObject = flattenObject(item[1]);\n      Object.entries(flatObject).forEach(function (node) {\n        finalObject[item[0] + separator + node[0]] = node[1];\n      });\n    } else {\n      finalObject[item[0]] = item[1];\n    }\n  });\n  return finalObject;\n}\n/**\n * Returns whether a value is thenable.\n * @ignore\n *\n * @param {} value - The value to test.\n *\n * @return {Boolean}\n */\n\nfunction isThenable(value) {\n  return Boolean(value) && (_typeof(value) === 'object' || typeof value === 'function') && typeof value.then === 'function';\n}\n\nfunction Calculator() {\n  var floatMultiply = function floatMultiply(a, b) {\n    var getFactor = function getFactor(number) {\n      return Math.pow(10, countFractionDigits(number));\n    };\n\n    var factor = Math.max(getFactor(a), getFactor(b));\n    return Math.round(a * factor) * Math.round(b * factor) / (factor * factor);\n  };\n\n  var roundingModes = {\n    HALF_ODD: function HALF_ODD(number) {\n      var rounded = Math.round(number);\n      return isHalf(number) ? isEven(rounded) ? rounded - 1 : rounded : rounded;\n    },\n    HALF_EVEN: function HALF_EVEN(number) {\n      var rounded = Math.round(number);\n      return isHalf(number) ? isEven(rounded) ? rounded : rounded - 1 : rounded;\n    },\n    HALF_UP: function HALF_UP(number) {\n      return Math.round(number);\n    },\n    HALF_DOWN: function HALF_DOWN(number) {\n      return isHalf(number) ? Math.floor(number) : Math.round(number);\n    },\n    HALF_TOWARDS_ZERO: function HALF_TOWARDS_ZERO(number) {\n      return isHalf(number) ? Math.sign(number) * Math.floor(Math.abs(number)) : Math.round(number);\n    },\n    HALF_AWAY_FROM_ZERO: function HALF_AWAY_FROM_ZERO(number) {\n      return isHalf(number) ? Math.sign(number) * Math.ceil(Math.abs(number)) : Math.round(number);\n    },\n    DOWN: function DOWN(number) {\n      return Math.floor(number);\n    }\n  };\n  return {\n    /**\n     * Returns the sum of two numbers.\n     * @ignore\n     *\n     * @param {Number} a - The first number to add.\n     * @param {Number} b - The second number to add.\n     *\n     * @return {Number}\n     */\n    add: function add(a, b) {\n      return a + b;\n    },\n\n    /**\n     * Returns the difference of two numbers.\n     * @ignore\n     *\n     * @param {Number} a - The first number to subtract.\n     * @param {Number} b - The second number to subtract.\n     *\n     * @return {Number}\n     */\n    subtract: function subtract(a, b) {\n      return a - b;\n    },\n\n    /**\n     * Returns the product of two numbers.\n     * @ignore\n     *\n     * @param {Number} a - The first number to multiply.\n     * @param {Number} b - The second number to multiply.\n     *\n     * @return {Number}\n     */\n    multiply: function multiply(a, b) {\n      return isFloat(a) || isFloat(b) ? floatMultiply(a, b) : a * b;\n    },\n\n    /**\n     * Returns the quotient of two numbers.\n     * @ignore\n     *\n     * @param {Number} a - The first number to divide.\n     * @param {Number} b - The second number to divide.\n     *\n     * @return {Number}\n     */\n    divide: function divide(a, b) {\n      return a / b;\n    },\n\n    /**\n     * Returns the remainder of two numbers.\n     * @ignore\n     *\n     * @param  {Number} a - The first number to divide.\n     * @param  {Number} b - The second number to divide.\n     *\n     * @return {Number}\n     */\n    modulo: function modulo(a, b) {\n      return a % b;\n    },\n\n    /**\n     * Returns a rounded number based off a specific rounding mode.\n     * @ignore\n     *\n     * @param {Number} number - The number to round.\n     * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use.\n     *\n     * @returns {Number}\n     */\n    round: function round(number) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'HALF_EVEN';\n      return roundingModes[roundingMode](number);\n    }\n  };\n}\n\nvar calculator = Calculator();\nfunction Format(format) {\n  var matches = /^(?:(\\$|USD)?0(?:(,)0)?(\\.)?(0+)?|0(?:(,)0)?(\\.)?(0+)?\\s?(dollar)?)$/gm.exec(format);\n  return {\n    /**\n     * Returns the matches.\n     * @ignore\n     *\n     * @return {Array}\n     */\n    getMatches: function getMatches() {\n      return matches !== null ? matches.slice(1).filter(function (match) {\n        return !isUndefined(match);\n      }) : [];\n    },\n\n    /**\n     * Returns the amount of fraction digits to display.\n     * @ignore\n     *\n     * @return {Number}\n     */\n    getMinimumFractionDigits: function getMinimumFractionDigits() {\n      var decimalPosition = function decimalPosition(match) {\n        return match === '.';\n      };\n\n      return !isUndefined(this.getMatches().find(decimalPosition)) ? this.getMatches()[calculator.add(this.getMatches().findIndex(decimalPosition), 1)].split('').length : 0;\n    },\n\n    /**\n     * Returns the currency display mode.\n     * @ignore\n     *\n     * @return {String}\n     */\n    getCurrencyDisplay: function getCurrencyDisplay() {\n      var modes = {\n        USD: 'code',\n        dollar: 'name',\n        $: 'symbol'\n      };\n      return modes[this.getMatches().find(function (match) {\n        return match === 'USD' || match === 'dollar' || match === '$';\n      })];\n    },\n\n    /**\n     * Returns the formatting style.\n     * @ignore\n     *\n     * @return {String}\n     */\n    getStyle: function getStyle() {\n      return !isUndefined(this.getCurrencyDisplay(this.getMatches())) ? 'currency' : 'decimal';\n    },\n\n    /**\n     * Returns whether grouping should be used or not.\n     * @ignore\n     *\n     * @return {Boolean}\n     */\n    getUseGrouping: function getUseGrouping() {\n      return !isUndefined(this.getMatches().find(function (match) {\n        return match === ',';\n      }));\n    }\n  };\n}\n\nfunction CurrencyConverter(options) {\n  /* istanbul ignore next */\n  var mergeTags = function mergeTags() {\n    var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n    var tags = arguments.length > 1 ? arguments[1] : undefined;\n\n    for (var tag in tags) {\n      string = string.replace(\"{{\".concat(tag, \"}}\"), tags[tag]);\n    }\n\n    return string;\n  };\n  /* istanbul ignore next */\n\n\n  var getRatesFromRestApi = function getRatesFromRestApi(from, to) {\n    return getJSON(mergeTags(options.endpoint, {\n      from: from,\n      to: to\n    }), {\n      headers: options.headers\n    });\n  };\n\n  return {\n    /**\n     * Returns the exchange rate.\n     * @ignore\n     *\n     * @param  {String} from - The base currency.\n     * @param  {String} to   - The destination currency.\n     *\n     * @return {Promise}\n     */\n    getExchangeRate: function getExchangeRate(from, to) {\n      return (isThenable(options.endpoint) ? options.endpoint : getRatesFromRestApi(from, to)).then(function (data) {\n        return flattenObject(data)[mergeTags(options.propertyPath, {\n          from: from,\n          to: to\n        })];\n      });\n    }\n  };\n}\n\n/**\n * Performs an assertion.\n * @ignore\n *\n * @param  {Boolean} condition - The expression to assert.\n * @param  {String}  errorMessage - The message to throw if the assertion fails\n * @param  {ErrorConstructor}   [ErrorType=Error] - The error to throw if the assertion fails.\n *\n * @throws {Error} If `condition` returns `false`.\n */\n\nfunction assert(condition, errorMessage) {\n  var ErrorType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Error;\n  if (!condition) throw new ErrorType(errorMessage);\n}\n/**\n * Asserts a value is a percentage.\n * @ignore\n *\n * @param  {}  percentage - The percentage to test.\n *\n * @throws {RangeError} If `percentage` is out of range.\n */\n\nfunction assertPercentage(percentage) {\n  assert(isPercentage(percentage), 'You must provide a numeric value between 0 and 100.', RangeError);\n}\n/**\n * Asserts an array of ratios is valid.\n * @ignore\n *\n * @param  {}  ratios - The ratios to test.\n *\n * @throws {TypeError} If `ratios` are invalid.\n */\n\nfunction assertValidRatios(ratios) {\n  assert(areValidRatios(ratios), 'You must provide a non-empty array of numeric values greater than 0.', TypeError);\n}\n/**\n * Asserts a value is an integer.\n * @ignore\n *\n * @param  {}  number - The value to test.\n *\n * @throws {TypeError}\n */\n\nfunction assertInteger(number) {\n  assert(Number.isInteger(number), 'You must provide an integer.', TypeError);\n}\n\nvar calculator$1 = Calculator();\n/**\n * A Dinero object is an immutable data structure representing a specific monetary value.\n * It comes with methods for creating, parsing, manipulating, testing, transforming and formatting them.\n *\n * A Dinero object has:\n *\n * * An `amount`, expressed in minor currency units, as an integer.\n * * A `currency`, expressed as an {@link https://en.wikipedia.org/wiki/ISO_4217#Active_codes ISO 4217 currency code}.\n * * A `precision`, expressed as an integer, to represent the number of decimal places in the `amount`.\n *   This is helpful when you want to represent fractional minor currency units (e.g.: $10.4545).\n *   You can also use it to represent a currency with a different [exponent](https://en.wikipedia.org/wiki/ISO_4217#Treatment_of_minor_currency_units_.28the_.22exponent.22.29) than `2` (e.g.: Iraqi dinar with 1000 fils in 1 dinar (exponent of `3`), Japanese yen with no sub-units (exponent of `0`)).\n * * An optional `locale` property that affects how output strings are formatted.\n *\n * Here's an overview of the public API:\n *\n * * **Access:** {@link module:Dinero~getAmount getAmount}, {@link module:Dinero~getCurrency getCurrency}, {@link module:Dinero~getLocale getLocale} and {@link module:Dinero~getPrecision getPrecision}.\n * * **Manipulation:** {@link module:Dinero~add add}, {@link module:Dinero~subtract subtract}, {@link module:Dinero~multiply multiply}, {@link module:Dinero~divide divide}, {@link module:Dinero~percentage percentage}, {@link module:Dinero~allocate allocate} and {@link module:Dinero~convert convert}.\n * * **Testing:** {@link module:Dinero~equalsTo equalsTo}, {@link module:Dinero~lessThan lessThan}, {@link module:Dinero~lessThanOrEqual lessThanOrEqual}, {@link module:Dinero~greaterThan greaterThan}, {@link module:Dinero~greaterThanOrEqual greaterThanOrEqual}, {@link module:Dinero~isZero isZero}, {@link module:Dinero~isPositive isPositive}, {@link module:Dinero~isNegative isNegative}, {@link module:Dinero~hasSubUnits hasSubUnits}, {@link module:Dinero~hasSameCurrency hasSameCurrency} and {@link module:Dinero~hasSameAmount hasSameAmount}.\n * * **Configuration:** {@link module:Dinero~setLocale setLocale}.\n * * **Conversion & formatting:** {@link module:Dinero~toFormat toFormat}, {@link module:Dinero~toUnit toUnit}, {@link module:Dinero~toRoundedUnit toRoundedUnit}, {@link module:Dinero~toObject toObject}, {@link module:Dinero~toJSON toJSON}, {@link module:Dinero~convertPrecision convertPrecision} and {@link module:Dinero.normalizePrecision normalizePrecision}.\n *\n * Dinero.js uses `number`s under the hood, so it's constrained by the [double-precision floating-point format](https://en.wikipedia.org/wiki/Double-precision_floating-point_format). Using values over [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MAX_SAFE_INTEGER) or below [`Number.MIN_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MIN_SAFE_INTEGER) will yield unpredictable results.\n * Same goes with performing calculations: once the internal `amount` value exceeds those limits, precision is no longer guaranteed.\n *\n * @module Dinero\n * @param  {Number} [options.amount=0] - The amount in minor currency units (as an integer).\n * @param  {String} [options.currency='USD'] - An ISO 4217 currency code.\n * @param  {String} [options.precision=2] - The number of decimal places to represent.\n *\n * @throws {TypeError} If `amount` or `precision` is invalid. Integers over [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MAX_SAFE_INTEGER) or below [`Number.MIN_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MIN_SAFE_INTEGER) are considered valid, even though they can lead to imprecise amounts.\n *\n * @return {Object}\n */\n\nvar Dinero = function Dinero(options) {\n  var _Object$assign = Object.assign({}, {\n    amount: Dinero.defaultAmount,\n    currency: Dinero.defaultCurrency,\n    precision: Dinero.defaultPrecision\n  }, options),\n      amount = _Object$assign.amount,\n      currency = _Object$assign.currency,\n      precision = _Object$assign.precision;\n\n  assertInteger(amount);\n  assertInteger(precision);\n  var globalLocale = Dinero.globalLocale,\n      globalFormat = Dinero.globalFormat,\n      globalRoundingMode = Dinero.globalRoundingMode,\n      globalFormatRoundingMode = Dinero.globalFormatRoundingMode;\n  var globalExchangeRatesApi = Object.assign({}, Dinero.globalExchangeRatesApi);\n  /**\n   * Uses ES5 function notation so `this` can be passed through call, apply and bind\n   * @ignore\n   */\n\n  var create = function create(options) {\n    var obj = Object.assign({}, Object.assign({}, {\n      amount: amount,\n      currency: currency,\n      precision: precision\n    }, options), Object.assign({}, {\n      locale: this.locale\n    }, options));\n    return Object.assign(Dinero({\n      amount: obj.amount,\n      currency: obj.currency,\n      precision: obj.precision\n    }), {\n      locale: obj.locale\n    });\n  };\n  /**\n   * Uses ES5 function notation so `this` can be passed through call, apply and bind\n   * @ignore\n   */\n\n\n  var assertSameCurrency = function assertSameCurrency(comparator) {\n    assert(this.hasSameCurrency(comparator), 'You must provide a Dinero instance with the same currency.', TypeError);\n  };\n\n  return {\n    /**\n     * Returns the amount.\n     *\n     * @example\n     * // returns 500\n     * Dinero({ amount: 500 }).getAmount()\n     *\n     * @return {Number}\n     */\n    getAmount: function getAmount() {\n      return amount;\n    },\n\n    /**\n     * Returns the currency.\n     *\n     * @example\n     * // returns 'EUR'\n     * Dinero({ currency: 'EUR' }).getCurrency()\n     *\n     * @return {String}\n     */\n    getCurrency: function getCurrency() {\n      return currency;\n    },\n\n    /**\n     * Returns the locale.\n     *\n     * @example\n     * // returns 'fr-FR'\n     * Dinero().setLocale('fr-FR').getLocale()\n     *\n     * @return {String}\n     */\n    getLocale: function getLocale() {\n      return this.locale || globalLocale;\n    },\n\n    /**\n     * Returns a new Dinero object with an embedded locale.\n     *\n     * @param {String} newLocale - The new locale as an {@link http://tools.ietf.org/html/rfc5646 BCP 47 language tag}.\n     *\n     * @example\n     * // Returns a Dinero object with locale 'ja-JP'\n     * Dinero().setLocale('ja-JP')\n     *\n     * @return {Dinero}\n     */\n    setLocale: function setLocale(newLocale) {\n      return create.call(this, {\n        locale: newLocale\n      });\n    },\n\n    /**\n     * Returns the precision.\n     *\n     * @example\n     * // returns 3\n     * Dinero({ precision: 3 }).getPrecision()\n     *\n     * @return {Number}\n     */\n    getPrecision: function getPrecision() {\n      return precision;\n    },\n\n    /**\n     * Returns a new Dinero object with a new precision and a converted amount.\n     *\n     * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).\n     * This can be necessary when you need to convert objects to a smaller precision.\n     *\n     * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent conversions for safer results.\n     * You can also specify a different `roundingMode` to better fit your needs.\n     *\n     * @param {Number} newPrecision - The new precision.\n     * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // Returns a Dinero object with precision 3 and amount 1000\n     * Dinero({ amount: 100, precision: 2 }).convertPrecision(3)\n     *\n     * @throws {TypeError} If `newPrecision` is invalid.\n     *\n     * @return {Dinero}\n     */\n    convertPrecision: function convertPrecision(newPrecision) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;\n      assertInteger(newPrecision);\n      var precision = this.getPrecision();\n      var isNewPrecisionLarger = newPrecision > precision;\n      var operation = isNewPrecisionLarger ? calculator$1.multiply : calculator$1.divide;\n      var terms = isNewPrecisionLarger ? [newPrecision, precision] : [precision, newPrecision];\n      var factor = Math.pow(10, calculator$1.subtract.apply(calculator$1, terms));\n      return create.call(this, {\n        amount: calculator$1.round(operation(this.getAmount(), factor), roundingMode),\n        precision: newPrecision\n      });\n    },\n\n    /**\n     * Returns a new Dinero object that represents the sum of this and an other Dinero object.\n     *\n     * If Dinero objects have a different `precision`, they will be first converted to the highest.\n     *\n     * @param {Dinero} addend - The Dinero object to add.\n     *\n     * @example\n     * // returns a Dinero object with amount 600\n     * Dinero({ amount: 400 }).add(Dinero({ amount: 200 }))\n     * @example\n     * // returns a Dinero object with amount 144545 and precision 4\n     * Dinero({ amount: 400 }).add(Dinero({ amount: 104545, precision: 4 }))\n     *\n     * @throws {TypeError} If `addend` has a different currency.\n     *\n     * @return {Dinero}\n     */\n    add: function add(addend) {\n      assertSameCurrency.call(this, addend);\n      var addends = Dinero.normalizePrecision([this, addend]);\n      return create.call(this, {\n        amount: calculator$1.add(addends[0].getAmount(), addends[1].getAmount()),\n        precision: addends[0].getPrecision()\n      });\n    },\n\n    /**\n     * Returns a new Dinero object that represents the difference of this and an other Dinero object.\n     *\n     * If Dinero objects have a different `precision`, they will be first converted to the highest.\n     *\n     * @param  {Dinero} subtrahend - The Dinero object to subtract.\n     *\n     * @example\n     * // returns a Dinero object with amount 200\n     * Dinero({ amount: 400 }).subtract(Dinero({ amount: 200 }))\n     * @example\n     * // returns a Dinero object with amount 64545 and precision 4\n     * Dinero({ amount: 104545, precision: 4 }).subtract(Dinero({ amount: 400 }))\n     *\n     * @throws {TypeError} If `subtrahend` has a different currency.\n     *\n     * @return {Dinero}\n     */\n    subtract: function subtract(subtrahend) {\n      assertSameCurrency.call(this, subtrahend);\n      var subtrahends = Dinero.normalizePrecision([this, subtrahend]);\n      return create.call(this, {\n        amount: calculator$1.subtract(subtrahends[0].getAmount(), subtrahends[1].getAmount()),\n        precision: subtrahends[0].getPrecision()\n      });\n    },\n\n    /**\n     * Returns a new Dinero object that represents the multiplied value by the given factor.\n     *\n     * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).\n     *\n     * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent calculations for safer results.\n     * You can also specify a different `roundingMode` to better fit your needs.\n     *\n     * @param  {Number} multiplier - The factor to multiply by.\n     * @param  {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // returns a Dinero object with amount 1600\n     * Dinero({ amount: 400 }).multiply(4)\n     * @example\n     * // returns a Dinero object with amount 800\n     * Dinero({ amount: 400 }).multiply(2.001)\n     * @example\n     * // returns a Dinero object with amount 801\n     * Dinero({ amount: 400 }).multiply(2.00125, 'HALF_UP')\n     *\n     * @return {Dinero}\n     */\n    multiply: function multiply(multiplier) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;\n      return create.call(this, {\n        amount: calculator$1.round(calculator$1.multiply(this.getAmount(), multiplier), roundingMode)\n      });\n    },\n\n    /**\n     * Returns a new Dinero object that represents the divided value by the given factor.\n     *\n     * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).\n     *\n     * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent calculations for safer results.\n     * You can also specify a different `roundingMode` to better fit your needs.\n     *\n     * As rounding is applied, precision may be lost in the process. If you want to accurately split a Dinero object, use {@link module:Dinero~allocate allocate} instead.\n     *\n     * @param  {Number} divisor - The factor to divide by.\n     * @param  {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // returns a Dinero object with amount 100\n     * Dinero({ amount: 400 }).divide(4)\n     * @example\n     * // returns a Dinero object with amount 52\n     * Dinero({ amount: 105 }).divide(2)\n     * @example\n     * // returns a Dinero object with amount 53\n     * Dinero({ amount: 105 }).divide(2, 'HALF_UP')\n     *\n     * @return {Dinero}\n     */\n    divide: function divide(divisor) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;\n      return create.call(this, {\n        amount: calculator$1.round(calculator$1.divide(this.getAmount(), divisor), roundingMode)\n      });\n    },\n\n    /**\n     * Returns a new Dinero object that represents a percentage of this.\n     *\n     * As rounding is applied, precision may be lost in the process. If you want to accurately split a Dinero object, use {@link module:Dinero~allocate allocate} instead.\n     *\n     * @param  {Number} percentage - The percentage to extract (between 0 and 100).\n     * @param  {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // returns a Dinero object with amount 5000\n     * Dinero({ amount: 10000 }).percentage(50)\n     * @example\n     * // returns a Dinero object with amount 29\n     * Dinero({ amount: 57 }).percentage(50, \"HALF_ODD\")\n     *\n     * @throws {RangeError} If `percentage` is out of range.\n     *\n     * @return {Dinero}\n     */\n    percentage: function percentage(_percentage) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;\n      assertPercentage(_percentage);\n      return this.multiply(calculator$1.divide(_percentage, 100), roundingMode);\n    },\n\n    /**\n     * Allocates the amount of a Dinero object according to a list of ratios.\n     *\n     * Sometimes you need to split monetary values but percentages can't cut it without adding or losing pennies.\n     * A good example is invoicing: let's say you need to bill $1,000.03 and you want a 50% downpayment.\n     * If you use {@link module:Dinero~percentage percentage}, you'll get an accurate Dinero object but the amount won't be billable: you can't split a penny.\n     * If you round it, you'll bill a penny extra.\n     * With {@link module:Dinero~allocate allocate}, you can split a monetary amount then distribute the remainder as evenly as possible.\n     *\n     * You can use percentage style or ratio style for `ratios`: `[25, 75]` and `[1, 3]` will do the same thing.\n     *\n     * Since v1.8.0, you can use zero ratios (such as [0, 50, 50]). If there's a remainder to distribute, zero ratios are skipped and return a Dinero object with amount zero.\n     *\n     * @param  {Number[]} ratios - The ratios to allocate the money to.\n     *\n     * @example\n     * // returns an array of two Dinero objects\n     * // the first one with an amount of 502\n     * // the second one with an amount of 501\n     * Dinero({ amount: 1003 }).allocate([50, 50])\n     * @example\n     * // returns an array of two Dinero objects\n     * // the first one with an amount of 25\n     * // the second one with an amount of 75\n     * Dinero({ amount: 100 }).allocate([1, 3])\n     * @example\n     * // since version 1.8.0\n     * // returns an array of three Dinero objects\n     * // the first one with an amount of 0\n     * // the second one with an amount of 502\n     * // the third one with an amount of 501\n     * Dinero({ amount: 1003 }).allocate([0, 50, 50])\n     *\n     * @throws {TypeError} If ratios are invalid.\n     *\n     * @return {Dinero[]}\n     */\n    allocate: function allocate(ratios) {\n      var _this = this;\n\n      assertValidRatios(ratios);\n      var total = ratios.reduce(function (a, b) {\n        return calculator$1.add(a, b);\n      });\n      var remainder = this.getAmount();\n      var shares = ratios.map(function (ratio) {\n        var share = Math.floor(calculator$1.divide(calculator$1.multiply(_this.getAmount(), ratio), total));\n        remainder = calculator$1.subtract(remainder, share);\n        return create.call(_this, {\n          amount: share\n        });\n      });\n      var i = 0;\n\n      while (remainder > 0) {\n        if (ratios[i] > 0) {\n          shares[i] = shares[i].add(create.call(this, {\n            amount: 1\n          }));\n          remainder = calculator$1.subtract(remainder, 1);\n        }\n\n        i += 1;\n      }\n\n      return shares;\n    },\n\n    /**\n     * Returns a Promise containing a new Dinero object converted to another currency.\n     *\n     * You have two options to provide the exchange rates:\n     *\n     * 1. **Use an exchange rate REST API, and let Dinero handle the fetching and conversion.**\n     *   This is a simple option if you have access to an exchange rate REST API and want Dinero to do the rest.\n     * 2. **Fetch the exchange rates on your own and provide them directly.**\n     *   This is useful if you're fetching your rates from somewhere else (a file, a database), use a different protocol or query language than REST (SOAP, GraphQL) or want to fetch rates once and cache them instead of making new requests every time.\n     *\n     * **If you want to use a REST API**, you must provide a third-party endpoint yourself. Dinero doesn't come bundled with an exchange rates endpoint.\n     *\n     * Here are some exchange rate APIs you can use:\n     *\n     * * [Fixer](https://fixer.io)\n     * * [Open Exchange Rates](https://openexchangerates.org)\n     * * [Coinbase](https://api.coinbase.com/v2/exchange-rates)\n     * * More [foreign](https://github.com/toddmotto/public-apis#currency-exchange) and [crypto](https://github.com/toddmotto/public-apis#cryptocurrency) exchange rate APIs.\n     *\n     * **If you want to fetch your own rates and provide them directly**, you need to pass a promise that resolves to the exchanges rates.\n     *\n     * In both cases, you need to specify at least:\n     *\n     * * a **destination currency**: the currency in which you want to convert your Dinero object. You can specify it with `currency`.\n     * * an **endpoint**: the API URL to query exchange rates, with parameters, or a promise that resolves to the exchange rates. You can specify it with `options.endpoint`.\n     * * a **property path**: the path to access the wanted rate in your API's JSON response (or the custom promise's payload). For example, with a response of:\n     * ```json\n     * {\n     *     \"data\": {\n     *       \"base\": \"USD\",\n     *       \"destination\": \"EUR\",\n     *       \"rate\": \"0.827728919\"\n     *     }\n     * }\n     * ```\n     * Then the property path is `'data.rate'`. You can specify it with `options.propertyPath`.\n     *\n     * The base currency (the one of your Dinero object) and the destination currency can be used as \"merge tags\" with the mustache syntax, respectively `{{from}}` and `{{to}}`.\n     * You can use these tags to refer to these values in `options.endpoint` and `options.propertyPath`.\n     *\n     * For example, if you need to specify the base currency as a query parameter, you can do the following:\n     *\n     * ```js\n     * {\n     *   endpoint: 'https://yourexchangerates.api/latest?base={{from}}'\n     * }\n     * ```\n     *\n     * @param  {String} currency - The destination currency, expressed as an {@link https://en.wikipedia.org/wiki/ISO_4217#Active_codes ISO 4217 currency code}.\n     * @param  {(String|Promise)} options.endpoint - The API endpoint to retrieve exchange rates. You can substitute this with a promise that resolves to the exchanges rates if you already have them.\n     * @param  {String} [options.propertyPath='rates.{{to}}'] - The property path to the rate.\n     * @param  {Object} [options.headers] - The HTTP headers to provide, if needed.\n     * @param  {String} [options.roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // your global API parameters\n     * Dinero.globalExchangeRatesApi = { ... }\n     *\n     * // returns a Promise containing a Dinero object with the destination currency\n     * // and the initial amount converted to the new currency.\n     * Dinero({ amount: 500 }).convert('EUR')\n     * @example\n     * // returns a Promise containing a Dinero object,\n     * // with specific API parameters and rounding mode for this specific instance.\n     * Dinero({ amount: 500 })\n     *   .convert('XBT', {\n     *     endpoint: 'https://yourexchangerates.api/latest?base={{from}}',\n     *     propertyPath: 'data.rates.{{to}}',\n     *     headers: {\n     *       'user-key': 'xxxxxxxxx'\n     *     },\n     *     roundingMode: 'HALF_UP'\n     *   })\n     * @example\n     * // usage with exchange rates provided as a custom promise\n     * // using the default `propertyPath` format (so it doesn't have to be specified)\n     * const rates = {\n     *   rates: {\n     *     EUR: 0.81162\n     *   }\n     * }\n     *\n     * Dinero({ amount: 500 })\n     *   .convert('EUR', {\n     *     endpoint: new Promise(resolve => resolve(rates))\n     *   })\n     * @example\n     * // usage with Promise.prototype.then and Promise.prototype.catch\n     * Dinero({ amount: 500 })\n     *   .convert('EUR')\n     *   .then(dinero => {\n     *     dinero.getCurrency() // returns 'EUR'\n     *   })\n     *   .catch(err => {\n     *     // handle errors\n     *   })\n     * @example\n     * // usage with async/await\n     * (async () => {\n     *   const price = await Dinero({ amount: 500 }).convert('EUR')\n     *   price.getCurrency() // returns 'EUR'\n     * })()\n     *\n     * @return {Promise}\n     */\n    convert: function convert(currency) {\n      var _this2 = this;\n\n      var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n          _ref$endpoint = _ref.endpoint,\n          endpoint = _ref$endpoint === void 0 ? globalExchangeRatesApi.endpoint : _ref$endpoint,\n          _ref$propertyPath = _ref.propertyPath,\n          propertyPath = _ref$propertyPath === void 0 ? globalExchangeRatesApi.propertyPath || 'rates.{{to}}' : _ref$propertyPath,\n          _ref$headers = _ref.headers,\n          headers = _ref$headers === void 0 ? globalExchangeRatesApi.headers : _ref$headers,\n          _ref$roundingMode = _ref.roundingMode,\n          roundingMode = _ref$roundingMode === void 0 ? globalRoundingMode : _ref$roundingMode;\n\n      var options = Object.assign({}, {\n        endpoint: endpoint,\n        propertyPath: propertyPath,\n        headers: headers,\n        roundingMode: roundingMode\n      });\n      return CurrencyConverter(options).getExchangeRate(this.getCurrency(), currency).then(function (rate) {\n        assert(!isUndefined(rate), \"No rate was found for the destination currency \\\"\".concat(currency, \"\\\".\"), TypeError);\n        return create.call(_this2, {\n          amount: calculator$1.round(calculator$1.multiply(_this2.getAmount(), parseFloat(rate)), options.roundingMode),\n          currency: currency\n        });\n      });\n    },\n\n    /**\n     * Checks whether the value represented by this object equals to the other.\n     *\n     * @param  {Dinero} comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 500, currency: 'EUR' }).equalsTo(Dinero({ amount: 500, currency: 'EUR' }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 500, currency: 'EUR' }).equalsTo(Dinero({ amount: 800, currency: 'EUR' }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 500, currency: 'USD' }).equalsTo(Dinero({ amount: 500, currency: 'EUR' }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 500, currency: 'USD' }).equalsTo(Dinero({ amount: 800, currency: 'EUR' }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 1000, currency: 'EUR', precision: 2 }).equalsTo(Dinero({ amount: 10000, currency: 'EUR', precision: 3 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 10000, currency: 'EUR', precision: 2 }).equalsTo(Dinero({ amount: 10000, currency: 'EUR', precision: 3 }))\n     *\n     * @return {Boolean}\n     */\n    equalsTo: function equalsTo(comparator) {\n      return this.hasSameAmount(comparator) && this.hasSameCurrency(comparator);\n    },\n\n    /**\n     * Checks whether the value represented by this object is less than the other.\n     *\n     * @param  {Dinero} comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).lessThan(Dinero({ amount: 800 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 800 }).lessThan(Dinero({ amount: 500 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 5000, precision: 3 }).lessThan(Dinero({ amount: 800 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 800 }).lessThan(Dinero({ amount: 5000, precision: 3 }))\n     *\n     * @throws {TypeError} If `comparator` has a different currency.\n     *\n     * @return {Boolean}\n     */\n    lessThan: function lessThan(comparator) {\n      assertSameCurrency.call(this, comparator);\n      var comparators = Dinero.normalizePrecision([this, comparator]);\n      return comparators[0].getAmount() < comparators[1].getAmount();\n    },\n\n    /**\n     * Checks whether the value represented by this object is less than or equal to the other.\n     *\n     * @param  {Dinero} comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 800 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 500 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 300 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 5000, precision: 3 }).lessThanOrEqual(Dinero({ amount: 800 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 5000, precision: 3 }).lessThanOrEqual(Dinero({ amount: 500 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 800 }).lessThanOrEqual(Dinero({ amount: 5000, precision: 3 }))\n     *\n     * @throws {TypeError} If `comparator` has a different currency.\n     *\n     * @return {Boolean}\n     */\n    lessThanOrEqual: function lessThanOrEqual(comparator) {\n      assertSameCurrency.call(this, comparator);\n      var comparators = Dinero.normalizePrecision([this, comparator]);\n      return comparators[0].getAmount() <= comparators[1].getAmount();\n    },\n\n    /**\n     * Checks whether the value represented by this object is greater than the other.\n     *\n     * @param  {Dinero} comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns false\n     * Dinero({ amount: 500 }).greaterThan(Dinero({ amount: 800 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 800 }).greaterThan(Dinero({ amount: 500 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 800 }).greaterThan(Dinero({ amount: 5000, precision: 3 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 5000, precision: 3 }).greaterThan(Dinero({ amount: 800 }))\n     *\n     * @throws {TypeError} If `comparator` has a different currency.\n     *\n     * @return {Boolean}\n     */\n    greaterThan: function greaterThan(comparator) {\n      assertSameCurrency.call(this, comparator);\n      var comparators = Dinero.normalizePrecision([this, comparator]);\n      return comparators[0].getAmount() > comparators[1].getAmount();\n    },\n\n    /**\n     * Checks whether the value represented by this object is greater than or equal to the other.\n     *\n     * @param  {Dinero} comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 300 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 500 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 800 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 800 }).greaterThanOrEqual(Dinero({ amount: 5000, precision: 3 }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 5000, precision: 3 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 5000, precision: 3 }).greaterThanOrEqual(Dinero({ amount: 800 }))\n     *\n     * @throws {TypeError} If `comparator` has a different currency.\n     *\n     * @return {Boolean}\n     */\n    greaterThanOrEqual: function greaterThanOrEqual(comparator) {\n      assertSameCurrency.call(this, comparator);\n      var comparators = Dinero.normalizePrecision([this, comparator]);\n      return comparators[0].getAmount() >= comparators[1].getAmount();\n    },\n\n    /**\n     * Checks if the value represented by this object is zero.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 0 }).isZero()\n     * @example\n     * // returns false\n     * Dinero({ amount: 100 }).isZero()\n     *\n     * @return {Boolean}\n     */\n    isZero: function isZero() {\n      return this.getAmount() === 0;\n    },\n\n    /**\n     * Checks if the value represented by this object is positive.\n     *\n     * @example\n     * // returns false\n     * Dinero({ amount: -10 }).isPositive()\n     * @example\n     * // returns true\n     * Dinero({ amount: 10 }).isPositive()\n     * @example\n     * // returns true\n     * Dinero({ amount: 0 }).isPositive()\n     *\n     * @return {Boolean}\n     */\n    isPositive: function isPositive() {\n      return this.getAmount() >= 0;\n    },\n\n    /**\n     * Checks if the value represented by this object is negative.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: -10 }).isNegative()\n     * @example\n     * // returns false\n     * Dinero({ amount: 10 }).isNegative()\n     * @example\n     * // returns false\n     * Dinero({ amount: 0 }).isNegative()\n     *\n     * @return {Boolean}\n     */\n    isNegative: function isNegative() {\n      return this.getAmount() < 0;\n    },\n\n    /**\n     * Checks if this has minor currency units.\n     * Deprecates {@link module:Dinero~hasCents hasCents}.\n     *\n     * @example\n     * // returns false\n     * Dinero({ amount: 1100 }).hasSubUnits()\n     * @example\n     * // returns true\n     * Dinero({ amount: 1150 }).hasSubUnits()\n     *\n     * @return {Boolean}\n     */\n    hasSubUnits: function hasSubUnits() {\n      return calculator$1.modulo(this.getAmount(), Math.pow(10, precision)) !== 0;\n    },\n\n    /**\n     * Checks if this has minor currency units.\n     *\n     * @deprecated since version 1.4.0, will be removed in 2.0.0\n     * Use {@link module:Dinero~hasSubUnits hasSubUnits} instead.\n     *\n     * @example\n     * // returns false\n     * Dinero({ amount: 1100 }).hasCents()\n     * @example\n     * // returns true\n     * Dinero({ amount: 1150 }).hasCents()\n     *\n     * @return {Boolean}\n     */\n    hasCents: function hasCents() {\n      return calculator$1.modulo(this.getAmount(), Math.pow(10, precision)) !== 0;\n    },\n\n    /**\n     * Checks whether the currency represented by this object equals to the other.\n     *\n     * @param  {Dinero}  comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 2000, currency: 'EUR' }).hasSameCurrency(Dinero({ amount: 1000, currency: 'EUR' }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 1000, currency: 'EUR' }).hasSameCurrency(Dinero({ amount: 1000, currency: 'USD' }))\n     *\n     * @return {Boolean}\n     */\n    hasSameCurrency: function hasSameCurrency(comparator) {\n      return this.getCurrency() === comparator.getCurrency();\n    },\n\n    /**\n     * Checks whether the amount represented by this object equals to the other.\n     *\n     * @param  {Dinero}  comparator - The Dinero object to compare to.\n     *\n     * @example\n     * // returns true\n     * Dinero({ amount: 1000, currency: 'EUR' }).hasSameAmount(Dinero({ amount: 1000 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 2000, currency: 'EUR' }).hasSameAmount(Dinero({ amount: 1000, currency: 'EUR' }))\n     * @example\n     * // returns true\n     * Dinero({ amount: 1000, currency: 'EUR', precision: 2 }).hasSameAmount(Dinero({ amount: 10000, precision: 3 }))\n     * @example\n     * // returns false\n     * Dinero({ amount: 10000, currency: 'EUR', precision: 2 }).hasSameAmount(Dinero({ amount: 10000, precision: 3 }))\n     *\n     * @return {Boolean}\n     */\n    hasSameAmount: function hasSameAmount(comparator) {\n      var comparators = Dinero.normalizePrecision([this, comparator]);\n      return comparators[0].getAmount() === comparators[1].getAmount();\n    },\n\n    /**\n     * Returns this object formatted as a string.\n     *\n     * The format is a mask which defines how the output string will be formatted.\n     * It defines whether to display a currency, in what format, how many fraction digits to display and whether to use grouping separators.\n     * The output is formatted according to the applying locale.\n     *\n     * Object                       | Format            | String\n     * :--------------------------- | :---------------- | :---\n     * `Dinero({ amount: 500050 })` | `'$0,0.00'`       | $5,000.50\n     * `Dinero({ amount: 500050 })` | `'$0,0'`          | $5,001\n     * `Dinero({ amount: 500050 })` | `'$0'`            | $5001\n     * `Dinero({ amount: 500050 })` | `'$0.0'`          | $5000.5\n     * `Dinero({ amount: 500050 })` | `'USD0,0.0'`      | USD5,000.5\n     * `Dinero({ amount: 500050 })` | `'0,0.0 dollar'`  | 5,000.5 dollars\n     *\n     * Don't try to substitute the `$` sign or the `USD` code with your target currency, nor adapt the format string to the exact format you want.\n     * The format is a mask which defines a pattern and returns a valid, localized currency string.\n     * If you want to display the object in a custom way, either use {@link module:Dinero~getAmount getAmount}, {@link module:Dinero~toUnit toUnit} or {@link module:Dinero~toRoundedUnit toRoundedUnit} and manipulate the output string as you wish.\n     *\n     * {@link module:Dinero~toFormat toFormat} wraps around `Number.prototype.toLocaleString`. For that reason, **format will vary depending on how it's implemented in the end user's environment**.\n     *\n     * You can also use `toLocaleString` directly:\n     * `Dinero().toRoundedUnit(digits, roundingMode).toLocaleString(locale, options)`.\n     *\n     * By default, amounts are rounded using the **half away from zero** rule ([commercial rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero)).\n     * You can also specify a different `roundingMode` to better fit your needs.\n     *\n     * @param  {String} [format='$0,0.00'] - The format mask to format to.\n     * @param  {String} [roundingMode='HALF_AWAY_FROM_ZERO'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @example\n     * // returns $2,000\n     * Dinero({ amount: 200000 }).toFormat('$0,0')\n     * @example\n     * // returns €50.5\n     * Dinero({ amount: 5050, currency: 'EUR' }).toFormat('$0,0.0')\n     * @example\n     * // returns 100 euros\n     * Dinero({ amount: 10000, currency: 'EUR' }).setLocale('fr-FR').toFormat('0,0 dollar')\n     * @example\n     * // returns 2000\n     * Dinero({ amount: 200000, currency: 'EUR' }).toFormat()\n     * @example\n     * // returns $10\n     * Dinero({ amount: 1050 }).toFormat('$0', 'HALF_EVEN')\n     *\n     * @return {String}\n     */\n    toFormat: function toFormat() {\n      var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : globalFormat;\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;\n      var formatter = Format(format);\n      return this.toRoundedUnit(formatter.getMinimumFractionDigits(), roundingMode).toLocaleString(this.getLocale(), {\n        currencyDisplay: formatter.getCurrencyDisplay(),\n        useGrouping: formatter.getUseGrouping(),\n        minimumFractionDigits: formatter.getMinimumFractionDigits(),\n        style: formatter.getStyle(),\n        currency: this.getCurrency()\n      });\n    },\n\n    /**\n     * Returns the amount represented by this object in units.\n     *\n     * @example\n     * // returns 10.5\n     * Dinero({ amount: 1050 }).toUnit()\n     * @example\n     * // returns 10.545\n     * Dinero({ amount: 10545, precision: 3 }).toUnit()\n     *\n     * @return {Number}\n     */\n    toUnit: function toUnit() {\n      return calculator$1.divide(this.getAmount(), Math.pow(10, precision));\n    },\n\n    /**\n     * Returns the amount represented by this object in rounded units.\n     *\n     * By default, the method uses the **half away from zero** rule ([commercial rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero)).\n     * You can also specify a different `roundingMode` to better fit your needs.\n     *\n     * @example\n     * // returns 10.6\n     * Dinero({ amount: 1055 }).toRoundedUnit(1)\n     * @example\n     * // returns 10\n     * Dinero({ amount: 1050 }).toRoundedUnit(0, 'HALF_EVEN')\n     *\n     * @param  {Number} digits - The number of fraction digits to round to.\n     * @param  {String} [roundingMode='HALF_AWAY_FROM_ZERO'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.\n     *\n     * @return {Number}\n     */\n    toRoundedUnit: function toRoundedUnit(digits) {\n      var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;\n      var factor = Math.pow(10, digits);\n      return calculator$1.divide(calculator$1.round(calculator$1.multiply(this.toUnit(), factor), roundingMode), factor);\n    },\n\n    /**\n     * Returns the object's data as an object literal.\n     *\n     * @example\n     * // returns { amount: 500, currency: 'EUR', precision: 2 }\n     * Dinero({ amount: 500, currency: 'EUR', precision: 2 }).toObject()\n     *\n     * @return {Object}\n     */\n    toObject: function toObject() {\n      return {\n        amount: amount,\n        currency: currency,\n        precision: precision\n      };\n    },\n\n    /**\n     * Returns the object's data as an object literal.\n     *\n     * Alias of {@link module:Dinero~toObject toObject}.\n     * It is defined so that calling `JSON.stringify` on a Dinero object will automatically extract the relevant data.\n     *\n     * @example\n     * // returns '{\"amount\":500,\"currency\":\"EUR\",\"precision\":2}'\n     * JSON.stringify(Dinero({ amount: 500, currency: 'EUR', precision: 2 }))\n     *\n     * @return {Object}\n     */\n    toJSON: function toJSON() {\n      return this.toObject();\n    }\n  };\n};\n\nvar dinero = Object.assign(Dinero, Defaults, Globals, Static);\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (dinero);\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./node_modules/dinero.js/build/esm/dinero.js?");

/***/ }),

/***/ "./node_modules/lodash.assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash.assign/index.js ***!
  \*********************************************/
/***/ ((module) => {

eval("/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]';\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n  switch (args.length) {\n    case 0: return func.call(thisArg);\n    case 1: return func.call(thisArg, args[0]);\n    case 2: return func.call(thisArg, args[0], args[1]);\n    case 3: return func.call(thisArg, args[0], args[1], args[2]);\n  }\n  return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object),\n    nativeMax = Math.max;\n\n/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */\nvar nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  // Safari 9 makes `arguments.length` enumerable in strict mode.\n  var result = (isArray(value) || isArguments(value))\n    ? baseTimes(value.length, String)\n    : [];\n\n  var length = result.length,\n      skipIndexes = !!length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n  var objValue = object[key];\n  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n      (value === undefined && !(key in object))) {\n    object[key] = value;\n  }\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n  return function() {\n    var args = arguments,\n        index = -1,\n        length = nativeMax(args.length - start, 0),\n        array = Array(length);\n\n    while (++index < length) {\n      array[index] = args[start + index];\n    }\n    index = -1;\n    var otherArgs = Array(start + 1);\n    while (++index < start) {\n      otherArgs[index] = args[index];\n    }\n    otherArgs[start] = array;\n    return apply(func, this, otherArgs);\n  };\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n  object || (object = {});\n\n  var index = -1,\n      length = props.length;\n\n  while (++index < length) {\n    var key = props[index];\n\n    var newValue = customizer\n      ? customizer(object[key], source[key], key, object, source)\n      : undefined;\n\n    assignValue(object, key, newValue === undefined ? source[key] : newValue);\n  }\n  return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n  return baseRest(function(object, sources) {\n    var index = -1,\n        length = sources.length,\n        customizer = length > 1 ? sources[length - 1] : undefined,\n        guard = length > 2 ? sources[2] : undefined;\n\n    customizer = (assigner.length > 3 && typeof customizer == 'function')\n      ? (length--, customizer)\n      : undefined;\n\n    if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n      customizer = length < 3 ? undefined : customizer;\n      length = 1;\n    }\n    object = Object(object);\n    while (++index < length) {\n      var source = sources[index];\n      if (source) {\n        assigner(object, source, index, customizer);\n      }\n    }\n    return object;\n  });\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  length = length == null ? MAX_SAFE_INTEGER : length;\n  return !!length &&\n    (typeof value == 'number' || reIsUint.test(value)) &&\n    (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n *  else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n  if (!isObject(object)) {\n    return false;\n  }\n  var type = typeof index;\n  if (type == 'number'\n        ? (isArrayLike(object) && isIndex(index, object.length))\n        : (type == 'string' && index in object)\n      ) {\n    return eq(object[index], value);\n  }\n  return false;\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n    (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 8-9 which returns 'object' for typed array and other constructors.\n  var tag = isObject(value) ? objectToString.call(value) : '';\n  return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * function Bar() {\n *   this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\nvar assign = createAssigner(function(object, source) {\n  if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {\n    copyObject(source, keys(source), object);\n    return;\n  }\n  for (var key in source) {\n    if (hasOwnProperty.call(source, key)) {\n      assignValue(object, key, source[key]);\n    }\n  }\n});\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = assign;\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./node_modules/lodash.assign/index.js?");

/***/ }),

/***/ "@wordpress/block-editor":
/*!**********************************************!*\
  !*** external {"this":["wp","blockEditor"]} ***!
  \**********************************************/
/***/ ((module) => {

module.exports = (function() { return this["wp"]["blockEditor"]; }());

/***/ }),

/***/ "@wordpress/blocks":
/*!*****************************************!*\
  !*** external {"this":["wp","blocks"]} ***!
  \*****************************************/
/***/ ((module) => {

module.exports = (function() { return this["wp"]["blocks"]; }());

/***/ }),

/***/ "@wordpress/components":
/*!*********************************************!*\
  !*** external {"this":["wp","components"]} ***!
  \*********************************************/
/***/ ((module) => {

module.exports = (function() { return this["wp"]["components"]; }());

/***/ }),

/***/ "@wordpress/hooks":
/*!****************************************!*\
  !*** external {"this":["wp","hooks"]} ***!
  \****************************************/
/***/ ((module) => {

module.exports = (function() { return this["wp"]["hooks"]; }());

/***/ }),

/***/ "@wordpress/i18n":
/*!***************************************!*\
  !*** external {"this":["wp","i18n"]} ***!
  \***************************************/
/***/ ((module) => {

module.exports = (function() { return this["wp"]["i18n"]; }());

/***/ }),

/***/ "./node_modules/classnames/index.js":
/*!******************************************!*\
  !*** ./node_modules/classnames/index.js ***!
  \******************************************/
/***/ ((module) => {

eval("/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif ( true && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n//# sourceURL=webpack://yith-woocommerce-pdf-invoice-premium/./node_modules/classnames/index.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./includes/pdf-builder/editor/src/index.js");
/******/ 	var __webpack_export_target__ = this;
/******/ 	for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
/******/ 	if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
/******/ 	
/******/ })()
;