11 lines
No EOL
20 KiB
JavaScript
11 lines
No EOL
20 KiB
JavaScript
/*
|
|
* # Fomantic UI - 2.8.8
|
|
* https://github.com/fomantic/Fomantic-UI
|
|
* http://fomantic-ui.com/
|
|
*
|
|
* Copyright 2022 Contributors
|
|
* Released under the MIT license
|
|
* http://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
!function(B,R,P,W){"use strict";B.isFunction=B.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},R=void 0!==R&&R.Math==Math?R:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),B.fn.modal=function(T){var A,e=B(this),H=B(R),D=B(P),O=B("body"),E=e.selector||"",L=(new Date).getTime(),N=[],z=T,j="string"==typeof z,q=[].slice.call(arguments,1),I=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame||R.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var s,o,n,i,t,m,f,e,h,g,a=B.isPlainObject(T)?B.extend(!0,{},B.fn.modal.settings,T):B.extend({},B.fn.modal.settings),c=a.selector,r=a.className,p=a.namespace,v=a.fields,b=a.error,y="."+p,x="module-"+p,l=B(this),k=B(a.context),w=l.find(c.close),d=this,C=l.hasClass("modal")?l.data(x):W,S=!1,F="",M="",u={initialize:function(){var s;l.hasClass("modal")||(u.create.modal(),B.isFunction(a.onHidden)||(a.onHidden=function(){u.destroy(),l.remove()})),l.addClass(a.class),""!==a.title&&l.find(c.title).html(u.helpers.escape(a.title,a.preserveHTML)).addClass(a.classTitle),""!==a.content&&l.find(c.content).html(u.helpers.escape(a.content,a.preserveHTML)).addClass(a.classContent),u.has.configActions()&&(0===(s=l.find(c.actions).addClass(a.classActions)).length?s=B("<div/>",{class:r.actions+" "+(a.classActions||"")}).appendTo(l):s.empty(),a.actions.forEach(function(e){var t=e[v.icon]?'<i class="'+u.helpers.deQuote(e[v.icon])+' icon"></i>':"",n=u.helpers.escape(e[v.text]||"",a.preserveHTML),i=u.helpers.deQuote(e[v.class]||""),o=e[v.click]&&B.isFunction(e[v.click])?e[v.click]:function(){};s.append(B("<button/>",{html:t+n,class:r.button+" "+i,click:function(){!1!==o.call(d,l)&&u.hide()}}))})),u.cache={},u.verbose("Initializing dimmer",k),u.create.id(),u.create.dimmer(),a.allowMultiple&&u.create.innerDimmer(),a.centered||l.addClass("top aligned"),u.refreshModals(),u.bind.events(),a.observeChanges&&u.observeChanges(),u.instantiate(),a.autoShow&&u.show()},instantiate:function(){u.verbose("Storing instance of modal"),C=u,l.data(x,C)},create:{modal:function(){l=B("<div/>",{class:r.modal}),a.closeIcon&&(w=B("<i/>",{class:r.close}),l.append(w)),""!==a.title&&B("<div/>",{class:r.title}).appendTo(l),""!==a.content&&B("<div/>",{class:r.content}).appendTo(l),u.has.configActions()&&B("<div/>",{class:r.actions}).appendTo(l),k.append(l)},dimmer:function(){var e={debug:a.debug,dimmerName:"modals"},e=B.extend(!0,e,a.dimmerSettings);B.fn.dimmer!==W?(u.debug("Creating dimmer"),i=k.dimmer(e),a.detachable?(u.verbose("Modal is detachable, moving content into dimmer"),i.dimmer("add content",l)):u.set.undetached(),t=i.dimmer("get dimmer")):u.error(b.dimmer)},id:function(){h=(Math.random().toString(16)+"000000000").substr(2,8),e="."+h,u.verbose("Creating unique id for element",h)},innerDimmer:function(){0==l.find(c.dimmer).length&&l.prepend('<div class="ui inverted dimmer"></div>')}},destroy:function(){g&&g.disconnect(),u.verbose("Destroying previous modal"),l.removeData(x).off(y),H.off(e),t.off(e),w.off(y),k.dimmer("destroy")},observeChanges:function(){"MutationObserver"in R&&((g=new MutationObserver(function(e){u.debug("DOM tree modified, refreshing"),u.refresh()})).observe(d,{childList:!0,subtree:!0}),u.debug("Setting up mutation observer",g))},refresh:function(){u.remove.scrolling(),u.cacheSizes(),u.can.useFlex()||u.set.modalOffset(),u.set.screenHeight(),u.set.type()},refreshModals:function(){o=l.siblings(c.modal),s=o.add(l)},attachEvents:function(e,t){var n=B(e);t=B.isFunction(u[t])?u[t]:u.toggle,0<n.length?(u.debug("Attaching modal events to element",e,t),n.off(y).on("click"+y,t)):u.error(b.notFound,e)},bind:{events:function(){u.verbose("Attaching events"),l.on("click"+y,c.close,u.event.close).on("click"+y,c.approve,u.event.approve).on("click"+y,c.deny,u.event.deny),H.on("resize"+e,u.event.resize)},scrollLock:function(){i.get(0).addEventListener("touchmove",u.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){i.get(0).removeEventListener("touchmove",u.event.preventScroll,{passive:!1})}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)},element:function(){return l},settings:function(){return a}},event:{approve:function(){S||!1===a.onApprove.call(d,B(this))?u.verbose("Approve callback returned false cancelling hide"):(S=!0,u.hide(function(){S=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){S||!1===a.onDeny.call(d,B(this))?u.verbose("Deny callback returned false cancelling hide"):(S=!0,u.hide(function(){S=!1}))},close:function(){u.hide()},mousedown:function(e){var t=B(e.target),n=u.is.rtl();(m=0<t.closest(c.modal).length)&&u.verbose("Mouse down event registered inside the modal"),(f=u.is.scrolling()&&(!n&&B(R).outerWidth()-a.scrollbarWidth<=e.clientX||n&&a.scrollbarWidth>=e.clientX))&&u.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(e){if(a.closable)if(m)u.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(f)u.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{var t=0<B(e.target).closest(c.modal).length,e=B.contains(P.documentElement,e.target);if(!t&&e&&u.is.active()&&l.hasClass(r.front)){if(u.debug("Dimmer clicked, hiding all modals"),a.allowMultiple){if(!u.hideAll())return}else if(!u.hide())return;u.remove.clickaway()}}else u.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(u.timer),u.timer=setTimeout(e,t)},keyboard:function(e){27==e.which&&(a.closable?(u.debug("Escape key pressed hiding modal"),l.hasClass(r.front)&&u.hide()):u.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){i.dimmer("is active")&&(u.is.animating()||u.is.active())&&I(u.refresh)}},toggle:function(){u.is.active()||u.is.animating()?u.hide():u.show()},show:function(e){e=B.isFunction(e)?e:function(){},u.refreshModals(),u.set.dimmerSettings(),u.set.dimmerStyles(),u.showModal(e)},hide:function(e){return e=B.isFunction(e)?e:function(){},u.refreshModals(),u.hideModal(e)},showModal:function(e){e=B.isFunction(e)?e:function(){},u.is.animating()||!u.is.active()?(u.showDimmer(),u.cacheSizes(),u.set.bodyMargin(),u.can.useFlex()?u.remove.legacy():(u.set.legacy(),u.set.modalOffset(),u.debug("Using non-flex legacy modal positioning.")),u.set.screenHeight(),u.set.type(),u.set.clickaway(),!a.allowMultiple&&u.others.active()?u.hideOthers(u.showModal):(S=!1,a.allowMultiple&&(u.others.active()&&o.filter("."+r.active).find(c.dimmer).addClass("active"),a.detachable&&l.detach().appendTo(t)),a.onShow.call(d),a.transition&&B.fn.transition!==W&&l.transition("is supported")?(u.debug("Showing modal with css animations"),l.transition({debug:a.debug,animation:(a.transition.showMethod||a.transition)+" in",queue:a.queue,duration:a.transition.showDuration||a.duration,useFailSafe:!0,onComplete:function(){a.onVisible.apply(d),a.keyboardShortcuts&&u.add.keyboardShortcuts(),u.save.focus(),u.set.active(),a.autofocus&&u.set.autofocus(),e()}})):u.error(b.noTransition))):u.debug("Modal is already visible")},hideModal:function(e,t,n){var i=o.filter("."+r.active).last();if(e=B.isFunction(e)?e:function(){},u.debug("Hiding modal"),!1===a.onHide.call(d,B(this)))return u.verbose("Hide callback returned false cancelling hide"),S=!1;(u.is.animating()||u.is.active())&&(a.transition&&B.fn.transition!==W&&l.transition("is supported")?(u.remove.active(),l.transition({debug:a.debug,animation:(a.transition.hideMethod||a.transition)+" out",queue:a.queue,duration:a.transition.hideDuration||a.duration,useFailSafe:!0,onStart:function(){u.others.active()||u.others.animating()||t||u.hideDimmer(),a.keyboardShortcuts&&!u.others.active()&&u.remove.keyboardShortcuts()},onComplete:function(){u.unbind.scrollLock(),a.allowMultiple&&(i.addClass(r.front),l.removeClass(r.front),(n?s:i).find(c.dimmer).removeClass("active")),B.isFunction(a.onHidden)&&a.onHidden.call(d),u.remove.dimmerStyles(),u.restore.focus(),e()}})):u.error(b.noTransition))},showDimmer:function(){i.dimmer("is animating")||!i.dimmer("is active")?(u.save.bodyMargin(),u.debug("Showing dimmer"),i.dimmer("show")):u.debug("Dimmer already visible")},hideDimmer:function(){i.dimmer("is animating")||i.dimmer("is active")?(u.unbind.scrollLock(),i.dimmer("hide",function(){u.restore.bodyMargin(),u.remove.clickaway(),u.remove.screenHeight()})):u.debug("Dimmer is not visible cannot hide")},hideAll:function(n){var i,e=s.filter("."+r.active+", ."+r.animating);if(n=B.isFunction(n)?n:function(){},0<e.length)return u.debug("Hiding all visible modals"),i=!0,B(e.get().reverse()).each(function(e,t){i=i&&B(t).modal("hide modal",n,!1,!0)}),i&&u.hideDimmer(),i},hideOthers:function(e){var t=o.filter("."+r.active+", ."+r.animating);e=B.isFunction(e)?e:function(){},0<t.length&&(u.debug("Hiding other modals",o),t.modal("hide modal",e,!0))},others:{active:function(){return 0<o.filter("."+r.active).length},animating:function(){return 0<o.filter("."+r.animating).length}},add:{keyboardShortcuts:function(){u.verbose("Adding keyboard shortcuts"),D.on("keyup"+y,u.event.keyboard)}},save:{focus:function(){0<B(P.activeElement).closest(l).length||(n=B(P.activeElement).blur())},bodyMargin:function(){F=O.css("margin-"+(u.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(F.replace(/[^\d.]/g,"")),t=R.innerWidth-P.documentElement.clientWidth;M=e+t}},restore:{focus:function(){n&&0<n.length&&a.restoreFocus&&n.focus()},bodyMargin:function(){var n=u.can.leftBodyScrollbar()?"left":"right";O.css("margin-"+n,F),O.find(c.bodyFixed.replace("right",n)).each(function(){var e=B(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){l.removeClass(r.active)},legacy:function(){l.removeClass(r.legacy)},clickaway:function(){a.detachable||l.off("mousedown"+e),t.off("mousedown"+e),t.off("mouseup"+e)},dimmerStyles:function(){t.removeClass(r.inverted),i.removeClass(r.blurring)},bodyStyle:function(){""===O.attr("style")&&(u.verbose("Removing style attribute"),O.removeAttr("style"))},screenHeight:function(){u.debug("Removing page height"),O.css("height","")},keyboardShortcuts:function(){u.verbose("Removing keyboard shortcuts"),D.off("keyup"+y)},scrolling:function(){i.removeClass(r.scrolling),l.removeClass(r.scrolling)}},cacheSizes:function(){l.addClass(r.loading);var e=l.prop("scrollHeight"),t=l.outerWidth(),n=l.outerHeight();u.cache.pageHeight!==W&&0===n||(B.extend(u.cache,{pageHeight:B(P).outerHeight(),width:t,height:n+a.offset,scrollHeight:e+a.offset,contextHeight:("body"==a.context?B(R):i).height()}),u.cache.topOffset=-u.cache.height/2),l.removeClass(r.loading),u.debug("Caching modal and container sizes",u.cache)},helpers:{deQuote:function(e){return String(e).replace(/"/g,"")},escape:function(e,t){if(t)return e;var n={"<":"<",">":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,6};)/,"&")).replace(/[<>"'`]/g,function(e){return n[e]}):e}},can:{leftBodyScrollbar:function(){return u.cache.leftBodyScrollbar===W&&(u.cache.leftBodyScrollbar=u.is.rtl()&&(u.is.iframe&&!u.is.firefox()||u.is.safari()||u.is.edge()||u.is.ie())),u.cache.leftBodyScrollbar},useFlex:function(){return"auto"===a.useFlex?a.detachable&&!u.is.ie():(a.useFlex&&u.is.ie()?u.debug("useFlex true is not supported in IE"):a.useFlex&&!a.detachable&&u.debug("useFlex true in combination with detachable false is not supported"),a.useFlex)},fit:function(){var e=u.cache.contextHeight,t=u.cache.contextHeight/2,n=u.cache.topOffset,i=u.cache.scrollHeight,o=u.cache.height,s=a.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(a.actions)&&0<a.actions.length}},is:{active:function(){return l.hasClass(r.active)},ie:function(){var e,t;return u.cache.isIE===W&&(e=!R.ActiveXObject&&"ActiveXObject"in R,t="ActiveXObject"in R,u.cache.isIE=e||t),u.cache.isIE},animating:function(){return l.transition("is supported")?l.transition("is animating"):l.is(":visible")},scrolling:function(){return i.hasClass(r.scrolling)},modernBrowser:function(){return!(R.ActiveXObject||"ActiveXObject"in R)},rtl:function(){return u.cache.isRTL===W&&(u.cache.isRTL="rtl"===O.attr("dir")||"rtl"===O.css("direction")),u.cache.isRTL},safari:function(){return u.cache.isSafari===W&&(u.cache.isSafari=/constructor/i.test(R.HTMLElement)||!!R.ApplePaySession),u.cache.isSafari},edge:function(){return u.cache.isEdge===W&&(u.cache.isEdge=!!R.setImmediate&&!u.is.ie()),u.cache.isEdge},firefox:function(){return u.cache.isFirefox===W&&(u.cache.isFirefox=!!R.InstallTrigger),u.cache.isFirefox},iframe:function(){return!(self===top)}},set:{autofocus:function(){var e=l.find("[tabindex], :input").filter(":visible").filter(function(){return 0===B(this).closest(".disabled").length}),t=e.filter("[autofocus]"),t=(0<t.length?t:e).first();0<t.length&&t.focus()},bodyMargin:function(){var n=u.can.leftBodyScrollbar()?"left":"right";(a.detachable||u.can.fit())&&O.css("margin-"+n,M+"px"),O.find(c.bodyFixed.replace("right",n)).each(function(){var e=B(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+M+"px)")})},clickaway:function(){a.detachable||l.on("mousedown"+e,u.event.mousedown),t.on("mousedown"+e,u.event.mousedown),t.on("mouseup"+e,u.event.mouseup)},dimmerSettings:function(){var e;B.fn.dimmer!==W?(e={debug:a.debug,dimmerName:"modals",closable:"auto",useFlex:u.can.useFlex(),duration:{show:a.transition.showDuration||a.duration,hide:a.transition.hideDuration||a.duration}},e=B.extend(!0,e,a.dimmerSettings),a.inverted&&(e.variation=e.variation!==W?e.variation+" inverted":"inverted"),k.dimmer("setting",e)):u.error(b.dimmer)},dimmerStyles:function(){a.inverted?t.addClass(r.inverted):t.removeClass(r.inverted),a.blurring?i.addClass(r.blurring):i.removeClass(r.blurring)},modalOffset:function(){var e;a.detachable?l.css({marginTop:!l.hasClass("aligned")&&u.can.fit()?-u.cache.height/2:a.padding/2,marginLeft:-u.cache.width/2}):(e=u.can.fit(),l.css({top:!l.hasClass("aligned")&&e?B(P).scrollTop()+(u.cache.contextHeight-u.cache.height)/2:!e||l.hasClass("top")?B(P).scrollTop()+a.padding:B(P).scrollTop()+(u.cache.contextHeight-u.cache.height-a.padding),marginLeft:-u.cache.width/2})),u.verbose("Setting modal offset for legacy mode")},screenHeight:function(){u.can.fit()?O.css("height",""):l.hasClass("bottom")||(u.debug("Modal is taller than page content, resizing page height"),O.css("height",u.cache.height+2*a.padding))},active:function(){l.addClass(r.active+" "+r.front),o.filter("."+r.active).removeClass(r.front)},scrolling:function(){i.addClass(r.scrolling),l.addClass(r.scrolling),u.unbind.scrollLock()},legacy:function(){l.addClass(r.legacy)},type:function(){u.can.fit()?(u.verbose("Modal fits on screen"),u.others.active()||u.others.animating()||(u.remove.scrolling(),u.bind.scrollLock())):l.hasClass("bottom")?u.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(u.verbose("Modal cannot fit on screen setting to scrolling"),u.set.scrolling())},undetached:function(){i.addClass(r.undetached)}},setting:function(e,t){if(u.debug("Changing setting",e,t),B.isPlainObject(e))B.extend(!0,a,e);else{if(t===W)return a[e];B.isPlainObject(a[e])?B.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(B.isPlainObject(e))B.extend(!0,u,e);else{if(t===W)return u[e];u[e]=t}},debug:function(){!a.silent&&a.debug&&(a.performance?u.performance.log(arguments):(u.debug=Function.prototype.bind.call(console.info,console,a.name+":"),u.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?u.performance.log(arguments):(u.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),u.verbose.apply(console,arguments)))},error:function(){a.silent||(u.error=Function.prototype.bind.call(console.error,console,a.name+":"),u.error.apply(console,arguments))},performance:{log:function(e){var t,n;a.performance&&(n=(t=(new Date).getTime())-(L||t),L=t,N.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:d,"Execution Time":n})),clearTimeout(u.performance.timer),u.performance.timer=setTimeout(u.performance.display,500)},display:function(){var e=a.name+":",n=0;L=!1,clearTimeout(u.performance.timer),B.each(N,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",E&&(e+=" '"+E+"'"),(console.group!==W||console.table!==W)&&0<N.length&&(console.groupCollapsed(e),console.table?console.table(N):B.each(N,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),N=[]}},invoke:function(i,e,t){var o,s,n,a=C;return e=e||q,t=d||t,"string"==typeof i&&a!==W&&(i=i.split(/[\. ]/),o=i.length-1,B.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(B.isPlainObject(a[n])&&e!=o)a=a[n];else{if(a[n]!==W)return s=a[n],!1;{if(!B.isPlainObject(a[t])||e==o)return a[t]!==W&&(s=a[t]),!1;a=a[t]}}})),B.isFunction(s)?n=s.apply(t,e):s!==W&&(n=s),Array.isArray(A)?A.push(n):A!==W?A=[A,n]:n!==W&&(A=n),s}};j?(C===W&&(B.isFunction(a.templates[z])&&(a.autoShow=!0,a.className.modal=a.className.template,a=B.extend(!0,{},a,a.templates[z].apply(u,q)),r=a.className,a.namespace,v=a.fields,b=a.error),u.initialize()),B.isFunction(a.templates[z])||u.invoke(z)):(C!==W&&C.invoke("destroy"),u.initialize(),A=l)}),A!==W?A:this},B.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!0,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input"},text:{ok:"Ok",cancel:"Cancel"}},B.fn.modal.settings.templates={getArguments:function(e){e=[].slice.call(e);return B.isPlainObject(e[0])?B.extend({handler:function(){},content:"",title:""},e[0]):(B.isFunction(e[e.length-1])||e.push(function(){}),{handler:e.pop(),content:e.pop()||"",title:e.pop()||""})},alert:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){var t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===B(B.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.deQuote(n.placeholder||"")+'" type="text" value="'+this.helpers.deQuote(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(B(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document); |