mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 02:31:05 +03:30
1 line
21 KiB
JavaScript
Vendored
1 line
21 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{AFAU:function(t,e,r){var a=r("O4+Z");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r("aET+")(a,n);a.locals&&(t.exports=a.locals)},"O4+Z":function(t,e,r){(t.exports=r("JPst")(!1)).push([t.i,"\n.WM-Border-Gray[data-v-09d5d114] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-09d5d114] {\r\n background-color: #f5f5f5;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-09d5d114] {\r\n top: -25px !important;\n}\n.v-btn--bottom.v-btn--absolute.v-btn--small[data-v-09d5d114] {\r\n bottom: -24px !important;\n}\r\n",""])},Wu9N:function(t,e,r){"use strict";r("AFAU")},Zgy5:function(t,e,r){"use strict";r.r(e);var a=r("Y8XJ"),n=r("85lN");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function m(t,e,r,a){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),s=new T(a||[]);return n(i,"_invoke",{value:F(t,r,s)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var d="suspendedStart",h="executing",v="completed",b={};function y(){}function x(){}function g(){}var w={};f(w,l,(function(){return this}));var _=Object.getPrototypeOf,W=_&&_(_(E([])));W&&W!==r&&a.call(W,l)&&(w=W);var k=g.prototype=y.prototype=Object.create(w);function M(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(n,i,s,l){var c=p(t[n],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==o(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(t,a){function n(){return new e((function(e,n){r(t,a,e,n)}))}return i=i?i.then(n,n):n()}})}function F(e,r,a){var n=d;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return{value:t,done:!0}}for(a.method=o,a.arg=i;;){var s=a.delegate;if(s){var l=I(s,a);if(l){if(l===b)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===d)throw n=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=h;var c=p(e,r,a);if("normal"===c.type){if(n=a.done?v:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n=v,a.method="throw",a.arg=c.arg)}}}function I(e,r){var a=r.method,n=e.iterator[a];if(n===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function E(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(o(e)+" is not iterable")}return x.prototype=g,n(k,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:x,configurable:!0}),x.displayName=f(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},M(C.prototype),f(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new C(m(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},M(k),f(k,u,"Generator"),f(k,l,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(a,n){return s.type="throw",s.arg=e,r.next=a,n&&(r.method="next",r.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:E(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),b}},e}function s(t,e,r,a,n,o,i){try{var s=t[o](i),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(a,n)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(a,n){var o=t.apply(e,r);function i(t){s(o,a,n,i,l,"next",t)}function l(t){s(o,a,n,i,l,"throw",t)}i(void 0)}))}}var c,u,f={data:function(){return{form:{name:"",unique_code:"",info:[{id:0,name:"",type:"",size:"",require_scanner:!1}]},type:[{state:"Text",abbr:"Text"},{state:"Checkbox",abbr:"Checkbox"},{state:"Select",abbr:"Select"},{state:"Radiobutton",abbr:"Radiobutton"},{state:"Switch",abbr:"Switch"},{state:"Range",abbr:"Range"},{state:"Time",abbr:"Time"},{state:"Temperature",abbr:"Temperature"},{state:"Pressure",abbr:"Pressure"},{state:"Form",abbr:"Form"}],size:[{state:"not Selected",abbr:""},{state:"2 from 12",abbr:"md2 sm4 xs12"},{state:"3 from 12",abbr:"md3 sm6 xs12"},{state:"4 from 12",abbr:"md4 sm4 xs12"},{state:"6 from 12",abbr:"md6 sm12 xs12"},{state:"8 from 12",abbr:"md8 sm8 xs12"},{state:"10 from 12",abbr:"md10 sm10 xs12"},{state:"12 from 12",abbr:"md12 sm12 xs12"}],rules:{required:function(t){return!!t||"Required."}},deviceLabels:[{name:"Washer ID",id:"WasherID"},{name:"Autoclave ID",id:"AutoclaveID"},{name:"Sterilizer ID",id:"SterilizerID"},{name:"WasherMachine ID",id:"WasherMachineID"},{name:"SealMachine ID",id:"SealMachineID"},{name:"Patient ID",id:"PatientID"},{name:"Set/Pack ID",id:"Set/PackID"},{name:"MD ID",id:"MDID"},{name:"OR ID",id:"ORID"},{name:"Personal ID",id:"PersonalID"},{name:"Instrument ID",id:"InstrumentID"},{name:"ID",id:"ID"}]}},created:function(){this.$route.params.testType&&this.load(this.$route.params.testType)},methods:{changeType:function(t,e){this.form.info[t].options="Select"==e||"Checkbox"==e||"Radiobutton"==e?[{id:0,title:""}]:"Range"==e?[{id:0,title:""},{id:0,title:""}]:[],"Form"==e&&(this.form.info[t].children=[{id:0,name:"",type:"",size:""}])},removeSelectbox:function(t,e){var r=this.form;this.form=[],r.info[t].options.splice(e,1),this.form=r},addSelectbox:function(t){var e=this.form;this.form=[],e.info[t].options.push({id:0,title:""}),this.form=e},addInput:function(){this.form.info.push({id:0,name:"",type:"",size:""})},changeTypeForm:function(t,e,r){if("Select"==e||"Checkbox"==e||"Radiobutton"==e){var a=this.form;this.form="",a.info[t].children[r].options=[{id:0,title:""}],this.form=a}else if("Range"==e){var n=this.form;this.form="",n.info[t].children[r].options=[{id:0,title:""},{id:0,title:""}],this.form=n}else{var o=this.form;this.form="",o.info[t].children[r].options=[],this.form=o}},removeSelectboxForm:function(t,e,r){var a=this.form;this.form=[],a.info[t].children[r].options.splice(e,1),this.form=a},addSelectboxForm:function(t,e){var r=this.form;this.form=[],r.info[t].children[e].options.push({id:0,title:""}),this.form=r},duplicateForm:function(t){var e=this.form;this.form=[],e.info[t].children.push({id:0,name:"",type:"",size:""}),this.form=e},removeForm:function(t,e){var r=this.form;this.form=[],r.info[t].children.splice(e,1),this.form=r},removeInput:function(t){var e=this.form;this.form=[],e.info.splice(t,1),this.form=e},registerForm:(u=l(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.$refs.form.validate()){t.next=11;break}if(!this.$route.params.testType){t.next=8;break}return t.next=5,a.a.put(n.a.updateTestType(this.$route.params.testType),this.form);case 5:t.sent,t.next=11;break;case 8:return t.next=10,a.a.post(n.a.storeTestType,this.form);case 10:t.sent;case 11:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)}),load:(c=l(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.a.get(n.a.editTestType(e));case 2:200==(r=t.sent).status&&(this.form=r.data.data);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})}},m=(r("Wu9N"),r("KHd+")),p=Object(m.a)(f,(function(){var t=this,e=t._self._c;return e("v-form",{ref:"form"},[e("v-container",{attrs:{"grid-list-xs":""}},[e("material-card",{attrs:{color:"black",title:"Add a New Test"}},[e("v-layout",{staticClass:"ma-2",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"WM-FlexCenter",attrs:{xs12:"",md3:"",sm3:""}},[e("v-icon",{staticClass:"fa fa-align-left mr-2 WM-Margin-B-8"}),t._v(" "),e("v-text-field",{staticClass:"py-3 pr-3",attrs:{name:"name",label:"Name",color:"black",rules:[t.rules.required]},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),e("v-flex",{staticClass:"WM-FlexCenter pl-3",attrs:{xs12:"",md3:"",sm3:""}},[e("v-icon",{staticClass:"fas fa-sort-numeric-up mr-2 WM-Margin-B-8"}),t._v(" "),e("v-text-field",{staticClass:"py-3 pr-3",attrs:{rules:[t.rules.required],name:"uniquecode",label:"Unique Code",color:"black"},model:{value:t.form.unique_code,callback:function(e){t.$set(t.form,"unique_code",e)},expression:"form.unique_code"}})],1)],1),t._v(" "),t._l(t.form.info,(function(r,a){return e("v-layout",{key:a,staticClass:"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Relative",attrs:{row:"",wrap:""}},[e("v-layout",{staticClass:"ma-2 WM-Width-Full",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{name:"inputname",label:"Input Name",color:"black",rules:[t.rules.required],"prepend-icon":"fa fa-align-left"},model:{value:r.name,callback:function(e){t.$set(r,"name",e)},expression:"info.name"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-select",t._b({staticClass:"pa-2",attrs:{items:t.type,"item-text":"state","item-value":"abbr",label:"Type","single-line":"",color:"black","prepend-icon":"fa fa-filter"},on:{change:function(e){return t.changeType(a,r.type)}},model:{value:r.type,callback:function(e){t.$set(r,"type",e)},expression:"info.type"}},"v-select",0!==r.id?{disabled:!0}:{disabled:!1},!1))],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},["Form"!==r.type?e("v-select",{staticClass:"pa-2",attrs:{items:t.size,"item-text":"state","item-value":"abbr",label:"Size","single-line":"",color:"black","prepend-icon":"fa fa-sort-numeric-asc"},model:{value:r.size,callback:function(e){t.$set(r,"size",e)},expression:"info.size"}}):t._e()],1),t._v(" "),"Text"==r.type?e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"WM-FlexWrap ml-3",attrs:{xs12:""}},[e("v-checkbox",{attrs:{label:"require barcode scanner"},model:{value:r.require_scanner,callback:function(e){t.$set(r,"require_scanner",e)},expression:"info.require_scanner"}})],1)],1)],1):t._e()],1),t._v(" "),"Select"===r.type||"Checkbox"===r.type||"Radiobutton"===r.type?e("v-layout",{staticClass:"ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},[r.options.length>0?e("v-layout",{staticClass:"WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},t._l(r.options,(function(r,n){return e("v-flex",{key:n,staticClass:"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2 Input",attrs:{rules:[t.rules.required],name:"title",label:"Title",color:"black","prepend-icon":"fa fa-align-left"},model:{value:r.title,callback:function(e){t.$set(r,"title",e)},expression:"selectbox.title"}}),t._v(" "),n>=1?e("v-btn",{attrs:{absolute:"",small:"",right:"",bottom:"",color:"pink"},on:{click:function(e){return t.removeSelectbox(a,n)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-times")]),t._v("REMOVE\n ")],1):t._e()],1)})),1):t._e(),t._v(" "),e("v-btn",{staticClass:"mb-2",attrs:{absolute:"",right:"",bottom:"",small:"",color:"black"},on:{click:function(e){return t.addSelectbox(a)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-plus")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Add")])],1)],1):t._e(),t._v(" "),"Range"===r.type?e("v-layout",{staticClass:"ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},[e("v-layout",{staticClass:"WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2 Input",attrs:{rules:[t.rules.required],name:"from",label:"From",color:"black","prepend-icon":"fa fa-angle-right"},model:{value:r.options[0].title,callback:function(e){t.$set(r.options[0],"title",e)},expression:"info['options'][0].title"}})],1),t._v(" "),e("v-flex",{staticClass:"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2 Input",attrs:{rules:[t.rules.required],name:"to",label:"To",color:"black","prepend-icon":"fa fa-angle-right"},model:{value:r.options[1].title,callback:function(e){t.$set(r.options[1],"title",e)},expression:"info['options'][1].title"}})],1)],1)],1):t._e(),t._v(" "),"Form"===r.type?e("v-layout",{staticClass:"pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},[t._l(r.children,(function(r,n){return e("v-layout",{key:n,staticClass:"pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Color-LightGrey WM-Width-Full WM-Relative Form",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{rules:[t.rules.required],name:"name",label:"Input Name",color:"black","prepend-icon":"fa fa-align-left"},model:{value:r.name,callback:function(e){t.$set(r,"name",e)},expression:"children.name"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-select",t._b({staticClass:"pa-2",attrs:{items:t.type,"item-text":"state","item-value":"abbr",label:"Type","single-line":"",color:"black","prepend-icon":"fa fa-filter"},on:{change:function(e){return t.changeTypeForm(a,r.type,n)}},model:{value:r.type,callback:function(e){t.$set(r,"type",e)},expression:"children.type"}},"v-select",0!==r.id?{disabled:!0}:{disabled:!1},!1))],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},["Form"!==r.type?e("v-select",{staticClass:"pa-2",attrs:{items:t.size,"item-text":"state","item-value":"abbr",label:"Size","single-line":"",color:"black","prepend-icon":"fa fa-sort-numeric-asc"},model:{value:r.size,callback:function(e){t.$set(r,"size",e)},expression:"children.size"}}):t._e()],1),t._v(" "),"Text"==r.type?e("v-flex",{attrs:{xs12:"",md3:"",sm3:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"WM-FlexWrap ml-3",attrs:{xs12:""}},[e("v-checkbox",{attrs:{label:"require barcode scanner"},model:{value:r.require_scanner,callback:function(e){t.$set(r,"require_scanner",e)},expression:"children.require_scanner"}})],1)],1)],1):t._e(),t._v(" "),"Select"===r.type||"Checkbox"===r.type||"Radiobutton"===r.type?e("v-layout",{staticClass:"pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},[r.options.length>0?e("v-layout",{staticClass:"WM-Relative WM-Width-Full",attrs:{row:"",wrap:""}},t._l(r.options,(function(r,o){return e("v-flex",{key:o,staticClass:"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",attrs:{xs12:"",md3:"",sm3:""}},[e("v-text-field",{staticClass:"pa-2 Input",attrs:{name:"title",label:"Title",color:"black",rules:[t.rules.required],"prepend-icon":"fa fa-align-left"},model:{value:r.title,callback:function(e){t.$set(r,"title",e)},expression:"selectbox.title"}}),t._v(" "),o>=1?e("v-btn",{attrs:{absolute:"",small:"",right:"",bottom:"",color:"pink"},on:{click:function(e){return t.removeSelectboxForm(a,o,n)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-times")]),t._v("REMOVE\n ")],1):t._e()],1)})),1):t._e(),t._v(" "),e("v-btn",{attrs:{absolute:"",right:"",bottom:"",small:"",color:"black"},on:{click:function(e){return t.addSelectboxForm(a,n)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-plus")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Add")])],1)],1):t._e(),t._v(" "),e("v-btn",{attrs:{absolute:"",small:"",right:"",top:"",color:"pink"},on:{click:function(e){return t.removeForm(a,n)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-times")]),t._v("REMOVE\n ")],1)],1)})),t._v(" "),e("v-btn",{attrs:{absolute:"",small:"",right:"",bottom:"",color:"cyan"},on:{click:function(e){return t.duplicateForm(a)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-plus")]),t._v("ADD\n ")],1)],2):t._e(),t._v(" "),a>0||t.form.info.length>1?e("v-btn",{attrs:{absolute:"",small:"",right:"",top:"",color:"pink"},on:{click:function(e){return t.removeInput(a)}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-times")]),t._v("REMOVE\n ")],1):t._e(),t._v(" "),t.form.info.length-1==a?e("v-layout",{staticClass:"mt-4",attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[e("v-btn",{staticClass:"mb-2",attrs:{absolute:"",right:"",bottom:"",small:"",color:"pink"},on:{click:t.addInput}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-plus")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Add")])],1)],1):t._e()],1)})),t._v(" "),e("v-layout",{staticClass:"mt-4",attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[e("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:t.registerForm}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-check")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Generate Form")])],1),t._v(" "),e("router-link",{attrs:{to:{name:"ListTestType"}}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"},[e("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-chevron-left")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Back")])],1)],1)],1)],2)],1)],1)}),[],!1,null,"09d5d114",null);e.default=p.exports}}]); |