UNPKG

vue-giveworks-form

Version:

This plugin provides Vue.js component for the open [http://giveworks.net](Giveworks Platform).

2 lines 2.12 kB
(("undefined"!==typeof self?self:this)["webpackJsonpGiveworksForm"]=("undefined"!==typeof self?self:this)["webpackJsonpGiveworksForm"]||[]).push([[5],{"33e3":function(e,r,o){"use strict";o.r(r);var t=function(){var e=this,r=e.$createElement,o=e._self._c||r;return o("fieldset",[o("p",[o("small",{staticClass:"text-muted",domProps:{innerHTML:e._s(e.employmentOccurMessage)}})]),e.isRetired?e._e():o("input-field",{directives:[{name:"query",rawName:"v-query"}],ref:"employer",attrs:{id:"employer",name:"employer",label:"Employer",placeholder:"Employer",disabled:e.isRetired,errors:e.errors,custom:""},model:{value:e.form.employer,callback:function(r){e.$set(e.form,"employer",r)},expression:"form.employer"}}),e.isRetired?e._e():o("input-field",{directives:[{name:"query",rawName:"v-query"}],ref:"occupation",attrs:{id:"occupation",name:"occupation",label:"Occupation",placeholder:"Occupation",disabled:e.isRetired,errors:e.errors,custom:""},model:{value:e.form.occupation,callback:function(r){e.$set(e.form,"occupation",r)},expression:"form.occupation"}}),o("div",{staticClass:"form-group"},[o("checkbox-field",{directives:[{name:"query",rawName:"v-query"}],attrs:{label:"I'm retired",value:"1",custom:""},model:{value:e.form.retired,callback:function(r){e.$set(e.form,"retired",r)},expression:"form.retired"}})],1)],1)},i=[],s=o("b4ea"),l=o("bb4b"),n={name:"EmploymentInfoFieldset",components:{InputField:()=>Promise.all([o.e(0),o.e(1),o.e(12)]).then(o.bind(null,"46d8")),CheckboxField:()=>Promise.all([o.e(0),o.e(1),o.e(12)]).then(o.bind(null,"e067"))},directives:{Query:s["a"]},mixins:[l["a"]],props:{legends:{type:Boolean,default:!0}},computed:{isRetired(){return!(!this.form.retired||!this.form.retired.length)},employmentOccurMessage(){return this.page.site.emp_occ_msg||this.page.site.config.giveworks.emp_occ_msg}},watch:{"form.retired":function(e){e&&e.length?this.form.employer=this.form.occupation="Retired":this.form.employer=this.form.occupation=""}}},a=n,c=o("2877"),m=Object(c["a"])(a,t,i,!1,null,null,null);r["default"]=m.exports}}]); //# sourceMappingURL=GiveworksForm.umd.min.employment-info-fieldset.js.map