YUI.add("hermes-template-notification-item-moderated",function(e,t){var a=e.Template.Handlebars.revive({1:function(e,t,a,n,i){return"\t\t\t"+e.escapeExpression((a.intlHTMLMessage||t&&t.intlHTMLMessage||a.helperMissing).call(null!=t?t:{},{name:"intlHTMLMessage",hash:{learnUrl:"https://help.flickr.com/en_us/set-the-safety-levels-of-your-flickr-content-or-account-BJlsk6mjym",intlName:"notifications.NOTIF_PHOTO_MODERATED_RESTRICTED"},data:i}))+"\n"},3:function(e,t,a,n,i){return"\t\t\t"+e.escapeExpression((a.intlHTMLMessage||t&&t.intlHTMLMessage||a.helperMissing).call(null!=t?t:{},{name:"intlHTMLMessage",hash:{learnUrl:"https://help.flickr.com/en_us/set-the-safety-levels-of-your-flickr-content-or-account-BJlsk6mjym",intlName:"notifications.NOTIF_PHOTO_MODERATED_MODERATE"},data:i}))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,a,n,i){var s;return'<div class="details">\n\t<span class="headline">\n'+(null!=(s=a.if.call(null!=t?t:{},null!=t?t.isRestricted:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?s:"")+"\t</span>\n\n"+(null!=(s=e.invokePartial(n["notification-photo-extra-info"],t,{name:"notification-photo-extra-info",data:i,indent:"\t",helpers:a,partials:n,decorators:e.decorators}))?s:"")+"</div>\n"},usePartial:!0,useData:!0}),n={};e.Array.each(["notification-photo-extra-info"],function(t){var a=e.Template.get("hermes/"+t);a&&(n[t]=a)}),e.Template.register("hermes/notification-item-moderated",function(t,i){return i=i||{},i.partials=i.partials?e.merge(n,i.partials):n,a(t,i)})},"@VERSION@",{requires:["template-base","handlebars-base","hermes-template-notification-photo-extra-info"]});YUI.add("hermes-template-notification",function(e,n){var a=e.Template.Handlebars.revive({1:function(e,n,a,t,l){return" has-menu"},3:function(e,n,a,t,l){var i;return null!=(i=a.if.call(null!=n?n:{},null!=n?n.hasMenu:n,{name:"if",hash:{},fn:e.program(4,l,0),inverse:e.noop,data:l}))?i:""},4:function(e,n,a,t,l){return'\t\t<span class="notif-context-menu-caret"></span>\n'},compiler:[7,">= 4.0.0"],main:function(e,n,a,t,l){var i,r=null!=n?n:{},s=a.helperMissing;return'<div class="notification'+(null!=(i=a.if.call(r,null!=n?n.hasMenu:n,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.noop,data:l}))?i:"")+'">\n\t'+e.escapeExpression((a.outlet||n&&n.outlet||s).call(r,null!=n?n.notifTemplate:n,!1,{name:"outlet",hash:{},data:l}))+"\n\n"+(null!=(i=(a.isFlipped||n&&n.isFlipped||s).call(r,"enable-notif-caret",{name:"isFlipped",hash:{},fn:e.program(3,l,0),inverse:e.noop,data:l}))?i:"")+"</div>"},useData:!0}),t={};e.Array.each([],function(n){var a=e.Template.get("hermes/"+n);a&&(t[n]=a)}),e.Template.register("hermes/notification",function(n,l){return l=l||{},l.partials=l.partials?e.merge(t,l.partials):t,a(n,l)})},"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("notification-view",function(t,e){var i=require("hermes-core/flog")(e);t.flutil;t.namespace("Views")[this.name]=t.Base.create("notification-view",t.FlickrView,[],{langBundles:this.details.langBundles,initializer:function(t){return this.notifId=t.id,this.object=t.object,this.objectType=t.objectType,this.subevents=t.events,this.isMuted=t.isMuted,this.notifModel=t.notifModel,this},loadState:function(){var e=this,i=[this.appContext.getModelRegistry("photo-group-invitations-models").then(function(t){e.invitationsModelRegistry=t})];return t.Promise.all(i)},buildContainer:function(){var t={params:{object:this.object,type:this.objectType,event:this.subevents[0],subCount:this.subevents.length-1,viewer:this.appContext.getViewer(),eventCount:this.subevents.length,events:this.subevents,hasMenu:!0},templateName:"",photoTemplateName:null};switch(t.params.type){case"photo":this.handlePhotoNotificationType(t);break;case"person":this.handlePersonNotificationType(t);break;case"group":this.handleGroupNotificationType(t);break;case"discussion":this.handleDiscussionNotificationType(t);break;case"gallery":this.handleGalleryNotificationType(t);break;case"flickrmail":this.handleFlickrMailNotificationType(t);break;case"testimonial":this.handleTestimonialNotificationType(t);break;default:return}return t.photoTemplateName&&(t.params.details=this.templates(t.photoTemplateName)(t.params),t.templateName="notification-photo-shell"),t.params.notifTemplate=this.templates(t.templateName)(t.params),this.setContainerWithTemplate("notification",t.params),this},handlePhotoNotificationType:function(t){for(var e=0;e<t.params.events.length;e++)t.params.events[e].owner.url="/photos/"+t.params.events[e].owner.pathAlias||t.params.events[e].owner.id;switch("group-invite"!==t.params.event.type&&(t.params.people=this.getEventOwners(t.params.events),t.params.peopleCount=t.params.people.length,t.params.subPeopleCount=t.params.people.length-1),t.params.event.type){case"comment":t.photoTemplateName="notification-photo-comment";break;case"fave":t.photoTemplateName="notification-photo-fave";break;case"gallery":t.templateName="notification-added-to-gallery";break;case"people":t.photoTemplateName="notification-person",t.params.object.owner.isMe||(t.params.hasMenu=!1);break;case"tag":t.photoTemplateName="notification-tag";break;case"photo_comment_mention":t.photoTemplateName="notification-mention";break;case"group_invite":t.params.groups=this.getEventGroups(t.params.events),t.params.groupsCount=t.params.groups.length,t.params.subGroupsCount=t.params.groups.length-1,t.templateName="notification-photo-group-invite";break;case"note":t.photoTemplateName="notification-photo-note";break;case"share":t.photoTemplateName="notification-photo-share",t.params.hasMenu=!1;break;case"photo_bot_moderated":t.photoTemplateName="notification-item-moderated",t.params.hasMenu=!1,t.params.isRestricted=2===t.params.event.toSafetyLevel,t.params.object.url+="?isModerated=true";break;default:return}},handlePersonNotificationType:function(t){if(t.params.event)switch(t.params.event.type){case"contacted":t.params.event.owner.url="/photos/"+t.params.event.owner.pathAlias||t.params.event.owner.id,t.templateName="notification-person-follow";break;case"friend_join":t.templateName="notification-friend-join";break;case"upload":t.templateName="notification-person-upload";break;default:return}t.params.hasMenu=!1},handleGroupNotificationType:function(t){t.params.event&&"group_user_invite"===t.params.event.type&&(t.templateName="notification-group-invite",t.params.hasMenu=!1)},handleDiscussionNotificationType:function(t){if(t.params.event)switch(t.params.event.type){case"group_topic_new":t.templateName="notification-group-topic-new",t.params.hasMenu=!1;break;case"topic_reply":case"reply_reply":t.params.people=this.getEventOwners(t.params.events),t.params.peopleCount=t.params.people.length,t.params.subPeopleCount=t.params.people.length-1,t.params.replyUrl=t.params.object.url+"/"+t.params.event.replyId,t.templateName="notification-group-discussion-reply";break;default:return}},handleGalleryNotificationType:function(t){t.params.event&&"comment"===t.params.event.type&&(t.params.people=this.getEventOwners(t.params.events),t.params.peopleCount=t.params.people.length,t.params.subPeopleCount=t.params.people.length-1,t.templateName="notification-gallery-comment")},handleFlickrMailNotificationType:function(t){t.params.event&&"flickrmail"===t.params.event.type&&(t.templateName="notification-flickrmail"),t.params.hasMenu=!1},handleTestimonialNotificationType:function(t){t.params.event&&"testimonial"===t.params.event.type&&(t.templateName="notification-testimonial"),t.params.hasMenu=!1},activate:function(){var t=this.subevents[0],e={type:this.objectType,id:this.object.id,eventType:t.type,latestTimestamp:t.timestamp,isMuted:this.isMuted},i=this.get("container");return this.notificationsList=i.ancestor(".notifications-list"),this.listItem=i.ancestor("li.notification-list-item"),this.ctxMenuArrow=i.one(".notif-context-menu-caret"),this.notification=this.listItem.one(".notification"),this.ctxMenuArrow&&this.registerEventHandler(this.ctxMenuArrow.on("click",this.handleContextArrowClick.bind(this))),this.ctxMenu||(i.appendChild(this.templates("notification-context-menu")({})),this.ctxMenu=i.one(".notification-context-menu")),this.turnOffOption=this.ctxMenu.one(".turn-off-object-option"),this.turnOnOption=this.ctxMenu.one(".turn-on-object-option"),this.turnOffOption&&this.registerEventHandler(this.turnOffOption.on("click",this.handleMuteObjectClick.bind(this,e,!0))),this.turnOnOption&&this.registerEventHandler(this.turnOnOption.on("click",this.handleMuteObjectClick.bind(this,e,!1))),e.isMuted?(this.turnOffOption.addClass("hidden"),this.turnOnOption.removeClass("hidden"),this.notification.addClass("muted")):(this.turnOnOption.addClass("hidden"),this.turnOffOption.removeClass("hidden")),"group_invite"===t.type&&(this.actionContainer=i.one(".action-container"),this.acceptButton=this.actionContainer.one(".button.accept"),this.declineButton=this.actionContainer.one(".button.decline"),this.registerEventHandler(this.acceptButton.on("click",this.handleGroupInviteAcceptClick.bind(this))),this.registerEventHandler(this.declineButton.on("click",this.handleGroupInviteDeclineClick.bind(this)))),this.registerEventHandler(i.on("click",this.handleAnalyticsClicks.bind(this))),this},getTaggedPeople:function(t){for(var e=[],i=0;i<t.length;i++){for(var n=t[i],o={id:n.personTagged.id,name:n.personTagged.displayname,url:n.personTagged.profileURL},a=!1,s=0;s<e.length;s++)if(e[s].id===o.id){a=!0;break}a||e.push(o)}return e},getEventOwners:function(t){for(var e=[],i=0;i<t.length;i++){for(var n=t[i],o={id:n.owner.id,name:n.owner.displayname,url:n.owner.profileURL},a=!1,s=0;s<e.length;s++)if(e[s].id===o.id){a=!0;break}a||e.push(o)}return e},getEventGroups:function(t){for(var e=[],i=0;i<t.length;i++){for(var n=t[i],o={id:n.group.id,title:n.group.title,url:n.group.url,iconUrl:n.group.bestIconURL},a=!1,s=0;s<e.length;s++)if(e[s].id===o.id){a=!0;break}a||e.push(o)}return e},handleContextArrowClick:function(t){this.toggleContextMenu()},toggleContextMenu:function(){this.listItem.hasClass("expanded")?this.listItem.removeClass("expanded"):(this.notificationsList.all(".notification-list-item.expanded").each(function(t){t.removeClass("expanded")}),this.listItem.addClass("expanded"),this.ctxMenu.removeClass("fast-close"))},handleMuteObjectClick:function(t,e,i){var n=this,o={};o.object_type=t.type,o.object_id=t.id,o.event_type=t.eventType,o.mute_after=t.latestTimestamp,e?(n.turnOffOption.addClass("disabled"),this.notifModel.remoteUpdateMutedObjects(o,this.appContext).then(function(t){n.turnOffOption.addClass("hidden"),n.turnOffOption.removeClass("disabled"),n.turnOnOption.removeClass("hidden"),n.notification.addClass("muted"),n.toggleContextMenu()},function(t){n.turnOffOption.removeClass("disabled")})):(n.turnOnOption.addClass("disabled"),this.notifModel.remoteUpdateUnmutedObjects(o,this.appContext).then(function(t){n.turnOnOption.addClass("hidden"),n.turnOnOption.removeClass("disabled"),n.turnOffOption.removeClass("hidden"),n.notification.removeClass("muted"),n.listItem.hasClass("expanded")&&n.toggleContextMenu()},function(t){n.turnOnOption.removeClass("disabled")})),n.ctxMenu.addClass("fast-close")},handleGroupInviteAcceptClick:function(t){var e=this;return this.actionContainer.addClass("loading"),this.invitationsModelRegistry.remote.acceptInvitation({groupID:e.subevents[0].group.id,userID:e.appContext.getViewer().nsid,photoID:e.object.id},e.appContext).then(function(t){return e.actionContainer.removeClass("loading"),e.actionContainer.addClass("accepted"),e.removeNotification(),t}).catch(function(t){throw i.error("Error accepting invite to group",{err:t}),e.actionContainer.removeClass("loading"),t})},handleGroupInviteDeclineClick:function(t){var e=this;return this.actionContainer.addClass("loading"),this.invitationsModelRegistry.remote.declineInvitation({groupID:e.subevents[0].group.id,userID:e.appContext.getViewer().nsid,photoID:e.object.id},e.appContext).then(function(t){return e.actionContainer.removeClass("loading"),e.actionContainer.addClass("declined"),e.removeNotification(),t}).catch(function(t){throw i.error("Error declining invite to group",{err:t}),e.actionContainer.removeClass("loading"),t})},removeNotification:function(){var t=this,e=this.notifModel.getValue("notifications").getList();e=e.filter(function(e){return t.notifModel.getValue("notifications").remove({id:e.id}),t.notifId!==e.id}),this.notifModel.getValue("notifications").concat(e)},handleAnalyticsClicks:function(e){var i=e.target,n=this.subevents[0].type;i.ancestor(".headline",!0)&&"A"===i.get("tagName").toUpperCase()?t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Headline Click"):i.ancestor(".photo-thumb",!0)?t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Photo Thumb Click"):i.ancestor(".avatar",!0)&&!i.ancestor(".photo-thumb",!0)?t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Avatar Click"):i.ancestor(".notif-context-menu-caret",!0)?t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Context Menu Click"):i.ancestor(".notification-context-option.turn-off-object-option",!0)?t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Mute Click"):i.ancestor(".notification-context-option.turn-on-object-option",!0)&&t.Analytics.sendClick("Notification Event Type: "+n,"Legacy Notification Unmute Click")}})},"@VERSION@",{requires:["flickr-view","flickr-promise","hermes-template-notifications","hermes-template-notification-photo-comment","hermes-template-notification-group-invite","hermes-template-notification-added-to-gallery","hermes-template-notification-photo-fave","hermes-template-notification-photo-shell","hermes-template-notification-person-follow","hermes-template-notification-person-upload","hermes-template-notification-tag","hermes-template-notification-person","hermes-template-notification-mention","hermes-template-notification-photo-group-invite","hermes-template-notification-photo-extra-info","hermes-template-notification-photo-note","hermes-template-notification-photo-share","hermes-template-notification-group-discussion-reply","hermes-template-notification-gallery-comment","hermes-template-notification-friend-join","hermes-template-notification-group-topic-new","hermes-template-notification-flickrmail","hermes-template-notification-testimonial","hermes-template-notification-context-menu","hermes-template-notification-item-moderated","hermes-template-notification"],langBundles:["common","relative-dates","notifications"]});YUI.add("hermes-lang-relative-dates",function(_,T){_.Intl.add("hermes/relative-dates","en-US",{SECOND_LONG:["1 second"],SECONDS_LONG:["${time}"," seconds"],MINUTE_LONG:["1 min"],MINUTES_LONG:["${time}"," mins"],HOUR_LONG:["1 hour"],HOURS_LONG:["${time}"," hours"],DAY_LONG:["1 day"],DAYS_LONG:["${time}"," days"],MONTH_LONG:["1 month"],MONTHS_LONG:["${time}"," months"],YEAR_LONG:["1 year"],YEARS_LONG:["${time}"," years"],SECOND_SHORT:["1s"],SECONDS_SHORT:["${time}","s"],MINUTE_SHORT:["1m"],MINUTES_SHORT:["${time}","m"],HOUR_SHORT:["1h"],HOURS_SHORT:["${time}","h"],DAY_SHORT:["1d"],DAYS_SHORT:["${time}","d"],MONTH_SHORT:["1mo"],MONTHS_SHORT:["${time}","mo"],YEAR_SHORT:["1y"],YEARS_SHORT:["${time}","y"],SECOND_LONG_FUTURE:["in 1 second"],SECONDS_LONG_FUTURE:["in ","${time}"," seconds"],MINUTE_LONG_FUTURE:["in 1 min"],MINUTES_LONG_FUTURE:["in ","${time}"," mins"],HOUR_LONG_FUTURE:["in 1 hour"],HOURS_LONG_FUTURE:["in ","${time}"," hours"],DAY_LONG_FUTURE:["in 1 day"],DAYS_LONG_FUTURE:["in ","${time}"," days"],MONTH_LONG_FUTURE:["in 1 month"],MONTHS_LONG_FUTURE:["in ","${time}"," months"],YEAR_LONG_FUTURE:["in 1 year"],YEARS_LONG_FUTURE:["in ","${time}"," years"],FUTURE_SHORT_FUTURE:["in ","${time}"],SECOND_SHORT_FUTURE:["in 1s"],SECONDS_SHORT_FUTURE:["in ","${time}","s"],MINUTE_SHORT_FUTURE:["in 1m"],MINUTES_SHORT_FUTURE:["in ","${time}","m"],HOUR_SHORT_FUTURE:["in 1h"],HOURS_SHORT_FUTURE:["in ","${time}","h"],DAY_SHORT_FUTURE:["in 1d"],DAYS_SHORT_FUTURE:["in ","${time}","d"],MONTH_SHORT_FUTURE:["in 1mo"],MONTHS_SHORT_FUTURE:["in ","${time}","mo"],YEAR_SHORT_FUTURE:["in 1y"],YEARS_SHORT_FUTURE:["in ","${time}","y"],SECOND_LONG_PAST:["1 second ago"],SECONDS_LONG_PAST:["${time}"," seconds ago"],MINUTE_LONG_PAST:["1 min ago"],MINUTES_LONG_PAST:["${time}"," mins ago"],HOUR_LONG_PAST:["1 hour ago"],HOURS_LONG_PAST:["${time}"," hours ago"],DAY_LONG_PAST:["1 day ago"],DAYS_LONG_PAST:["${time}"," days ago"],MONTH_LONG_PAST:["1 month ago"],MONTHS_LONG_PAST:["${time}"," months ago"],YEAR_LONG_PAST:["1 year ago"],YEARS_LONG_PAST:["${time}"," years ago"],SECOND_SHORT_PAST:["1s ago"],SECONDS_SHORT_PAST:["${time}","s ago"],MINUTE_SHORT_PAST:["1m ago"],MINUTES_SHORT_PAST:["${time}","m ago"],HOUR_SHORT_PAST:["1h ago"],HOURS_SHORT_PAST:["${time}","h ago"],DAY_SHORT_PAST:["1d ago"],DAYS_SHORT_PAST:["${time}","d ago"],MONTH_SHORT_PAST:["1mo ago"],MONTHS_SHORT_PAST:["${time}","mo ago"],YEAR_SHORT_PAST:["1y ago"],YEARS_SHORT_PAST:["${time}","y ago"],NO_DATE:["-"]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-lang-notifications",function(e,o){e.Intl.add("hermes/notifications","en-US",{NOTIF_PHOTO_FAVE:["<a href='","${ownerUrl}","'>","${owner}","</a> faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_FAVE_MULTI:[{type:"plural",valueName:"count",options:{one:["<a href='","${ownerUrl}","'>","${owner}","</a> and <a href='","${secondUrl}","'>","${secondOwner}","</a> faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:["<a href='","${ownerUrl}","'>","${owner}","</a> and ","${count}"," others faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_PERSON_FOLLOW:["<a href='","${ownerUrl}","'>","${owner}","</a> is now following you!"],NOTIF_PHOTO_COMMENT_YOURS:['<a href="',"${personUrl}",'">',"${personName}","</a> commented on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_COMMENT_YOURS_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${firstPersonUrl}",'">',"${firstPersonName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a> commented on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:['<a href="',"${firstPersonUrl}",'">',"${firstPersonName}","</a> and ","${count}"," others commented on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_PHOTO_COMMENT_OTHER:['<a href="',"${personUrl}",'">',"${personName}",'</a> commented on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_COMMENT_OTHER_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${firstPersonUrl}",'">',"${firstPersonName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}",'</a> commented on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:['<a href="',"${firstPersonUrl}",'">',"${firstPersonName}","</a> and ","${count}",' others commented on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_MENTION:['<a href="',"${personUrl}",'">',"${personName}","</a> mentioned you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_MENTION_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}}," mentioned you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_GROUP_INVITE:["<a href='","${ownerUrl}","'>","${owner}","</a> invited you to add your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," to the group <a href='","${groupUrl}","'>","${groupName}","</a>."],NOTIF_PHOTO_GROUP_INVITE_MULTI:["You've been invited to add your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," to the ",{type:"plural",valueName:"count",options:{one:["groups <a href='","${groupUrl}","'>","${groupName}","</a> and <a href='","${secondGroupUrl}","'>","${secondGroupName}","</a>"],other:["group <a href='","${groupUrl}","'>","${groupName}","</a> and ","${count}"," other groups"]}},"."],NOTIF_GROUP_USER_INVITE:["You've been invited to join the group <a href=\"","${groupUrl}",'">',"${groupName}","</a>."],NOTIF_TAGS:['<a href="',"${personUrl}",'">',"${personName}","</a> tagged your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_TAGS_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}}," tagged your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_GALLERY:["Your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},' was added to the gallery <a href="',"${galleryUrl}",'">',"${galleryName}","</a>."],NOTIF_GALLERY_MULTI:["Your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," was added to the ",{type:"plural",valueName:"count",options:{one:['galleries <a href="',"${galleryUrl}",'">',"${galleryName}",'</a> and <a href="',"${secondGalleryUrl}",'">',"${secondGalleryName}","</a>"],other:['gallery <a href="',"${galleryUrl}",'">',"${galleryName}","</a> and ","${count}"," other galleries"]}},"."],NOTIF_ADD_PERSON:['<a href="',"${personUrl}",'">',"${personName}","</a> tagged people in your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_ADD_PEOPLE:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}}," tagged people in your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_ADD_ME:['<a href="',"${ownerUrl}",'">',"${ownerName}","</a> tagged you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_NOTES:['<a href="',"${personUrl}",'">',"${personName}","</a> left a note on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_NOTES_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}}," left notes on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_NOTES_OTHER:['<a href="',"${personUrl}",'">',"${personName}",'</a> left a note on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> photo."],NOTIF_NOTES_OTHER_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}",'</a> left notes on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> photo."],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}",' others left notes on <a href="',"${ownerUrl}",'">',"${ownerName}","'s</a> photo."]}}],NOTIF_VIEW_RECENT_ACTIVITY:["View Recent Activity"],NOTIFICATIONS:["Notifications"],NOTIF_SHARE:['<a href="',"${personUrl}",'">',"${personName}","</a> shared a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," with you."],FLICKR_MAIL_COUNT_PAREN:["(","${count}",")"],FLICKR_GROUP_DISCUSSION_REPLY:['<a href="',"${personUrl}",'">',"${personName}",'</a> replied to the discussion <a href="',"${replyUrl}",'">',"${objectTitle}",'</a> in the group <a href="',"${groupUrl}",'">',"${groupName}","</a>."],FLICKR_GROUP_DISCUSSION_REPLY_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}},' replied to the discussion <a href="',"${replyUrl}",'">',"${objectTitle}",'</a> in the group <a href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_GROUP_DISCUSSION_REPLY:['<a href="',"${personUrl}",'">',"${personName}",'</a> replied to the discussion <a href="',"${replyUrl}",'">',"${objectTitle}",'</a> in the group <a href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_GROUP_DISCUSSION_REPLY_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}","</a>"],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}"," others"]}},' replied to the discussion <a href="',"${replyUrl}",'">',"${objectTitle}",'</a> in the group <a href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_ONBOARDING_TITLE:["NEW — Notification Center"],NOTIF_ONBOARDING_DESCRIPTION:["Here, you'll find notifications of your recent activity on Flickr. This includes easy access to <a href=\"/mail\">FlickrMail</a>. We think you'll enjoy what we've built so far."],NOTIF_GALLERY_COMMENT:['<a href="',"${personUrl}",'">',"${personName}",'</a> commented on your gallery <a href="',"${objectUrl}",'">',"${objectName}","</a>."],NOTIF_GALLERY_COMMENT_MULTI:[{type:"plural",valueName:"count",options:{one:['<a href="',"${personUrl}",'">',"${personName}",'</a> and <a href="',"${secondPersonUrl}",'">',"${secondPersonName}",'</a> commented on your gallery <a href="',"${objectUrl}",'">',"${objectName}","</a>."],other:['<a href="',"${personUrl}",'">',"${personName}","</a> and ","${count}",' others commented on your gallery <a href="',"${objectUrl}",'">',"${objectName}","</a>."]}}],NOTIF_FRIEND_JOIN:['Your friend <a href="',"${personUrl}",'">',"${personName}","</a> joined Flickr!"],NOTIF_NEW_GROUP_DISCUSSION:['<a href="',"${personUrl}",'">',"${personName}",'</a> created the discussion <a href="',"${discussionUrl}",'">',"${discussionName}",'</a> in the group <a href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_FLICKRMAIL:['<a href="',"${personUrl}",'">',"${personName}",'</a> sent you a message: <a href="',"${mailUrl}",'">“',"${mailTitle}","”</a>"],NOTIF_TURN_OFF_OBJECT:["Turn off notifications for this post"],NOTIF_TURN_ON_OBJECT:["Turn on notifications for this post"],NOTIF_HIDE_THIS:["Hide this notification"],NOTIF_NOTHING_HERE:["When you have new notifications, they’ll appear here."],NOTIF_OFF_FOR_POST:["Notifications for this post are off."],NOTIF_UNDO:["Undo"],NOTIF_TESTIMONIAL:['<a href="',"${personUrl}",'">',"${personName}",'</a> wrote you a <a href="',"${testimonialUrl}",'">testimonial</a>.'],GROUP_INVITE_ACCEPT:["Accept invite"],GROUP_INVITE_NO_THANKS:["No thanks"],GROUP_INVITE_ACCEPTED:["Invite accepted"],GROUP_INVITE_DECLINED:["Invite declined"],FLICKRMAIL_HAS_MOVED:['FlickrMail has moved to your settings menu! <a class="open-account-droparound-button" role="button" >Open menu</a>'],NOTIF_1_PERSON_FAVED_X_PHOTOS:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> faved ","${photoCountString}"," ",{type:"select",valueName:"mediaType",options:{photo:["photos"],video:["videos"],other:["photos"]}},"."],NOTIF_1_PERSON_FAVED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> faved <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_X_PEOPLE_FAVED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others faved <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_2_PEOPLE_FAVED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> faved <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_COMMENTED_X_PHOTOS:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> commented on ","${photoCountString}"," ",{type:"select",valueName:"mediaType",options:{photo:["photos"],video:["videos"],other:["photos"]}},"."],NOTIF_1_PERSON_COMMENTED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> commented on your photo: <a class="comment-link" href="',"${commentUrl}",'">“',"${commentContent}","”</a>"],NOTIF_X_PEOPLE_COMMENTED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others commented on <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_2_PEOPLE_COMMENTED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> commented on <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_FOLLOWED_YOU:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> is now following you!"],NOTIF_X_PEOPLE_FOLLOWED_YOU:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}"," others are now following you!"],NOTIF_2_PEOPLE_FOLLOWED_YOU:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}","</a> are now following you!"],NOTIF_1_PERSON_LEFT_NOTE_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> left a note on your photo: <a class="note-link" href="',"${noteUrl}",'">“',"${noteContent}","”</a>"],NOTIF_X_PEOPLE_LEFT_NOTE_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others left notes on <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_2_PEOPLE_LEFT_NOTE_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> left notes on <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_TAGGED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> tagged your photo with <a class="tag-link" href="',"${tagUrl}",'">“',"${tagName}","”</a>."],NOTIF_X_PEOPLE_TAGGED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others tagged <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_2_PEOPLE_TAGGED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> tagged <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_TESTIMONIAL:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> wrote you a testimonial: <a class="testimonial-link" href="',"${testimonialUrl}",'">“',"${testimonialContent}","”</a>"],NOTIF_1_PERSON_FLICKRMAIL:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> sent you a message: <a class="flickrmail-link" href="',"${flickrmailUrl}",'">“',"${flickrmailContent}","”</a>"],NOTIF_1_PERSON_COMMENT_MENTIONED_YOU_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> mentioned you in a comment: <a class="comment-link" href="',"${commentUrl}",'">“',"${commentContent}","”</a>"],NOTIF_X_PEOPLE_COMMENT_MENTIONED_YOU_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others mentioned you in <a class="comments-link" href="',"${commentsUrl}",'">comments</a>.'],NOTIF_2_PEOPLE_COMMENT_MENTIONED_YOU_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> mentioned you in <a class="comments-link" href="',"${commentsUrl}",'">comments</a>.'],NOTIF_1_PERSON_ADDED_1_PHOTO_TO_GALLERY:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> added your photo to the gallery <a class="gallery-link" href="',"${galleryUrl}",'">',"${galleryTitle}","</a>."],NOTIF_X_PEOPLE_ADDED_1_PHOTO_TO_GALLERIES:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}"," others added your photo to galleries."],NOTIF_2_PEOPLE_ADDED_1_PHOTO_TO_GALLERIES:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}","</a> added your photo to galleries."],NOTIF_1_PERSON_COMMENTED_ON_1_GALLERY:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> commented on your gallery <a class="gallery-link" href="',"${galleryUrl}",'">',"${galleryTitle}",'</a>: <a class="comment-link" href="',"${commentUrl}",'">“',"${commentContent}","”</a>"],NOTIF_X_PEOPLE_COMMENTED_ON_1_GALLERY:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others commented on your gallery <a class="gallery-link" href="',"${galleryUrl}",'">',"${galleryTitle}","</a>."],NOTIF_2_PEOPLE_COMMENTED_ON_1_GALLERY:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> commented on your gallery <a class="gallery-link" href="',"${galleryUrl}",'">',"${galleryTitle}","</a>."],NOTIF_1_PERSON_SHARED_1_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> shared the photo <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a> with you."],NOTIF_1_PERSON_INVITED_1_PHOTO_TO_GROUP:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> invited you to add your photo to the group <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_1_PERSON_INVITED_YOU_TO_GROUP:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> invited you to the group <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_1_PERSON_CREATED_TOPIC:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> created the topic <a class="topic-link" href="',"${topicUrl}",'">',"${topicName}","</a>."],NOTIF_X_PEOPLE_CREATED_TOPICS:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others created the topic <a class="topics-link" href="',"${topicsUrl}",'">new discussion topics</a>.'],NOTIF_2_PEOPLE_CREATED_TOPICS:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> created the topic <a class="topics-link" href="',"${topicsUrl}",'">new discussion topics</a>.'],NOTIF_1_PERSON_REPLIED_TO_TOPIC:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> replied to <a class="topic-link" href="',"${topicUrl}",'">',"${topicName}",'</a>:  <a class="reply-link" href="',"${replyUrl}",'">“',"${replyContent}","”</a>"],NOTIF_X_PEOPLE_REPLIED_TO_TOPIC:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others replied to <a class="topic-link" href="',"${topicUrl}",'">',"${topicName}","</a>."],NOTIF_2_PEOPLE_REPLIED_TO_TOPIC:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> replied to <a class="topic-link" href="',"${topicUrl}",'">',"${topicName}","</a>."],NOTIF_GROUP_ADMIN_APPROVED_1_PHOTO:['An admin approved your photo for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_GROUP_ADMIN_APPROVED_X_PHOTOS:["An admin approved ","${photoCountString}",' photos for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_GROUP_ADMIN_REJECTED_1_PHOTO:['An admin rejected your photo for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_GROUP_ADMIN_REJECTED_X_PHOTOS:["An admin rejected ","${photoCountString}",' photos for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}","</a>."],NOTIF_CONTACT_UPLOAD:['Your contact <a href="',"${personUrl}",'">',"${personName}","</a> uploaded new photos."],NOTIF_PHOTO_MODERATED_MODERATE:['The Flickr Moderation Bot 🤖 changed your photo to Moderate. <a class="learn-link" href="',"${learnUrl}",'">Learn more</a>.'],NOTIF_PHOTO_MODERATED_RESTRICTED:['The Flickr Moderation Bot 🤖 changed your photo to Restricted. <a class="learn-link" href="',"${learnUrl}",'">Learn more</a>.'],GROUPS_YOU_ADMIN:["Groups You Admin"],NOTIF_FILTER_ALL:["All notifications"],NOTIF_FILTER_COMMENTS:["Comments"],NOTIF_FILTER_FAVES:["Faves"],NOTIF_FILTER_FOLLOWERS:["Followers"],NOTIF_FILTER_GALLERIES:["Galleries"],NOTIF_FILTER_GROUPS:["Groups"],NOTIF_FILTER_FLICKRMAIL:["Messages (FlickrMail)"],NOTIF_FILTER_NOTES:["Notes"],NOTIF_FILTER_TAGS:["Tags"],NOTIF_FILTER_TESTIMONIALS:["Testimonials"],NOTIF_FILTER_MUTED:["Muted notifications"],NOTIF_FILTER_ADMIN_ALL_GROUPS:["All groups"],TESTIMONIAL_APPROVED:["Testimonial approved"],TESTIMONIAL_REJECTED:["Testimonial rejected"],INVITATION_ACCEPTED:["Invitation accepted"],INVITATION_DECLINED:["Invitation declined"],VIEW_ALL_NOTIFICATIONS:["View all notifications"],MUTE_THIS_NOTIFICATION:["Mute this notification"],UNMUTE_THIS_NOTIFICATION:["Unmute this notification"],NOTIF_1_PERSON_UPDATED_GROUP_BLAST:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> updated the admin blast for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}",'</a>: <a class="blast-link" href="',"${blastUrl}",'">“',"${blastContent}","”</a>."],NOTIF_1_PERSON_UPDATED_GROUP_RULES:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> updated the group rules for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}",'</a>: <a class="blast-link" href="',"${rulesUrl}",'">“',"${rulesContent}","”</a>."],NOTIF_1_PERSON_UPDATED_GROUP_DESCRIPTION:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> updated the group description for <a class="group-link" href="',"${groupUrl}",'">',"${groupName}",'</a>: <a class="blast-link" href="',"${descriptionUrl}",'">“',"${descriptionContent}","”</a>."],NOTIF_1_PERSON_TAGGED_1_PERSON_IN_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> tagged <a class="tagged-person-link" href="',"${taggedPersonUrl}",'">',"${taggedPersonName}",'</a> in <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_TAGGED_PEOPLE_IN_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> tagged people in <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_X_PEOPLE_TAGGED_PEOPLE_IN_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}","</a> and ","${personCountString}",' others tagged people in <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_2_PEOPLE_TAGGED_PEOPLE_IN_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> and <a class="person-2-link" href="',"${person2Url}",'">',"${person2Name}",'</a> tagged people in <a class="photo-link" href="',"${photoUrl}",'">“',"${photoTitle}","”</a>."],NOTIF_1_PERSON_TAGGED_YOU_IN_PHOTO:['<a class="person-link" href="',"${personUrl}",'">',"${personName}",'</a> tagged you in a <a class="photo-link" href="',"${photoUrl}",'">',{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"</a>."]})},"@VERSION@",{requires:["intl"]});YUI.add("flickr-galleries-comments-addComment-creator",function(e,t){"use strict";e.namespace("ModelCreators")["flickr-galleries-comments-addComment"]={run:function(n,r){var o=this;return e.Promise.all([r.callAPI("flickr.galleries.comments.addComment",this._processParams(n)),r.getModelRegistry("person-models"),r.getModelRegistry("gallery-comment-models"),r.getModel("gallery-info-models",n.galleryId)]).then(function(e){return o._processResponse(e,n,r)},e.FetcherErrorLogger(t))},_processParams:function(e){return{gallery_id:e.galleryId,comment_text:e.commentText,user_id:e.galleryOwnerId,extras:"full_response, expand_bbml"}},_processResponse:function(e,t,n){var r,o,m,a=e[0],l=(e[1],e[2]),s=e[3],c=a.comment;return c.secureComment&&(o="string"==typeof c.secureComment?c.secureComment:c.secureComment.content),o||(o=c.content||c.comment),c.rawComment&&(m="string"==typeof c.rawComment?c.rawComment:c.rawComment.content),m||(m=c.content||c.comment),n.getModel("person-models",t.authorId).then(function(e){return r=l.addOrUpdate({id:c.commentId,galleryId:c.galleryId,galleryOwnerId:c.galleryOwnerId,author:e,authorUsername:c.authorname,authorId:c.author,date:c.dateCreate,permalink:c.permalink,content:c.content,contentSecure:o,contentRaw:m}),s.getValue("comments").unshift(r),s.getValue("comments").totalItems++,s.setValue("commentCount",s.getValue("commentCount")+1),r})}}},"@VERSION@",{requires:["flickr-promise"],optional:[]});YUI.add("flickr-galleries-comments-deleteComment-deletor",function(e,o){"use strict";e.namespace("ModelDeletors")["flickr-galleries-comments-deleteComment"]={run:function(t,r){var l=this;return e.Promise.all([r.callAPI("flickr.galleries.comments.deleteComment",this._processParams(t)),r.getModel("gallery-info-models",t.galleryId)]).then(function(e){l._processResponse(e,t,r)},e.FetcherErrorLogger(o))},_processParams:function(e){return{comment_id:e.commentId,gallery_id:e.galleryId,owner_id:e.ownerId}},_processResponse:function(e,o,t){e[0];var r=e[1];r.getValue("comments").removeFromList(o.commentId),r.getValue("comments").totalItems--,r.setValue("commentCount",r.getValue("commentCount")-1)}}},"@VERSION@",{requires:["flickr-promise"],optional:[]});