File manager - Edit - /home/palg2351/public_html/wp-content/plugins/jetformbuilder/modules/option-field/assets/build/custom.options.restrictions.js
Back
(()=>{"use strict";const{isEmpty:t}=JetFormBuilderFunctions,e=e=>"boolean"!=typeof e&&!t(e),i=function(t){const i=t.getValue();return t.isArray()?i.some(e):e(i)},{AdvancedRestriction:r=function(){}}=JetFormBuilderAbstract;function n(){r.call(this),this.type="required",this.isSupported=function(t,e){return e.input.isRequired&&["radio","checkbox"].includes(e.input.inputType)},this.validate=function(){return i(this.reporting.input)},this.getMessage=function(){return this.getMessageBySlug("empty")}}n.prototype=Object.create(r.prototype);const o=n,{Restriction:u}=JetFormBuilderAbstract;function s(){u.call(this),this.type="required",this.isSupported=function(t,e){return e.input.isRequired&&["radio","checkbox"].includes(e.input.inputType)},this.validate=function(){return i(this.reporting.input)}}s.prototype=Object.create(u.prototype);const c=s,{addFilter:p}=JetPlugins.hooks;p("jet.fb.restrictions","jet-form-builder/with-custom-options",(function(t){return t.push(o),t})),p("jet.fb.restrictions.default","jet-form-builder/with-custom-options",(function(t){return t.push(c),t}))})();
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings