{"size": 42658, "ext": "js", "max_stars_repo_path": "dist/js/includes.js", "max_stars_repo_name": "sabineabele/arbory", "max_stars_repo_stars_event_min_datetime": "2017-07-25T08:57:48.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-29T14:53:13.000Z", "max_issues_repo_path": "dist/js/includes.js", "max_issues_repo_name": "sabineabele/arbory", "max_issues_repo_issues_event_min_datetime": "2017-07-26T06:22:31.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T10:24:21.000Z", "max_forks_repo_path": "dist/js/includes.js", "max_forks_repo_name": "sabineabele/arbory", "max_forks_repo_forks_event_min_datetime": "2017-07-26T10:52:41.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-13T12:09:03.000Z"}
{"max_stars_count": 39, "max_issues_count": 133, "max_forks_count": 40, "avg_line_length": 42658.0, "max_line_length": 42658, "alphanum_fraction": 0.6800131277}
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"/WSz":function(t,e,n){(function(t){t((function(){var e=t("body"),n=t("<div />").addClass("side-compact-overlay").appendTo(e);n.bind("click",(function(){e.trigger("sidecompactcloseall")}));var i=t();e.on("sidecompactcloseall",(function(){i.filter(".open").trigger("sidecompactitemclose")})),e.on("contentloaded",(function(n){var o=t(n.target).find("header").addBack().filter("body > header");o.length<1||o.on("click",(function(){if(e.hasClass("side-compact")&&!(i.filter(".open").length<1))return e.trigger("sidecompactcloseall"),!1}))})),e.on("contentloaded",(function(o){var a=t(o.target).find("aside").addBack().filter("body > aside");a.length<1||((i=a.find("nav > ul > li")).on("sidecompactitemopen",(function(){e.trigger("sidecompactcloseall"),t(this).addClass("open"),n.show()})),i.on("sidecompactitemclose",(function(){t(this).removeClass("open"),n.hide()})),i.on("sidecompacttoggle",(function(){var e=t(this),n=e.is(".open")?"sidecompactitemclose":"sidecompactitemopen";e.trigger(n)})),a.find(".compacter button").on("click",(function(){var n,i=t(this),o=i.find("i").first();e.hasClass("side-compact")?(e.trigger("sidecompactcloseall"),e.trigger("settingssave",["arbory.side.compact",!1]),e.removeClass("side-compact"),o.removeClass("collapsed"),n="title-collapse"):(e.trigger("settingssave",["arbory.side.compact",!0]),e.addClass("side-compact"),o.addClass("collapsed"),n="title-expand"),i.attr("title",i.data(n)),e.trigger("sidecompactchange")})))}))}))}).call(this,n("EVdn"))},"08sy":function(t,e,n){(function(t,e){var n=function(e){var n=this,i=t("body");n.form=e,n.clicked_button=null,n.form.on("click",'input[type="submit"], input[type="image"], button',(function(e){var i=t(e.target),o=i.closest("button");o.length>0&&(i=o),i.is("button")&&"submit"!==i[0].type||(n.clicked_button=i)})),n.form.on("ajax:beforeSend",(function(t,e){e.validation_id="v"+(new Date).getTime()+Math.random(),n.form.attr("data-validation-id",e.validation_id),n.clicked_button&&n.clicked_button.trigger("loadingstart")})),n.form.on("ajax:complete",(function(e,i){var o,a={validation_id:i.validation_id};switch(i.status){case 303:try{o=t.parseJSON(i.responseText)}catch(t){n.form.trigger("validation:fail",[n,a]);break}a.response=o,n.form.trigger("validation:ok",[n,a]);break;case 200:a.response=i,n.form.trigger("validation:ok",[n,a]);break;case 422:try{o=t.parseJSON(i.responseText)}catch(t){n.form.trigger("validation:fail",[n,a]);break}a.response=o;var r=[];t.each(o.errors,(function(e,n){t.each(n,(function(t,n){if(e.indexOf(".")>-1){var i=e.split(".");e=i.shift()+"["+i.join("][")+"]"}var o={message:n,fieldName:e};r.push(o)}))})),t.each(r,(function(t,e){var i;i=n.form.find('[name="'+e.fieldName+'"],[name="'+e.fieldName+'[]"]').filter(':not([type="hidden"])').first(),a.error=e,(i&&i.length>0?i:n.form).trigger("validation:error",[n,a])}));break;default:n.form.trigger("validation:fail",[n,a])}n.form.trigger("validation:end",[n,a])})),n.form.on("validation:ok",(function(t,e,n){n&&n.response&&("url"in n.response?(t.preventDefault(),document.location.href=n.response.url):"getResponseHeader"in n.response&&(t.preventDefault(),i.trigger("contentreplace",[n.response,"> header"]),i.trigger("contentreplace",[n.response,"> aside"]),i.trigger("contentreplace",[n.response,"> main"])))})),n.form.on("validation:error",(function(e,n,i){var o=null,a=i.error,r=t(e.target),s=r.is("form")?r:r.closest("form");if(r.is('input[type!="hidden"],textarea,select')){var l=r.parents(".field:not(.localization)").first();if(1!==l.length)return;var c=l.is(".i18n")?r.closest(".localization"):l,d=c.find(".error-box");d.length<1&&(d=t('<div class="error-box"><div class="error"></div></div>')).appendTo(c.find(".value").first()),(o=d.find(".error")).attr("data-validation-id",i.validation_id),o.text(a.message),l.addClass("has-error"),l.is(".i18n")&&c.addClass("has-error")}else if(r.is("form")){var u=s.find(".form-error-box");if(u.length<1){var f=s.find(".body").first();f.length<1&&(f=s),(u=t('<div class="form-error-box"></div>')).prependTo(f)}u.find(".error").each((function(){o||t(this).text()===a.message&&(o=t(this))}));var h=!o;o||(o=t('<div class="error"></div>')),o.attr("data-validation-id",i.validation_id),o.text(a.message),h&&o.appendTo(u),s.addClass("has-error"),u.parent().scrollTop(u.offset().top-u.parent().offset().top+u.parent().scrollTop())}s.find(".button.loading").trigger("loadingend")})),n.form.on("validation:end",(function(t,n,i){var o=e.attr("data-validation-id");if(i.validation_id===o){i.except_validation_id=o,e.trigger("validation:clearerrors",[n,i]);var a=e.find(".field.has-error").filter(":visible").find('input[type!="hidden"],textarea,select').not(".localization:not(.has-error) *").first();a.trigger("focusprepare"),a.focus()}})),n.form.on("validation:clearerrors",(function(n,i,o){var a=o&&"except_validation_id"in o?o.except_validation_id:null;if(e.find(".field.has-error").each((function(){var e=t(this);e.find(".error-box").each((function(){var n=t(this),i=n.find(".error");a&&i.attr("data-validation-id")===a||(e.is(".i18n")&&n.closest(".localization").removeClass("has-error"),n.remove())})),e.find(".error-box").length<1&&e.removeClass("has-error")})),e.hasClass("has-error")){var r=e.find(".form-error-box"),s=!1;r.find(".error").each((function(){var e=t(this);a&&e.attr("data-validation-id")===a?s=!0:e.remove()})),s||(r.remove(),e.removeClass("has-error"))}})),t(document).on("validation:ok validation:error validation:fail","form",(function(t,e){if(e===n&&n.form[0])switch(t.type){case"validation:ok":n.submit_form();break;case"validation:error":n.clicked_button=null;break;case"validation:fail":n.submit_form()}}))};n.prototype.submit_form=function(){var e=this;if(e.clicked_button){var n=e.clicked_button.first(),i=n.attr("name");if(i){var o=e.form.find('input[type="hidden"][name="'+i+'"]');o.length<1&&(o=t("<input />").attr("type","hidden").attr("name",n.attr("name"))).appendTo(e.form),o.val(n.val())}}e.form[0].submit()},t((function(){t(document).on("validation:init","form",(function(i){var o=this;if(!i.isDefaultPrevented()){var a=t(i.target);a.data("validator")||(a.data("validator",new n(a)),a.attr("data-remote-validation-initialized",!0),t(".main .primary .button[name=save], .main .primary .button[name=save_and_return], .edit-resources .primary .button[name=save]").click((function(n){n.preventDefault(),a.data("validator").clicked_button=t(n.target),a.trigger("beforevalidation");var i=new FormData(o);e.ajax({type:"POST",url:a.attr("action"),data:i,cache:!1,contentType:!1,processData:!1,beforeSend:function(t){a.trigger("ajax:beforeSend",[t])},complete:function(t){a.trigger("ajax:complete",[t])}})})))}})),t("body").on("contentloaded",(function(e){var n=t(e.target);(n.is("form[data-remote-validation]")?n:n.find("form[data-remote-validation]")).trigger("validation:init")}))}))}).call(this,n("EVdn"),n("EVdn"))},3:function(t,e,n){n("gZuS"),n("howH"),n("MI6W"),n("8nrC"),n("a9BO"),n("Z+G2"),n("y6g2"),n("Wbvk"),n("CFb9"),n("9Qn7"),n("Tplo"),n("OU5q"),n("JNs3"),n("wb83"),n("yx8G"),n("YfjP"),n("MNku"),n("08sy"),n("S6nD"),n("/WSz"),n("5OiZ"),n("nXMt"),n("e1Lv"),t.exports=n("ayLC")},"5OiZ":function(t,e,n){(function(t){t(document).ready((function(){var e=t("body");e.on("sortableinit",(function(e){var n=t(e.target);n.is("[data-sortable]")||(n=n.find("[data-sortable]")),n.each((function(){var e=t(this);e.is(".ui-sortable")||(e.sortable({cursor:"move",delay:150,distance:5,forcePlaceholderSize:!0,handle:"> .handle",items:"> .item",scroll:!0,start:function(t,e){e.item.trigger("sortablestart")},stop:function(t,e){e.item.trigger("sortablestop")},update:function(t,e){e.item.trigger("sortableupdate")}}),e.on("sortablereindex",(function(){e.find('> .item:visible > input[type="hidden"].item-position').each((function(e){t(this).attr("value",e)}))})),e.on("sortableupdate contentloaded contentremoved",(function(){e.trigger("sortablereindex")})),e.trigger("sortablereindex"))}))})),e.on("contentloaded",(function(e,n){t(e.target).trigger("sortableinit",n)}))}))}).call(this,n("EVdn"))},"8nrC":function(t,e,n){(function(t){t(document).ready((function(){t("body").on("click",".constructor-dialog .js-select-block",(function(e){e.preventDefault();var n=t(e.target),i=n.data("name"),o=n.data("field"),a=t("body").find('.type-constructor[data-namespaced-name="'.concat(o,'"]')),r=a.data("templates");i in r&&(a.trigger("nestedfieldscreate",{target_block:a,template:t(r[i])}),t("body").trigger("ajaxboxclose"))}))}))}).call(this,n("EVdn"))},"9Qn7":function(t,e,n){(function(t){t((function(){var e=t("body"),n=t("<div />").addClass("localization-menu-overlay").appendTo(e);n.bind("click",(function(){e.trigger("localizationmenucloseall")})),e.bind("localizationinit",(function(i){var o,a=t(i.target);if(i.stopPropagation(),!((o=a.is(".field.i18n")?a:a.find(".field.i18n")).length<1)){o.bind("localizationmenuopen",(function(){var i=t(this);e.trigger("localizationmenucloseall");var o=i.data("localization-menu");i.attr("data-localization-menu-open",!0),o.appendTo(e),i.trigger("localizationmenuposition"),n.show(),o.show()})),o.bind("localizationmenuclose",(function(){var e=t(this),i=e.data("localization-menu"),o=e.data("localization-switch");i.hide().appendTo(o),n.hide(),e.removeAttr("data-localization-menu-open")})),o.bind("localizationmenutoggle",(function(){var e=t(this),n=e.attr("data-localization-menu-open")?"localizationmenuclose":"localizationmenuopen";e.trigger(n)})),o.bind("localizationmenuposition",(function(){var e=t(this);if(e.attr("data-localization-menu-open")){var n=e.data("localization-menu"),i=e.data("localization-switch-trigger"),o=i.offset();n.css({left:o.left+i.outerWidth()-n.outerWidth(),top:o.top+i.outerHeight()})}})),o.find(".localization-switch .trigger").click((function(){t(this).closest(".field.i18n").trigger("localizationmenutoggle")})),o.find(".localization-menu-items button").click((function(){var n=t(this),i=n.attr("data-locale"),o=n.closest(".localization-menu-items").data("field").find('.localization[data-locale="'+i+'"]');e.trigger("localizationmenucloseall"),o.trigger("localizationlocaleactivate")})),o.bind("localizationlocaleset",(function(e,n){var i=t(this),o=n.locale,a=i.find(".localization[data-locale]"),r=a.filter('[data-locale="'+o+'"]'),s=a.not(r);r.addClass("active"),s.removeClass("active"),i.find(".localization-switch .trigger .label").text(o)})),o.find(".localization").bind("localizationlocaleactivate",(function(){var n=t(this),i=n.attr("data-locale");n.closest("form").find(".field.i18n").trigger("localizationlocaleset",{locale:i}),e.trigger("settingssave",["arbory.i18n.locale",i])}));o.find('input[type!="hidden"],textarea,select').bind("focusprepare",(function(e){var n=t(e.target).closest(".localization");n.length<1||n.is(".active")||n.trigger("localizationlocaleactivate")})),o.each((function(){var e=t(this),n=e.find(".localization-switch").first();e.data("localization-switch",n),e.data("localization-switch-trigger",n.find(".trigger").first());var i=n.find("menu").first();e.data("localization-menu",i),i.data("field",e)}))}})),e.bind("localizationmenucloseall",(function(){e.find(".field.i18n[data-localization-menu-open]").trigger("localizationmenuclose")})),e.on("contentloaded",(function(e){t(e.target).trigger("localizationinit")}))}))}).call(this,n("EVdn"))},CFb9:function(t,e,n){(function(t){t((function(){t("body").on("loadingstart",".button",(function(e){var n=t(e.target);if(!n.hasClass("loading")){n.addClass("loading"),n.data("disabled-before-loading",n.prop("disabled")),n.prop("disabled",!0);var i=t("<i />").addClass("loader fa fa-spin fa-spinner");n.append(i)}})),t("body").on("loadingend",".button",(function(e){var n=t(e.target);n.find(".loader").remove();var i=n.data("disabled-before-loading");void 0!==i&&(i||n.prop("disabled",!1)),n.removeClass("loading")}))}))}).call(this,n("EVdn"))},JNs3:function(t,e,n){(function(t){t(document).ready((function(){var e=t("body");t(document).bind("nestedfieldsinit",(function(e){var n=t(e.target);n.is(".nested")||(n=n.find(".nested")),n.each((function(){var e=t(this),n=e.find(".list").first(),i=e.attr("data-name"),o='.item[data-name="'+i+'"]',a='.item[data-name="'+i+'"].new',r='.item[data-name="'+i+'"]:not(.new)';e.click((function(n,a){var r=t(n.target);if(r.is("button")||(r=r.parents("button").first()),(r.is("button.add-nested-item")||r.is("button.remove-nested-item"))&&!r.prop("disabled")){var s=r.parents(".nested").first();if(s.attr("data-name")===i)if(r.is(".add-nested-item")){var l=null;if(s.is(".polymorphic")){var c=s.find("footer select.template-types");l=t(c.find("option:selected").data("template"))}else l=t(s.data("arbory-template"));e.trigger("nestedfieldscreate",{target_block:s,original_params:a,template:l})}else r.is(".remove-nested-item")&&e.trigger("nestedfieldsremove",{target_block:s,item:r.parents(o).first(),original_params:a})}})),e.on("nestedfieldscreate",(function(t,e){var o=e.target_block,a=e.original_params,r=e.template;if(o.attr("data-name")===i){if(1!==r.length)return null;var s=r;s.addClass("new"),s.appendTo(n),s.trigger("nestedfieldsreindex",a),a&&a.no_animation?(s.trigger("nestedfieldsitemadd",a),s.trigger("contentloaded",a)):s.is("tr, td")?(s.css({opacity:1}).hide(),s.fadeIn("normal",(function(){s.trigger("nestedfieldsitemadd",a),s.trigger("contentloaded",a)}))):(s.css({opacity:0}),s.slideDown("fast",(function(){s.css({opacity:1}).hide(),s.fadeIn("fast",(function(){s.trigger("nestedfieldsitemadd",a),s.trigger("contentloaded",a)}))})))}})),e.on("nestedfieldsremove",(function(t,e){var n=e.target_block,o=e.item,a=e.original_params;if(n.attr("data-name")===i){var r=function(t){t.trigger("contentbeforeremove",a);var e=t.parent(),i=t.find("input.destroy");i.length>0?(i.val(!0),t.hide()):t.remove(),n.trigger("nestedfieldsreindex",a),e.trigger("contentremoved",a)};o.addClass("removed"),o.trigger("nestedfieldsitemremove",a),a&&a.no_animation?r(o):o.fadeOut("fast",(function(){o.is("tr,td")?r(o):o.css({opacity:0}).show().slideUp("fast",(function(){r(o)}))}))}})),e.on("nestedfieldsreindex",(function(){var n=0;e.find(r).each((function(){var e=t(this).attr("data-index");void 0!==e&&(e*=1)>=n&&(n=e+1)}));var o=e.find(a),s=n,l=[];o.each((function(){var e=t(this);e.attr("data-index",s);var n=new RegExp("(\\[|_)"+i+"(\\]\\[|_)(\\d*|_template_)?(\\]|_)"),o=new RegExp("((\\[|_)"+i+"(\\]\\[|_))(\\d*|_template_)?(\\]|_)","g"),a="$1"+s+"$5",r=["name","id","for"];e.find("input,select,textarea,button,label").each((function(){for(var e=0;e<r.length;e++){var i=t(this).attr(r[e]);if(i&&i.match(n)){var s={element:this,attribute:r[e],old_value:i,new_value:i.replace(o,a)};if(s.old_value===s.new_value)continue;l.push(s)}}})),s++}));t.each(l,(function(e,n){var i=t(n.element);i.trigger("beforeattributechange",n),i.attr(n.attribute,"nestedfieldsreindex_temporary_value_"+e)})),t.each(l,(function(e,n){var i=t(n.element);i.attr(n.attribute,n.new_value),i.trigger("attributechanged",n)}))})),e.on("sortableupdate",(function(){e.trigger("nestedfieldsreindex")})),e.on("nestedfieldsitemadd",(function(e){var n=t(e.target);n.attr("data-name")===i&&n.find("input, select, textarea").filter(":visible").first().focus()}))}))})),e.on("contentloaded",(function(e,n){t(e.target).trigger("nestedfieldsinit",n)}))}))}).call(this,n("EVdn"))},MI6W:function(t,e,n){"use strict";n.r(e),function(t){n("YisV"),n("chtW");var e=n("kG0J");t(document).ready((function(){var n,i=t("body"),o={},a=function(e){var n={showCloseBtn:!1,modal:e.modal,callbacks:{open:function(){this.contentContainer.trigger("ajaxboxaftershow",[this,e])},beforeClose:function(){this.contentContainer.trigger("ajaxboxbeforeclose")}}};"image"===e.type?(n.items={src:e.url},n.type="image"):n.items={src:e.content,type:"inline"},t.magnificPopup.open(n)},r=function(){t.magnificPopup.close()};i.on("ajaxboxaftershow",(function(e,n,o){if(n.contentContainer.addClass("ajaxbox-inner"),void 0!==n.wrap.draggable&&n.wrap.draggable({handle:n.contentContainer.find("section header").first()}),!o.modal){var a=n.contentContainer.first();if("image"!==o.type&&(a=n.contentContainer.find("section header").first()),a.length>0){var s=t("<i />").addClass("mt-icon").html("close"),l=t("<button />").attr("type","button").addClass("button secondary close only-icon").append(s);l.on("click",(function(){r()})),a.append(l)}}var c=n.contentContainer.find('section footer .button[data-type="cancel"]').first();c.length>0&&(c.bind("click",(function(){return i.trigger("ajaxboxclose"),!1})),c.focus()),n.contentContainer.trigger("contentloaded"),n.contentContainer.trigger("ajaxboxdone",o)})),i.on("ajaxboxinit",(function(n){var i=t(n.target);(i.is("a.ajaxbox")?i:i.find("a.ajaxbox")).on("click",(function(){var n=t(this),i={url:new e.a(n.attr("href")).add({ajax:1}).getUrl(),modal:n.is("[data-modal]"),trigger:n,cache:n.is("[data-cache]")};return"image"===n.attr("rel")&&(i.type="image"),n.trigger("ajaxboxopen",i),!1}))})),i.on("ajaxboxopen",(function(e,i){"cache"in i&&!0===i.cache&&(i.url in o&&(i.content=o[i.url]));"content"in i?a(i):"url"in i&&("trigger"in i&&i.trigger.trigger("loadingstart"),n&&n.abort(),n=t.ajax({url:i.url,type:"get",success:function(t){i.content=t,a(i),i.cache&&(o[i.url]=t)}}))})),i.on("ajaxboxdone",(function(e,n){n&&"trigger"in n&&n.trigger.trigger("loadingend"),t(e.target).find(".dialog").trigger("contentdone")})),i.on("ajaxboxclose",(function(){r()})),i.on("contentloaded",(function(e){t(e.target).trigger("ajaxboxinit")}))}))}.call(this,n("EVdn"))},MNku:function(t,e,n){"use strict";n.r(e),function(t){var e=n("CxY0"),i=n.n(e);t((function(){t("body").on("contentloaded",(function(e){t(e.target).find('.pagination select[name="page"]').on("change",(function(){var e=t(this).val();e&&(window.location.href=i.a.format({query:{page:e}}))}))}))}))}.call(this,n("EVdn"))},OU5q:function(t,e,n){"use strict";n.r(e),function(t){var e=n("p46w"),i=n.n(e);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}var s=function(){function e(t){o(this,e),this.element=t}return r(e,[{key:"getItemElements",value:function(){return this.element.find("li[data-name]")}},{key:"getItems",value:function(){var e=this,n=[];return t.each(this.getItemElements(),(function(i,o){n.push(new l(e,t(o)))})),n}},{key:"collapseItems",value:function(){t.each(this.getItems(),(function(t,e){e.collapseItems()}))}},{key:"isCompact",value:function(){return this.element.closest("body").hasClass("side-compact")}}]),e}(),l=function(){function t(e,n){o(this,t),this.menu=e,this.element=n,this.name=n.data("name")}return r(t,[{key:"getStorage",value:function(){return c.get(this.name)}},{key:"getChildBlockElement",value:function(){return this.element.find(".block:first")}},{key:"getChildElements",value:function(){return this.getChildBlockElement().children("li[data-name]")}},{key:"hasChildren",value:function(){return this.getChildElements().length}},{key:"getIconElement",value:function(){return this.element.children(".trigger").find(".collapser i")}},{key:"toggleItems",value:function(){this.hasChildren()&&(this.menu.isCompact()&&this.menu.collapseItems(),this.isCollapsed()?this.expandItems():this.collapseItems())}},{key:"isCollapsed",value:function(){return this.menu.isCompact()?!this.element.hasClass("open"):this.element.hasClass("collapsed")}},{key:"collapseItems",value:function(){this.menu.isCompact()?this.element.removeClass("open"):this.element.addClass("collapsed")}},{key:"expandItems",value:function(){this.menu.isCompact()?this.element.addClass("open"):this.element.removeClass("collapsed")}},{key:"updateIcon",value:function(){this.getIconElement().toggleClass("collapsed",this.menu.isCompact())}}]),t}(),c=function(){function t(){o(this,t)}return r(t,null,[{key:"getStored",value:function(){var e=i.a.getJSON("menu");return void 0===e?(t.save({}),{}):e}},{key:"get",value:function(e){var n=this.getStored();return void 0===n[e]&&(n[e]=null,t.save(n)),new d(e,n[e])}},{key:"saveItem",value:function(e){var n=this.getStored();n[e.id]=e.getContents(),t.save(n)}},{key:"save",value:function(t){i.a.set("menu",JSON.stringify(t))}}]),t}(),d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.id=e,this.contents=n}return r(t,[{key:"getContents",value:function(){return this.contents}},{key:"isCollapsed",value:function(){return this.contents}},{key:"setCollapsed",value:function(t){this.contents=t,this.save()}},{key:"save",value:function(){c.saveItem(this)}}]),t}();t(document).ready((function(){var e=new s(t("aside nav > ul"));t.each(e.getItems(),(function(t,n){n.updateIcon(),n.element.find(".trigger:first").on("click",(function(){n.toggleItems(),n.updateIcon(),!e.isCompact()&&n.hasChildren()&&n.getStorage().setCollapsed(n.isCollapsed())}))}))}))}.call(this,n("EVdn"))},S6nD:function(t,e,n){"use strict";n.r(e),function(t){var e=n("kG0J");t((function(){t("body").on("searchinit","form",(function(n){var i,o,a=t(n.target),r=t("#grid-filter"),s=a.data("search-options");s=t.extend(!0,{result_blocks:{main_section:{result_selector:"section",target:"main > section:first"}},rebind:!1},s);var l={inputs:t(),submit:t()},c=function(){l.inputs=t("input, select"),l.submit=a.find('button[type="submit"]')},d=function(){l.inputs.each((function(){var e=t(this);e.data("previous-value",u(e))}))},u=function(t){return t.is('input[type="checkbox"]:not(:checked)')?"":t.is('input[type="checkbox"]:checked')?t.val()||"":t.val()};r.length&&a.on("submit",(function(t){return r.trigger("submit"),!1})),a.on("searchresponse",(function(e,n){for(var i in n=t("<div />").append(n),s.result_blocks)if(s.result_blocks.hasOwnProperty(i)){var o=s.result_blocks[i],a=n.find(o.result_selector).first().html();t(o.target).html(a),t(o.target).trigger("contentloaded")}s.rebind&&c()})),a.on("change keyup","input, select",(function(){var e=t(this);u(e)!==e.data("previous-value")&&a.trigger("searchstart")})),a.on("searchstart",(function(){clearTimeout(o),d(),i&&i.abort(),o=setTimeout((function(){l.submit.trigger("loadingstart");var n=a.attr("action"),o=new e.a({baseUrl:n});o.add(a.serializeArray()),o.add(r.serializeArray()),"replaceState"in window.history&&window.history.replaceState(window.history.state,window.title,o.getUrl()),o.add({ajax:1}),i=t.ajax({url:o.getUrl(),success:function(t){a.trigger("searchresponse",t),a.trigger("searchend")}})}),200)})),a.on("searchend",(function(){l.submit.trigger("loadingend")})),c(),d()})),t(".view-index form.search").trigger("searchinit")}))}.call(this,n("EVdn"))},Tplo:function(t,e,n){(function(t){t(document).ready((function(t){var e,n,i,o,a=t(".bulk-edit-grid");function r(){e.attr("href",s)}function s(){var e=n.filter(":checked").serializeArray();return o+(o.indexOf("?")>=0?"&":"?")+t.param(e)}function l(){n.prop("checked",this.checked),r()}t("body").on("contentloaded",(function(e,n){t(e.target).trigger("bulkforminit",n)})),t(document).bind("bulkforminit",(function(s){var c=t(s.target);a.length&&(e=t(".js-bulk-edit-button",a),o=e.attr("href"),n=t(".js-bulk-edit-row-checkbox",a),i=t(".js-bulk-edit-header-checkbox",a),n.on("change",r),i.on("change",l)),function(e){e.find("input.bulk-control").on("change",(function(n){e.find('[name="resource['+t(this).attr("data-target")+']"]').prop("disabled",!this.checked)}))}(c=c.find(".edit-resources"))}))}))}).call(this,n("EVdn"))},Wbvk:function(t,e,n){(function(t,e){t(document).ready((function(){var t=e(".js-filter-trigger"),n=e(".form-filter"),i=e("#main > .content");function o(){e("<input />").attr("type","hidden").attr("name","search").attr("value",e("#".concat("search")).val()).appendTo(n)}n.submit((function(t){return o(),!0})),t.on("click",(function(){n.toggleClass("show"),i.toggleClass("show-filter")})),e("body").on("contentdone",".js-save-filter-dialog",(function(t){var i=e(t.target);i.find("form").on("submit",(function(){return o(),i.find('[name="filter"]').val(n.serialize()),!0}))}))}))}).call(this,n("EVdn"),n("EVdn"))},YfjP:function(t,e){Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,i=new Array(n);n--;)i[n]=[e[n],t[e[n]]];return i}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n},writable:!0,configurable:!0})},"Z+G2":function(t,e,n){(function(t){t(document).ready((function(){var e=t("body");t(document).bind("associatedsetsinit",(function(e){var n=t(e.target);n.is(".field.type-associated-set")||(n=n.find(".field.type-associated-set")),n.each((function(){t(this).find("input.keep").bind("click",(function(){var e=t(this);e.siblings("input.destroy").val(e.prop("checked")?"false":"true")}))}))})),e.on("contentloaded",(function(e,n){t(e.target).trigger("associatedsetsinit",n)}))}))}).call(this,n("EVdn"))},a9BO:function(t,e,n){(function(t){t((function(){t("body").on("contentdone",(function(e){t(e.target).find(".dialog").addBack(".dialog").addClass("initialized")}))}))}).call(this,n("EVdn"))},ayLC:function(t,e,n){(function(t){function e(t){void 0===t&&(t={});var e=!0;!1!==t&&void 0===t.baseUrl||(e=!1),"string"==typeof t&&(t={baseUrl:t}),this.path="",this.query={};var n=t.baseUrl||location.href,i=(n=n.split("#").shift()).split("?");if(this.path=i.shift(),e&&i.length>0)for(var o=i.shift().split("&"),a=0;a<o.length;a++)if(o[a].length>0){var r,s=o[a].split("="),l=s.shift();r=s.length>0?decodeURIComponent(s.shift()):"","[]"===decodeURIComponent(l).substr(decodeURIComponent(l).length-2,2)&&(l=decodeURIComponent(l)),"[]"===l.substr(l.length-2,2)?(l=l.substr(0,l.length-2),void 0!==this.query[l]&&this.query[l]instanceof Array||(this.query[l]=[]),this.query[l].push(r)):this.query[l]=r}if(void 0!==t.keep&&t.keep instanceof Array){for(var c={},d=0;d<t.keep.length;d++)void 0!==this.query[t.keep[d]]&&(c[t.keep[d]]=this.query[t.keep[d]]);this.query=c}}e.prototype.add=function(t,n){if(t instanceof Array){for(var i=0;i<t.length;i++)if(void 0!==t[i].name&&void 0!==t[i].value){var o=t[i].name;"[]"===o.substr(o.length-2,2)?(o=o.substr(0,o.length-2),void 0!==this.query[o]&&this.query[o]instanceof Array||(this.query[o]=[]),this.query[o].push(t[i].value)):this.query[t[i].name]=t[i].value}}else if(t instanceof Object)for(var a in t)t.hasOwnProperty(a)&&(this.query[a]=t[a]);else if("string"==typeof t)if(void 0===n){var r=new e("?"+t);for(var s in r.query)r.query.hasOwnProperty(s)&&(this.query[s]=r.query[s])}else this.query[t]=n;return this},e.prototype.removeAll=function(e){for(var n in this.query)void 0!==e&&-1!==t.inArray(n,e)||this.remove(n);return this},e.prototype.remove=function(t){return delete this.query[t],this},e.prototype.get=function(t){return void 0!==this.query[t]?this.query[t]:null},e.prototype.getUrl=function(){var t="",e=!0;for(var n in this.query)this.query.hasOwnProperty(n)&&(e?e=!1:t+="&",this.query[n]instanceof Array?t+=n+"[]="+this.query[n].map(encodeURIComponent).join("&"+n+"[]="):t+=n+"="+encodeURIComponent(this.query[n]));return this.path+"?"+t}}).call(this,n("EVdn"))},e1Lv:function(t,e,n){"use strict";n.r(e),function(t){var e=n("kG0J");t((function(){var n,i=t("body"),o=t("<div />").addClass("toolbox-overlay").appendTo(i);o.bind("click",(function(){i.trigger("toolboxcloseall")})),i.bind("toolboxinit",(function(a){var r,s=t(a.target);a.stopPropagation(),(r=s.is(".toolbox")?s:s.find(".toolbox")).length<1||(r.bind("toolboxopen",(function(){var o=t(this);if(i.trigger("toolboxcloseall"),n&&n.abort(),o.data("url")){var a=new e.a(o.data("url")).add({ajax:1}).getUrl();n=t.ajax({url:a,type:"get",success:function(t){o.trigger("toolboxbuild",t)}})}else o.trigger("toolboxbuild")})),r.bind("toolboxbuild",(function(e,n){var a=t(this),r=a.data("toolbox-menu"),s=a.find(".toolbox-items ul");a.attr("data-toolbox-open",!0),r.appendTo(i),a.trigger("toolboxposition"),o.show(),r.show(),void 0!==n&&s.html(n),s.trigger("contentloaded")})),r.bind("toolboxclose",(function(){var e=t(this);e.data("toolbox-menu").hide().appendTo(e),o.hide(),e.removeAttr("data-toolbox-open")})),r.bind("toolboxtoggle",(function(){var e=t(this),n=e.attr("data-toolbox-open")?"toolboxclose":"toolboxopen";e.trigger(n)})),r.bind("toolboxposition",(function(){var e=t(this);if(e.attr("data-toolbox-open")){var n=e.data("toolbox-menu"),i=e.find(".trigger"),o=i.offset(),a=o.left+i.outerWidth()/2,r=n.outerWidth(),s=t(document).width()-a-r-50>0,l=n.children("i").first();s?(n.css({left:a-23,top:o.top+i.outerHeight()}),l.css({left:18})):(n.css({left:a-r+20,top:o.top+i.outerHeight()}),l.css({left:r-24}))}})),r.find(".trigger").click((function(){t(this).closest(".toolbox").trigger("toolboxtoggle")})),r.find(".toolbox-items ul").on("contentloaded",(function(e){var n=t(e.target),i=n.data("toolbox"),o=i.find(".trigger"),a=n.find("li").find(".button");a.click((function(){i.trigger("toolboxclose")})),a.on("loadingstart",(function(){o.trigger("loadingstart")})),a.on("loadingend",(function(){o.trigger("loadingend")}))})),r.each((function(){var e=t(this),n=e.find("menu").first();e.data("toolbox-menu",n),e.find(".toolbox-items ul").data("toolbox",e),e.addClass("initialized")})))})),t(window).bind("resize",(function(){t(".toolbox[data-toolbox-open]").trigger("toolboxposition")})),i.bind("toolboxcloseall",(function(){i.find(".toolbox[data-toolbox-open]").trigger("toolboxclose")})),i.on("contentloaded",(function(e){t(e.target).trigger("toolboxinit")}))}))}.call(this,n("EVdn"))},gZuS:function(t,e,n){(function(t,e){t(document).ready((function(){e(".js-accordion-trigger").on("click",(function(t){t.preventDefault();var n=e(t.target).closest(".accordion"),i=e(n).children(".body"),o=e(n).find(".fa");i.slideToggle(150),o.toggleClass("fa-minus"),o.toggleClass("fa-plus")}))}))}).call(this,n("EVdn"),n("EVdn"))},hayV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("iu2W");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.store=n,this.id=e.data("id"),this.level=e.data("level")}var e,n,o;return e=t,(n=[{key:"getStorage",value:function(){return this.store?this.store.get(this.id):null}},{key:"makeSortable",value:function(t){return this.element.parent().sortable(t)}},{key:"toggleChildVisibility",value:function(){var t=this.getStorage();t&&t.setCollapsed(!t.isCollapsed()),this.isCollapsed()?this.element.removeClass("collapsed"):this.element.addClass("collapsed")}},{key:"isCollapsed",value:function(){return this.element.hasClass("collapsed")}},{key:"getParent",value:function(){var e="li[data-level="+--this.level+"]";return new t(this.element.closest(e),this.store)}},{key:"getLeftSibling",value:function(){return new t(this.element.prev("li[data-id]"),this.store)}},{key:"getRightSibling",value:function(){return new t(this.element.next("li[data-id]"),this.store)}}])&&i(e.prototype,n),o&&i(e,o),t}()},howH:function(t,e,n){(function(t){t(document).ready((function(){var e=t("body");e.on("contentreplace",(function(e,n,i){if(n&&"status"in n&&"getResponseHeader"in n){if(200!==n.status)return;var o=n.getResponseHeader("content-type");if(!o||!o.match(/html/))return;n=n.responseText}var a;a=void 0!==i?(n=t("<html />").append(n)).find(i):n;var r=t(e.target);void 0!==i&&(r.is(i)||(r=r.find(i))),r.replaceWith(a),a.trigger("contentloaded")})),setTimeout((function(){e.trigger("contentloaded"),e.trigger("contentdone")}),0)}))}).call(this,n("EVdn"))},iGpS:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var i=n("hayV"),o=n("iu2W");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;a(this,e),this.repositionUrl=i,this.collection=t(n),this.store=r?new o.a(r):null,this.initialize()}var n,s,l;return n=e,l=[{key:"getToken",value:function(){return t("[name=_token]:first").val()}}],(s=[{key:"initialize",value:function(){var e=this;this.collection.data("tree",this),t("body").on("click",".dialog .node-cell label",this.onDialogLabelClick.bind(this)),t(document).ready((function(){e.collection.find("ul[data-level] > li").each((function(n,o){var a=new i.a(t(o),e.store);a.element.on("click","> .collapser-cell > .collapser",(function(){return a.toggleChildVisibility()})),a.makeSortable({items:"> li",stop:function(t,n){a=new i.a(n.item,e.store),e.send(a)}})}))}))}},{key:"onDialogLabelClick",value:function(e){t(".dialog .node-cell label").removeClass("selected"),t(e.target).addClass("selected")}},{key:"send",value:function(n){t.post(this.repositionUrl,{_token:e.getToken(),id:n.id,toLeftId:n.getLeftSibling().id,toRightId:n.getRightSibling().id})}}])&&r(n.prototype,s),l&&r(n,l),e}()}).call(this,n("EVdn"))},iu2W:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("p46w"),o=n.n(i);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;a(this,t),this.id=e,this.contents=n,this.store=i}var e,n,i;return e=t,(n=[{key:"getContents",value:function(){return this.contents}},{key:"isCollapsed",value:function(){return this.contents}},{key:"setCollapsed",value:function(t){this.contents=t,this.save()}},{key:"save",value:function(){this.store&&this.store.saveItem(this)}}])&&r(e.prototype,n),i&&r(e,i),t}();function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d={},u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.storeName=e,d[e]=this}var e,n,i;return e=t,i=[{key:"getInstance",value:function(t){return d[t]}}],(n=[{key:"getStored",value:function(){var t=o.a.getJSON(this.storeName);return"object"!==l(t)?(this.save({}),{}):t}},{key:"get",value:function(t){var e=this.getStored();return void 0===e[t]&&(e[t]=!0,this.save(e)),new s(t,e[t],this)}},{key:"saveItem",value:function(t){var e=this.getStored();e[t.id]=t.getContents(),this.save(e)}},{key:"save",value:function(t){o.a.set(this.storeName,t)}}])&&c(e.prototype,n),i&&c(e,i),t}()},kG0J:function(t,e,n){"use strict";(function(t){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,"a",(function(){return o}));var o=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),void 0===t&&(t={});var n=!0;!1!==t&&void 0===t.baseUrl||(n=!1),"string"==typeof t&&(t={baseUrl:t}),this.path="",this.query={};var i=t.baseUrl||location.href,o=(i=i.split("#").shift()).split("?");if(this.path=o.shift(),n&&o.length>0)for(var a=o.shift().split("&"),r=0;r<a.length;r++)if(a[r].length>0){var s,l=a[r].split("="),c=l.shift();s=l.length>0?decodeURIComponent(l.shift()):"","[]"===decodeURIComponent(c).substr(decodeURIComponent(c).length-2,2)&&(c=decodeURIComponent(c)),"[]"===c.substr(c.length-2,2)?(c=c.substr(0,c.length-2),void 0!==this.query[c]&&this.query[c]instanceof Array||(this.query[c]=[]),this.query[c].push(s)):this.query[c]=s}if(void 0!==t.keep&&t.keep instanceof Array){for(var d={},u=0;u<t.keep.length;u++)void 0!==this.query[t.keep[u]]&&(d[t.keep[u]]=this.query[t.keep[u]]);this.query=d}}var n,o,a;return n=e,(o=[{key:"add",value:function(t,n){if(t instanceof Array){for(var i=0;i<t.length;i++)if(void 0!==t[i].name&&void 0!==t[i].value){var o=t[i].name;"[]"===o.substr(o.length-2,2)?(o=o.substr(0,o.length-2),void 0!==this.query[o]&&this.query[o]instanceof Array||(this.query[o]=[]),this.query[o].push(t[i].value)):this.query[t[i].name]=t[i].value}}else if(t instanceof Object)for(var a in t)t.hasOwnProperty(a)&&(this.query[a]=t[a]);else if("string"==typeof t)if(void 0===n){var r=new e("?"+t);for(var s in r.query)r.query.hasOwnProperty(s)&&(this.query[s]=r.query[s])}else this.query[t]=n;return this}},{key:"removeAll",value:function(e){for(var n in this.query)void 0!==e&&-1!==t.inArray(n,e)||this.remove(n);return this}},{key:"remove",value:function(t){return delete this.query[t],this}},{key:"get",value:function(t){return void 0!==this.query[t]?this.query[t]:null}},{key:"getUrl",value:function(){var t="",e=!0;for(var n in this.query)this.query.hasOwnProperty(n)&&(e?e=!1:t+="&",this.query[n]instanceof Array?t+=n+"[]="+this.query[n].map(encodeURIComponent).join("&"+n+"[]="):t+=n+"="+encodeURIComponent(this.query[n]));return this.path+"?"+t}}])&&i(n.prototype,o),a&&i(n,a),e}()}).call(this,n("EVdn"))},nXMt:function(t,e,n){(function(t){t((function(){var e=t("body"),n=e.data("settings-path");e.on("settingssave",(function(e,i,o){if(n){var a=i;"string"==typeof a&&((a={})[i]=o),t.ajax({url:n,data:{settings:a},type:"POST",dataType:"json"})}}))}))}).call(this,n("EVdn"))},wb83:function(t,e,n){"use strict";n.r(e),function(t){n("NvoQ");var e=n("iGpS");t(document).ready((function(){var n=t("body.controller-nodes .collection");new e.a(n,n.data("reposition-url")||window.NODE_REPOSITION_BASEPATH,n.data("store-name")||"nodes")}))}.call(this,n("EVdn"))},y6g2:function(t,e,n){"use strict";n.r(e),function(t){n("Vn+K"),n("NIS+");t(document).ready((function(){var e=t("body"),n=function(e){setTimeout((function(){t(e.dpDiv[0]).find(".ui-datepicker-prev").removeClass().addClass("button only-icon previous").html('<i class="mt-icon">chevron_left</i>'),t(e.dpDiv[0]).find(".ui-datepicker-next").removeClass().addClass("button only-icon next").html('<i class="mt-icon">chevron_right</i>')}),0)};e.on("calendarsinit",(function(e){var i=t(e.target),o={controlType:"select",showHour:!0,showMinute:!0,showTimezone:!1,showMillisec:!1,showMicrosec:!1,changeMonth:!0,changeYear:!0,beforeShow:function(t,e){n(e)},onChangeMonthYear:function(t,e,i){n(i)}};i.find(".date-picker").each((function(){var e=t(this),n=o;n.dateFormat=e.data("date-format")||"yy-mm-dd",n.minDate=e.data("min-date"),n.maxDate=e.data("max-date"),e.datepicker(n)})),i.find(".datetime-picker").each((function(){var e=t(this),n=o;n.dateFormat=e.data("date-format")||"yy-mm-dd",n.pickerTimeFormat=e.data("time-format")||"HH:mm",n.minDate=e.data("min-date"),n.maxDate=e.data("max-date"),e.datetimepicker(n)})),i.find(".time-picker").each((function(){var e=t(this);o.pickerTimeFormat=e.data("time-format")||"HH:mm",e.timepicker(o)}))})),e.on("contentloaded",(function(e){t(e.target).trigger("calendarsinit")}))}))}.call(this,n("EVdn"))},yx8G:function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t((function(){var n=t("body"),i=n.children(".notifications").first(),o={info:"fa-info",success:"fa-check",error:"fa-times-circle"},a={},r=t("<i />").addClass("mt-icon").html("close"),s=t('<button type="button" />').addClass("close button only-icon").append(r).attr("title",i.attr("data-close-text"));s.click((function(){var e=t(this).closest(".notification").attr("data-id");n.trigger("notificationremove",e)}));n.on("notificationsinit",(function(){n.on("notificationadd",(function(e,r){var l,c=function(e){var n;do{n=Math.random().toString(16).slice(2)}while(void 0!==a[n]);var i={id:n,type:"info",closable:!0,duration:"closable"in e&&!e.closable?null:5,message:"",html:null,icon:"type"in e&&e.type in o?o[e.type]:o.info};return t.extend(i,e),i}(r),d=!1;void 0===a[c.id]&&(d=!0,(l=t("<div />").addClass("notification").attr("data-id",c.id)).append(t("<i />")),l.append(t("<div />").addClass("content")),a[c.id]=l,l.hide(),l.appendTo(i)),(l=a[c.id]).data("params",c),l.attr("data-type",c.type),l.children("i").removeClass().addClass("icon fa "+c.icon),c.closable&&0===l.find(".close").length?l.append(s.clone(!0)):c.closable||l.find(".close").remove(),"string"!=typeof c.html&&(c.html=t("<div />").addClass("message").text(c.message)),l.find(".content").html(c.html),d?l.fadeIn("slow",(function(){n.trigger("notificationadded",{notification:l})})):n.trigger("notificationupdated",{notification:l})})),n.on("notificationremove",(function(n,i){var o=function(n){var i=[];return"string"==typeof n?i.push(n):"object"===e(n)&&t.each(a,(function(e,o){var a=o.data("params"),r=!0;t.each(n,(function(t,e){if(void 0===a[t]||a[t]!==e)return r=!1,!1})),r&&i.push(e)})),i}(i);t.each(o,(function(t,e){if(void 0!==a[e]){var n=a[e],i=n.data("removal-timer");clearTimeout(i),n.fadeOut("fast",(function(){n.css({opacity:0}).show().slideUp("fast",(function(){n.remove()}))})),delete a[e]}}))})),n.on("notificationremovedelayed",(function(t,e){var i=e.id;void 0!==a[i]&&a[i].data("removal-timer",setTimeout((function(){n.trigger("notificationremove",i)}),1e3*e.duration))})),n.on("notificationadded notificationupdated",(function(t,e){if("notification"in e){var i=e.notification,o=i.data("params"),a=i.data("removal-timer");if(clearTimeout(a),o.duration){var r={id:o.id,duration:o.duration};n.trigger("notificationremovedelayed",r)}}})),n.on("notificationaddflash",".flash",(function(){var e={type:t(this).attr("data-type"),message:t(this).text().trim()},i=t(this).attr("data-id");void 0!==i&&(e.id=i),n.trigger("notificationadd",e),t(this).remove()}))})),n.trigger("notificationsinit"),n.on("contentloaded",(function(e){t(e.target).find(".flash").trigger("notificationaddflash")}))}))}).call(this,n("EVdn"))}},[[3,0,1]]]);