text: /**
   * skylark-domx-plugins-repeaters - The skylark repeater plugin library
   * @author Hudaokeji, Inc.
   * @version v0.9.0
   * @link https://github.com/skylark-domx-plugins/skylark-domx-plugins-repeaters/
   * @license MIT
   */
  define(["skylark-langx/langx","skylark-domx-browser","skylark-domx-eventer","skylark-domx-noder","skylark-domx-geom","skylark-domx-query","../view-type-registry","./view-base"],function(e,t,s,i,a,l,n,r){var c=r.inherit({klassName:"LinearView",options:{alignment:"left",infiniteScroll:!1,itemRendered:null,noItemsHTML:"no items found",selectable:!1,viewClass:"repeater-linear",template:'<ul class="clearfix repeater-linear" data-container="true" data-infinite="true" data-preserve="shallow"></ul>',item:{template:'<li class="repeater-item"><img  src="{{ThumbnailImage}}" class="thumb"/><h4 class="title">{{name}}</h4></div>'}},_construct:function(e,t){r.prototype._construct.call(this,e,t)},clearSelectedItems:function(){this.$el.find(".selectable.selected").removeClass("selected")},getSelectedItems:function(){var e=[];return this.$el.find(".selectable.selected").each(function(){e.push(l(this))}),e},setSelectedItems:function(t,s){var i,a,n,r,c=this.options.selectable,o=this;function d(){if(r===t[i].index)return a=l(this),!1;r++}function m(){(a=l(this)).is(t[i].selector)&&h(a,t[i].selected)}function h(e,t){(t=void 0===t||t)?(s||"multi"===c||o.thumbnail_clearSelectedItems(),e.addClass("selected")):e.removeClass("selected")}for(e.isArray(t)||(t=[t]),n=!0===s||"multi"===c?t.length:c&&t.length>0?1:0,i=0;i<n;i++)void 0!==t[i].index?(a=l(),r=0,this.$el.find(".selectable").each(d),a.length>0&&h(a,t[i].selected)):t[i].selector&&this.$el.find(".selectable").each(m)},before:function(e){this.options.alignment;var t=this.$el=this.repeater.$canvas.find(`.${this.options.viewClass}`),s=(e.data,{});return t.length<1?(t=this.$el=l(this.options.template),s.item=t):s.action="none",s},renderItem:function(e){var t=this.options.selectable,s=this,i=this._create$Item(this.options.item.template,e.subset[e.index]);return i.data("item_data",e.data.items[e.index]),t&&(i.addClass("selectable"),i.on("click",function(){s.isDisabled||(i.hasClass("selected")?(i.removeClass("selected"),s.repeater.$().trigger("deselected.lark.repeaterList",i)):("multi"!==t&&s.repeater.$canvas.find(".repeater-linear .selectable.selected").each(function(){var e=l(this);e.removeClass("selected"),s.repeater.$().trigger("deselected.lark.repeaterList",e)}),i.addClass("selected"),s.repeater.$().trigger("selected.lark.repeaterList",i)))})),e.container.append(i),this.options.itemRendered&&this.options.itemRendered({container:e.container,item:$thumbnail,itemData:e.subset[e.index]},function(){}),!1}});return n.linear={name:"linear",ctor:c},c});
  //# sourceMappingURL=../sourcemaps/views/linear-view.js.map
  