/* * # 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(A,e,D){"use strict";A.isFunction=A.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.fn.toast=function(w){var k,e=A(this),T=e.selector||"",x=(new Date).getTime(),I=[],P=w,O="string"==typeof P,M=[].slice.call(arguments,1);return e.each(function(){var t,o,a,s,p,i,f,c=A.isPlainObject(w)?A.extend(!0,{},A.fn.toast.settings,w):A.extend({},A.fn.toast.settings),l=c.className,m=c.selector,g=c.error,e=c.namespace,h=c.fields,n="."+e,v=e+"-module",r=A(this),b=c.context?A(c.context):A("body"),C=r.hasClass("toast")||r.hasClass("message")||r.hasClass("card"),u=this,y=C?r.data(v):D,d={initialize:function(){d.verbose("Initializing element"),d.has.container()||d.create.container(),(C||""!==c.message||""!==c.title||""!==d.get.iconClass()||c.showImage||d.has.configActions())&&("string"==typeof c.showProgress&&-1!==[l.top,l.bottom].indexOf(c.showProgress)||(c.showProgress=!1),d.create.toast(),c.closeOnClick&&(c.closeIcon||0",{class:c.position+" "+l.container+" "+(c.horizontal?l.horizontal:"")}))},toast:function(){t=A("
",{class:l.box});var e,n=d.get.iconClass();C?(o=c.cloneModule?r.clone().removeAttr("id"):r,f=o.find("> i"+d.helpers.toClass(l.close)),c.closeIcon=0"),e=A("
",{class:l.content}),""!==n&&o.append(A("",{class:n+" "+l.icon})),c.showImage&&o.append(A("",{class:l.image+" "+c.classImage,src:c.showImage})),""!==c.title&&e.append(A("
",{class:l.title,text:c.title})),e.append(A("
",{class:l.message,html:d.helpers.escape(c.message,c.preserveHTML)})),o.addClass(c.class+" "+l.toast).append(e),o.css("opacity",c.opacity),c.closeIcon&&((f=A("",{class:l.close+" "+("string"==typeof c.closeIcon?c.closeIcon:"")})).hasClass(l.left)?o.prepend(f):o.append(f))),o.hasClass(l.compact)&&(c.compact=!0),o.hasClass("card")&&(c.compact=!1),a=o.find(".actions"),d.has.configActions()&&(0===a.length&&(a=A("
",{class:l.actions+" "+(c.classActions||"")}).appendTo(o)),o.hasClass("card")&&!a.hasClass(l.attached)&&(a.addClass(l.extraContent),a.hasClass(l.vertical)&&(a.removeClass(l.vertical),d.error(g.verticalCard))),c.actions.forEach(function(e){var n=e[h.icon]?'':"",t=d.helpers.escape(e[h.text]||"",c.preserveHTML),o=d.helpers.deQuote(e[h.class]||""),s=e[h.click]&&A.isFunction(e[h.click])?e[h.click]:function(){};a.append(A("