From 78fcbab73984b308cce3d6d61a5e9980f62ee6b2 Mon Sep 17 00:00:00 2001 From: Stefan Gabos Date: Sun, 12 May 2024 17:48:02 +0300 Subject: [PATCH] Minified using latest tools --- dist/zebra_dialog.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/zebra_dialog.min.js b/dist/zebra_dialog.min.js index 32f032b..6d48761 100644 --- a/dist/zebra_dialog.min.js +++ b/dist/zebra_dialog.min.js @@ -1 +1 @@ -!function(D){"use strict";D.Zebra_Dialog=function(){var p,u,b={animation_speed_hide:250,animation_speed_show:0,auto_close:!(this.version="3.0.5"),auto_focus_button:!0,buttons:!0,center_buttons:!1,custom_class:!1,default_value:"",disable_page_scrolling:!0,height:0,keyboard:!0,margin:0,max_height:0,max_width:450,message:"",modal:!0,backdrop_close:!0,backdrop_opacity:".9",position:"center",reposition_speed:500,show_close_button:!0,source:!1,title:"",type:"information",vcenter_short_message:!0,width:0,onClose:null},m=this,_={},h=!1,f=!1,y=function(){var t,e=D(window).width(),o=D(window).height(),i=m.dialog.outerWidth(),s=m.dialog.outerHeight(),a=e<768,n=0,r=0;m.dialog_left=undefined,m.dialog_top=undefined,t={left:n=(t=(m.settings.margin+"").match(/^([0-9]+)(\%)?$/))&&(undefined!==t[2]?(n=parseInt(e*parseInt(t[1],10)/100,10),r=parseInt(o*parseInt(t[1],10)/100,10)):n=r=parseInt(t[1],10),isNaN(n))?r=0:n,top:r,right:e-n-i,bottom:o-r-s,center:(e-i)/2,middle:(o-s)/2},D.isArray(m.settings.position)&&2===m.settings.position.length&&"string"==typeof m.settings.position[0]&&m.settings.position[0].match(/^(left|right|center)[\s0-9\+\-]*$/)&&"string"==typeof m.settings.position[1]&&m.settings.position[1].match(/^(top|bottom|middle|center)[\s0-9\+\-]*$/)&&(m.settings.position[0]=m.settings.position[0].toLowerCase(),m.settings.position[1]=m.settings.position[1].toLowerCase(),"center"===m.settings.position[1]&&(m.settings.position[1]="middle"),D.each(t,function(t,e){for(var o,i,s=0;s<2;s++)(o=(i=a?m.settings.position[s].replace(/[0-9\+\-\s]/g,""):m.settings.position[s]).replace(t,e))!==i&&(0===s?m.dialog_left=d(o):m.dialog_top=d(o))})),undefined!==m.dialog_left&&undefined!==m.dialog_top||(m.dialog_left=t.center,m.dialog_top=t.middle),m.dialog_top",{"class":"ZebraDialogBackdrop"+(m.settings.custom_class?" "+m.settings.custom_class:"")}).css({position:"fixed",left:0,top:0,opacity:m.settings.backdrop_opacity+""}),0document.body.clientWidth&&!g.hasClass("ZebraDialog_NoScroll")&&g.data("ZebraDialog_vScroll",window.pageYOffset).css({right:(r=D("
").css({visibility:"hidden",overflow:"scroll",msOverflowStyle:"scrollbar"}).appendTo(D("body")),d=D("
").appendTo(r),l=r.outerWidth()-d.outerWidth(),r.remove(),d.remove(),l),top:-1*D(window).scrollTop()}).addClass("ZebraDialog_NoScroll"),m.dialog=D("
",{"class":"ZebraDialog"+(m.settings.custom_class?" "+m.settings.custom_class:"")+(m.settings.modal?"":" ZebraDialog_NotModal")+(!1!==v()?" ZebraDialog_Icon ZebraDialog_"+v():"")}).css({position:"fixed",left:0,top:0,visibility:"hidden"}),0",{"class":"ZebraDialog_Title"}).html(m.settings.title).appendTo(m.dialog):m.dialog.addClass("ZebraDialog_NoTitle"),undefined!==m.settings.source.iframe&&(m.settings.vcenter_short_message=!1),m.body=D("
",{"class":"ZebraDialog_Body"}),"prompt"===m.settings.type&&(m.settings.message+=''),m.settings.vcenter_short_message?D("
").html(m.settings.message).appendTo(m.body):m.body.html(m.settings.message),"prompt"===m.settings.type&&(m.settings.message=D(".ZebraDialog_Prompt_Input",m.body),D(".ZebraDialog_Prompt_Input",m.body).on("keypress",function(t){13===t.keyCode&&(h?h.trigger("click"):m.close(!0,this.value))})),m.settings.source&&"object"==typeof m.settings.source)for(n in o=m.settings.vcenter_short_message?D("div:first",m.body):m.body,m.settings.source)switch(n){case"ajax":t="string"==typeof m.settings.source[n]?{url:m.settings.source[n]}:m.settings.source[n],s=D("
").attr("class","ZebraDialog_Spinner").appendTo(o),t.success=function(t){s.remove(),o.append(t),y(!1)},D.ajax(t);break;case"iframe":t=D.extend({width:"100%",height:"100%",marginheight:"0",marginwidth:"0",frameborder:"0"},"string"==typeof m.settings.source[n]?{src:m.settings.source[n]}:m.settings.source[n]),m.iframe=D("