YUI.add("hermes-template-sub-photo-tags",function(e,a){var t=e.Template.Handlebars.revive({compiler:[7,">= 4.0.0"],main:function(e,a,t,l,r){var s=null!=a?a:{},n=t.helperMissing,u=e.escapeExpression;return u((t.outlet||a&&a.outlet||n).call(s,null!=a?a.tags:a,{name:"outlet",hash:{},data:r}))+"\n"+u((t.outlet||a&&a.outlet||n).call(s,null!=a?a.people:a,{name:"outlet",hash:{},data:r}))+'\n\n<div style="clear: both;"></div>'},useData:!0}),l={};e.Array.each([],function(a){var t=e.Template.get("hermes/"+a);t&&(l[a]=t)}),e.Template.register("hermes/sub-photo-tags",function(a,r){return r=r||{},r.partials=r.partials?e.merge(l,r.partials):l,t(a,r)})},"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("sub-photo-tags-view",function(e){e.FlickrView.create(this.name,e.FlickrView,[],{langBundles:this.details.langBundles,initializer:function(t){return this.photoId=t.photoId,this.context=e.clone(t.context,!0),""===this.get("container").get("innerHTML")&&this.setContainerHTML(""),this},subviewConfig:{"sub-photo-tags-tag-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,additionalViewClasses:[""]},"sub-photo-tags-people-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,additionalViewClasses:[""]}},loadState:function(){return e.Promise.resolve()},buildContainer:function(){return this.setContainerWithTemplate("sub-photo-tags",{tags:this.subviews["sub-photo-tags-tag-view"]?this.subviews["sub-photo-tags-tag-view"].get("container"):"",people:this.subviews["sub-photo-tags-people-view"]?this.subviews["sub-photo-tags-people-view"].get("container"):""}),this},activate:function(){var t=this;return this.registerEventHandler(e.on("flickr:photo-page:focus_person_tag_entry",function(e){t.subviews["sub-photo-tags-people-view"]&&(t.subviews["sub-photo-tags-people-view"].focus=!0,t.subviews["sub-photo-tags-people-view"].focusTag())})),this},onSubviewEvent:function(e,t){var s=this.get("container");"tagsTagView:tagsEmpty"===t[0]?s.addClass("tags-is-empty"):"tagsPeopleView:peopleEmpty"===t[0]?s.addClass("people-is-empty"):"tagsTagView:tagsNotEmpty"===t[0]?s.removeClass("tags-is-empty"):"tagsPeopleView:peopleNotEmpty"===t[0]&&s.removeClass("people-is-empty"),s.hasClass("tags-is-empty")&&s.hasClass("people-is-empty")&&s.addClass("is-empty"),!s.hasClass("is-empty")||"tagsTagView:tagsNotEmpty"!==t[0]&&"tagsPeopleView:peopleNotEmpty"!==t[0]||s.removeClass("is-empty")}})},"@VERSION@",{requires:["flickr-view","hermes-template-sub-photo-tags"],optional:[],langBundles:["common","photo-page-scrappy"]});