blazy-8.x-2.x-dev/js/components/jquery/blazy.admin.min.js

js/components/jquery/blazy.admin.min.js
!function(i,s,e){"use strict";var n="description",a="b-form",t="b-"+n,r="form-checkbox",l="form--vanilla-on",c="."+n+", .form-item__"+n,f="."+r,m=".form--blazy",d=".form-item",u=".js-expandable",o="b-hint",h="."+o,v="is-focused",p="is-hovered",g="is-selected",C="addClass",y="removeClass",b="checked",_="change",w="click";function $(e){var o=i(e);function s(e){e.removeClass(function(e,n){return(n.match(/(^|\s)form--media-switch-\S+/g)||[]).join(" ")})}i(".details-legend-prefix",o).removeClass("element-invisible"),o[i(f+"--vanilla",o).prop(b)?C:y](l),o.on(w,f,function(){var e=i(this),n=e.prop(b);e[n?C:y]("on"),e.hasClass(r+"--vanilla")&&(o[n?C:y](l),o[n?y:C]("form--vanilla-off"),n&&(s(o),i('select[name$="[media_switch]"]',o).val("")))}),i('select[name$="[style]"]',o).off(_).on(_,function(){var e=i(this).val();o.removeClass(function(e,n){return(n.match(/(^|\s)form--style-\S+/g)||[]).join(" ")}),""===e?o.addClass("form--style-off form--style-is-grid"):(o.addClass("form--style-on form--style-"+e),["column","grid","flex","nativegrid"].includes(e)&&o.addClass("form--style-is-grid"))}).change(),i('input[name$="[grid]"]',o).off(_).on(_,function(){var e=i(this).val();o[""===e?y:C]("form--grid-on")}).change(),o.on(w,'input[name$="[override]"]',function(){var e=i(this).prop(b);o[e?C:y]("form--override-on")}),i('select[name$="[responsive_image_style]"]',o).off(_).on(_,function(){var e=i(this);o[""===e.val()?y:C]("form--responsive-image-on")}).change(),i('select[name$="[media_switch]"]',o).off(_).on(_,function(){var e=i(this).val();s(o),o[""===e?y:C]("form--media-switch-on"),o[""===e?y:C]("form--media-switch-"+e),e=["","content","link","media","rendered"].includes(e),o[e?y:C]("form--media-switch-lightbox")}).change(),o.on("mouseenter touchstart",h,function(){i(this).closest(d).addClass(p)}),o.on("mouseleave touchend",h,function(){i(this).closest(d).removeClass(p)}),o.on(w,h,function(){i(".form-item."+g,o).removeClass(g),i(this).parent().toggleClass(g)}),o.on(w,".description, .form-item__description",function(){i(this).closest("."+g).removeClass(g)}),o.off("focus").on("focus",u,function(){i(this).parent().addClass(v)}),o.off("blur").on("blur",u,function(){i(this).parent().removeClass(v)})}function x(e){e=i(e);e.hasClass(n)||e.addClass(n),e.siblings(h).length||e.closest(d).append('<span class="'+o+'">?</span>')}e.behaviors.blazyAdmin={attach:function(e){s.once(x,t,c,e),s.once($,a,m,e)},detach:function(e,n,o){"unload"===o&&(s.once.removeSafely(t,c,e),s.once.removeSafely(a,m,e))}}}(jQuery,dBlazy,Drupal,this.document);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc