dojo._xdResourceLoaded(function(_1,_2,_3){return{depends:[["provide","organizer.ViewOrganizerListDefaultGroup"],["require","dijit._Widget"],["require","dijit._Templated"],["require","dijit._Container"],["require","organizer.ViewRow"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["organizer.ViewOrganizerListDefaultGroup"]){_4._hasResource["organizer.ViewOrganizerListDefaultGroup"]=true;_4.provide("organizer.ViewOrganizerListDefaultGroup");_4.require("dijit._Widget");_4.require("dijit._Templated");_4.require("dijit._Container");_4.require("organizer.ViewRow");_4.declare("organizer.ViewOrganizerListDefaultGroup",[_5._Widget,_5._Container,_5._Templated],{templateString:'<table class="boxTable" cellspacing="0" cellpadding="0" >\r\n\t<tbody dojoAttachPoint="defaultGroupListNode">\r\n\t\t<tr class="header">\r\n\t\t\t<th class="colA">${contentTypeFriendlyName} Name</th>\r\n\t\t\t<th class="colB">Date Added</th>\r\n\t\t\t<th class="colC">Add to ${contentTypeFriendlyName} Shopping list</th>\r\n\t\t\t<th class="colD">Print ${contentTypeFriendlyName}</th>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n',postCreate:function(){this.createSubordinates()},contentTypeFriendlyName:"Recipe",isCraftsView:true,contentTypeCode:"FFR",groupId:0,groupName:"",group:null,emptyListMainCaption:"You have no crafts in your shopping list.",emptyListSaveCaption:"Save crafts to print later",emptyListEasyWayCaption:"An easy way to plan activities",emptyListFinderLink:"/crafts/finder/",emptyListFinderLinkTitle:"Find Crafts",createSubordinates:function(){try{if(this.isCraftsView==false){this.emptyListMainCaption="You have no recipes in your shopping list.";this.emptyListSaveCaption="Save recipes to print later";this.emptyListEasyWayCaption="An easy way to plan menus";this.emptyListFinderLink="/recipes/finder/";this.emptyListFinderLinkTitle="Find Recipes"}var _7=null;if(_4.isArray(this.group.items)){_7=this.group.items}else{_7=new Array(1);_7[0]=this.group.items}var _8=null;var _9="";var _a=null;for(var i=0;i<_7.length;i++){_8=_7[i];_9="";if(i==_7.length-1){_9="last"}var _c="";if(_8.itemCreationDate!==undefined){_c=_8.itemCreationDate.substring(5,7)+"/"+_8.itemCreationDate.substring(8,10)+"/"+_8.itemCreationDate.substring(2,4)}var _d=_8.blurb;if(_d.length>140){var _e=_d.lastIndexOf(" ",140);if(_e==-1){_d=_d.substr(0,137)+"..."}else{_d=_d.substr(0,_e)+"..."}}var _f="";if(_8.imageAltTag!==undefined){_f=_8.imageAltTag}var _10="";if(_8.imageUrl!==undefined){_10=_8.imageUrl}_a=new organizer.ViewRow({averageRating:_8.averageRating,colStyle:_9,itemURL:_8.url,itemTitle:_8.title,itemBlurb:_d,itemCreationDate:_c,itemOnShoppingList:_8.onShoppingList,numberOfRatings:_8.numberOfRatings,itemId:_8.id,contentType:_8.contentType,groupName:_8.groupName,imageAltTag:_f,imageUrl:_10,groupId:this.groupId},null);this.defaultGroupListNode.appendChild(_a.domNode)}}catch(exception){}}})}}}})
