diff --git a/app/Http/Controllers/TestResultController.php b/app/Http/Controllers/TestResultController.php index 710fc2cc..d00e8bcd 100644 --- a/app/Http/Controllers/TestResultController.php +++ b/app/Http/Controllers/TestResultController.php @@ -4,111 +4,121 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; +use App\Http\Requests\StoreTestResultRequest; use App\TestResult; +use App\InputValue; +use App\Input; class TestResultController extends Controller { - /** - * Display a listing of the resource. - * - * @return \Illuminate\Http\Response - */ public function index() { $TestResult = TestResult::with('testtype')->paginate(10); return response()->json(['TestResult' => $TestResult, 'LastPage' => $TestResult->lastPage()]); } - /** - * Show the form for creating a new resource. - * - * @return \Illuminate\Http\Response - */ public function create() { // } - /** - * Store a newly created resource in storage. - * - * @param \Illuminate\Http\Request $request - * @return \Illuminate\Http\Response - */ - public function store(Request $request) + public function CreateChildFormValue($InputChild,$TestResultObj,$TestResultInfo) { - $TestResult = [ - 'user_id' => Auth::user()->id, - 'autoclave_id' => $request->autoclave_id, - 'test_type_id' => $request->test_type_id, - 'result' => $request->result, - 'verified' => 0, - ]; - $TestResultObj = TestResult::create($TestResult); - $TestResultInfo = $request->info; + // dd($TestResultInfo[$InputChild->name]); + // foreach ($Input->children as $InputChild) { - // $TestType = TestType::with('inputs')->where('id',$request->test_type_id)->first(); - $Inputs = Input::where('test_type_id',$request->test_type_id)->get(); - foreach ($Inputs as $Input) { - if ($Input->type == 'Select' || $Input->type == 'CheckBox') { - $OptionIDs = $Input->options->pluck('id')->toArray(); - $Value = $OptionIDs; + $TestResultInfo = $TestResultInfo[$InputChild->name]; + if ($InputChild->type == 'Form') { + + foreach ($InputChild->children as $InputChild2) { + // dd($TestResultInfo[$InputChild2->name]); + $this->CreateChildFormValue($InputChild2,$TestResultObj,$TestResultInfo[$InputChild2->name]); + } } - else { - $Value = $TestResultInfo[$Input->name]; - } - $InputValueObj = InputValue::create(['test_result_id' => $TestResultObj->id , 'input_id' => $Input->id , 'value' => $Value]); + $Value = $TestResultInfo; + // dd($Value); + $InputValueObj = InputValue::create(['test_result_id' => $TestResultObj->id , 'input_id' => $InputChild['id'] , 'value' => $Value]); + // dd(['test_result_id' => $TestResultObj->id , 'input_id' => $InputChild['id'] , 'value' => $Value]); + // } + } + public function store(StoreTestResultRequest $request) + { + try { + $return_value = \DB::transaction(function () use ($request) { + + $TestResult = [ + 'user_id' => auth('api')->user()->id, + 'autoclave_id' => $request->autoclave_id, + 'test_type_id' => $request->test_type_id, + 'result' => $request->result, + 'verified' => 0, + ]; + $TestResultObj = TestResult::create($TestResult); + // $TestResultInfo = $request['info']; + $TestResultInfo = []; + + $Inputs = Input::with('options','children')->where('test_type_id',$request->test_type_id)->get(); + + foreach ($Inputs as $Input) { + if ($Input['type'] == 'Form') { + $TestResultInfo = $request[$Input->name]; + + // $this->CreateChildFormValue($Input,$TestResultObj,$TestResultInfo); + + ///-------------------------------------------------- + foreach ($Input->children as $InputChild) { + + $this->CreateChildFormValue($InputChild,$TestResultObj,$TestResultInfo); + ///-------------------------------------------------- + // $Value = $TestResultInfo[$InputChild->name]; + // + // if ($InputChild->type == 'Form') { + // foreach ($InputChild->children as $InputChild2) { + // $Value = $TestResultInfo[$InputChild->name][$InputChild2->name]; + // $InputValueObj = InputValue::create(['test_result_id' => $TestResultObj->id , 'input_id' => $InputChild2['id'] , 'value' => $Value]); + // return 'success'; + // } + // + // } + // $InputValueObj = InputValue::create(['test_result_id' => $TestResultObj->id , 'input_id' => $InputChild['id'] , 'value' => $Value]); + } + ///-------------------------------------------------- + } + else { + $TestResultInfo = $request->all(); + } + $Value = $TestResultInfo[$Input->name]; + $InputValueObj = InputValue::create(['test_result_id' => $TestResultObj->id , 'input_id' => $Input->id , 'value' => $Value]); + } + + }); + } catch (\Exception $e) { + return response()->json($e->getMessage(), 441); } + return \MessageResponse::success(); + + + + // } + } - /** - * Display the specified resource. - * - * @param int $id - * @return \Illuminate\Http\Response - */ public function show($id) { // } - /** - * Show the form for editing the specified resource. - * - * @param int $id - * @return \Illuminate\Http\Response - */ public function edit($id) { // } - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param int $id - * @return \Illuminate\Http\Response - */ - public function update(Request $request, TestResult $TestResult) + public function update(StoreTestResultRequest $request, TestResult $TestResult) { - $this->validate($request, [ - 'user_id' => 'required', - 'autoclave_id' => 'required', - 'test_type_id' => 'required', - 'result' => 'required', - 'verified' => 'required', - ]); $TestResult->update($request->all()); return response()->json(trans('messages.success')); } - /** - * Remove the specified resource from storage. - * - * @param int $id - * @return \Illuminate\Http\Response - */ public function destroy($id) { // diff --git a/app/Http/Controllers/TestTypeController.php b/app/Http/Controllers/TestTypeController.php index 5f1c0897..000b8951 100644 --- a/app/Http/Controllers/TestTypeController.php +++ b/app/Http/Controllers/TestTypeController.php @@ -21,9 +21,14 @@ class TestTypeController extends Controller // } + ////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// + /////////////////////// Add TestType ///////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// + public function CreateInput($Input,$TestType,$ParentID = null) { - // dd($Input['name'],$TestType->id,$ParentID); //---------------------------------------------Input $InputData = [ 'name' => $Input['name'], @@ -57,24 +62,31 @@ class TestTypeController extends Controller } public function store(StoreTestTypeRequest $request) { - $TestType = [ - 'name' => $request['name'], - 'unique_code' => $request['unique_code'], - 'user_id' => auth('api')->user()->id - ]; + try { + $return_value = \DB::transaction(function () use ($request) { - $TestType = TestType::create($TestType); - $TestTypeInfo = $request['info']; + $TestType = [ + 'name' => $request['name'], + 'unique_code' => $request['unique_code'], + 'user_id' => auth('api')->user()->id + ]; - foreach ($TestTypeInfo as $Input) { + $TestType = TestType::create($TestType); + $TestTypeInfo = $request['info']; - $InputObj = $this->CreateInput($Input,$TestType); + foreach ($TestTypeInfo as $Input) { - if ($Input['type'] == 'Form') { - $this->CreateChildForm($Input,$TestType,$InputObj); - } + $InputObj = $this->CreateInput($Input,$TestType); + + if ($Input['type'] == 'Form') { + $this->CreateChildForm($Input,$TestType,$InputObj); + } + } + }); + } catch (\Exception $e) { + return response()->json($e->getMessage(), 441); } - return response()->json(trans('messages.success')); + return \MessageResponse::success(); } public function show($id) @@ -84,39 +96,90 @@ class TestTypeController extends Controller public function edit($id) { - // + $TestType = TestType::with('inputs','inputs.children','inputs.children.children','inputs.options')->findOrFail($id);//????? + + // $TestType = TestType::where('id',$id)->with('inputs','inputs.children','inputs.children.children','inputs.options')->whereHas('inputs' , function($query){ + // $query->where('parent_id',null); + // })->get(); + return response()->json(['TestType' => $TestType]); } - public function update(Request $request, TestType $TestType) - { - $this->validate($request, [ - 'name' => 'required|max:100|unique:test_types,'.$TestType->id, - 'unique_code' => 'required|max:100|unique:test_types,'.$TestType->id, - 'info.*.name'=>'required', - 'info.*.type'=>'required', - 'info.*.size'=>'required', - 'info.*.parent_id'=>'nullable|numeric|exists:inputs', - ]); - $TestType = [ - 'name' => $request->name, - 'unique_code' => $request->unique_code - ]; - $TestType->update($TestType); - $TestTypeInfo = $request->info; + ////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// + /////////////////////// Update TestType ///////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////// - // foreach ($TestTypeInfo as $Input) { - // if ($Input['id'] == 0) { - // $InputObj = $this->CreateInput($Input,$TestType); - // } - // else { - // // code... - // } - // $InputObj = $this->CreateInput($Input,$TestType); - // - // if ($Input->Type == 'Form') { - // $this->CreateChildForm($Input); - // } - // } + public function UpdateInput($Input,$TestType,$ParentID = null) + { + //---------------------------------------------Input + $InputData = [ + 'name' => $Input['name'], + 'type' => $Input['type'], + 'size' => $Input['size'], + 'test_type_id' => $TestType->id, + 'parent_id' => $ParentID + ]; + $InputObj = Input::where('id',$Input['id'])->update($InputData); + //---------------------------------------------Input + //---------------------------------------------Option + if ($Input['type'] == 'CheckBox' || $Input['type'] == 'Select') { + foreach ($Input['options'] as $Option) { + if ($Option['id'] == 0) {//--new + $Option = Option::create(['title' => $Option['title'] , 'input_id' => $InputObj->id]); + } + else { + $Option = Option::where('id', $Option['id'])->update(['title' => $Option['title'] ]); + } + + } + } + //---------------------------------------------Option + return $InputObj; + + } + public function UpdateChildForm($Input,$TestType,$InputObj) + { + if (isset($Input['children'])) { + foreach ($Input['children'] as $InputChild) { + if ($InputChild['id'] == 0) {//--newChild + + $InputChildObj = $this->CreateInput($InputChild,$TestType,$InputObj->id); + if (isset($InputChild['children'])) { + $this->CreateChildForm($InputChild,$TestType,$InputChildObj); + } + } + else { + $InputChildObj = $this->UpdateInput($InputChild,$TestType,$InputObj->id); + if (isset($InputChild['children'])) { + $this->UpdateChildForm($InputChild,$TestType,$InputChildObj); + } + } + + } + } + } + + public function update(StoreTestTypeRequest $request, TestType $TestType) + { + $TestTypeData = [ + 'name' => $request['name'], + 'unique_code' => $request['unique_code'], + ]; + $TestType->update($TestTypeData); + $TestTypeInfo = $request['info']; + + foreach ($TestTypeInfo as $Input) { + if ($Input['id'] == 0) {//--new + $InputObj = $this->CreateInput($Input,$TestType); + } + else { + $InputObj = $this->UpdateInput($Input,$TestType); + } + if ($Input->Type == 'Form') { + $this->UpdateChildForm($Input,$TestType,$InputObj); + } + } } public function destroy($id) diff --git a/public/0.js b/public/0.js index 55a1392b..71d2e17d 100644 --- a/public/0.js +++ b/public/0.js @@ -1,767 +1,1311 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ -/***/ "./node_modules/inherits/inherits_browser.js": -/*!***************************************************!*\ - !*** ./node_modules/inherits/inherits_browser.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + data: function data() { + return { + form: { + name: "", + unique_code: "", + info: [{ + name: "", + type: "", + size: "" + }] + }, + type: [{ + state: "Text", + abbr: "text" + }, { + state: "Checkbox", + abbr: "checkbox" + }, { + state: "Select", + abbr: "select" + }, { + state: "Form", + abbr: "form" + }] + }; + }, + methods: { + changeType: function changeType(infoIndex, selectedboxType) { + if (selectedboxType == "select" || selectedboxType == "checkbox") { + this.form.info[infoIndex]["options"] = [{ + title: "" + }]; + } else { + this.form.info[infoIndex]["options"] = []; } - }); - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor + + if (selectedboxType == "form") { + this.form.info[infoIndex]["children"] = [{ + name: "", + type: "", + size: "" + }]; + } + }, + removeSelectbox: function removeSelectbox(infoIndex, selectboxOptions) { + var form = this.form; + this.form = []; + form.info[infoIndex]["options"].splice(selectboxOptions, 1); + this.form = form; + }, + addSelectbox: function addSelectbox(infoIndex) { + var form = this.form; + this.form = []; + form.info[infoIndex]["options"].push({ + title: "" + }); + this.form = form; + }, + addInput: function addInput() { + this.form.info.push({ + name: "", + type: "", + size: "" + }); + }, + changeTypeForm: function changeTypeForm(infoIndex, type, formLevel) { + if (type == "select" || type == "checkbox") { + var form = this.form; + this.form = ""; + form.info[infoIndex]["children"][formLevel]["options"] = [{ + title: "" + }]; + this.form = form; + } else { + var _form = this.form; + this.form = ""; + _form.info[infoIndex]["children"][formLevel]["options"] = []; + this.form = _form; + } + }, + removeSelectboxForm: function removeSelectboxForm(infoIndex, selectboxOptions, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"][formLevel]["options"].splice(selectboxOptions, 1); + this.form = form; + }, + addSelectboxForm: function addSelectboxForm(infoIndex, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"][formLevel]["options"].push({ + title: "" + }); + this.form = form; + }, + duplicateForm: function duplicateForm(infoIndex) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"].push({ + name: "", + type: "", + size: "" + }); + this.form = form; + }, + removeForm: function removeForm(infoIndex, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"].splice(formLevel, 1); + this.form = form; + }, + registerForm: function () { + var _registerForm = _asyncToGenerator( + /*#__PURE__*/ + _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var result; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!this.$refs.form.validate()) { + _context.next = 5; + break; + } + + _context.next = 3; + return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post("TestTypes", this.form); + + case 3: + result = _context.sent; + + if (result && result.status == 200) { + this.$router.push("/dashboard"); + } + + case 5: + case "end": + return _context.stop(); + } + } + }, _callee, this); + })); + + function registerForm() { + return _registerForm.apply(this, arguments); + } + + return registerForm; + }() } -} - +}); /***/ }), -/***/ "./node_modules/util/support/isBufferBrowser.js": -/*!******************************************************!*\ - !*** ./node_modules/util/support/isBufferBrowser.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function isBuffer(arg) { - return arg && typeof arg === 'object' - && typeof arg.copy === 'function' - && typeof arg.fill === 'function' - && typeof arg.readUInt8 === 'function'; -} - -/***/ }), - -/***/ "./node_modules/util/util.js": -/*!***********************************!*\ - !*** ./node_modules/util/util.js ***! - \***********************************/ +/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || - function getOwnPropertyDescriptors(obj) { - var keys = Object.keys(obj); - var descriptors = {}; - for (var i = 0; i < keys.length; i++) { - descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); - } - return descriptors; - }; - -var formatRegExp = /%[sdj%]/g; -exports.format = function(f) { - if (!isString(f)) { - var objects = []; - for (var i = 0; i < arguments.length; i++) { - objects.push(inspect(arguments[i])); - } - return objects.join(' '); - } - - var i = 1; - var args = arguments; - var len = args.length; - var str = String(f).replace(formatRegExp, function(x) { - if (x === '%%') return '%'; - if (i >= len) return x; - switch (x) { - case '%s': return String(args[i++]); - case '%d': return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - default: - return x; - } - }); - for (var x = args[i]; i < len; x = args[++i]) { - if (isNull(x) || !isObject(x)) { - str += ' ' + x; - } else { - str += ' ' + inspect(x); - } - } - return str; -}; +exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false); +// Module +exports.push([module.i, "\n.WM-Border-Gray[data-v-d05735bc] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-d05735bc] {\r\n background-color: #f5f5f5;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n top: -25px !important;\n}\n.v-btn--bottom.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n bottom: -24px !important;\n}\r\n", ""]); -// Mark that a method should not be used. -// Returns a modified function which warns once by default. -// If --no-deprecation is set, then it is a no-op. -exports.deprecate = function(fn, msg) { - if (typeof process !== 'undefined' && process.noDeprecation === true) { - return fn; - } - // Allow for deprecating things in the process of starting up. - if (typeof process === 'undefined') { - return function() { - return exports.deprecate(fn, msg).apply(this, arguments); - }; - } +/***/ }), - var warned = false; - function deprecated() { - if (!warned) { - if (process.throwDeprecation) { - throw new Error(msg); - } else if (process.traceDeprecation) { - console.trace(msg); - } else { - console.error(msg); - } - warned = true; - } - return fn.apply(this, arguments); - } - - return deprecated; -}; +/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var debugs = {}; -var debugEnviron; -exports.debuglog = function(set) { - if (isUndefined(debugEnviron)) - debugEnviron = Object({"MIX_APP_CLIENT_ID":"2","MIX_APP_CLIENT_SECRET":"vAhCu2Y4mxfjlr8uTSxpBmjn2rWPIEolnr73ETAE","MIX_APP_ROOT_API":"/api/","MIX_PUSHER_APP_CLUSTER":"mt1","MIX_PUSHER_APP_KEY":"","NODE_ENV":"development"}).NODE_DEBUG || ''; - set = set.toUpperCase(); - if (!debugs[set]) { - if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { - var pid = process.pid; - debugs[set] = function() { - var msg = exports.format.apply(exports, arguments); - console.error('%s %d: %s', set, pid, msg); - }; - } else { - debugs[set] = function() {}; - } - } - return debugs[set]; -}; +var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); + +if(typeof content === 'string') content = [[module.i, content, '']]; + +var transform; +var insertInto; -/** - * Echos the value of a value. Trys to print the value out - * in the best way possible given the different types. - * - * @param {Object} obj The object to print out. - * @param {Object} opts Optional options object that alters the output. - */ -/* legacy: obj, showHidden, depth, colors*/ -function inspect(obj, opts) { - // default options - var ctx = { - seen: [], - stylize: stylizeNoColor - }; - // legacy... - if (arguments.length >= 3) ctx.depth = arguments[2]; - if (arguments.length >= 4) ctx.colors = arguments[3]; - if (isBoolean(opts)) { - // legacy... - ctx.showHidden = opts; - } else if (opts) { - // got an "options" object - exports._extend(ctx, opts); - } - // set default options - if (isUndefined(ctx.showHidden)) ctx.showHidden = false; - if (isUndefined(ctx.depth)) ctx.depth = 2; - if (isUndefined(ctx.colors)) ctx.colors = false; - if (isUndefined(ctx.customInspect)) ctx.customInspect = true; - if (ctx.colors) ctx.stylize = stylizeWithColor; - return formatValue(ctx, obj, ctx.depth); + +var options = {"hmr":true} + +options.transform = transform +options.insertInto = undefined; + +var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); + +if(content.locals) module.exports = content.locals; + +if(false) {} + +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": +/*!*************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! + \*************************************************************************************************************************************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "v-form", + { ref: "form" }, + [ + _c( + "v-container", + { attrs: { "grid-list-xs": "" } }, + [ + _c( + "material-card", + { attrs: { color: "black", title: "Add a New Test" } }, + [ + _c( + "v-layout", + { + staticClass: "ma-2", + attrs: { row: "", wrap: "", id: "Form" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { name: "name", label: "Name", color: "black" }, + model: { + value: _vm.form.name, + callback: function($$v) { + _vm.$set(_vm.form, "name", $$v) + }, + expression: "form.name" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "uniquecode", + label: "Unique Code", + color: "black" + }, + model: { + value: _vm.form.unique_code, + callback: function($$v) { + _vm.$set(_vm.form, "unique_code", $$v) + }, + expression: "form.unique_code" + } + }) + ], + 1 + ) + ], + 1 + ), + _vm._v(" "), + _vm._l(_vm.form.info, function(info, keyForm) { + return _c( + "v-layout", + { + key: keyForm, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Relative", + attrs: { row: "", wrap: "" } + }, + [ + _c( + "v-layout", + { + staticClass: "ma-2", + attrs: { row: "", wrap: "", id: "Form" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "inputname", + label: "Input Name", + color: "black" + }, + model: { + value: info.name, + callback: function($$v) { + _vm.$set(info, "name", $$v) + }, + expression: "info.name" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-select", { + staticClass: "pa-2", + attrs: { + items: _vm.type, + "item-text": "state", + "item-value": "abbr", + label: "Type", + "single-line": "", + color: "black" + }, + on: { + change: function($event) { + return _vm.changeType(keyForm, info.type) + } + }, + model: { + value: info.type, + callback: function($$v) { + _vm.$set(info, "type", $$v) + }, + expression: "info.type" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "size", + label: "Size", + color: "black" + }, + model: { + value: info.size, + callback: function($$v) { + _vm.$set(info, "size", $$v) + }, + expression: "info.size" + } + }) + ], + 1 + ) + ], + 1 + ), + _vm._v(" "), + info.type === "select" || info.type === "checkbox" + ? _c( + "v-layout", + { + staticClass: + "ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + [ + info["options"].length > 0 + ? _c( + "v-layout", + { + staticClass: "WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + _vm._l(info["options"], function( + selectbox, + keySelect + ) { + return _c( + "v-flex", + { + key: keySelect, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", + attrs: { xs12: "", md3: "", sm3: "" } + }, + [ + _c("v-text-field", { + staticClass: "pa-2 Input", + attrs: { + name: "title", + label: "Title", + color: "black" + }, + model: { + value: selectbox.title, + callback: function($$v) { + _vm.$set(selectbox, "title", $$v) + }, + expression: "selectbox.title" + } + }), + _vm._v(" "), + keySelect >= 1 + ? _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "pink" + }, + on: { + click: function($event) { + return _vm.removeSelectbox( + keyForm, + keySelect + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-times")] + ), + _vm._v("REMOVE\n ") + ], + 1 + ) + : _vm._e() + ], + 1 + ) + }), + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + staticClass: "mb-2", + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "black" + }, + on: { + click: function($event) { + return _vm.addSelectbox(keyForm) + } + } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Add") + ]) + ], + 1 + ) + ], + 1 + ) + : _vm._e(), + _vm._v(" "), + info.type === "form" + ? _c( + "v-layout", + { + staticClass: + "pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative", + attrs: { row: "", wrap: "" } + }, + [ + _vm._l(info.children, function( + children, + keychildren + ) { + return _c( + "v-layout", + { + key: keychildren, + staticClass: + "pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Color-LightGrey WM-Width-Full WM-Relative Form", + attrs: { row: "", wrap: "" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "name", + label: "Input Name", + color: "black" + }, + model: { + value: children.name, + callback: function($$v) { + _vm.$set(children, "name", $$v) + }, + expression: "children.name" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-select", { + staticClass: "pa-2", + attrs: { + items: _vm.type, + "item-text": "state", + "item-value": "abbr", + label: "Type", + "single-line": "", + color: "black" + }, + on: { + change: function($event) { + return _vm.changeTypeForm( + keyForm, + children.type, + keychildren + ) + } + }, + model: { + value: children.type, + callback: function($$v) { + _vm.$set(children, "type", $$v) + }, + expression: "children.type" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "size", + label: "Size", + color: "black" + }, + model: { + value: children.size, + callback: function($$v) { + _vm.$set(children, "size", $$v) + }, + expression: "children.size" + } + }) + ], + 1 + ), + _vm._v(" "), + children.type === "select" || + children.type === "checkbox" + ? _c( + "v-layout", + { + staticClass: + "pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + [ + children["options"].length > 0 + ? _c( + "v-layout", + { + staticClass: + "WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + _vm._l( + children["options"], + function( + selectbox, + keySelect + ) { + return _c( + "v-flex", + { + key: keySelect, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", + attrs: { + xs12: "", + md3: "", + sm3: "" + } + }, + [ + _c("v-text-field", { + staticClass: + "pa-2 Input", + attrs: { + name: "title", + label: "Title", + color: "black" + }, + model: { + value: + selectbox.title, + callback: function( + $$v + ) { + _vm.$set( + selectbox, + "title", + $$v + ) + }, + expression: + "selectbox.title" + } + }), + _vm._v(" "), + keySelect >= 1 + ? _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "pink" + }, + on: { + click: function( + $event + ) { + return _vm.removeSelectboxForm( + keyForm, + keySelect, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [ + _vm._v( + "fas fa-times" + ) + ] + ), + _vm._v( + "REMOVE\n " + ) + ], + 1 + ) + : _vm._e() + ], + 1 + ) + } + ), + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "black" + }, + on: { + click: function($event) { + return _vm.addSelectboxForm( + keyForm, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c( + "span", + { staticClass: "white--text" }, + [_vm._v("Add")] + ) + ], + 1 + ) + ], + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + top: "", + color: "pink", + id: "RemoveFormDuplicator" + }, + on: { + click: function($event) { + return _vm.removeForm( + keyForm, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-times")] + ), + _vm._v("REMOVE\n ") + ], + 1 + ) + ], + 1 + ) + }), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "cyan", + id: "FormDuplicator" + }, + on: { + click: function($event) { + return _vm.duplicateForm(keyForm) + } + } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v("ADD\n ") + ], + 1 + ) + ], + 2 + ) + : _vm._e(), + _vm._v(" "), + _vm.form.info.length - 1 == keyForm + ? _c( + "v-layout", + { + staticClass: "mt-4", + attrs: { + row: "", + wrap: "", + "align-center": "", + "justify-center": "" + } + }, + [ + _c( + "v-btn", + { + staticClass: "mb-2", + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "pink" + }, + on: { click: _vm.addInput } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Add") + ]) + ], + 1 + ) + ], + 1 + ) + : _vm._e() + ], + 1 + ) + }), + _vm._v(" "), + _c( + "v-layout", + { + staticClass: "mt-4", + attrs: { + row: "", + wrap: "", + "align-center": "", + "justify-center": "" + } + }, + [ + _c( + "v-btn", + { + staticClass: "WM-CyanBlueGradient-BG", + staticStyle: { padding: "10px 60px" }, + on: { click: _vm.registerForm } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-check")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Generate Form") + ]) + ], + 1 + ), + _vm._v(" "), + _c( + "router-link", + { attrs: { to: "/dashboard" } }, + [ + _c( + "v-btn", + { + staticClass: + "WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5" + }, + [ + _c( + "v-icon", + { staticClass: "black--text mr-2 caption" }, + [_vm._v("fas fa-chevron-left")] + ), + _vm._v(" "), + _c("span", { staticClass: "black--text" }, [ + _vm._v("Back") + ]) + ], + 1 + ) + ], + 1 + ) + ], + 1 + ) + ], + 2 + ) + ], + 1 + ) + ], + 1 + ) } -exports.inspect = inspect; +var staticRenderFns = [] +render._withStripped = true -// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics -inspect.colors = { - 'bold' : [1, 22], - 'italic' : [3, 23], - 'underline' : [4, 24], - 'inverse' : [7, 27], - 'white' : [37, 39], - 'grey' : [90, 39], - 'black' : [30, 39], - 'blue' : [34, 39], - 'cyan' : [36, 39], - 'green' : [32, 39], - 'magenta' : [35, 39], - 'red' : [31, 39], - 'yellow' : [33, 39] -}; -// Don't use 'blue' not visible on cmd.exe -inspect.styles = { - 'special': 'cyan', - 'number': 'yellow', - 'boolean': 'yellow', - 'undefined': 'grey', - 'null': 'bold', - 'string': 'green', - 'date': 'magenta', - // "name": intentionally not styling - 'regexp': 'red' -}; +/***/ }), +/***/ "./resources/js/vue/views/TestCreator.vue": +/*!************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue ***! + \************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); +/* harmony import */ var _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); - if (style) { - return '\u001b[' + inspect.colors[style][0] + 'm' + str + - '\u001b[' + inspect.colors[style][1] + 'm'; - } else { - return str; - } -} -function stylizeNoColor(str, styleType) { - return str; -} -function arrayToHash(array) { - var hash = {}; - array.forEach(function(val, idx) { - hash[val] = true; - }); +/* normalize component */ - return hash; -} +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( + _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], + _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], + false, + null, + "d05735bc", + null + +) +/* hot reload */ +if (false) { var api; } +component.options.__file = "resources/js/vue/views/TestCreator.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); -function formatValue(ctx, value, recurseTimes) { - // Provide a hook for user-specified inspect functions. - // Check that value is an object with an inspect function on it - if (ctx.customInspect && - value && - isFunction(value.inspect) && - // Filter out the util module, it's inspect function is special - value.inspect !== exports.inspect && - // Also filter out any prototype objects using the circular check. - !(value.constructor && value.constructor.prototype === value)) { - var ret = value.inspect(recurseTimes, ctx); - if (!isString(ret)) { - ret = formatValue(ctx, ret, recurseTimes); - } - return ret; - } +/***/ }), - // Primitive types cannot have properties - var primitive = formatPrimitive(ctx, value); - if (primitive) { - return primitive; - } +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": +/*!*************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! + \*************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // Look up the keys of the object. - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); - if (ctx.showHidden) { - keys = Object.getOwnPropertyNames(value); - } +/***/ }), - // IE doesn't make error fields non-enumerable - // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx - if (isError(value) - && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { - return formatError(value); - } +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!*********************************************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \*********************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // Some type of object without properties can be shortcutted. - if (keys.length === 0) { - if (isFunction(value)) { - var name = value.name ? ': ' + value.name : ''; - return ctx.stylize('[Function' + name + ']', 'special'); - } - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } - if (isDate(value)) { - return ctx.stylize(Date.prototype.toString.call(value), 'date'); - } - if (isError(value)) { - return formatError(value); - } - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - var base = '', array = false, braces = ['{', '}']; +/***/ }), - // Make Array say that they are Array - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": +/*!*******************************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! + \*******************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // Make functions say that they are functions - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); - // Make RegExps say that they are RegExps - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); - // Make dates with properties first say the date - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } - // Make error with message first say the error - if (isError(value)) { - base = ' ' + formatError(value); - } - - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } - - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } - - ctx.seen.push(value); - - var output; - if (array) { - output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); - } else { - output = keys.map(function(key) { - return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); - }); - } - - ctx.seen.pop(); - - return reduceToSingleString(output, base, braces); -} - - -function formatPrimitive(ctx, value) { - if (isUndefined(value)) - return ctx.stylize('undefined', 'undefined'); - if (isString(value)) { - var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') + '\''; - return ctx.stylize(simple, 'string'); - } - if (isNumber(value)) - return ctx.stylize('' + value, 'number'); - if (isBoolean(value)) - return ctx.stylize('' + value, 'boolean'); - // For some reason typeof null is "object", so special case here. - if (isNull(value)) - return ctx.stylize('null', 'null'); -} - - -function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; -} - - -function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { - var output = []; - for (var i = 0, l = value.length; i < l; ++i) { - if (hasOwnProperty(value, String(i))) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - String(i), true)); - } else { - output.push(''); - } - } - keys.forEach(function(key) { - if (!key.match(/^\d+$/)) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - key, true)); - } - }); - return output; -} - - -function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { - var name, str, desc; - desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; - if (desc.get) { - if (desc.set) { - str = ctx.stylize('[Getter/Setter]', 'special'); - } else { - str = ctx.stylize('[Getter]', 'special'); - } - } else { - if (desc.set) { - str = ctx.stylize('[Setter]', 'special'); - } - } - if (!hasOwnProperty(visibleKeys, key)) { - name = '[' + key + ']'; - } - if (!str) { - if (ctx.seen.indexOf(desc.value) < 0) { - if (isNull(recurseTimes)) { - str = formatValue(ctx, desc.value, null); - } else { - str = formatValue(ctx, desc.value, recurseTimes - 1); - } - if (str.indexOf('\n') > -1) { - if (array) { - str = str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n').substr(2); - } else { - str = '\n' + str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n'); - } - } - } else { - str = ctx.stylize('[Circular]', 'special'); - } - } - if (isUndefined(name)) { - if (array && key.match(/^\d+$/)) { - return str; - } - name = JSON.stringify('' + key); - if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { - name = name.substr(1, name.length - 2); - name = ctx.stylize(name, 'name'); - } else { - name = name.replace(/'/g, "\\'") - .replace(/\\"/g, '"') - .replace(/(^"|"$)/g, "'"); - name = ctx.stylize(name, 'string'); - } - } - - return name + ': ' + str; -} - - -function reduceToSingleString(output, base, braces) { - var numLinesEst = 0; - var length = output.reduce(function(prev, cur) { - numLinesEst++; - if (cur.indexOf('\n') >= 0) numLinesEst++; - return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; - }, 0); - - if (length > 60) { - return braces[0] + - (base === '' ? '' : base + '\n ') + - ' ' + - output.join(',\n ') + - ' ' + - braces[1]; - } - - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; -} - - -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. -function isArray(ar) { - return Array.isArray(ar); -} -exports.isArray = isArray; - -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; - -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; - -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; - -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; - -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; - -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; - -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; - -function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; - -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; - -function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; - -function isError(e) { - return isObject(e) && - (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; - -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; - -function isPrimitive(arg) { - return arg === null || - typeof arg === 'boolean' || - typeof arg === 'number' || - typeof arg === 'string' || - typeof arg === 'symbol' || // ES6 symbol - typeof arg === 'undefined'; -} -exports.isPrimitive = isPrimitive; - -exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ "./node_modules/util/support/isBufferBrowser.js"); - -function objectToString(o) { - return Object.prototype.toString.call(o); -} - - -function pad(n) { - return n < 10 ? '0' + n.toString(10) : n.toString(10); -} - - -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', - 'Oct', 'Nov', 'Dec']; - -// 26 Feb 16:19:34 -function timestamp() { - var d = new Date(); - var time = [pad(d.getHours()), - pad(d.getMinutes()), - pad(d.getSeconds())].join(':'); - return [d.getDate(), months[d.getMonth()], time].join(' '); -} - - -// log is just a thin wrapper to console.log that prepends a timestamp -exports.log = function() { - console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); -}; - - -/** - * Inherit the prototype methods from one constructor into another. - * - * The Function.prototype.inherits from lang.js rewritten as a standalone - * function (not on Function.prototype). NOTE: If this file is to be loaded - * during bootstrapping this function needs to be rewritten using some native - * functions as prototype setup using normal JavaScript does not work as - * expected during bootstrapping (see mirror.js in r114903). - * - * @param {function} ctor Constructor function which needs to inherit the - * prototype. - * @param {function} superCtor Constructor function to inherit prototype from. - */ -exports.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); - -exports._extend = function(origin, add) { - // Don't do anything if add isn't an object - if (!add || !isObject(add)) return origin; - - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; -}; - -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; - -exports.promisify = function promisify(original) { - if (typeof original !== 'function') - throw new TypeError('The "original" argument must be of type Function'); - - if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { - var fn = original[kCustomPromisifiedSymbol]; - if (typeof fn !== 'function') { - throw new TypeError('The "util.promisify.custom" argument must be of type Function'); - } - Object.defineProperty(fn, kCustomPromisifiedSymbol, { - value: fn, enumerable: false, writable: false, configurable: true - }); - return fn; - } - - function fn() { - var promiseResolve, promiseReject; - var promise = new Promise(function (resolve, reject) { - promiseResolve = resolve; - promiseReject = reject; - }); - - var args = []; - for (var i = 0; i < arguments.length; i++) { - args.push(arguments[i]); - } - args.push(function (err, value) { - if (err) { - promiseReject(err); - } else { - promiseResolve(value); - } - }); - - try { - original.apply(this, args); - } catch (err) { - promiseReject(err); - } - - return promise; - } - - Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); - - if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { - value: fn, enumerable: false, writable: false, configurable: true - }); - return Object.defineProperties( - fn, - getOwnPropertyDescriptors(original) - ); -} - -exports.promisify.custom = kCustomPromisifiedSymbol - -function callbackifyOnRejected(reason, cb) { - // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). - // Because `null` is a special error value in callbacks which means "no error - // occurred", we error-wrap so the callback consumer can distinguish between - // "the promise rejected with null" or "the promise fulfilled with undefined". - if (!reason) { - var newReason = new Error('Promise was rejected with a falsy value'); - newReason.reason = reason; - reason = newReason; - } - return cb(reason); -} - -function callbackify(original) { - if (typeof original !== 'function') { - throw new TypeError('The "original" argument must be of type Function'); - } - - // We DO NOT return the promise as it gives the user a false sense that - // the promise is actually somehow related to the callback's execution - // and that the callback throwing will reject the promise. - function callbackified() { - var args = []; - for (var i = 0; i < arguments.length; i++) { - args.push(arguments[i]); - } - - var maybeCb = args.pop(); - if (typeof maybeCb !== 'function') { - throw new TypeError('The last argument must be of type Function'); - } - var self = this; - var cb = function() { - return maybeCb.apply(self, arguments); - }; - // In true node style we process the callback on `nextTick` with all the - // implications (stack, `uncaughtException`, `async_hooks`) - original.apply(this, args) - .then(function(ret) { process.nextTick(cb, null, ret) }, - function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) }); - } - - Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); - Object.defineProperties(callbackified, - getOwnPropertyDescriptors(original)); - return callbackified; -} -exports.callbackify = callbackify; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js"))) /***/ }) diff --git a/public/24.js b/public/24.js new file mode 100644 index 00000000..64457daa --- /dev/null +++ b/public/24.js @@ -0,0 +1,1263 @@ +(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{ + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! util */ "./node_modules/util/util.js"); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_0__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + data: function data() { + return { + form: { + name: "", + unique_code: "", + info: [{ + name: "", + type: "", + size: "" + }] + }, + type: [{ + state: "Text", + abbr: "text" + }, { + state: "Checkbox", + abbr: "checkbox" + }, { + state: "Select", + abbr: "select" + }, { + state: "Form", + abbr: "form" + }] + }; + }, + methods: { + changeType: function changeType(infoIndex, selectedboxType) { + if (selectedboxType == "select" || selectedboxType == "checkbox") { + this.form.info[infoIndex]["options"] = [{ + title: "" + }]; + } else { + this.form.info[infoIndex]["options"] = []; + } + + if (selectedboxType == "form") { + this.form.info[infoIndex]["children"] = [{ + name: "", + type: "", + size: "" + }]; + } + }, + removeSelectbox: function removeSelectbox(infoIndex, selectboxOptions) { + var form = this.form; + this.form = []; + form.info[infoIndex]["options"].splice(selectboxOptions, 1); + this.form = form; + }, + addSelectbox: function addSelectbox(infoIndex) { + var form = this.form; + this.form = []; + form.info[infoIndex]["options"].push({ + title: "" + }); + this.form = form; + }, + addInput: function addInput() { + this.form.info.push({ + name: "", + type: "", + size: "" + }); + }, + changeTypeForm: function changeTypeForm(infoIndex, type, formLevel) { + if (type == "select" || type == "checkbox") { + var form = this.form; + this.form = ""; + form.info[infoIndex]["children"][formLevel]["options"] = [{ + title: "" + }]; + this.form = form; + } else { + var _form = this.form; + this.form = ""; + _form.info[infoIndex]["children"][formLevel]["options"] = []; + this.form = _form; + } + }, + removeSelectboxForm: function removeSelectboxForm(infoIndex, selectboxOptions, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"][formLevel]["options"].splice(selectboxOptions, 1); + this.form = form; + }, + addSelectboxForm: function addSelectboxForm(infoIndex, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"][formLevel]["options"].push({ + title: "" + }); + this.form = form; + }, + duplicateForm: function duplicateForm(infoIndex) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"].push({ + name: "", + type: "", + size: "" + }); + this.form = form; + }, + removeForm: function removeForm(infoIndex, formLevel) { + var form = this.form; + this.form = []; + form.info[infoIndex]["children"].splice(formLevel, 1); + this.form = form; + } + } +}); + +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false); +// Module +exports.push([module.i, "\n.WM-Border-Gray[data-v-d05735bc] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-d05735bc] {\r\n background-color: #f5f5f5;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n top: -25px !important;\n}\n.v-btn--bottom.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n bottom: -24px !important;\n}\r\n", ""]); + + + +/***/ }), + +/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + + +var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); + +if(typeof content === 'string') content = [[module.i, content, '']]; + +var transform; +var insertInto; + + + +var options = {"hmr":true} + +options.transform = transform +options.insertInto = undefined; + +var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); + +if(content.locals) module.exports = content.locals; + +if(false) {} + +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": +/*!*************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! + \*************************************************************************************************************************************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "v-form", + { attrs: { id: "ParentForm" } }, + [ + _c( + "v-container", + { attrs: { "grid-list-xs": "" } }, + [ + _c( + "material-card", + { attrs: { color: "black", title: "Add a New Test" } }, + [ + _c( + "v-layout", + { + staticClass: "ma-2", + attrs: { row: "", wrap: "", id: "Form" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { name: "name", label: "Name", color: "black" }, + model: { + value: _vm.form.name, + callback: function($$v) { + _vm.$set(_vm.form, "name", $$v) + }, + expression: "form.name" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "uniquecode", + label: "Unique Code", + color: "black" + }, + model: { + value: _vm.form.unique_code, + callback: function($$v) { + _vm.$set(_vm.form, "unique_code", $$v) + }, + expression: "form.unique_code" + } + }) + ], + 1 + ) + ], + 1 + ), + _vm._v(" "), + _vm._l(_vm.form.info, function(info, keyForm) { + return _c( + "v-layout", + { + key: keyForm, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Relative", + attrs: { row: "", wrap: "" } + }, + [ + _c( + "v-layout", + { + staticClass: "ma-2", + attrs: { row: "", wrap: "", id: "Form" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "inputname", + label: "Input Name", + color: "black" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-select", { + staticClass: "pa-2", + attrs: { + items: _vm.type, + "item-text": "state", + "item-value": "abbr", + label: "Type", + "single-line": "", + color: "black" + }, + on: { + change: function($event) { + return _vm.changeType(keyForm, info.type) + } + }, + model: { + value: info.type, + callback: function($$v) { + _vm.$set(info, "type", $$v) + }, + expression: "info.type" + } + }) + ], + 1 + ), + _vm._v(" "), + info.type !== "form" + ? _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "size", + label: "Size", + color: "black", + id: "InputSize" + }, + model: { + value: info.size, + callback: function($$v) { + _vm.$set(info, "size", $$v) + }, + expression: "info.size" + } + }) + ], + 1 + ) + : _vm._e() + ], + 1 + ), + _vm._v(" "), + info.type === "select" || info.type === "checkbox" + ? _c( + "v-layout", + { + staticClass: + "ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + [ + info["options"].length > 0 + ? _c( + "v-layout", + { + staticClass: "WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + _vm._l(info["options"], function( + selectbox, + keySelect + ) { + return _c( + "v-flex", + { + key: keySelect, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", + attrs: { xs12: "", md3: "", sm3: "" } + }, + [ + _c("v-text-field", { + staticClass: "pa-2 Input", + attrs: { + name: "title", + label: "Title", + color: "black" + }, + model: { + value: selectbox.title, + callback: function($$v) { + _vm.$set(selectbox, "title", $$v) + }, + expression: "selectbox.title" + } + }), + _vm._v(" "), + keySelect >= 1 + ? _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "pink" + }, + on: { + click: function($event) { + return _vm.removeSelectbox( + keyForm, + keySelect + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-times")] + ), + _vm._v("REMOVE\n ") + ], + 1 + ) + : _vm._e() + ], + 1 + ) + }), + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + staticClass: "mb-2", + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "black" + }, + on: { + click: function($event) { + return _vm.addSelectbox(keyForm) + } + } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Add") + ]) + ], + 1 + ) + ], + 1 + ) + : _vm._e(), + _vm._v(" "), + info.type === "form" + ? _c( + "v-layout", + { + staticClass: + "pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative", + attrs: { row: "", wrap: "" } + }, + [ + _vm._l(info.children, function( + children, + keychildren + ) { + return _c( + "v-layout", + { + key: keychildren, + staticClass: + "pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Color-LightGrey WM-Width-Full WM-Relative Form", + attrs: { row: "", wrap: "" } + }, + [ + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "name", + label: "Input Name", + color: "black" + }, + model: { + value: children.name, + callback: function($$v) { + _vm.$set(children, "name", $$v) + }, + expression: "children.name" + } + }) + ], + 1 + ), + _vm._v(" "), + _c( + "v-flex", + { attrs: { xs12: "", md3: "", sm3: "" } }, + [ + _c("v-select", { + staticClass: "pa-2", + attrs: { + items: _vm.type, + "item-text": "state", + "item-value": "abbr", + label: "Type", + "single-line": "", + color: "black" + }, + on: { + change: function($event) { + return _vm.changeTypeForm( + keyForm, + children.type, + keychildren + ) + } + }, + model: { + value: children.type, + callback: function($$v) { + _vm.$set(children, "type", $$v) + }, + expression: "children.type" + } + }) + ], + 1 + ), + _vm._v(" "), + children.type === "text" + ? _c( + "v-flex", + { + attrs: { xs12: "", md3: "", sm3: "" } + }, + [ + _c("v-text-field", { + staticClass: "pa-2", + attrs: { + name: "size", + label: "Size", + color: "black", + id: "InputSize" + } + }) + ], + 1 + ) + : _vm._e(), + _vm._v(" "), + children.type === "select" || + children.type === "checkbox" + ? _c( + "v-layout", + { + staticClass: + "pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + [ + children["options"].length > 0 + ? _c( + "v-layout", + { + staticClass: + "WM-Relative WM-Width-Full", + attrs: { row: "", wrap: "" } + }, + _vm._l( + children["options"], + function( + selectbox, + keySelect + ) { + return _c( + "v-flex", + { + key: keySelect, + staticClass: + "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", + attrs: { + xs12: "", + md3: "", + sm3: "" + } + }, + [ + _c("v-text-field", { + staticClass: + "pa-2 Input", + attrs: { + name: "title", + label: "Title", + color: "black", + id: "value" + }, + model: { + value: + selectbox.title, + callback: function( + $$v + ) { + _vm.$set( + selectbox, + "title", + $$v + ) + }, + expression: + "selectbox.title" + } + }), + _vm._v(" "), + keySelect >= 1 + ? _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "pink" + }, + on: { + click: function( + $event + ) { + return _vm.removeSelectboxForm( + keyForm, + keySelect, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [ + _vm._v( + "fas fa-times" + ) + ] + ), + _vm._v( + "REMOVE\n " + ) + ], + 1 + ) + : _vm._e() + ], + 1 + ) + } + ), + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "black" + }, + on: { + click: function($event) { + return _vm.addSelectboxForm( + keyForm, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c( + "span", + { staticClass: "white--text" }, + [_vm._v("Add")] + ) + ], + 1 + ) + ], + 1 + ) + : _vm._e(), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + top: "", + color: "pink", + id: "RemoveFormDuplicator" + }, + on: { + click: function($event) { + return _vm.removeForm( + keyForm, + keychildren + ) + } + } + }, + [ + _c( + "v-icon", + { + staticClass: + "white--text mr-2 caption" + }, + [_vm._v("fas fa-times")] + ), + _vm._v("REMOVE\n ") + ], + 1 + ) + ], + 1 + ) + }), + _vm._v(" "), + _c( + "v-btn", + { + attrs: { + absolute: "", + small: "", + right: "", + bottom: "", + color: "cyan", + id: "FormDuplicator" + }, + on: { + click: function($event) { + return _vm.duplicateForm(keyForm) + } + } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v("ADD\n ") + ], + 1 + ) + ], + 2 + ) + : _vm._e(), + _vm._v(" "), + _vm.form.info.length - 1 == keyForm + ? _c( + "v-layout", + { + staticClass: "mt-4", + attrs: { + row: "", + wrap: "", + "align-center": "", + "justify-center": "" + } + }, + [ + _c( + "v-btn", + { + staticClass: "mb-2", + attrs: { + absolute: "", + right: "", + bottom: "", + small: "", + color: "pink" + }, + on: { click: _vm.addInput } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-plus")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Add") + ]) + ], + 1 + ) + ], + 1 + ) + : _vm._e() + ], + 1 + ) + }), + _vm._v(" "), + _c( + "v-layout", + { + staticClass: "mt-4", + attrs: { + row: "", + wrap: "", + "align-center": "", + "justify-center": "" + } + }, + [ + _c( + "v-btn", + { + staticClass: "WM-CyanBlueGradient-BG", + staticStyle: { padding: "10px 60px" } + }, + [ + _c( + "v-icon", + { staticClass: "white--text mr-2 caption" }, + [_vm._v("fas fa-check")] + ), + _vm._v(" "), + _c("span", { staticClass: "white--text" }, [ + _vm._v("Generate Form") + ]) + ], + 1 + ), + _vm._v(" "), + _c( + "router-link", + { attrs: { to: "/dashboard" } }, + [ + _c( + "v-btn", + { + staticClass: + "WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5" + }, + [ + _c( + "v-icon", + { staticClass: "black--text mr-2 caption" }, + [_vm._v("fas fa-chevron-left")] + ), + _vm._v(" "), + _c("span", { staticClass: "black--text" }, [ + _vm._v("Back") + ]) + ], + 1 + ) + ], + 1 + ) + ], + 1 + ) + ], + 2 + ) + ], + 1 + ) + ], + 1 + ) +} +var staticRenderFns = [] +render._withStripped = true + + + +/***/ }), + +/***/ "./resources/js/vue/views/TestCreator.vue": +/*!************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue ***! + \************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); +/* harmony import */ var _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __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_3__["default"])( + _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], + _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], + false, + null, + "d05735bc", + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "resources/js/vue/views/TestCreator.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": +/*!*************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! + \*************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": +/*!*********************************************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! + \*********************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": +/*!*******************************************************************************************!*\ + !*** ./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! + \*******************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); + + + +/***/ }) + +}]); \ No newline at end of file diff --git a/public/3.js b/public/3.js index 2a09647d..a586f962 100644 --- a/public/3.js +++ b/public/3.js @@ -1,1533 +1,767 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": -/*!*********************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! - \*********************************************************************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/inherits/inherits_browser.js": +/*!***************************************************!*\ + !*** ./node_modules/inherits/inherits_browser.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { -"use strict"; -__webpack_require__.r(__webpack_exports__); -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -/* harmony default export */ __webpack_exports__["default"] = ({ - name: "", - data: function data() { - return { - form: {}, - SelectedType: { - 0: 0, - 1: {} - }, - InputDuplicator: { - 0: 0 - }, - ArrayInput: [{ - value: '' - }], - ArraySelectBox: [], - ArrayCheckBox: [], - ArrayForm: [], - SelectBox: {}, - CheckBox: {}, - ArrayDiv: [0], - Hidden: false, - select: { - state: 'Text', - abbr: 'text' - }, - Items: [[{ - state: 'Text', - abbr: 'text' - }, { - state: 'Checkbox', - abbr: 'checkbox' - }, { - state: 'Select', - abbr: 'select' - }, { - state: 'Form', - abbr: 'form' - }], [{ - state: 'Text', - abbr: 'text' - }, { - state: 'Checkbox', - abbr: 'checkbox' - }, { - state: 'Select', - abbr: 'select' - }]] - }; - }, - methods: { - Duplicator: function Duplicator() { - this.ArrayDiv.push(this.ArrayDiv.length); - }, - Remove: function Remove(index) { - this.ArrayDiv.splice(index, 1); - }, - RemoveInput: function RemoveInput(Type, ArrayDivindex, index) { - if (Type === 'ArraySelectBox') { - this.ArraySelectBox[ArrayDivindex].splice(index, 1); - this.CreateAgainArray(this.ArraySelectBox, 'ArraySelectBox'); - } else { - this.ArrayCheckBox[ArrayDivindex].splice(index, 1); - this.CreateAgainArray(this.ArrayCheckBox, 'ArrayCheckBox'); +if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true } - }, - InputDuplicate: function InputDuplicate(Type, ArrayDivindex) { - if (Type === 'ArraySelectBox') { - if (this.ArraySelectBox[ArrayDivindex] == undefined) { - this.ArraySelectBox[ArrayDivindex] = []; - } + }); + }; +} else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } +} - this.ArraySelectBox[ArrayDivindex].push({ - value: '' - }); - this.CreateAgainArray(this.ArraySelectBox, 'ArraySelectBox'); - } else if (Type === 'ArrayCheckBox') { - if (this.ArrayCheckBox[ArrayDivindex] == undefined) { - this.ArrayCheckBox[ArrayDivindex] = []; - } - this.ArrayCheckBox[ArrayDivindex].push({ - value: '' - }); - this.CreateAgainArray(this.ArrayCheckBox, 'ArrayCheckBox'); - } else { - if (this.ArrayForm[ArrayDivindex] == undefined) { - this.ArrayForm[ArrayDivindex] = []; - } else { - this.ArrayForm[ArrayDivindex].push({ - value: '' - }); - this.CreateAgainArray(this.ArrayForm, 'ArrayForm'); - } - } - }, - CreateAgainArray: function CreateAgainArray(arrayDiv, Type) { - var array = arrayDiv; +/***/ }), - if (Type === 'ArraySelectBox') { - this.ArraySelectBox = []; - this.ArraySelectBox = array; - } else if (Type === 'ArrayCheckBox') { - this.ArrayCheckBox = []; - this.ArrayCheckBox = array; - } else { - this.ArrayForm = []; - this.ArrayForm = array; - } - }, - DefaultValue: function DefaultValue(ArrayDivindex, SelectedType) { - this.Hidden = true; +/***/ "./node_modules/util/support/isBufferBrowser.js": +/*!******************************************************!*\ + !*** ./node_modules/util/support/isBufferBrowser.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { - if (SelectedType == 'select') { - if (this.ArraySelectBox[ArrayDivindex] == undefined) { - this.ArraySelectBox[ArrayDivindex] = []; - this.ArraySelectBox[ArrayDivindex].push({ - value: '' - }); +module.exports = function isBuffer(arg) { + return arg && typeof arg === 'object' + && typeof arg.copy === 'function' + && typeof arg.fill === 'function' + && typeof arg.readUInt8 === 'function'; +} + +/***/ }), + +/***/ "./node_modules/util/util.js": +/*!***********************************!*\ + !*** ./node_modules/util/util.js ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || + function getOwnPropertyDescriptors(obj) { + var keys = Object.keys(obj); + var descriptors = {}; + for (var i = 0; i < keys.length; i++) { + descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); + } + return descriptors; + }; + +var formatRegExp = /%[sdj%]/g; +exports.format = function(f) { + if (!isString(f)) { + var objects = []; + for (var i = 0; i < arguments.length; i++) { + objects.push(inspect(arguments[i])); + } + return objects.join(' '); + } + + var i = 1; + var args = arguments; + var len = args.length; + var str = String(f).replace(formatRegExp, function(x) { + if (x === '%%') return '%'; + if (i >= len) return x; + switch (x) { + case '%s': return String(args[i++]); + case '%d': return Number(args[i++]); + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; } - } else if (SelectedType == 'checkbox') { - if (this.ArrayCheckBox[ArrayDivindex] == undefined) { - this.ArrayCheckBox[ArrayDivindex] = []; - this.ArrayCheckBox[ArrayDivindex].push({ - value: '' - }); - } - } + default: + return x; + } + }); + for (var x = args[i]; i < len; x = args[++i]) { + if (isNull(x) || !isObject(x)) { + str += ' ' + x; + } else { + str += ' ' + inspect(x); } } -}); - -/***/ }), - -/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": -/*!****************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false); -// Module -exports.push([module.i, "\n.WM-Border-Gray[data-v-d05735bc] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-d05735bc] {\r\n background-color : #F5F5F5;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n top: -25px !important;\n}\n.v-btn--bottom.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n bottom: -24px !important;\n}\r\n", ""]); + return str; +}; +// Mark that a method should not be used. +// Returns a modified function which warns once by default. +// If --no-deprecation is set, then it is a no-op. +exports.deprecate = function(fn, msg) { + if (typeof process !== 'undefined' && process.noDeprecation === true) { + return fn; + } -/***/ }), + // Allow for deprecating things in the process of starting up. + if (typeof process === 'undefined') { + return function() { + return exports.deprecate(fn, msg).apply(this, arguments); + }; + } -/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": -/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + var warned = false; + function deprecated() { + if (!warned) { + if (process.throwDeprecation) { + throw new Error(msg); + } else if (process.traceDeprecation) { + console.trace(msg); + } else { + console.error(msg); + } + warned = true; + } + return fn.apply(this, arguments); + } + + return deprecated; +}; -var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); - -if(typeof content === 'string') content = [[module.i, content, '']]; - -var transform; -var insertInto; +var debugs = {}; +var debugEnviron; +exports.debuglog = function(set) { + if (isUndefined(debugEnviron)) + debugEnviron = Object({"MIX_APP_CLIENT_ID":"2","MIX_APP_CLIENT_SECRET":"vAhCu2Y4mxfjlr8uTSxpBmjn2rWPIEolnr73ETAE","MIX_APP_ROOT_API":"/api/","MIX_PUSHER_APP_CLUSTER":"mt1","MIX_PUSHER_APP_KEY":"","NODE_ENV":"development"}).NODE_DEBUG || ''; + set = set.toUpperCase(); + if (!debugs[set]) { + if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { + var pid = process.pid; + debugs[set] = function() { + var msg = exports.format.apply(exports, arguments); + console.error('%s %d: %s', set, pid, msg); + }; + } else { + debugs[set] = function() {}; + } + } + return debugs[set]; +}; - -var options = {"hmr":true} - -options.transform = transform -options.insertInto = undefined; - -var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); - -if(content.locals) module.exports = content.locals; - -if(false) {} - -/***/ }), - -/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": -/*!*************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! - \*************************************************************************************************************************************************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "v-form", - { attrs: { id: "ParentForm" } }, - [ - _c( - "v-container", - { attrs: { "grid-list-xs": "" } }, - [ - _c( - "material-card", - { attrs: { color: "black", title: "Add a New Test" } }, - [ - _c( - "v-layout", - { - staticClass: "ma-2", - attrs: { row: "", wrap: "", id: "Form" } - }, - [ - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { name: "name", label: "Name", color: "black" } - }) - ], - 1 - ), - _vm._v(" "), - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { - name: "uniquecode", - label: "Unique Code", - color: "black" - } - }) - ], - 1 - ) - ], - 1 - ), - _vm._v(" "), - _c( - "v-layout", - { - staticClass: - "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Relative", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-layout", - { - staticClass: "ma-2", - attrs: { row: "", wrap: "", id: "Form" } - }, - [ - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { - name: "inputname", - label: "Input Name", - color: "black" - } - }) - ], - 1 - ), - _vm._v(" "), - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-select", { - staticClass: "pa-2", - attrs: { - items: _vm.Items[0], - "item-text": "state", - "item-value": "abbr", - label: "Type", - "single-line": "", - color: "black" - }, - on: { - change: function($event) { - return _vm.DefaultValue(0, _vm.SelectedType[0]) - } - }, - model: { - value: _vm.SelectedType[0], - callback: function($$v) { - _vm.$set(_vm.SelectedType, 0, $$v) - }, - expression: "SelectedType[0]" - } - }) - ], - 1 - ), - _vm._v(" "), - _vm.SelectedType[0] === "text" - ? _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { - name: "size", - label: "Size", - color: "black", - id: "InputSize" - } - }) - ], - 1 - ) - : _vm._e() - ], - 1 - ), - _vm._v(" "), - _vm.SelectedType[0] === "select" - ? _c( - "v-layout", - { - staticClass: - "ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-layout", - { - staticClass: "WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - _vm._l(_vm.ArraySelectBox[0], function( - SelectBox, - Key - ) { - return _c( - "v-flex", - { - key: Key, - staticClass: - "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", - attrs: { xs12: "", md3: "", sm3: "" } - }, - [ - _c("v-text-field", { - staticClass: "pa-2 Input", - attrs: { - name: "title", - label: "Title", - color: "black" - }, - model: { - value: SelectBox.value, - callback: function($$v) { - _vm.$set(SelectBox, "value", $$v) - }, - expression: "SelectBox.value" - } - }), - _vm._v(" "), - Key >= 1 - ? _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "pink" - }, - on: { - click: function($event) { - return _vm.RemoveInput( - "ArraySelectBox", - 0, - Key - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [_vm._v("fas fa-times")] - ), - _vm._v( - "\n REMOVE" - ) - ], - 1 - ) - : _vm._e() - ], - 1 - ) - }), - 1 - ), - _vm._v(" "), - _c( - "v-btn", - { - staticClass: "mb-2", - attrs: { - absolute: "", - right: "", - bottom: "", - small: "", - color: "black" - }, - on: { - click: function($event) { - return _vm.InputDuplicate("ArraySelectBox", 0) - } - } - }, - [ - _c( - "v-icon", - { staticClass: "white--text mr-2 caption" }, - [_vm._v("fas fa-plus")] - ), - _vm._v(" "), - _c("span", { staticClass: "white--text" }, [ - _vm._v("Add") - ]) - ], - 1 - ) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _vm.SelectedType[0] === "checkbox" - ? _c( - "v-layout", - { - staticClass: - "pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-layout", - { - staticClass: "WM-Width-Full WM-Relative", - attrs: { row: "", wrap: "" } - }, - _vm._l(_vm.ArrayCheckBox[0], function( - Checkbox, - Key - ) { - return _c( - "v-flex", - { - key: Key, - staticClass: - "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", - attrs: { xs12: "", sm3: "", md3: "" } - }, - [ - _c("v-text-field", { - staticClass: "pa-2 Input", - attrs: { - name: "title", - label: "Title", - color: "black" - }, - model: { - value: Checkbox.value, - callback: function($$v) { - _vm.$set(Checkbox, "value", $$v) - }, - expression: "Checkbox.value" - } - }), - _vm._v(" "), - Key >= 1 - ? _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "pink" - }, - on: { - click: function($event) { - return _vm.RemoveInput( - "ArrayCheckBox", - 0, - Key - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [_vm._v("fas fa-times")] - ), - _vm._v(" "), - _c( - "span", - { staticClass: "white--text" }, - [_vm._v("REMOVE")] - ) - ], - 1 - ) - : _vm._e() - ], - 1 - ) - }), - 1 - ), - _vm._v(" "), - _c( - "v-btn", - { - staticClass: "mb-2", - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "black" - }, - on: { - click: function($event) { - return _vm.InputDuplicate("ArrayCheckBox", 0) - } - } - }, - [ - _c( - "v-icon", - { staticClass: "white--text mr-2 caption" }, - [_vm._v("fas fa-plus")] - ), - _vm._v(" "), - _c("span", { staticClass: "white--text" }, [ - _vm._v("Add") - ]) - ], - 1 - ) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _vm.SelectedType[0] === "form" - ? _c( - "v-layout", - { - staticClass: - "pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative", - attrs: { row: "", wrap: "" } - }, - [ - _vm._l(_vm.ArrayDiv, function(Div, ArrayDivKey) { - return _c( - "v-layout", - { - key: ArrayDivKey, - staticClass: - "pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Color-LightGrey WM-Width-Full WM-Relative Form", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { - name: "inputname", - label: "Input Name", - color: "black" - } - }) - ], - 1 - ), - _vm._v(" "), - _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-select", { - staticClass: "pa-2", - attrs: { - items: _vm.Items[1], - "item-text": "state", - "item-value": "abbr", - label: "Type", - "single-line": "", - color: "black" - }, - on: { - change: function($event) { - return _vm.DefaultValue( - ArrayDivKey, - _vm.SelectedType[1][ArrayDivKey] - ) - } - }, - model: { - value: _vm.SelectedType[1][ArrayDivKey], - callback: function($$v) { - _vm.$set( - _vm.SelectedType[1], - ArrayDivKey, - $$v - ) - }, - expression: - "SelectedType[1][ArrayDivKey]" - } - }) - ], - 1 - ), - _vm._v(" "), - _vm.SelectedType[1][ArrayDivKey] === "text" - ? _c( - "v-flex", - { attrs: { xs12: "", md3: "", sm3: "" } }, - [ - _c("v-text-field", { - staticClass: "pa-2", - attrs: { - name: "size", - label: "Size", - color: "black", - id: "InputSize" - } - }) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _vm.SelectedType[1][ArrayDivKey] === "select" - ? _c( - "v-layout", - { - staticClass: - "pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-layout", - { - staticClass: - "WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - _vm._l( - _vm.ArraySelectBox[ArrayDivKey], - function(SelectBox, Key) { - return _c( - "v-flex", - { - key: Key, - staticClass: - "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", - attrs: { - xs12: "", - md3: "", - sm3: "" - } - }, - [ - _c("v-text-field", { - staticClass: "pa-2 Input", - attrs: { - name: "title", - label: "Title", - color: "black", - id: "value" - }, - model: { - value: SelectBox.value, - callback: function($$v) { - _vm.$set( - SelectBox, - "value", - $$v - ) - }, - expression: - "SelectBox.value" - } - }), - _vm._v(" "), - Key >= 1 - ? _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "pink" - }, - on: { - click: function( - $event - ) { - return _vm.RemoveInput( - "ArraySelectBox", - ArrayDivKey, - Key - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [ - _vm._v( - "fas fa-times" - ) - ] - ), - _vm._v( - "\n REMOVE" - ) - ], - 1 - ) - : _vm._e() - ], - 1 - ) - } - ), - 1 - ), - _vm._v(" "), - _c( - "v-btn", - { - attrs: { - absolute: "", - right: "", - bottom: "", - small: "", - color: "black" - }, - on: { - click: function($event) { - return _vm.InputDuplicate( - "ArraySelectBox", - ArrayDivKey - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [_vm._v("fas fa-plus")] - ), - _vm._v(" "), - _c( - "span", - { staticClass: "white--text" }, - [_vm._v("Add")] - ) - ], - 1 - ) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _vm.SelectedType[1][ArrayDivKey] === "checkbox" - ? _c( - "v-layout", - { - staticClass: - "pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - [ - _c( - "v-layout", - { - staticClass: - "WM-Relative WM-Width-Full", - attrs: { row: "", wrap: "" } - }, - _vm._l( - _vm.ArrayCheckBox[ArrayDivKey], - function(CheckBox, Key) { - return Key >= 0 - ? _c( - "v-flex", - { - key: Key, - staticClass: - "pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative", - attrs: { - xs12: "", - md3: "", - sm3: "" - } - }, - [ - _c("v-text-field", { - staticClass: - "pa-2 Input", - attrs: { - name: "title", - label: "Title", - color: "black", - id: "value" - }, - model: { - value: CheckBox.value, - callback: function( - $$v - ) { - _vm.$set( - CheckBox, - "value", - $$v - ) - }, - expression: - "CheckBox.value" - } - }), - _vm._v(" "), - Key >= 1 - ? _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "pink" - }, - on: { - click: function( - $event - ) { - return _vm.RemoveInput( - "ArrayCheckBox", - ArrayDivKey, - Key - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [ - _vm._v( - "fas fa-times" - ) - ] - ), - _vm._v( - "\n REMOVE" - ) - ], - 1 - ) - : _vm._e() - ], - 1 - ) - : _vm._e() - } - ), - 1 - ), - _vm._v(" "), - _c( - "v-btn", - { - attrs: { - absolute: "", - right: "", - bottom: "", - small: "", - color: "black" - }, - on: { - click: function($event) { - return _vm.InputDuplicate( - "ArrayCheckBox", - ArrayDivKey - ) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: - "white--text mr-2 caption" - }, - [_vm._v("fas fa-plus")] - ), - _vm._v(" "), - _c( - "span", - { staticClass: "white--text" }, - [_vm._v("Add")] - ) - ], - 1 - ) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - top: "", - color: "pink", - id: "RemoveFormDuplicator" - }, - on: { - click: function($event) { - return _vm.Remove(ArrayDivKey) - } - } - }, - [ - _c( - "v-icon", - { - staticClass: "white--text mr-2 caption" - }, - [_vm._v("fas fa-times")] - ), - _vm._v("\n REMOVE") - ], - 1 - ) - ], - 1 - ) - }), - _vm._v(" "), - _c( - "v-btn", - { - attrs: { - absolute: "", - small: "", - right: "", - bottom: "", - color: "cyan", - id: "FormDuplicator" - }, - on: { click: _vm.Duplicator } - }, - [ - _c( - "v-icon", - { staticClass: "white--text mr-2 caption" }, - [_vm._v("fas fa-plus")] - ), - _vm._v("\nADD") - ], - 1 - ) - ], - 2 - ) - : _vm._e(), - _vm._v(" "), - _c( - "v-btn", - { - staticClass: "mb-2", - attrs: { - absolute: "", - right: "", - bottom: "", - small: "", - color: "pink" - }, - on: { - click: function($event) { - return _vm.InputDuplicate("ArrayForm", 0) - } - } - }, - [ - _c( - "v-icon", - { staticClass: "white--text mr-2 caption" }, - [_vm._v("fas fa-plus")] - ), - _vm._v(" "), - _c("span", { staticClass: "white--text" }, [ - _vm._v("Add") - ]) - ], - 1 - ) - ], - 1 - ), - _vm._v(" "), - _c( - "v-layout", - { - staticClass: "mt-4", - attrs: { - row: "", - wrap: "", - "align-center": "", - "justify-center": "" - } - }, - [ - _vm.Hidden - ? _c( - "v-btn", - { - staticClass: "WM-CyanBlueGradient-BG", - staticStyle: { padding: "10px 60px" } - }, - [ - _c( - "v-icon", - { staticClass: "white--text mr-2 caption" }, - [_vm._v("fas fa-check")] - ), - _vm._v(" "), - _c("span", { staticClass: "white--text" }, [ - _vm._v("Generate Form") - ]) - ], - 1 - ) - : _vm._e(), - _vm._v(" "), - _c( - "router-link", - { attrs: { to: "/dashboard" } }, - [ - _c( - "v-btn", - { - staticClass: - "WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5" - }, - [ - _c( - "v-icon", - { staticClass: "black--text mr-2 caption" }, - [_vm._v("fas fa-chevron-left")] - ), - _vm._v(" "), - _c("span", { staticClass: "black--text" }, [ - _vm._v("Back") - ]) - ], - 1 - ) - ], - 1 - ) - ], - 1 - ) - ], - 1 - ) - ], - 1 - ) - ], - 1 - ) +/** + * Echos the value of a value. Trys to print the value out + * in the best way possible given the different types. + * + * @param {Object} obj The object to print out. + * @param {Object} opts Optional options object that alters the output. + */ +/* legacy: obj, showHidden, depth, colors*/ +function inspect(obj, opts) { + // default options + var ctx = { + seen: [], + stylize: stylizeNoColor + }; + // legacy... + if (arguments.length >= 3) ctx.depth = arguments[2]; + if (arguments.length >= 4) ctx.colors = arguments[3]; + if (isBoolean(opts)) { + // legacy... + ctx.showHidden = opts; + } else if (opts) { + // got an "options" object + exports._extend(ctx, opts); + } + // set default options + if (isUndefined(ctx.showHidden)) ctx.showHidden = false; + if (isUndefined(ctx.depth)) ctx.depth = 2; + if (isUndefined(ctx.colors)) ctx.colors = false; + if (isUndefined(ctx.customInspect)) ctx.customInspect = true; + if (ctx.colors) ctx.stylize = stylizeWithColor; + return formatValue(ctx, obj, ctx.depth); } -var staticRenderFns = [] -render._withStripped = true +exports.inspect = inspect; +// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics +inspect.colors = { + 'bold' : [1, 22], + 'italic' : [3, 23], + 'underline' : [4, 24], + 'inverse' : [7, 27], + 'white' : [37, 39], + 'grey' : [90, 39], + 'black' : [30, 39], + 'blue' : [34, 39], + 'cyan' : [36, 39], + 'green' : [32, 39], + 'magenta' : [35, 39], + 'red' : [31, 39], + 'yellow' : [33, 39] +}; -/***/ }), - -/***/ "./resources/js/vue/views/TestCreator.vue": -/*!************************************************!*\ - !*** ./resources/js/vue/views/TestCreator.vue ***! - \************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); -/* harmony import */ var _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); -/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +// Don't use 'blue' not visible on cmd.exe +inspect.styles = { + 'special': 'cyan', + 'number': 'yellow', + 'boolean': 'yellow', + 'undefined': 'grey', + 'null': 'bold', + 'string': 'green', + 'date': 'magenta', + // "name": intentionally not styling + 'regexp': 'red' +}; +function stylizeWithColor(str, styleType) { + var style = inspect.styles[styleType]; + + if (style) { + return '\u001b[' + inspect.colors[style][0] + 'm' + str + + '\u001b[' + inspect.colors[style][1] + 'm'; + } else { + return str; + } +} +function stylizeNoColor(str, styleType) { + return str; +} -/* normalize component */ +function arrayToHash(array) { + var hash = {}; -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( - _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], - _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], - _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], - false, - null, - "d05735bc", - null - -) + array.forEach(function(val, idx) { + hash[val] = true; + }); -/* hot reload */ -if (false) { var api; } -component.options.__file = "resources/js/vue/views/TestCreator.vue" -/* harmony default export */ __webpack_exports__["default"] = (component.exports); - -/***/ }), - -/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&": -/*!*************************************************************************!*\ - !*** ./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***! - \*************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); - -/***/ }), - -/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&": -/*!*********************************************************************************************************!*\ - !*** ./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***! - \*********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&"); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); - /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&": -/*!*******************************************************************************************!*\ - !*** ./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***! - \*******************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); - -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); + return hash; +} +function formatValue(ctx, value, recurseTimes) { + // Provide a hook for user-specified inspect functions. + // Check that value is an object with an inspect function on it + if (ctx.customInspect && + value && + isFunction(value.inspect) && + // Filter out the util module, it's inspect function is special + value.inspect !== exports.inspect && + // Also filter out any prototype objects using the circular check. + !(value.constructor && value.constructor.prototype === value)) { + var ret = value.inspect(recurseTimes, ctx); + if (!isString(ret)) { + ret = formatValue(ctx, ret, recurseTimes); + } + return ret; + } + + // Primitive types cannot have properties + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } + + // Look up the keys of the object. + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (ctx.showHidden) { + keys = Object.getOwnPropertyNames(value); + } + + // IE doesn't make error fields non-enumerable + // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx + if (isError(value) + && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { + return formatError(value); + } + + // Some type of object without properties can be shortcutted. + if (keys.length === 0) { + if (isFunction(value)) { + var name = value.name ? ': ' + value.name : ''; + return ctx.stylize('[Function' + name + ']', 'special'); + } + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } + if (isDate(value)) { + return ctx.stylize(Date.prototype.toString.call(value), 'date'); + } + if (isError(value)) { + return formatError(value); + } + } + + var base = '', array = false, braces = ['{', '}']; + + // Make Array say that they are Array + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } + + // Make functions say that they are functions + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } + + // Make RegExps say that they are RegExps + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } + + // Make dates with properties first say the date + if (isDate(value)) { + base = ' ' + Date.prototype.toUTCString.call(value); + } + + // Make error with message first say the error + if (isError(value)) { + base = ' ' + formatError(value); + } + + if (keys.length === 0 && (!array || value.length == 0)) { + return braces[0] + base + braces[1]; + } + + if (recurseTimes < 0) { + if (isRegExp(value)) { + return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); + } else { + return ctx.stylize('[Object]', 'special'); + } + } + + ctx.seen.push(value); + + var output; + if (array) { + output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); + } else { + output = keys.map(function(key) { + return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); + }); + } + + ctx.seen.pop(); + + return reduceToSingleString(output, base, braces); +} + + +function formatPrimitive(ctx, value) { + if (isUndefined(value)) + return ctx.stylize('undefined', 'undefined'); + if (isString(value)) { + var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') + .replace(/'/g, "\\'") + .replace(/\\"/g, '"') + '\''; + return ctx.stylize(simple, 'string'); + } + if (isNumber(value)) + return ctx.stylize('' + value, 'number'); + if (isBoolean(value)) + return ctx.stylize('' + value, 'boolean'); + // For some reason typeof null is "object", so special case here. + if (isNull(value)) + return ctx.stylize('null', 'null'); +} + + +function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; +} + + +function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { + var output = []; + for (var i = 0, l = value.length; i < l; ++i) { + if (hasOwnProperty(value, String(i))) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, + String(i), true)); + } else { + output.push(''); + } + } + keys.forEach(function(key) { + if (!key.match(/^\d+$/)) { + output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, + key, true)); + } + }); + return output; +} + + +function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { + var name, str, desc; + desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; + if (desc.get) { + if (desc.set) { + str = ctx.stylize('[Getter/Setter]', 'special'); + } else { + str = ctx.stylize('[Getter]', 'special'); + } + } else { + if (desc.set) { + str = ctx.stylize('[Setter]', 'special'); + } + } + if (!hasOwnProperty(visibleKeys, key)) { + name = '[' + key + ']'; + } + if (!str) { + if (ctx.seen.indexOf(desc.value) < 0) { + if (isNull(recurseTimes)) { + str = formatValue(ctx, desc.value, null); + } else { + str = formatValue(ctx, desc.value, recurseTimes - 1); + } + if (str.indexOf('\n') > -1) { + if (array) { + str = str.split('\n').map(function(line) { + return ' ' + line; + }).join('\n').substr(2); + } else { + str = '\n' + str.split('\n').map(function(line) { + return ' ' + line; + }).join('\n'); + } + } + } else { + str = ctx.stylize('[Circular]', 'special'); + } + } + if (isUndefined(name)) { + if (array && key.match(/^\d+$/)) { + return str; + } + name = JSON.stringify('' + key); + if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { + name = name.substr(1, name.length - 2); + name = ctx.stylize(name, 'name'); + } else { + name = name.replace(/'/g, "\\'") + .replace(/\\"/g, '"') + .replace(/(^"|"$)/g, "'"); + name = ctx.stylize(name, 'string'); + } + } + + return name + ': ' + str; +} + + +function reduceToSingleString(output, base, braces) { + var numLinesEst = 0; + var length = output.reduce(function(prev, cur) { + numLinesEst++; + if (cur.indexOf('\n') >= 0) numLinesEst++; + return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; + }, 0); + + if (length > 60) { + return braces[0] + + (base === '' ? '' : base + '\n ') + + ' ' + + output.join(',\n ') + + ' ' + + braces[1]; + } + + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; +} + + +// NOTE: These type checking functions intentionally don't use `instanceof` +// because it is fragile and can be easily faked with `Object.create()`. +function isArray(ar) { + return Array.isArray(ar); +} +exports.isArray = isArray; + +function isBoolean(arg) { + return typeof arg === 'boolean'; +} +exports.isBoolean = isBoolean; + +function isNull(arg) { + return arg === null; +} +exports.isNull = isNull; + +function isNullOrUndefined(arg) { + return arg == null; +} +exports.isNullOrUndefined = isNullOrUndefined; + +function isNumber(arg) { + return typeof arg === 'number'; +} +exports.isNumber = isNumber; + +function isString(arg) { + return typeof arg === 'string'; +} +exports.isString = isString; + +function isSymbol(arg) { + return typeof arg === 'symbol'; +} +exports.isSymbol = isSymbol; + +function isUndefined(arg) { + return arg === void 0; +} +exports.isUndefined = isUndefined; + +function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; +} +exports.isRegExp = isRegExp; + +function isObject(arg) { + return typeof arg === 'object' && arg !== null; +} +exports.isObject = isObject; + +function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; +} +exports.isDate = isDate; + +function isError(e) { + return isObject(e) && + (objectToString(e) === '[object Error]' || e instanceof Error); +} +exports.isError = isError; + +function isFunction(arg) { + return typeof arg === 'function'; +} +exports.isFunction = isFunction; + +function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; +} +exports.isPrimitive = isPrimitive; + +exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ "./node_modules/util/support/isBufferBrowser.js"); + +function objectToString(o) { + return Object.prototype.toString.call(o); +} + + +function pad(n) { + return n < 10 ? '0' + n.toString(10) : n.toString(10); +} + + +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec']; + +// 26 Feb 16:19:34 +function timestamp() { + var d = new Date(); + var time = [pad(d.getHours()), + pad(d.getMinutes()), + pad(d.getSeconds())].join(':'); + return [d.getDate(), months[d.getMonth()], time].join(' '); +} + + +// log is just a thin wrapper to console.log that prepends a timestamp +exports.log = function() { + console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); +}; + + +/** + * Inherit the prototype methods from one constructor into another. + * + * The Function.prototype.inherits from lang.js rewritten as a standalone + * function (not on Function.prototype). NOTE: If this file is to be loaded + * during bootstrapping this function needs to be rewritten using some native + * functions as prototype setup using normal JavaScript does not work as + * expected during bootstrapping (see mirror.js in r114903). + * + * @param {function} ctor Constructor function which needs to inherit the + * prototype. + * @param {function} superCtor Constructor function to inherit prototype from. + */ +exports.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); + +exports._extend = function(origin, add) { + // Don't do anything if add isn't an object + if (!add || !isObject(add)) return origin; + + var keys = Object.keys(add); + var i = keys.length; + while (i--) { + origin[keys[i]] = add[keys[i]]; + } + return origin; +}; + +function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); +} + +var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; + +exports.promisify = function promisify(original) { + if (typeof original !== 'function') + throw new TypeError('The "original" argument must be of type Function'); + + if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { + var fn = original[kCustomPromisifiedSymbol]; + if (typeof fn !== 'function') { + throw new TypeError('The "util.promisify.custom" argument must be of type Function'); + } + Object.defineProperty(fn, kCustomPromisifiedSymbol, { + value: fn, enumerable: false, writable: false, configurable: true + }); + return fn; + } + + function fn() { + var promiseResolve, promiseReject; + var promise = new Promise(function (resolve, reject) { + promiseResolve = resolve; + promiseReject = reject; + }); + + var args = []; + for (var i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + args.push(function (err, value) { + if (err) { + promiseReject(err); + } else { + promiseResolve(value); + } + }); + + try { + original.apply(this, args); + } catch (err) { + promiseReject(err); + } + + return promise; + } + + Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); + + if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { + value: fn, enumerable: false, writable: false, configurable: true + }); + return Object.defineProperties( + fn, + getOwnPropertyDescriptors(original) + ); +} + +exports.promisify.custom = kCustomPromisifiedSymbol + +function callbackifyOnRejected(reason, cb) { + // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). + // Because `null` is a special error value in callbacks which means "no error + // occurred", we error-wrap so the callback consumer can distinguish between + // "the promise rejected with null" or "the promise fulfilled with undefined". + if (!reason) { + var newReason = new Error('Promise was rejected with a falsy value'); + newReason.reason = reason; + reason = newReason; + } + return cb(reason); +} + +function callbackify(original) { + if (typeof original !== 'function') { + throw new TypeError('The "original" argument must be of type Function'); + } + + // We DO NOT return the promise as it gives the user a false sense that + // the promise is actually somehow related to the callback's execution + // and that the callback throwing will reject the promise. + function callbackified() { + var args = []; + for (var i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + + var maybeCb = args.pop(); + if (typeof maybeCb !== 'function') { + throw new TypeError('The last argument must be of type Function'); + } + var self = this; + var cb = function() { + return maybeCb.apply(self, arguments); + }; + // In true node style we process the callback on `nextTick` with all the + // implications (stack, `uncaughtException`, `async_hooks`) + original.apply(this, args) + .then(function(ret) { process.nextTick(cb, null, ret) }, + function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) }); + } + + Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); + Object.defineProperties(callbackified, + getOwnPropertyDescriptors(original)); + return callbackified; +} +exports.callbackify = callbackify; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js"))) /***/ }) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 7c6c075a..a27cec12 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,3 +1,3 @@ { - "/vue/js/app.js": "/vue/js/app.js?id=83db251ea150b123e82c" + "/vue/js/app.js": "/vue/js/app.js?id=a95887553c9fae754f1c" } diff --git a/public/vue/js/app.js b/public/vue/js/app.js index 3af07a4e..9de88c98 100644 --- a/public/vue/js/app.js +++ b/public/vue/js/app.js @@ -63769,7 +63769,7 @@ var toggle = function toggle(property) { var map = { "./AddMedicalCenter.vue": [ "./resources/js/vue/views/AddMedicalCenter.vue", - 0, + 3, 6 ], "./AddNewTest.vue": [ @@ -63818,7 +63818,7 @@ var map = { ], "./OperatorList.vue": [ "./resources/js/vue/views/OperatorList.vue", - 0, + 3, 15 ], "./Register.vue": [ @@ -63847,7 +63847,7 @@ var map = { ], "./TestCreator.vue": [ "./resources/js/vue/views/TestCreator.vue", - 3 + 0 ], "./Typography.vue": [ "./resources/js/vue/views/Typography.vue", diff --git a/resources/js/app.js b/resources/js/app.js deleted file mode 100644 index 4131ca04..00000000 --- a/resources/js/app.js +++ /dev/null @@ -1,33 +0,0 @@ - -/** - * First we will load all of this project's JavaScript dependencies which - * includes Vue and other libraries. It is a great starting point when - * building robust, powerful web applications using Vue and Laravel. - */ - -require('./bootstrap'); - -window.Vue = require('vue'); - -/** - * The following block of code may be used to automatically register your - * Vue components. It will recursively scan this directory for the Vue - * components and automatically register them with their "basename". - * - * Eg. ./components/ExampleComponent.vue -> - */ - -// const files = require.context('./', true, /\.vue$/i); -// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)); - -Vue.component('example-component', require('./components/ExampleComponent.vue').default); - -/** - * Next, we will create a fresh Vue application instance and attach it to - * the page. Then, you may begin adding components to this application - * or customize the JavaScript scaffolding to fit your unique needs. - */ - -const app = new Vue({ - el: '#app' -}); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js deleted file mode 100644 index c1f8ac39..00000000 --- a/resources/js/bootstrap.js +++ /dev/null @@ -1,56 +0,0 @@ - -window._ = require('lodash'); - -/** - * We'll load jQuery and the Bootstrap jQuery plugin which provides support - * for JavaScript based Bootstrap features such as modals and tabs. This - * code may be modified to fit the specific needs of your application. - */ - -try { - window.Popper = require('popper.js').default; - window.$ = window.jQuery = require('jquery'); - - require('bootstrap'); -} catch (e) {} - -/** - * We'll load the axios HTTP library which allows us to easily issue requests - * to our Laravel back-end. This library automatically handles sending the - * CSRF token as a header based on the value of the "XSRF" token cookie. - */ - -window.axios = require('axios'); - -window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; - -/** - * Next we will register the CSRF Token as a common header with Axios so that - * all outgoing HTTP requests automatically have it attached. This is just - * a simple convenience so we don't have to attach every token manually. - */ - -let token = document.head.querySelector('meta[name="csrf-token"]'); - -if (token) { - window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; -} else { - console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); -} - -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allows your team to easily build robust real-time web applications. - */ - -// import Echo from 'laravel-echo' - -// window.Pusher = require('pusher-js'); - -// window.Echo = new Echo({ -// broadcaster: 'pusher', -// key: process.env.MIX_PUSHER_APP_KEY, -// cluster: process.env.MIX_PUSHER_APP_CLUSTER, -// encrypted: true -// }); diff --git a/resources/js/components/ExampleComponent.vue b/resources/js/components/ExampleComponent.vue deleted file mode 100644 index 3fb9f9aa..00000000 --- a/resources/js/components/ExampleComponent.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/resources/js/vue/views/TestCreator.vue b/resources/js/vue/views/TestCreator.vue index 7afd16fc..2ee717c7 100644 --- a/resources/js/vue/views/TestCreator.vue +++ b/resources/js/vue/views/TestCreator.vue @@ -1,411 +1,372 @@