1"use strict";(self.webpackChunktinyurl=self.webpackChunktinyurl||[]).push([[3602],{3602(t,s,r){r.r(s),r.d(s,{default:()=>i});const e={name:"KioskSurveysCreate",data:function(){return{form:new SparkForm({slug:"",title:"",description:""})}},methods:{createSurvey:function(){var t=this;Spark.post(this.$apiUrl("kiosk/surveys"),this.form).then(function(s){t.resetForm(),t.$emit("created",s)})},cancelSurvey:function(){this.resetForm(),this.$emit("canceled")},resetForm:function(){this.form.slug="",this.form.title="",this.form.description=""}}};var a=(0,r(14486).A)(e,function(){var t=this,s=t._self._c;return s("div",{staticClass:"card card-default"},[s("div",{staticClass:"card-header"},[t._v("\n Create Survey\n ")]),t._v(" "),s("div",{staticClass:"card-body"},[t.form.successful?s("div",{staticClass:"alert alert-success"},[t._v("\n Survey has been created!\n ")]):t._e(),t._v(" "),t.form.errors.has("form")?s("div",{staticClass:"alert alert-danger"},[t._v("\n "+t._s(t.form.errors.get("form"))+"\n ")]):t._e(),t._v(" "),s("form",[s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-3 col-form-label text-right"},[t._v("Slug")]),t._v(" "),s("div",{staticClass:"col-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.slug,expression:"form.slug"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("slug")},domProps:{value:t.form.slug},on:{input:function(s){s.target.composing||t.$set(t.form,"slug",s.target.value)}}}),t._v(" "),s("div",{staticClass:"invalid-feedback",attrs:{role:"alert"}},[t._v("\n "+t._s(t.form.errors.get("slug"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-3 col-form-label text-right"},[t._v("Title")]),t._v(" "),s("div",{staticClass:"col-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.t
1itle"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("title")},domProps:{value:t.form.title},on:{input:function(s){s.target.composing||t.$set(t.form,"title",s.target.value)}}}),t._v(" "),s("div",{staticClass:"invalid-feedback",attrs:{role:"alert"}},[t._v("\n "+t._s(t.form.errors.get("title"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-3 col-form-label text-right"},[t._v("Description")]),t._v(" "),s("div",{staticClass:"col-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("description")},domProps:{value:t.form.description},on:{input:function(s){s.target.composing||t.$set(t.form,"description",s.target.value)}}}),t._v(" "),s("div",{staticClass:"invalid-feedback",attrs:{role:"alert"}},[t._v("\n "+t._s(t.form.errors.get("description"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"form-group row"},[s("div",{staticClass:"offset-3 col-9"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{type:"submit",disabled:t.form.busy},on:{click:function(s){return s.preventDefault(),t.createSurvey.apply(null,arguments)}}},[t._v("\n Create\n ")]),t._v(" "),s("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"submit",disabled:t.form.busy},on:{click:function(s){return s.preventDefault(),t.cancelSurvey.apply(null,arguments)}}},[t._v("\n Cancel\n ")])])])])])])},[],!1,null,null,null);const i=a.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.