HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/www.winghung.com/wp-content/plugins/lets-info-up/admin/js/lets-info-up-admin.min.js
/**
 * Copyright: Codetipi
 * Theme: Lets Info Up
 * Version: 1.4.7
 */
!function(o){"use strict";var l={init:function(){this.cacheDom(),this.bindEvents(),this.colorPicker(),this.dragDrop(),this.required(),this.slider(),this.dates()},cacheDom:function(){this.$doc=o(document),this.$body=o("body"),this.$colorPicker=o(".lets-info-up-color-pick"),this.$slider=o(".lets-info-up-slider"),this.$sliderReset=o(".lets-info-up-slider-wrap .lets-info-up-reset"),this.$sectionShower=o(".lets-info-up-metabox-wrap .lets-info-up-trig"),this.$metaboxControls=o(".lets-info-up-metabox-controls"),this.$upload=o(".lets-info-up-upload"),this.$galleryUpload=o(".lets-info-up-gallery"),this.$required=o(".lets-info-up-req"),this.$dragDrop=o(".lets-info-up-drag-drop"),this.modal=!1,this.galleryModal=!1,this.debug=!1,this.$dates=o(".lets-info-up-date-field").find("input"),this.$dateTimes=o(".lets-info-up-date-time-field").find("input")},bindEvents:function(){this.$sliderReset.on("click",this.sliderReset),this.$sectionShower.on("click",this.sectionShower),this.$upload.on("click",this.upload),this.$galleryUpload.on("click",this.galleryUpload),this.$body.on("click",".lets-info-up-remove",this.uploadRemove),this.$body.on("click",".lets-info-up-remove-gallery",this.parentRemove),this.$body.on("change",".lets-info-up-required",this.requiredCheck),this.$body.on("click",".lets-info-up-drag-x",this.dragRemove),this.$body.on("click",".lets-info-up-drag-add",this.dragAdd)},
// Drag
dragRemove:function(e){e.preventDefault(),o(this).parent().remove()},dates:function(){0<this.$dates.length&&this.$dates.datepicker({beforeShow:function(e,t){o("#ui-datepicker-div").addClass("lets-info-up-date-box-wrap")},showOtherMonths:!0,closeText:letsInfoUpJS.i18n.close,currentText:letsInfoUpJS.i18n.now,prevText:'<span class="dashicons dashicons-arrow-left-alt2"></span>',nextText:'<span class="dashicons dashicons-arrow-right-alt2"></span>'}),0<this.$dateTimes.length&&this.$dateTimes.datetimepicker({beforeShow:function(e,t){o("#ui-datepicker-div").addClass("lets-info-up-date-box-wrap")},showOtherMonths:!0,closeText:letsInfoUpJS.i18n.close,currentText:letsInfoUpJS.i18n.now,prevText:'<span class="dashicons dashicons-arrow-left-alt2"></span>',nextText:'<span class="dashicons dashicons-arrow-right-alt2"></span>'})},
// Drag
dragAdd:function(e){e.preventDefault();var t=o(this).parent(),e=t.find("> .lets-info-up-drag-el-dummy"),i=t.find("> .lets-info-up-drag-drop");i.data("count",i.data("count")+1);e=e.find("> div").clone();e.find(".lets-info-up-data").each(function(){var e=o(this);e.removeClass("lets-info-up-data");var t=e.data("name")+"["+i.data("count")+"]["+e.data("choice")+"]";e.attr("name",t)}),e.appendTo(i),e.find("input:first").focus()},
// Drag
dragDrop:function(){this.$dragDrop.sortable({placeholder:"ui-state-highlight",classes:{"ui-sortable":"lets-info-up-control-only"},start:function(e,t){t.placeholder.height(t.item.height())}}),this.$dragDrop.disableSelection()},requiredCheck:function(a,n){o(void 0===n?this:n).each(function(){var s=o(this);switch(s.closest(".lets-info-up-control").data("control")){case"on-off":s.data("dependees").forEach(function(e){!0===s.is(":checked")&&"on"===e.val?l.showIt(o("#"+e.id),a):!1===s.is(":checked")&&"on"===e.val&&l.hideIt(o("#"+e.id),a),!1===s.is(":checked")&&"off"===e.val?l.showIt(o("#"+e.id),a):!0===s.is(":checked")&&"off"===e.val&&l.hideIt(o("#"+e.id),a)});break;case"radio-images":s.data("dependees").forEach(function(e){if(1<e.val.length){for(var t=0,i=e.val.length;t<i;t++)e.val[t]=e.val[t].toString();!0===s.is(":checked")&&-1!=o.inArray(s.val(),e.val)?l.showIt(o("#"+e.id),a):void 0===n&&l.hideIt(o("#"+e.id),a)}else!0===s.is(":checked")&&s.val()==e.val?l.showIt(o("#"+e.id),a):void 0===n&&l.hideIt(o("#"+e.id),a)});break;case"select":s.data("dependees").forEach(function(e){s.val()==e.val?l.showIt(o("#"+e.id),a):void 0===n&&l.hideIt(o("#"+e.id),a)})}})},showIt:function(e,t){void 0===t?e.show():e.slideDown(100)},hideIt:function(e,t){void 0===t?e.hide():e.slideUp(100)},required:function(e){this.$required.each(function(){var e=o(this),t=o(this).data("req-val"),i=e.attr("id"),s=e.data("req"),e=o("#"+s).find(".lets-info-up-input-val");e.addClass("lets-info-up-required"),void 0===e.data("dependees")?e.data("dependees",[{id:i,val:t}]):((s=e.data("dependees")).push({id:i,val:t}),e.data("dependees",s))}),l.requiredCheck(e,".lets-info-up-required")},uploadRemove:function(e){e.preventDefault();var t=o(this);t.closest(".lets-info-up-meta-control").find(".lets-info-up-img-input").val("");var i=t.closest(".lets-info-up-meta-control").find(".lets-info-up-vis-switch");i.length&&i.addClass("lets-info-up-hide"),l.parentRemove(e,t)},parentRemove:function(e,t){e.preventDefault(),(void 0!==t?t:o(this)).parent().remove()},upload:function(e){e.preventDefault();var i=o("#"+o(this).data("dest")),s=o(this).data("output"),a=o(this).data("file-type"),n=i.find(".lets-info-up-vis-switch");l.modal=wp.media({title:letsInfoUpJS.i18n.titleModal,button:{text:letsInfoUpJS.i18n.titleButton},multiple:!1}),l.modal.on("select",function(){var e,t=l.modal.state().get("selection").first().toJSON();"img"===a&&(t.sizes.thumbnail,e=t.sizes.thumbnail.url);t="id"===s?t.id:t.url;i.find(".lets-info-up-img-input").val(t),i.find(".lets-info-up-img").remove(),"img"===a&&i.find(".lets-info-up-control-only").append('<span class="lets-info-up-img"><a href="#" class="lets-info-up-remove dashicons dashicons-no"></a><img src="'+e+'" alt=""></span>'),n.length&&n.removeClass("lets-info-up-hide")}).open()},galleryUpload:function(e){e.preventDefault();var a=o(this);l.galleryModal=wp.media({title:letsInfoUpJS.i18n.titleGalleryModal,button:{text:letsInfoUpJS.i18n.titleButton},multiple:!0}),l.galleryModal.on("select",function(){for(var e=l.galleryModal.state().get("selection").models,t=0;t<e.length;t++){var i=e[t].toJSON(),s=(i.sizes.thumbnail,i.sizes.thumbnail.url);o("#"+a.data("dest")).find(".lets-info-up-gallery-wrap").append('<span data-id="'+i.id+'" class="lets-info-up-img"><a href="#" class="lets-info-up-remove-gallery dashicons dashicons-no"></a><img src="'+s+'" alt=""><input type="hidden" value="'+i.id+'" name="'+a.data("name")+'[]"></span>')}t=0}).open()},sectionShower:function(e){e.preventDefault();e=o("#"+o(this).data("section"));e.siblings().addClass("lets-info-up-hide"),e.removeClass("lets-info-up-hide"),o(this).siblings().removeClass("lets-info-up-active"),o(this).addClass("lets-info-up-active")},colorPicker:function(){this.$colorPicker.wpColorPicker()},slider:function(){this.$slider.each(function(){var i=o(this);i.slider({min:i.data("min"),max:i.data("max"),step:i.data("step"),range:"min",value:i.data("value"),slide:function(e,t){i.next().val(t.value),i.next().next().find(".lets-info-up-val").html(t.value)}})})},sliderReset:function(){var e=o(this).closest(".lets-info-up-control").find(".lets-info-up-slider"),t=e.data("default");e.slider({value:t}),e.next().val(t),e.next().next().find(".lets-info-up-val").html(t)}};l.init()}(jQuery);