GRAYBYTE WORDPRESS FILE MANAGER3926

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/wpforms-lite/assets/lib/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/wpforms-lite/assets/lib//conditions.min.js
(function(root,factory){if(typeof define==="function"&&define.amd){define(["exports","jquery"],function(exports,$){return factory(exports,$)})}else if(typeof exports!=="undefined"){const $=require("jquery");factory(exports,$)}else{factory(root,root.jQuery||root.$)}})(this,function(exports,$){"use strict";const conditionsjs={defaults:{condition:null,actions:{},effect:"fade"}};conditionsjs.callback=function(conditions){return this.each(function(index,element){const CJS=new ConditionsJS(element,conditions,conditionsjs.defaults);CJS.init()})};if(typeof $.fn!=="undefined"){$.fn.conditions=conditionsjs.callback}exports.conditionsjs=conditionsjs;const ConditionsJS=function(element,conditions,defaults){const that=this;that.element=$(element);that.defaults=defaults;that.conditions=conditions;that._init=false;if(!Array.isArray(that.conditions)){that.conditions=[that.conditions]}$.each(that.conditions,function(i,v){that.conditions[i]=$.extend({},that.defaults,v)})};ConditionsJS.prototype.init=function(){const that=this;that._init=true;$(that.element).on("change",function(){that.matchConditions()});$(that.element).on("keyup",function(){that.matchConditions()});that.matchConditions(true)};ConditionsJS.prototype.matchConditions=function(init=false){const that=this;if(!init){that._init=false}$.each(that.conditions,function(ind,cond){let condition_matches=false,all_conditions_match=true;if(!Array.isArray(cond.conditions)){cond.conditions=[cond.conditions]}$.each(cond.conditions,function(i,c){c=$.extend({element:null,type:"val",operator:"==",condition:null,multiple:"single"},c);c.element=$(c.element);switch(c.type){case"value":case"val":switch(c.operator){case"===":case"==":case"=":if(Array.isArray(c.element.val())){let m_single_condition_matches=false;let m_all_condition_matches=true;$.each(c.element.val(),function(index,value){if(value===c.condition){m_single_condition_matches=true}else{m_all_condition_matches=false}});condition_matches="single"===c.multiple?m_single_condition_matches:m_all_condition_matches}else{condition_matches=c.element.val()===c.condition}break;case"!==":case"!=":if(Array.isArray(c.element.val())){let m_single_condition_matches=false;let m_all_condition_matches=true;$.each(c.element.val(),function(index,value){if(value!==c.condition){m_single_condition_matches=true}else{m_all_condition_matches=false}});condition_matches="single"===c.multiple?m_single_condition_matches:m_all_condition_matches}else{condition_matches=c.element.val()!==c.condition}break;case"array":if(Array.isArray(c.element.val())){let m_single_condition_matches=false;let m_all_condition_matches=c.element.val().length===c.condition.length;$.each(c.element.val(),function(index,value){if($.inArray(value,c.condition)!==-1){m_single_condition_matches=true}else{m_all_condition_matches=false}});condition_matches="single"===c.multiple?m_single_condition_matches:m_all_condition_matches}else{condition_matches=$.inArray(c.element.val(),c.condition)!==-1}break;case"!array":if(Array.isArray(c.element.val())){let m_single_condition_matches=false;let m_all_condition_matches=true;const selected=[];$.each(c.element.val(),function(index,value){if($.inArray(value,c.condition)===-1){m_single_condition_matches=true}else{selected.push(value)}});if(selected.length===c.condition.length){m_all_condition_matches=false}condition_matches="single"===c.multiple?m_single_condition_matches:m_all_condition_matches}else{condition_matches=$.inArray(c.element.val(),c.condition)===-1}break}break;case"checked":switch(c.operator){case"is":condition_matches=c.element.is(":checked");break;case"!is":condition_matches=!c.element.is(":checked");break}break}if(!condition_matches&&all_conditions_match){all_conditions_match=false}});if(all_conditions_match){if(!$.isEmptyObject(cond.actions.if)){if(!Array.isArray(cond.actions.if)){cond.actions.if=[cond.actions.if]}$.each(cond.actions.if,function(i,condition){that.showAndHide(condition,cond.effect)})}}else{if(!$.isEmptyObject(cond.actions.else)){if(!Array.isArray(cond.actions.else)){cond.actions.else=[cond.actions.else]}$.each(cond.actions.else,function(i,condition){that.showAndHide(condition,cond.effect)})}}})};ConditionsJS.prototype.showAndHide=function(condition,effect){const that=this;switch(condition.action){case"show":that._show($(condition.element),effect);break;case"hide":that._hide($(condition.element),effect);break}};ConditionsJS.prototype._show=function(element,effect){const that=this;if(that._init){element.show()}else{switch(effect){case"appear":element.show();break;case"slide":element.slideDown();break;case"fade":element.fadeIn(300);break}}};ConditionsJS.prototype._hide=function(element,effect){const that=this;if(that._init){element.hide()}else{switch(effect){case"appear":element.hide();break;case"slide":element.slideUp();break;case"fade":element.fadeOut(300);break}}}});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:22
giriqfky / giriqfky
0755
flatpickr
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
font-awesome
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
jquery.confirm
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
jquery.minicolors
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
jquery.timepicker
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
jquery.tooltipster
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
lity
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
wpforms-multiselect
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
giriqfky / giriqfky
0644
chart.min.js
200.683 KB
November 07 2024 17:15:50
giriqfky / giriqfky
0644
chartjs-adapter-moment.min.js
1.344 KB
November 07 2024 17:15:50
giriqfky / giriqfky
0644
choices.min.js
87.379 KB
June 13 2024 16:24:36
giriqfky / giriqfky
0644
conditions.min.js
4.733 KB
June 05 2025 16:54:44
giriqfky / giriqfky
0644
htmx.min.js
49.206 KB
January 16 2025 17:57:18
giriqfky / giriqfky
0644
jquery.inputmask.min.js
114.66 KB
August 08 2024 19:32:00
giriqfky / giriqfky
0644
jquery.insert-at-caret.min.js
0.904 KB
June 30 2022 15:09:42
giriqfky / giriqfky
0644
jquery.validate.min.js
24.715 KB
November 07 2024 17:15:50
giriqfky / giriqfky
0644
list.min.js
19.074 KB
June 30 2022 15:09:42
giriqfky / giriqfky
0644
mailcheck.min.js
3.92 KB
June 30 2022 15:09:42
giriqfky / giriqfky
0644
md5.min.js
4.17 KB
January 05 2023 17:27:48
giriqfky / giriqfky
0644
punycode.min.js
1.673 KB
June 30 2022 15:09:42
giriqfky / giriqfky
0644
purify.min.js
21.744 KB
June 05 2025 16:54:44
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF