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