(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[12],{

/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/import-glob/index.js!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib??ref--2!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/import-glob!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js ***!
  \***************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
	value: true
});

var _cloneDeep = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");

var _cloneDeep2 = _interopRequireDefault(_cloneDeep);

var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");

var _debounce2 = _interopRequireDefault(_debounce);

var _axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");

var _axios2 = _interopRequireDefault(_axios);

var _qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");

var _qs2 = _interopRequireDefault(_qs);

var _vueMultiselect = __webpack_require__(/*! vue-multiselect */ "./node_modules/vue-multiselect/dist/vue-multiselect.min.js");

var _vueMultiselect2 = _interopRequireDefault(_vueMultiselect);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
	components: { Multiselect: _vueMultiselect2.default },
	data: function data() {
		return {
			loading: false,
			sendFromOffice: [],
			sendFromAddress: [],
			sendFrom: '',
			sendFromType: '',
			type: '',
			sendFromTypes: [{
				id: 'office',
				label: wooBg_speedy.i18n.office
			}, {
				id: 'address',
				label: wooBg_speedy.i18n.address
			}],
			types: [{
				id: 'office',
				label: wooBg_speedy.i18n.office
			}, {
				id: 'automat',
				label: wooBg_speedy.i18n.automat
			}, {
				id: 'address',
				label: wooBg_speedy.i18n.address
			}],
			paymentType: wooBg_speedy.paymentType,
			paymentBy: '',
			paymentByTypes: [{
				id: 'RECIPIENT',
				label: wooBg_speedy.i18n.buyer
			}, {
				id: 'SENDER',
				label: wooBg_speedy.i18n.sender
			}, {
				id: 'fixed',
				label: wooBg_speedy.i18n.fixedPrice
			}],
			size: 'A6',
			shipmentStatus: '',
			labelData: wooBg_speedy.label,
			document: $(document.body),
			office: '',
			offices: (0, _cloneDeep2.default)(wooBg_speedy.offices),
			street: '',
			streets: (0, _cloneDeep2.default)(wooBg_speedy.streets),
			testOption: '',
			testsOptions: (0, _cloneDeep2.default)(wooBg_speedy.testsOptions),
			streetNumber: '',
			other: '',
			message: '',
			i18n: wooBg_speedy.i18n,
			cookie_data: (0, _cloneDeep2.default)(wooBg_speedy.cookie_data),
			declaredValue: '',
			operations: []
		};
	},

	computed: {
		iframeUrl: function iframeUrl() {
			var parcels = [];
			var link = '';

			if (this.shipmentStatus.id !== "undefined") {
				this.shipmentStatus.parcels.forEach(function (parcel) {
					parcels.push(parcel.id);
				});

				link = woocommerce_admin.ajax_url + '?cache-buster=' + Math.random() + '&action=woo_bg_speedy_print_labels&parcels=' + parcels.join('|') + "&size=" + this.size;
			}

			return parcels.length ? link : '';
		},
		labelJSON: function labelJSON() {
			return JSON.stringify(this.labelData);
		},
		statuses: function statuses() {
			var statuses = [];

			if (this.operations.length) {
				this.operations.forEach(function (status) {
					var details = status.description;

					if (typeof status.comment !== 'undefined') {
						details += ' - ' + status.comment;
					}

					var time = new Date(status.dateTime).toLocaleString();

					statuses.push({
						time: time,
						details: details
					});
				});

				statuses.reverse();
			}

			return statuses;
		},
		recipientOffices: function recipientOffices() {
			if (this.type.id === 'automat') {
				return this.offices.filter(function (office) {
					return office.type === 'APT';
				});
			}

			if (this.type.id === 'office') {
				return this.offices.filter(function (office) {
					return office.type !== 'APT';
				});
			}

			return this.offices;
		}
	},
	mounted: function mounted() {
		var _this = this;

		if (wooBg_speedy.shipmentStatus) {
			this.shipmentStatus = wooBg_speedy.shipmentStatus;
		}

		this.document.on('change', 'input[name="label_size"]', function () {
			_this.size = $(this).val();
		});

		this.types.forEach(function (type) {
			if (type.id == wooBg_speedy.cookie_data.type) {
				_this.type = type;
			}
		});

		this.sendFromTypes.forEach(function (type) {
			if (type.id == wooBg_speedy.sendFrom.type) {
				_this.sendFromType = type;
			}
		});

		this.sendFromOffice = wooBg_speedy.sendFrom.offices;
		this.sendFromAddress = wooBg_speedy.sendFrom.addresses;

		if (this.sendFromType.id === 'office') {
			Object.values(this.sendFromOffice).forEach(function (office) {
				if (office.id.toLowerCase() == wooBg_speedy.sendFrom.currentOffice.toLowerCase()) {
					_this.sendFrom = office;
				}
			});
		} else {
			Object.values(this.sendFromAddress).forEach(function (address) {
				if (address.id == wooBg_speedy.sendFrom.currentAddress) {
					_this.sendFrom = address;
				}
			});
		}

		this.testsOptions.forEach(function (option) {
			if (option.id == wooBg_speedy.testOption) {
				_this.testOption = option;
			}
		});

		if (wooBg_speedy.cookie_data.type == 'office' || wooBg_speedy.cookie_data.type == 'automat') {
			this.offices.forEach(function (office) {
				if (office.id == wooBg_speedy.cookie_data.selectedOffice) {
					_this.office = office;
				}
			});
		} else {
			this.streetNumber = wooBg_speedy.cookie_data.streetNumber;
			this.other = wooBg_speedy.cookie_data.other;
			this.streets.forEach(function (street) {
				if (street.orig_key == wooBg_speedy.cookie_data.selectedAddress.orig_key) {
					_this.street = street;
				}
			});
		}

		this.paymentBy = this.paymentByTypes[0];

		if (wooBg_speedy.cookie_data.fixed_price) {
			this.paymentBy = this.paymentByTypes[2];
		} else if (wooBg_speedy.label.payment.courierServicePayer === 'SENDER') {
			this.paymentBy = this.paymentByTypes[1];
		}

		if (typeof wooBg_speedy.label.service.additionalServices.declaredValue !== 'undefined') {
			this.declaredValue = wooBg_speedy.label.service.additionalServices.declaredValue.amount;
		}

		if (wooBg_speedy.operations) {
			this.operations = wooBg_speedy.operations;
		}
	},

	methods: {
		addParcel: function addParcel() {
			var parcels = this.labelData.content.parcels || [];

			var template = void 0;

			if (parcels.length > 0) {
				template = (0, _cloneDeep2.default)(parcels[0]);

				if (template.id) {
					delete template.id;
				}
			} else {
				template = {
					seqNo: 1,
					weight: 1,
					size: {
						depth: '',
						width: '',
						height: ''
					}
				};
			}

			template.seqNo = parcels.length + 1;

			parcels.push(template);
			this.$set(this.labelData.content, 'parcels', parcels);
		},
		removeParcel: function removeParcel(index) {
			var _this2 = this;

			var parcels = this.labelData.content.parcels;

			if (!Array.isArray(parcels) || parcels.length <= 1) {
				return;
			}

			parcels.splice(index, 1);

			parcels.forEach(function (parcel, idx) {
				_this2.$set(parcel, 'seqNo', idx + 1);
			});
		},

		asyncFind: (0, _debounce2.default)(function (query) {
			var _this3 = this;

			if (!query) {
				return;
			}

			this.isLoading = true;
			var data = {
				query: query,
				action: 'woo_bg_speedy_search_address',
				country: wooBg_speedy.cookie_data.country,
				state: wooBg_speedy.cookie_data.state,
				city: wooBg_speedy.cookie_data.city,
				nonce: wooBg_speedy.nonce
			};

			_axios2.default.post(woocommerce_admin.ajax_url, _qs2.default.stringify(data)).then(function (response) {
				if (response.data.data.cities) {
					_this3.streets = (0, _cloneDeep2.default)(response.data.data.cities);
				} else if (response.data.data.streets) {
					_this3.streets = (0, _cloneDeep2.default)(response.data.data.streets);
				}

				_this3.isLoading = false;
			});
		}, 200),
		onCopy: function onCopy(e) {
			alert(this.i18n.copyLabelDataMessage);
		},
		updateLabel: function updateLabel(e) {
			e.preventDefault();

			this.loading = true;
			var _this = this;
			_this.message = '';

			var data = {
				type: this.type,
				send_from_type: this.sendFromType.id,
				send_from: this.sendFrom.id,
				label_data: this.labelData,
				office: this.office,
				street: this.street,
				streetNumber: this.streetNumber,
				other: this.other,
				paymentBy: this.paymentBy,
				testOption: this.testOption,
				cookie_data: this.cookie_data,
				orderId: wooBg_speedy.orderId,
				declaredValue: this.declaredValue,
				action: 'woo_bg_speedy_generate_label',
				nonce: wooBg_speedy.nonce
			};

			_axios2.default.post(woocommerce_admin.ajax_url, _qs2.default.stringify(data)).then(function (response) {
				_this.loading = false;
				if (response.data.data.message) {
					_this.message = response.data.data.message;
				} else {
					_this.shipmentStatus = (0, _cloneDeep2.default)(response.data.data.shipmentStatus, true);
					_this.labelData = (0, _cloneDeep2.default)(response.data.data.label, true);
				}
			});
		},
		updateShipmentStatus: function updateShipmentStatus(e) {
			e.preventDefault();

			this.loading = true;
			var _this = this;
			_this.message = '';

			var data = {
				orderId: wooBg_speedy.orderId,
				shipmentStatus: this.shipmentStatus,
				action: 'woo_bg_speedy_update_shipment_status',
				nonce: wooBg_speedy.nonce
			};

			_axios2.default.post(woocommerce_admin.ajax_url, _qs2.default.stringify(data)).then(function (response) {
				_this.loading = false;

				if (response.data.data.message) {
					_this.message = response.data.data.message;
				} else {
					_this.operations = (0, _cloneDeep2.default)(response.data.data.operations, true);
				}
			});
		},
		deleteLabel: function deleteLabel(e) {
			e.preventDefault();

			this.loading = true;
			var _this = this;
			_this.message = '';

			var data = {
				orderId: wooBg_speedy.orderId,
				shipmentStatus: this.shipmentStatus,
				action: 'woo_bg_speedy_delete_label',
				nonce: wooBg_speedy.nonce
			};

			_axios2.default.post(woocommerce_admin.ajax_url, _qs2.default.stringify(data)).then(function (response) {

				_this.shipmentStatus = '';
				_this.operations = '';
				_this.loading = false;
			});
		}
	}
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ "jquery")))

/***/ }),

/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib??ref--2!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97 ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var render = function render() {
  var _vm = this,
      _c = _vm._self._c;
  return _c("div", {
    staticClass: "panel-wrap woocommerce woocommerce--speedy ajax-container woocommerce--woo-bg-label",
    attrs: { "data-loading": _vm.loading }
  }, [_c("div", {
    staticClass: "panel woocommerce-order-data",
    attrs: { id: "order_data" }
  }, [_c("div", { staticClass: "order_data_column_container" }, [_c("div", { staticClass: "order_data_column order_data_column--half" }, [_c("h3", [_vm._v(_vm._s(_vm.i18n.labelData))]), _vm._v(" "), _c("form", [!_vm.shipmentStatus ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.sendFrom) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.sendFromTypes),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref) {
        var option = _ref.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }], null, false, 275817578),
    model: {
      value: _vm.sendFromType,
      callback: function callback($$v) {
        _vm.sendFromType = $$v;
      },
      expression: "sendFromType"
    }
  })], 1) : _vm._e(), _vm._v(" "), !_vm.shipmentStatus && _vm.sendFromType.id === "office" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.office) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.sendFromOffice),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref2) {
        var option = _ref2.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }], null, false, 275817578),
    model: {
      value: _vm.sendFrom,
      callback: function callback($$v) {
        _vm.sendFrom = $$v;
      },
      expression: "sendFrom"
    }
  })], 1) : _vm._e(), _vm._v(" "), !_vm.shipmentStatus && _vm.sendFromType.id === "address" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.address) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.sendFromAddress),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref3) {
        var option = _ref3.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }], null, false, 275817578),
    model: {
      value: _vm.sendFrom,
      callback: function callback($$v) {
        _vm.sendFrom = $$v;
      },
      expression: "sendFrom"
    }
  })], 1) : _vm._e(), _vm._v(" "), !_vm.shipmentStatus ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.deliveryType) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.types),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref4) {
        var option = _ref4.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }], null, false, 275817578),
    model: {
      value: _vm.type,
      callback: function callback($$v) {
        _vm.type = $$v;
      },
      expression: "type"
    }
  })], 1) : _vm._e(), _vm._v(" "), _vm.type.id == "office" || _vm.type.id == "automat" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.type.id == "automat" ? _vm.i18n.automat : _vm.i18n.office) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "name",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.recipientOffices),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref5) {
        var option = _ref5.option;

        return [_c("strong", [_vm._v(_vm._s(option.name))])];
      }
    }], null, false, 2784876651),
    model: {
      value: _vm.office,
      callback: function callback($$v) {
        _vm.office = $$v;
      },
      expression: "office"
    }
  })], 1) : _vm._e(), _vm._v(" "), _vm.type.id == "address" ? _c("div", [_c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.streetQuarter) + ":\n\t\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.streets),
      searchable: true,
      "allow-empty": false
    },
    on: { "search-change": _vm.asyncFind },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref6) {
        var option = _ref6.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }], null, false, 275817578),
    model: {
      value: _vm.street,
      callback: function callback($$v) {
        _vm.street = $$v;
      },
      expression: "street"
    }
  })], 1), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [!_vm.streets.length ? _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.cookie_data.mysticQuarter,
      expression: "cookie_data.mysticQuarter"
    }],
    staticClass: "woo-bg-multiselect--additional-field",
    attrs: {
      placeholder: _vm.i18n.mysticQuarter,
      type: "text"
    },
    domProps: {
      value: _vm.cookie_data.mysticQuarter
    },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.cookie_data, "mysticQuarter", $event.target.value);
      }
    }
  }) : _vm._e(), _vm._v(" "), _vm.street.type && _vm.street.type === "streets" || !_vm.streets.length ? _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.streetNumber,
      expression: "streetNumber"
    }],
    staticClass: "woo-bg-multiselect--additional-field",
    attrs: {
      placeholder: _vm.i18n.streetNumber,
      type: "text"
    },
    domProps: { value: _vm.streetNumber },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.streetNumber = $event.target.value;
      }
    }
  }) : _vm._e(), _vm._v(" "), _vm.street.type && _vm.street.type === "quarters" || !_vm.streets.length ? _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.other,
      expression: "other"
    }],
    staticClass: "woo-bg-multiselect--additional-field",
    attrs: {
      placeholder: _vm.i18n.blVhEt,
      type: "text"
    },
    domProps: { value: _vm.other },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.other = $event.target.value;
      }
    }
  }) : _vm._e()]), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_vm.street.type && _vm.street.type === "streets" ? _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.other,
      expression: "other"
    }],
    staticClass: "woo-bg-multiselect--additional-field",
    attrs: {
      placeholder: _vm.i18n.blVhEt,
      type: "text"
    },
    domProps: { value: _vm.other },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.other = $event.target.value;
      }
    }
  }) : _vm._e()])]) : _vm._e(), _vm._v(" "), _vm._l(_vm.labelData.content.parcels, function (parsel, key) {
    return _c("fieldset", { key: key }, [_c("legend", [_vm._v(_vm._s(_vm.i18n.pack) + " " + _vm._s(key + 1))]), _vm._v(" "), _c("p", {
      staticClass: "form-field form-field--1-of-3",
      staticStyle: { clear: "none" }
    }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.length) + " (cm):\n\t\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: parsel.size.depth,
        expression: "parsel.size.depth"
      }],
      attrs: { type: "number", step: "0.1" },
      domProps: { value: parsel.size.depth },
      on: {
        input: function input($event) {
          if ($event.target.composing) return;
          _vm.$set(parsel.size, "depth", $event.target.value);
        }
      }
    })]), _vm._v(" "), _c("p", {
      staticClass: "form-field form-field--1-of-3",
      staticStyle: { clear: "none" }
    }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.width) + " (cm):\n\t\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: parsel.size.width,
        expression: "parsel.size.width"
      }],
      attrs: { type: "number", step: "0.1" },
      domProps: { value: parsel.size.width },
      on: {
        input: function input($event) {
          if ($event.target.composing) return;
          _vm.$set(parsel.size, "width", $event.target.value);
        }
      }
    })]), _vm._v(" "), _c("p", {
      staticClass: "form-field form-field--1-of-3",
      staticStyle: { float: "right", clear: "none" }
    }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.height) + " (cm):\n\t\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: parsel.size.height,
        expression: "parsel.size.height"
      }],
      attrs: { type: "number", step: "0.1" },
      domProps: { value: parsel.size.height },
      on: {
        input: function input($event) {
          if ($event.target.composing) return;
          _vm.$set(parsel.size, "height", $event.target.value);
        }
      }
    })]), _vm._v(" "), typeof parsel.weight !== "undefined" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.weight) + ":\n\t\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: parsel.weight,
        expression: "parsel.weight"
      }],
      attrs: { type: "number", step: "0.001" },
      domProps: { value: parsel.weight },
      on: {
        input: function input($event) {
          if ($event.target.composing) return;
          _vm.$set(parsel, "weight", $event.target.value);
        }
      }
    })]) : _vm._e(), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("button", {
      staticClass: "button-secondary",
      attrs: {
        type: "button",
        disabled: _vm.labelData.content.parcels.length === 1
      },
      on: {
        click: function click($event) {
          return _vm.removeParcel(key);
        }
      }
    }, [_vm._v("\n\t\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.removePack) + "\n\t\t\t\t\t\t\t")])])]);
  }), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("button", {
    staticClass: "button-secondary",
    attrs: { type: "button" },
    on: { click: _vm.addParcel }
  }, [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.addPack) + "\n\t\t\t\t\t\t")])]), _vm._v(" "), typeof _vm.labelData.service.additionalServices !== "undefined" && typeof _vm.labelData.service.additionalServices.cod !== "undefined" && _vm.paymentType === "cod" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.cd) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.labelData.service.additionalServices.cod.amount,
      expression: "labelData.service.additionalServices.cod.amount"
    }],
    attrs: { type: "number" },
    domProps: {
      value: _vm.labelData.service.additionalServices.cod.amount
    },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.labelData.service.additionalServices.cod, "amount", $event.target.value);
      }
    }
  })]) : _vm._e(), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.declaredValue) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.declaredValue,
      expression: "declaredValue"
    }],
    attrs: { type: "number" },
    domProps: { value: _vm.declaredValue },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.declaredValue = $event.target.value;
      }
    }
  })]), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.description) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.labelData.content.contents,
      expression: "labelData.content.contents"
    }],
    attrs: { type: "text" },
    domProps: { value: _vm.labelData.content.contents },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.labelData.content, "contents", $event.target.value);
      }
    }
  })]), _vm._v(" "), _c("p", {
    staticClass: "form-field",
    staticStyle: { clear: "none" }
  }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\tref 1:\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.labelData.ref1,
      expression: "labelData.ref1"
    }],
    attrs: { type: "text" },
    domProps: { value: _vm.labelData.ref1 },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.labelData, "ref1", $event.target.value);
      }
    }
  })]), _vm._v(" "), _c("p", {
    staticClass: "form-field",
    staticStyle: { float: "right", clear: "none" }
  }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\tref 2:\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.labelData.ref2,
      expression: "labelData.ref2"
    }],
    attrs: { type: "text" },
    domProps: { value: _vm.labelData.ref2 },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.labelData, "ref2", $event.target.value);
      }
    }
  })]), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.deliveryPayedBy) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.paymentByTypes),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref7) {
        var option = _ref7.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }]),
    model: {
      value: _vm.paymentBy,
      callback: function callback($$v) {
        _vm.paymentBy = $$v;
      },
      expression: "paymentBy"
    }
  })], 1), _vm._v(" "), _vm.paymentBy.id === "fixed" ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.fixedPrice) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.cookie_data.fixed_price,
      expression: "cookie_data.fixed_price"
    }],
    attrs: { type: "number" },
    domProps: { value: _vm.cookie_data.fixed_price },
    on: {
      input: function input($event) {
        if ($event.target.composing) return;
        _vm.$set(_vm.cookie_data, "fixed_price", $event.target.value);
      }
    }
  })]) : _vm._e(), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_c("label", [_vm._v("\n\t\t\t\t\t\t\t" + _vm._s(_vm.i18n.reviewAndTest) + ":\n\t\t\t\t\t\t")]), _vm._v(" "), _c("multiselect", {
    attrs: {
      "deselect-label": "",
      selectLabel: "",
      "track-by": "id",
      label: "label",
      selectedLabel: _vm.i18n.selected,
      placeholder: _vm.i18n.choose,
      options: Object.values(_vm.testsOptions),
      searchable: true,
      "allow-empty": false
    },
    scopedSlots: _vm._u([{
      key: "singleLabel",
      fn: function fn(_ref8) {
        var option = _ref8.option;

        return [_c("strong", [_vm._v(_vm._s(option.label))])];
      }
    }]),
    model: {
      value: _vm.testOption,
      callback: function callback($$v) {
        _vm.testOption = $$v;
      },
      expression: "testOption"
    }
  })], 1), _vm._v(" "), _vm.shipmentStatus ? _c("p", { staticClass: "form-field form-field-wide" }, [_c("button", {
    staticClass: "button-primary woocommerce-save-button",
    attrs: {
      name: "save",
      type: "submit",
      value: _vm.i18n.updateLabel
    },
    on: { click: _vm.updateLabel }
  }, [_vm._v(_vm._s(_vm.i18n.updateLabel))]), _vm._v(" "), _c("button", {
    staticClass: "button-primary woocommerce-save-button",
    attrs: {
      name: "save",
      type: "submit",
      value: _vm.i18n.updateShipmentStatus
    },
    on: { click: _vm.updateShipmentStatus }
  }, [_vm._v(_vm._s(_vm.i18n.updateShipmentStatus))])]) : _c("p", { staticClass: "form-field form-field-wide" }, [_c("button", {
    staticClass: "button-primary woocommerce-save-button",
    attrs: {
      name: "save",
      type: "submit",
      value: _vm.i18n.generateLabel
    },
    on: { click: _vm.updateLabel }
  }, [_vm._v(_vm._s(_vm.i18n.generateLabel))])]), _vm._v(" "), _c("p", { staticClass: "form-field form-field-wide" }, [_vm.shipmentStatus ? _c("button", {
    staticClass: "button-secondary",
    attrs: {
      name: "save",
      type: "submit",
      value: _vm.i18n.deleteLabel
    },
    on: { click: _vm.deleteLabel }
  }, [_vm._v(_vm._s(_vm.i18n.deleteLabel))]) : _vm._e(), _vm._v(" "), _c("a", {
    directives: [{
      name: "clipboard",
      rawName: "v-clipboard:copy",
      value: _vm.labelJSON,
      expression: "labelJSON",
      arg: "copy"
    }, {
      name: "clipboard",
      rawName: "v-clipboard:success",
      value: _vm.onCopy,
      expression: "onCopy",
      arg: "success"
    }],
    staticClass: "button-secondary"
  }, [_vm._v(_vm._s(_vm.i18n.copyLabelData))])])], 2), _vm._v(" "), _c("div", { staticClass: "clear" }), _vm._v(" "), _vm.message ? _c("div", { staticClass: "notice notice-error notice-alt" }, [_c("p", [_vm._v(_vm._s(_vm.message))])]) : _vm._e()]), _vm._v(" "), _c("div", { staticClass: "order_data_column order_data_column--half" }, [_vm.shipmentStatus ? _c("div", { staticClass: "generated-label" }, [_c("h3", [_vm._v(_vm._s(_vm.i18n.label) + ": " + _vm._s(_vm.shipmentStatus.id))]), _vm._v(" "), _c("div", [_vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _vm._m(2), _vm._v(" "), _c("span", { staticClass: "woo-bg--radio" }, [_c("input", {
    attrs: {
      id: "label_size_a4_same",
      type: "radio",
      name: "label_size",
      value: "A4&awbsc=ON_SAME_PAGE"
    }
  }), _vm._v(" "), _c("label", { attrs: { for: "label_size_a4_same" } }, [_vm._v(_vm._s(_vm.i18n.a4WithCopy))])]), _vm._v(" "), _c("span", { staticClass: "woo-bg--radio" }, [_c("input", {
    attrs: {
      id: "label_size_a4_single",
      type: "radio",
      name: "label_size",
      value: "A4&awbsc=ON_SINGLE_PAGE"
    }
  }), _vm._v(" "), _c("label", { attrs: { for: "label_size_a4_single" } }, [_vm._v(_vm._s(_vm.i18n.a4OnSingle))])])]), _vm._v(" "), _c("iframe", {
    attrs: {
      id: "woo-bg--speedy-label-print",
      src: _vm.iframeUrl
    }
  })]) : _vm._e()])]), _vm._v(" "), _vm.statuses.length ? _c("div", { staticClass: "woocommerce_order_status" }, [_c("h3", [_vm._v(_vm._s(_vm.i18n.shipmentStatus))]), _vm._v(" "), _c("table", [_c("thead", [_c("tr", [_c("th", [_vm._v(" " + _vm._s(_vm.i18n.time) + " ")]), _vm._v(" "), _c("th", [_vm._v(" " + _vm._s(_vm.i18n.details) + " ")])])]), _vm._v(" "), _c("tbody", _vm._l(_vm.statuses, function (status, key) {
    return _c("tr", [_c("th", [_vm._v(" " + _vm._s(status.time) + " ")]), _vm._v(" "), _c("th", [_vm._v(" " + _vm._s(status.details) + " ")])]);
  }), 0)])]) : _vm._e()]), _vm._v(" "), _c("div", { staticClass: "clear" })]);
};
var staticRenderFns = [function () {
  var _vm = this,
      _c = _vm._self._c;
  return _c("span", { staticClass: "woo-bg--radio" }, [_c("input", {
    attrs: {
      id: "label_size_default",
      type: "radio",
      name: "label_size",
      value: "A6",
      checked: ""
    }
  }), _vm._v(" "), _c("label", { attrs: { for: "label_size_default" } }, [_vm._v("A6")])]);
}, function () {
  var _vm = this,
      _c = _vm._self._c;
  return _c("span", { staticClass: "woo-bg--radio" }, [_c("input", {
    attrs: {
      id: "label_size_A4_4xA6",
      type: "radio",
      name: "label_size",
      value: "A4_4xA6"
    }
  }), _vm._v(" "), _c("label", { attrs: { for: "label_size_A4_4xA6" } }, [_vm._v("A4_4xA6")])]);
}, function () {
  var _vm = this,
      _c = _vm._self._c;
  return _c("span", { staticClass: "woo-bg--radio" }, [_c("input", {
    attrs: {
      id: "label_size_a4",
      type: "radio",
      name: "label_size",
      value: "A4"
    }
  }), _vm._v(" "), _c("label", { attrs: { for: "label_size_a4" } }, [_vm._v("A4")])]);
}];
render._withStripped = true;

exports.render = render;
exports.staticRenderFns = staticRenderFns;

/***/ }),

/***/ "./node_modules/lodash/_baseTrim.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseTrim.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");

/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string
    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
    : string;
}

module.exports = baseTrim;


/***/ }),

/***/ "./node_modules/lodash/_trimmedEndIndex.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_trimmedEndIndex.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to match a single whitespace character. */
var reWhitespace = /\s/;

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function trimmedEndIndex(string) {
  var index = string.length;

  while (index-- && reWhitespace.test(string.charAt(index))) {}
  return index;
}

module.exports = trimmedEndIndex;


/***/ }),

/***/ "./node_modules/lodash/debounce.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/debounce.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
    toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = toNumber(wait) || 0;
  if (isObject(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        timeWaiting = wait - timeSinceLastCall;

    return maxing
      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
      : timeWaiting;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(now());
  }

  function debounced() {
    var time = now(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

module.exports = debounce;


/***/ }),

/***/ "./node_modules/lodash/isSymbol.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isSymbol.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;


/***/ }),

/***/ "./node_modules/lodash/now.js":
/*!************************************!*\
  !*** ./node_modules/lodash/now.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return root.Date.now();
};

module.exports = now;


/***/ }),

/***/ "./node_modules/lodash/toNumber.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toNumber.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = baseTrim(value);
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = toNumber;


/***/ }),

/***/ "./resources/scripts/speedy-admin/apps/app.js":
/*!****************************************************!*\
  !*** ./resources/scripts/speedy-admin/apps/app.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
	value: true
});

__webpack_require__(/*! es6-promise/auto */ "./node_modules/es6-promise/auto.js");

var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");

var _vue2 = _interopRequireDefault(_vue);

var _Admin = __webpack_require__(/*! ./components/Admin.vue */ "./resources/scripts/speedy-admin/apps/components/Admin.vue");

var _Admin2 = _interopRequireDefault(_Admin);

var _vueClipboard = __webpack_require__(/*! vue-clipboard2 */ "./node_modules/vue-clipboard2/vue-clipboard.js");

var _vueClipboard2 = _interopRequireDefault(_vueClipboard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_vue2.default.use(_vueClipboard2.default);

exports.default = new _vue2.default({
	el: '#woo-bg--speedy-admin',
	render: function render(h) {
		return h(_Admin2.default);
	}
});

/***/ }),

/***/ "./resources/scripts/speedy-admin/apps/components/Admin.vue":
/*!******************************************************************!*\
  !*** ./resources/scripts/speedy-admin/apps/components/Admin.vue ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Admin.vue?vue&type=template&id=3241ec97 */ "./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97");
/* harmony import */ var _Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Admin.vue?vue&type=script&lang=js */ "./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js");
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__["render"],
  _Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "resources/scripts/speedy-admin/apps/components/Admin.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js":
/*!******************************************************************************************!*\
  !*** ./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--2!../../../../../node_modules/vue-loader/lib??vue-loader-options!../../../../../node_modules/import-glob!./Admin.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/import-glob/index.js!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=script&lang=js");
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_import_glob_index_js_Admin_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ "./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97":
/*!************************************************************************************************!*\
  !*** ./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97 ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_vue_loader_lib_index_js_vue_loader_options_Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--2!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Admin.vue?vue&type=template&id=3241ec97 */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/scripts/speedy-admin/apps/components/Admin.vue?vue&type=template&id=3241ec97");
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_vue_loader_lib_index_js_vue_loader_options_Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_vue_loader_lib_index_js_vue_loader_options_Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_vue_loader_lib_index_js_vue_loader_options_Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_ref_2_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_vue_loader_lib_index_js_vue_loader_options_Admin_vue_vue_type_template_id_3241ec97__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 0:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ })

}]);
//# sourceMappingURL=a34dc1f69249102f6faf.js.map