File "disabled-fields.min.js"
Full Path: /home/stylijtl/public_html/wp-content/plugins/wpforms-lite/assets/js/admin/builder/modules/disabled-fields.min.js
File size: 986 bytes
MIME-type: text/plain
Charset: utf-8
export default function(e,o,i,n,t){let c={init(){c.initCouponsChoicesJS(),c.initFileUploadChoicesJS()},bcInit(){n.disabledFields=c;["initCouponsChoicesJS","initFileUploadChoicesJS"].forEach(e=>{n[e]=c[e]})},initCouponsChoicesJS(){"function"!=typeof o.Choices||WPForms.Admin.Builder.Coupons||i(".wpforms-field-option-row-allowed_coupons select:not(.choices__input)").each(function(){n.UndoRedo?.preventRecord(!0);var e=i(this),o=new Choices(e.get(0),{shouldSort:!1,removeItemButton:!0,renderChoicesLimit:5,callbackOnInit(){wpf.showMoreButtonForChoices(this.containerOuter.element),n.UndoRedo?.preventRecord("continue")}});e.data("choicesjs",o)})},initFileUploadChoicesJS(){"function"!=typeof o.Choices||WPForms.Admin.Builder.FieldFileUpload||i(".wpforms-file-upload-user-roles-select, .wpforms-file-upload-user-names-select").each(function(){n.UndoRedo?.preventRecord(!0),new Choices(i(this)[0],{removeItemButton:!0,callbackOnInit(){n.UndoRedo?.preventRecord("continue")}})})}};return c}