1 |
- {"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./components/addAddressDialog.vue?b4fa","webpack:///./components/addAddressDialog.vue?535f","webpack:///./components/addAddressDialog.vue","webpack:///./components/addAddressDialog.vue?66e9","webpack:///./components/addAddressDialog.vue?b4d1"],"names":["$","IS_PURE","DESCRIPTORS","globalThis","path","uncurryThis","isForced","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","fails","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","thisNumberValue","trim","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","prototype","TypeError","stringSlice","slice","charCodeAt","toNumber","argument","first","third","radix","maxCode","digits","length","index","code","it","NaN","parseInt","FORCED","NumberWrapper","value","dummy","n","arguments","primValue","toNumeric","this","Object","constructor","global","wrap","forced","Number","copyConstructorProperties","target","source","key","keys","split","j","module","exports","valueOf","props","dialogVisible","type","Boolean","default","componentVisible","data","country","name","phone","address","post_code","city","state","is_default","options","rules","required","message","trigger","cityList","id","stateList","computed","dialogFormVisible","get","set","val","$emit","methods","submit","ruleForm","_this","$refs","validate","valid","console","log","addAddress","$route","fullPath","includes","$router","push","query","editAddress","_this2","$axios","post","then","res","$notify","title","duration","update","catch","error","$message","response","msg","_this3","component","_vm","_c","_self","attrs","on","$event","ref","_v","model","callback","$$v","$set","expression","staticStyle","staticClass","slot"],"mappings":"8FACA,IAAIA,EAAI,EAAQ,GACZC,EAAU,EAAQ,IAClBC,EAAc,EAAQ,IACtBC,EAAa,EAAQ,GACrBC,KAAO,EAAQ,KACfC,EAAc,EAAQ,GACtBC,EAAW,EAAQ,KACnBC,EAAS,EAAQ,IACjBC,EAAoB,EAAQ,KAC5BC,EAAgB,EAAQ,IACxBC,EAAW,EAAQ,KACnBC,EAAc,EAAQ,KACtBC,EAAQ,EAAQ,GAChBC,EAAsB,EAAQ,IAA8CC,EAC5EC,EAA2B,EAAQ,IAAmD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MAAO0D,SAAS,SAAUC,GAAMV,EAAIW,KAAKX,EAAIxD,KAAM,QAASkE,EAAI,EAAEE,WAAW,iBAAiB,GAAGZ,EAAIO,GAAG,KAAKN,EAAG,eAAe,CAACE,MAAM,CAAC,KAAO,eAAe,CAACF,EAAG,cAAc,CAACO,MAAM,CAAC7F,MAAOqF,EAAIxD,KAAKQ,WAAYyD,SAAS,SAAUC,GAAMV,EAAIW,KAAKX,EAAIxD,KAAM,aAAckE,EAAI,EAAEE,WAAW,oBAAoB,CAACZ,EAAIO,GAAG,yDAAyD,GAAGP,EAAIO,GAAG,KAAKN,EAAG,eAAe,CAACA,EAAG,QAAQ,CAACD,EAAIO,GAAG,oCAAoCP,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACY,YAAY,CAAC,MAAQ,UAAU,cAAc,SAAS,CAACZ,EAAG,IAAI,CAACa,YAAY,qBAAqBD,YAAY,CAAC,MAAQ,aAAab,EAAIO,GAAG,0EAA0E,GAAGP,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACa,YAAY,gBAAgBX,MAAM,CAAC,KAAO,UAAUY,KAAK,UAAU,CAACd,EAAG,YAAY,CAACG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOL,EAAIhC,OAAO,WAAW,IAAI,CAACgC,EAAIO,GAAG,kBAAkB,IAAI,IAAI,EACr6F,GACsB,ICUpB,EACA,KACA,WACA,MAIa,UAAAR,U,0CCnBf,M","file":"0d37fc9.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar globalThis = require('../internals/global-this');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = globalThis[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = globalThis.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n // fast equal of /^0b[01]+$/i\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0o[0-7]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n default:\n return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./addAddressDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./addAddressDialog.vue?vue&type=script&lang=js\"","\nexport default {\n props: {\n dialogVisible: {\n type: Boolean,\n default: false,\n },\n componentVisible: {\n type: Number,\n default: 2,\n },\n data: {\n type: Object,\n default: () => {\n return {\n country: \"Australia\",\n name: \"\",\n phone: \"\",\n address: \"\",\n post_code: \"\",\n city: \"\",\n state: \"\",\n is_default: null,\n };\n },\n },\n },\n data() {\n return {\n value: [],\n options: [],\n rules: {\n country: [\n {\n required: true,\n message: \"Please enter your country\",\n trigger: \"blur\",\n },\n ],\n name: [\n {\n required: true,\n message: \"Please enter your name\",\n trigger: \"blur\",\n },\n ],\n phone: [\n {\n required: true,\n message: \"Please enter your phone number\",\n trigger: \"blur\",\n },\n ],\n address: [\n {\n required: true,\n message: \"Please enter your address\",\n trigger: \"blur\",\n },\n ],\n post_code: [\n {\n required: true,\n message: \"Please enter post_code\",\n trigger: \"blur\",\n },\n ],\n city: [\n { required: true, message: \"Please enter city\", trigger: \"blur\" },\n ],\n state: [\n { required: true, message: \"Please enter state\", trigger: \"blur\" },\n ],\n },\n cityList: [\n { id: 1, name: \"Sydney\" },\n { id: 2, name: \"Adelaide Mail Centre\" },\n { id: 3, name: \"Melbourne\" },\n { id: 4, name: \"Eastern Suburbs Mc\" },\n { id: 5, name: \"Hobart\" },\n { id: 6, name: \"Perth\" },\n { id: 7, name: \"Launceston\" },\n { id: 8, name: \"Brisbane\" },\n { id: 9, name: \"Northern Suburbs Mc\" },\n { id: 10, name: \"Strawberry Hills\" },\n { id: 11, name: \"Springfield\" },\n { id: 12, name: \"Waterloo\" },\n { id: 13, name: \"Richmond\" },\n { id: 14, name: \"Haymarket\" },\n { id: 15, name: \"Red Hill\" },\n { id: 16, name: \"Brisbane GPO Boxes\" },\n { id: 17, name: \"Mayfield\" },\n { id: 18, name: \"Australia Square\" },\n { id: 19, name: \"Woodstock\" },\n { id: 20, name: \"Sydney South\" },\n { id: 21, name: \"The Gap\" },\n { id: 22, name: \"Kingston\" },\n { id: 23, name: \"Kensington\" },\n { id: 24, name: \"Darlington\" },\n ],\n stateList: [\n { id: 1, name: \"Australian Capital Territory\" },\n { id: 2, name: \"New South Wales\" },\n { id: 3, name: \"Northern Territory\" },\n { id: 4, name: \"Queensland\" },\n { id: 5, name: \"South Australia\" },\n { id: 6, name: \"Tasmania\" },\n { id: 7, name: \"Victoria\" },\n { id: 8, name: \"Western Australia\" },\n ],\n\n };\n },\n computed: {\n dialogFormVisible: {\n get: function () {\n return this.dialogVisible;\n },\n set: function (val) {\n this.$emit(\"update:dialogVisible\", val);\n },\n },\n },\n methods: {\n submit(ruleForm) {\n this.$refs[ruleForm].validate((valid) => {\n if (valid) {\n if (this.componentVisible == 2) {\n this.addAddress();\n if (this.$route.fullPath.includes('product-builder')) return\n this.$router.push({path:'/home/myDetail',query:{type:\"third\"}})\n } else if (this.componentVisible == 3) {\n this.editAddress();\n this.$router.push({path:'/home/myDetail',query:{type:\"third\"}})\n }\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n addAddress() {\n this.$axios\n .post(\"/address/add\", this.data)\n .then((res) => {\n if (res.code === 1) {\n this.$notify({\n title: \"success\",\n message: \"Submitted successfully\",\n type: \"success\",\n duration: 3000,\n });\n this.dialogFormVisible = false;\n this.update();\n }\n })\n .catch((error) => {\n this.$message.error(error.response.data.msg);\n });\n },\n editAddress() {\n this.$axios\n .post(\"/address/edit\", this.data)\n .then((res) => {\n if (res.code === 1) {\n this.$notify({\n title: \"success\",\n message: \"Submitted successfully\",\n type: \"success\",\n duration: 3000,\n });\n this.dialogFormVisible = false;\n this.update();\n }\n })\n .catch((error) => {\n this.$message.error(error.response.data.msg);\n });\n },\n update() {\n this.$emit(\"update\", true);\n },\n },\n};\n","import { render, staticRenderFns } from \"./addAddressDialog.vue?vue&type=template&id=443741dd&scoped=true\"\nimport script from \"./addAddressDialog.vue?vue&type=script&lang=js\"\nexport * from \"./addAddressDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./addAddressDialog.vue?vue&type=style&index=0&id=443741dd&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"443741dd\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./addAddressDialog.vue?vue&type=style&index=0&id=443741dd&prod&lang=scss&scoped=true\""],"sourceRoot":""}
|