PageSourceSearch

https://my.rapidmail.de/js/main/rs/container/Container.min.js?v=1790248977

js rapidmail.de collected 2026-09-24 18:41:10 UTC 6,488 bytes, 1 lines download raw bytes

1RS.declare("RS.container.Container",{isDomReady:!1,useExistingDom:!1,constructor:function(e){var t=this;t.callParent([$.extend({data:{},items:[],bodySelector:".x-container-body",templateRenderer:"mustache",autoRender:!1,isRendered:!1,isDestroyed:!1,template:function(){return'<div class="x-container-body'+(t.userCls?" "+t.userCls:"")+'"></div>'}},e)]),t.$mon=[],t.initComponent(),!0===t.autoRender&&t.render()},applyItemsConfig:function(e){var o=this,n=new RS.util.Collection({allowMove:!0});return n.on("beforeinsert",function(e,t,n,r){return!1!==o.onBeforeInsert(n,r)&&!1!==o.fireEvent("beforeinsert",n,r)}),n.on("insert",$.proxy(o.onCollectionItemInsert,o)),n.on("remove",function(e,t,n,r){if(!1===o.onBeforeRemove(n,r)||!o.fireEvent("beforeremove",r,n))return!1;o.onRemove(n,r),o.fireEvent("remove",r,n),n.isDestroyed||n.isDestroying||n.destroy()}),n.on("clear",function(e,t,n){$.each(n,function(e,t){t.destroy()})}),$.each(e,function(e,t){(t=o.createItemIf(t)).ref&&(o[t.ref]=t),t.ownerCt=o,n.add(t,t.itemId||t.$uniqueId)}),n},onCollectionItemInsert:function(e,t,n,r,o,i){var s=this;n.ownerCt=s,n.on("destroy",function(){s.items.removeByKey(n.itemId||n.$uniqueId),n.ref&&s[n.ref]&&delete s[n.ref]}),s.isRendered&&n.render(),void 0!==n.renderPosition&&n.renderPosition!==r&&(0===r?n.el.prependTo(s.body):n.el.insertAfter(s.items.getAt(r-1).el)),n.renderPosition=r,s.onInsert(n,r,i),s.fireEvent("insert",n,r,i)},initComponent:function(){var e=this;"array"===$.type(e.items)&&(e.items=e.applyItemsConfig(e.items||[])),e.el&&("string"===$.type(e.el)?e.el=(e.ownerCt?e.ownerCt.body.find:$)(e.el):e.el=$(e.el),e.useExistingDom=!0,e.body=e.el.find(e.bodySelector).first())},getRenderData:function(){return this.getData()},getData:function(){return $.extend({},this.ownerCt?this.ownerCt.getData():{},this.data)},add:function(e){return e=this.createItemIf(e),this.items.add(e,e.itemId||e.$uniqueId),e},onBeforeInsert:RS.emptyFn,insert:function(e,t){return t=this.createItemIf(t),this.items.insertAt(t,e,t.itemId||t.$uniqueId),t},onInsert:RS.emptyFn,getAt:function(e){return this.items.getAt(e)}
1,remove:function(e){return!1!==this.items.removeByKey("string"===$.type(e)?e:e.itemId||e.$uniqueId)},onBeforeRemove:RS.emptyFn,removeAt:function(e){this.items.removeAt(e)},onRemove:RS.emptyFn,clear:function(){this.items.clear()},size:function(){return this.items.getSize()},getRenderTarget:function(){var e=this,t=e.renderTo;return t?"string"===$.type(t)&&(e.ownerCt&&e.ownerCt.body||$.error("ownerCt or ownerCt.body not found"),t=e.ownerCt.body.find(t)):(e.ownerCt&&e.ownerCt.body||$.error("ownerCt or ownerCt.body not found"),t=e.ownerCt.body),t||$.error("No render target found!"),t},renderTemplate:function(){var e=this;return("mustache"===e.templateRenderer?$($.parseHTML($.trim(Mustache.render(e.template,e.getRenderData())))):"dot"===e.templateRenderer?("function"!==$.type(e.compiledTemplate)&&(e.compiledTemplate=window.doT.template(e.template)),$($.parseHTML($.trim(e.compiledTemplate(e.getRenderData()))))):$($.trim(e.template))).filter(function(){return this.nodeType===Node.ELEMENT_NODE})},insertIntoDom:function(e,t){return t.appendTo(e)},onBeforeRender:RS.emptyFn,findElement:function(e,t){return null===t||e.is(t)?e:e.find(t).first()},render:function(){var e=this;if(!e.isRendered){if(e.useExistingDom)null===e.bodySelector?e.body=e.el:(e.body=e.findElement(e.el,e.bodySelector),!(0<e.items.getSize())||e.body&&e.body.length||$.error("Container not found!")),e.renderChildren();else{if(!1===e.onBeforeRender()||!e.fireEvent("beforerender"))return;e.template?($.isFunction(e.template)&&(e.template=e.template.call(e)),e.el=e.insertIntoDom(e.getRenderTarget(),e.renderTemplate()),null===e.bodySelector?e.body=e.el:(e.body=e.findElement(e.el,e.bodySelector),e.body&&e.body.length||$.error("Container not found!"))):$.error("No template to render"),e.renderChildren(),e.isRendered=!0,e.fireEvent("afterrender"),e.onAfterRender()}e.isRendered=!0,e.attachDomListeners(),e.onDomReady(),e.fireEvent("domready"),e.isDomReady=!0}},attachDomListeners:function(){var n=this;n.domListeners&&$.each(n.domListeners,function(e,t){n.onDom(e,t.selector||"*",t.fn||t)})},onBeforeUpdate:RS.emptyFn,update:function(){var e=this;if(e.useExistingDom?$.error("Updating not supported for existing DOM"):0<e.items.getSize()&&$.error("Updating not supported for items with children"),e.isRendered){if(!1!==e.onBeforeUpdate()&&e.fireEvent("beforeupdate")){if(e.template){$.isFunction(e.template)&&(e.template=e.template.call(e));var t=e.renderTemplate(),n=e.el;1<n.length&&(n.slice(1).remove(),n=n.first()),n.replaceWith(t),e.el=t,null===e.bodySelector?e.body=e.el:(e.body=e.findElement(e.el,e.bodySelector),e.body&&e.body.length||$.error("Container not found!"))}else $.error("No template to render");e.fireEvent("update"),e.onUpdate()}}else e.render()},onUpdate:RS.emptyFn,renderChildren:function(){this.items.each(function(e){e.render()})},onAfterRender:RS.emptyFn,onDomReady:RS.emptyFn,onBeforeDestroy:RS.emptyFn,destroy:function(){if(!this.isDestroying)if(this.isDestroying=!0,!this.isDestroyed&&!1!==this.onBeforeDestroy()&&this.fireEvent("beforedestroy")){this.destroyChildren(),this.body&&(this.body=null);var e=this.el&&this.el.length;this.useExistingDom||!this.template||e||$.error("Template was rendered, but no element was found"),e&&(this.useExistingDom||this.el.remove(),delete this.el),this.compiledTemplate&&delete this.compiledTemplate,this.isRendered=!1,this.isDestroyed=!0,this.isDestroying=!1,this.clearMonitoredListeners(),this.onDestroy(),this.fireEvent("destroy")}else this.isDestroying=!1},destroyChildren:function(){this.items.each(function(e){e.destroy()},!0)},onDestroy:RS.emptyFn,mon:function(n,e,r){"array"!==$.type(e)&&(e=e.split(" "));var o=this;return $.each(e,function(e,t){n.on(t+"."+o.$uniqueId,r)}),o.$mon.push(n),this},clearMonitoredListeners:function(){var n=this;return $.each(n.$mon,function(e,t){t.off("."+n.$uniqueId)}),this},onDom:function(e,n,r){var o=this;return o.relayDomEvent(e),o.on(e,function(e){var t=$(e.relayedEvent.target);o.el&&(t.is(n)||t.parentsUntil(o.el.parent(),n).length)&&r.apply(r,arguments)}),o},relayDomEvent:function(e){var t=this,n=function(){t.el&&t.relayEvent(e,t.el)};t.$domEventRelayers=t.$domEventRelayers||[],-1===t.$domEventRelayers.indexOf(e)&&(t.$domEventRelayers.push(e),t.isRendered?n():t.one("afterrender",n),t.on("update",n))},createItemIf:function(e){return $.isPlainObject(e)?RS.create($.extend({},this.itemConfig||{},e)):e}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.