|
(function(e,t,n){"use strict";var i=function(e,t,r){r=o.extend({},o.options,r);var n=o.runValidations(e,t,r);if(n.some((function(e){return o.isPromise(e.error)})))throw new Error("Use validate.async if you want support for promises");return i.processValidationResults(n,r)},o=i;o.extend=function(e){return[].slice.call(arguments,1).forEach((function(t){for(var r in t)e[r]=t[r]})),e},o.extend(i,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var e=o.format("%{major}.%{minor}.%{patch}",o.version);return o.isEmpty(o.version.metadata)||(e+="+"+o.version.metadata),e}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,r){var n,i,s,a,u,l,c,f=[];for(n in(o.isDomElement(e)||o.isJqueryElement(e))&&(e=o.collectFormValues(e)),t)for(i in s=o.getDeepObjectValue(e,n),a=o.result(t[n],s,e,n,r,t)){if(!(u=o.validators[i]))throw c=o.format("Unknown validator %{name}",{name:i}),new Error(c);l=a[i],(l=o.result(l,s,e,n,r,t))&&f.push({attribute:n,value:s,validator:i,globalOptions:r,attributes:e,options:l,error:u.call(u,s,l,n,e,r)})}return f},processValidationResults:function(e,t){e=o.pruneEmptyErrors(e,t),e=o.expandMultipleErrors(e,t),e=o.convertErrorMessages(e,t);var r=t.format||"grouped";if("function"!=typeof o.formatters[r])throw new Error(o.format("Unknown format %{format}",t));return e=o.formatters[r](e),o.isEmpty(e)?void 0:e},async:function(e,t,r){var n=(r=o.extend({},o.async.options,r)).wrapErrors||function(e){return e};!1!==r.cleanAttributes&&(e=o.cleanAttributes(e,t));var i=o.runValidations(e,t,r);return new o.Promise((function(s,a){o.waitForResults(i).then((function(){var u=o.processValidationResults(i,r);u?a(new n(u,r,e,t)):s(e)}),(function(e){a(e)}))}))},single:function(e,t,r){return r=o.extend({},o.single.options,r,{format:"flat",fullMessages:!1}),o({single:e},{single:t},r)},waitForResults:function(e){return e.reduce((function(e,t){return o.isPromise(t.error)?e.then((function(){return t.error.then((function(e){t.error=e||null}))})):e}),new o.Promise((function(e){e()})))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return o.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&o.isFunction(e.then)},isJqueryElement:function(e){return e&&o.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!e.querySelectorAll||!e.querySelector)&&(!(!o.isObject(document)||e!==document)||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!o.isDefined(e))return!0;if(o.isFunction(e))return!1;if(o.isString(e))return o.EMPTY_STRING_REGEXP.test(e);if(o.isArray(e))return 0===e.length;if(o.isDate(e))return!1;if(o.isObject(e)){for(t in e)return!1;return!0}return!1},format:o.extend((function(e,t){return o.isString(e)?e.replace(o.format.FORMAT_REGEXP,(function(e,r,n){return"%"===r?"%{"+n+"}":String(t[n])})):e}),{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){return o.isNumber(e)?100*e%1==0?""+e:parseFloat(Math.round(100*e)/100).toFixed(2):o.isArray(e)?e.map((function(e){return o.prettify(e)})).join(", "):o.isObject(e)?o.isDefined(e.toString)?e.toString():JSON.stringify(e):(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,r){return t+" "+r.toLowerCase()})).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||o.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"==={}.toString.call(e)},isHash:function(e){return o.isObject(e)&&!o.isArray(e)&&!o.isFunction(e)},contains:function(e,t){return!!o.isDefined(e)&&(o.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return o.isArray(e)?e.filter((function(e,t,r){return r.indexOf(e)==t})):e},forEachKeyInKeypath:function(e,t,r){if(o.isString(t)){var n,i="",s=!1;for(n=0;n<t.length;++n)switch(t[n]){case".":s?(s=!1,i+="."):(e=r(e,i,!1),i="");break;case"\\":s?(s=!1,i+="\\"):s=!0;break;default:s=!1,i+=t[n]}return r(e,i,!0)}},getDeepObjectValue:function(e,t){if(o.isObject(e))return o.forEachKeyInKeypath(e,t,(function(e,t){if(o.isObject(e))return e[t]}))},collectFormValues:function(e,t){var r,n,i,s,a,u,l={};if(o.isJqueryElement(e)&&(e=e[0]),!e)return l;for(t=t||{},s=e.querySelectorAll("input[name], textarea[name]"),r=0;r<s.length;++r)if(i=s.item(r),!o.isDefined(i.getAttribute("data-ignored"))){var c=i.name.replace(/\./g,"\\\\.");u=o.sanitizeFormValue(i.value,t),"number"===i.type?u=u?+u:null:"checkbox"===i.type?i.attributes.value?i.checked||(u=l[c]||null):u=i.checked:"radio"===i.type&&(i.checked||(u=l[c]||null)),l[c]=u}for(s=e.querySelectorAll("select[name]"),r=0;r<s.length;++r)if(i=s.item(r),!o.isDefined(i.getAttribute("data-ignored"))){if(i.multiple)for(n in u=[],i.options)(a=i.options[n])&&a.selected&&u.push(o.sanitizeFormValue(a.value,t));else{var f=void 0!==i.options[i.selectedIndex]?i.options[i.selectedIndex].value:"";u=o.sanitizeFormValue(f,t)}l[i.name]=u}return l},sanitizeFormValue:function(e,t){return t.trim&&o.isString(e)&&(e=e.trim()),!1!==t.nullify&&""===e?null:e},capitalize:function(e){return o.isString(e)?e[0].toUpperCase()+e.slice(1):e},pruneEmptyErrors:function(e){return e.filter((function(e){return!o.isEmpty(e.error)}))},expandMultipleErrors:function(e){var t=[];return e.forEach((function(e){o.isArray(e.error)?e.error.forEach((function(r){t.push(o.extend({},e,{error:r}))})):t.push(e)})),t},convertErrorMessages:function(e,t){var r=[],n=(t=t||{}).prettify||o.prettify;return e.forEach((function(e){var i=o.result(e.error,e.value,e.attribute,e.options,e.attributes,e.globalOptions);o.isString(i)?("^"===i[0]?i=i.slice(1):!1!==t.fullMessages&&(i=o.capitalize(n(e.attribute))+" "+i),i=i.replace(/\\\^/g,"^"),i=o.format(i,{value:o.stringifyValue(e.value,t)}),r.push(o.extend({},e,{error:i}))):r.push(e)})),r},groupErrorsByAttribute:function(e){var t={};return e.forEach((function(e){var r=t[e.attribute];r?r.push(e):t[e.attribute]=[e]})),t},flattenErrorsToArray:function(e){return e.map((function(e){return e.error})).filter((function(e,t,r){return r.indexOf(e)===t}))},cleanAttributes:function(e,t){function r(e,t,r){return o.isObject(e[t])?e[t]:e[t]=!!r||{}}return o.isObject(t)&&o.isObject(e)?function e(t,r){if(!o.isObject(t))return t;var n,i,s=o.extend({},t);for(i in t)n=r[i],o.isObject(n)?s[i]=e(s[i],n):n||delete s[i];return s}(e,t=function(e){var t,n={};for(t in e)e[t]&&o.forEachKeyInKeypath(n,t,r);return n}(t)):{}},exposeModule:function(e,t,r,n,i){r?(n&&n.exports&&(r=n.exports=e),r.validate=e):(t.validate=e,e.isFunction(i)&&i.amd&&i([],(function(){return e})))},warn:function(e){"undefined"!=typeof console&&console.warn&&console.warn("[validate.js] "+e)},error:function(e){"undefined"!=typeof console&&console.error&&console.error("[validate.js] "+e)}}),i.validators={presence:function(e,t){if(!1!==(t=o.extend({},this.options,t)).allowEmpty?!o.isDefined(e):o.isEmpty(e))return t.message||this.message||"can't be blank"},length:function(e,t,r){if(o.isDefined(e)){var n,i=(t=o.extend({},this.options,t)).is,s=t.maximum,a=t.minimum,u=[],l=(e=(t.tokenizer||function(e){return e})(e)).length;return o.isNumber(l)?(o.isNumber(i)&&l!==i&&(n=t.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",u.push(o.format(n,{count:i}))),o.isNumber(a)&&l<a&&(n=t.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",u.push(o.format(n,{count:a}))),o.isNumber(s)&&l>s&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",u.push(o.format(n,{count:s}))),u.length>0?t.message||u:void 0):t.message||this.notValid||"has an incorrect length"}},numericality:function(e,t,r,n,i){if(o.isDefined(e)){var s,a,u=[],l={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return e<t},lessThanOrEqualTo:function(e,t){return e<=t},divisibleBy:function(e,t){return e%t==0}},c=(t=o.extend({},this.options,t)).prettify||i&&i.prettify||o.prettify;if(o.isString(e)&&t.strict){var f="^-?(0|[1-9]\\d*)";if(t.onlyInteger||(f+="(\\.\\d+)?"),f+="$",!new RegExp(f).test(e))return t.message||t.notValid||this.notValid||this.message||"must be a valid number"}if(!0!==t.noStrings&&o.isString(e)&&!o.isEmpty(e)&&(e=+e),!o.isNumber(e))return t.message||t.notValid||this.notValid||this.message||"is not a number";if(t.onlyInteger&&!o.isInteger(e))return t.message||t.notInteger||this.notInteger||this.message||"must be an integer";for(s in l)if(a=t[s],o.isNumber(a)&&!l[s](e,a)){var d="not"+o.capitalize(s),p=t[d]||this[d]||this.message||"must be %{type} %{count}";u.push(o.format(p,{count:a,type:c(s)}))}return t.odd&&e%2!=1&&u.push(t.notOdd||this.notOdd||this.message||"must be odd"),t.even&&e%2!=0&&u.push(t.notEven||this.notEven||this.message||"must be even"),u.length?t.message||u:void 0}},datetime:o.extend((function(e,t){if(!o.isFunction(this.parse)||!o.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(o.isDefined(e)){var r,n=[],i=(t=o.extend({},this.options,t)).earliest?this.parse(t.earliest,t):NaN,s=t.latest?this.parse(t.latest,t):NaN;return e=this.parse(e,t),isNaN(e)||t.dateOnly&&e%864e5!=0?(r=t.notValid||t.message||this.notValid||"must be a valid date",o.format(r,{value:arguments[0]})):(!isNaN(i)&&e<i&&(r=t.tooEarly||t.message||this.tooEarly||"must be no earlier than %{date}",r=o.format(r,{value:this.format(e,t),date:this.format(i,t)}),n.push(r)),!isNaN(s)&&e>s&&(r=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",r=o.format(r,{date:this.format(s,t),value:this.format(e,t)}),n.push(r)),n.length?o.unique(n):void 0)}}),{parse:null,format:null}),date:function(e,t){return t=o.extend({},t,{dateOnly:!0}),o.validators.datetime.call(o.validators.datetime,e,t)},format:function(e,t){(o.isString(t)||t instanceof RegExp)&&(t={pattern:t});var r,n=(t=o.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(o.isDefined(e))return o.isString(e)?(o.isString(i)&&(i=new RegExp(t.pattern,t.flags)),(r=i.exec(e))&&r[0].length==e.length?void 0:n):n},inclusion:function(e,t){if(o.isDefined(e)&&(o.isArray(t)&&(t={within:t}),t=o.extend({},this.options,t),!o.contains(t.within,e))){var r=t.message||this.message||"^%{value} is not included in the list";return o.format(r,{value:e})}},exclusion:function(e,t){if(o.isDefined(e)&&(o.isArray(t)&&(t={within:t}),t=o.extend({},this.options,t),o.contains(t.within,e))){var r=t.message||this.message||"^%{value} is restricted";return o.isString(t.within[e])&&(e=t.within[e]),o.format(r,{value:e})}},email:o.extend((function(e,t){var r=(t=o.extend({},this.options,t)).message||this.message||"is not a valid email";if(o.isDefined(e))return o.isString(e)&&this.PATTERN.exec(e)?void 0:r}),{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(e,t,r,n,i){if(o.isDefined(e)){o.isString(t)&&(t={attribute:t});var s=(t=o.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(o.isEmpty(t.attribute)||!o.isString(t.attribute))throw new Error("The attribute must be a non empty string");var a=o.getDeepObjectValue(n,t.attribute),u=t.comparator||function(e,t){return e===t},l=t.prettify||i&&i.prettify||o.prettify;return u(e,a,t,r,n)?void 0:o.format(s,{attribute:l(t.attribute)})}},url:function(e,t){if(o.isDefined(e)){var r=(t=o.extend({},this.options,t)).message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1,s=t.allowDataUrl||this.allowDataUrl||!1;if(!o.isString(e))return r;var a="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?u+="?":a+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",a+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+u+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",s){a="(?:"+a+")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"}return new RegExp(a,"i").exec(e)?void 0:r}},type:o.extend((function(e,t,r,n,i){if(o.isString(t)&&(t={type:t}),o.isDefined(e)){var s,a=o.extend({},this.options,t),u=a.type;if(!o.isDefined(u))throw new Error("No type was specified");if(s=o.isFunction(u)?u:this.types[u],!o.isFunction(s))throw new Error("validate.validators.type.types."+u+" must be a function.");if(!s(e,a,r,n,i)){var l=t.message||this.messages[u]||this.message||a.message||(o.isFunction(u)?"must be of the correct type":"must be of type %{type}");return o.isFunction(l)&&(l=l(e,t,r,n,i)),o.format(l,{attribute:o.prettify(r),type:u})}}}),{types:{object:function(e){return o.isObject(e)&&!o.isArray(e)},array:o.isArray,integer:o.isInteger,number:o.isNumber,string:o.isString,date:o.isDate,boolean:o.isBoolean},messages:{}})},i.formatters={detailed:function(e){return e},flat:o.flattenErrorsToArray,grouped:function(e){var t;for(t in e=o.groupErrorsByAttribute(e))e[t]=o.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=o.groupErrorsByAttribute(e))e[t]=e[t].map((function(e){return e.validator})).sort();return e}},i.exposeModule(i,this,e,t,r(10))}).call(this,t,e,r(10))}).call(this,r(36)(e))},10:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},11:function(e,t){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function o(e,t,r){if(t.match(i)){!function e(t,r,n){if(0===r.length)return t=n;var i=r.shift(),o=i.match(/^\[(.+?)\]$/);if("[]"===i)return t=t||[],Array.isArray(t)?t.push(e(null,r,n)):(t._values=t._values||[],t._values.push(e(null,r,n))),t;if(o){var s=o[1],a=+s;isNaN(a)?(t=t||{})[s]=e(t[s],r,n):(t=t||[])[a]=e(t[a],r,n)}else t[i]=e(t[i],r,n);return t}(e,function(e){var t=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(e);for(n[1]&&t.push(n[1]);null!==(n=r.exec(e));)t.push(n[1]);return t}(t),r)}else{var n=e[t];n?(Array.isArray(n)||(e[t]=[n]),e[t].push(r)):e[t]=r}return e}function s(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var i=t.hash?{}:"",a=t.serializer||(t.hash?o:s),u=e&&e.elements?e.elements:[],l=Object.create(null),c=0;c<u.length;++c){var f=u[c];if((t.disabled||!f.disabled)&&f.name&&(n.test(f.nodeName)&&!r.test(f.type))){var d=f.name,p=f.value;if("checkbox"!==f.type&&"radio"!==f.type||f.checked||(p=void 0),t.empty){if("checkbox"!==f.type||f.checked||(p=""),"radio"===f.type&&(l[f.name]||f.checked?f.checked&&(l[f.name]=!0):l[f.name]=!1),null==p&&"radio"==f.type)continue}else if(!p)continue;if("select-multiple"!==f.type)i=a(i,d,p);else{p=[];for(var m=f.options,h=!1,v=0;v<m.length;++v){var g=m[v],y=t.empty&&!g.value,b=g.value||y;g.selected&&b&&(h=!0,i=t.hash&&"[]"!==d.slice(d.length-2)?a(i,d+"[]",g.value):a(i,d,g.value))}!h&&t.empty&&(i=a(i,d,""))}}}if(t.empty)for(var d in l)l[d]||(i=a(i,d,""));return i}},35:function(e,t,r){e.exports=r(38)},36:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},38:function(e,t,r){"use strict";r.r(t);var n=r(1),i=r.n(n),o=r(11),s=r.n(o);var a=class{constructor(e,t){this._rules=e,this._component=t,this._errors={}}handle(e,t){e.preventDefault();let r,n,o=null;t?e.target.value&&(o=e.target.value):o=s()(e.target,{hash:!0}),t?(r=this._rules[t],n=i.a.single(o,r,{flat:!0}),n?this._errors[t]=n:delete this._errors[t]):this._errors=i()(o,this._rules),this._component.update()}errors(e){return e?this._errors[e]:this._errors}},u={css:null,exports:{state:{errors:[]},onBeforeUpdate(e,t){e.errors&&e.errors.length>0?t.errors=e.errors:t.errors=[]}},template:function(e,t,r,n){return e('<div expr13="expr13" class="field-error"></div>',[{type:r.IF,evaluate:function(e){return e.state.errors.length>0},redundantAttribute:"expr13",selector:"[expr13]",template:e('<ul><li expr14="expr14" class="help is-danger"></li></ul>',[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.error}}]}]),redundantAttribute:"expr14",selector:"[expr14]",itemName:"error",indexName:null,evaluate:function(e){return e.state.errors}}])}])},name:"field-error"};riot.register("field-error",u);var l={css:null,exports:{onBeforeMount(e,t){t.validator=new a({title:{presence:!0}},this);const r=document.querySelector("meta[name='csrf-token']");r&&(t.csrfToken=r.getAttribute("content"))},getClasses(e,t){const r=[t],n=this.state.validator.errors(e);return n&&n.length>0&&r.push("is-danger"),r.join(" ")}},template:function(e,t,r,n){return e('<div class="form"><form method="POST"><input expr8="expr8" type="hidden" name="_token"/><div class="field is-horizontal"><div class="field-label is-normal"><label class="label" for="title">\n title\n </label></div><div class="field-body"><div class="field"><p class="control"><input expr9="expr9" id="title" type="text" name="title"/><field-error expr10="expr10"></field-error></p></div></div></div><div class="field is-horizontal"><div class="field-label is-normal"><label class="label" for="public">\n public\n </label></div><div class="field-body"><div class="field"><input expr11="expr11" id="public" type="checkbox" name="public" value="1"/></div></div></div><div class="field"><div class="control"><button expr12="expr12" class="button is-primary" type="submit">\n Create\n </button></div></div></form></div>',[{type:r.IF,evaluate:function(e){return e.state.csrfToken},redundantAttribute:"expr8",selector:"[expr8]",template:e(null,[{expressions:[{type:t.ATTRIBUTE,name:"value",evaluate:function(e){return e.state.csrfToken}}]}])},{redundantAttribute:"expr9",selector:"[expr9]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("title","input")}},{type:t.VALUE,evaluate:function(e){return e.props.title}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"title")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("title")}}],redundantAttribute:"expr10",selector:"[expr10]"},{redundantAttribute:"expr11",selector:"[expr11]",expressions:[{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.props.public}}]},{redundantAttribute:"expr12",selector:"[expr12]",expressions:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return e.state.validator.errors().length>0}}]}])},name:"urban-bucket-form"};riot.register("urban-bucket-form",l)}});
|