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'
\n\t\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\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:"")+"
\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\n'},compiler:[7,">= 4.0.0"],main:function(e,n,a,t,l){var i,r=null!=n?n:{},s=a.helperMissing;return'"},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","${owner}"," faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_FAVE_MULTI:[{type:"plural",valueName:"count",options:{one:["","${owner}"," and ","${secondOwner}"," faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:["","${owner}"," and ","${count}"," others faved your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_PERSON_FOLLOW:["","${owner}"," is now following you!"],NOTIF_PHOTO_COMMENT_YOURS:['',"${personName}"," 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:['',"${firstPersonName}",' and ',"${secondPersonName}"," commented on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:['',"${firstPersonName}"," and ","${count}"," others commented on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_PHOTO_COMMENT_OTHER:['',"${personName}",' commented on ',"${ownerName}","'s ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_COMMENT_OTHER_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${firstPersonName}",' and ',"${secondPersonName}",' commented on ',"${ownerName}","'s ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}],other:['',"${firstPersonName}"," and ","${count}",' others commented on ',"${ownerName}","'s ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}]}},"."],NOTIF_MENTION:['',"${personName}"," mentioned you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_MENTION_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," and ","${count}"," others"]}}," mentioned you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_PHOTO_GROUP_INVITE:["","${owner}"," invited you to add your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," to the group ","${groupName}","."],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 ","${groupName}"," and ","${secondGroupName}",""],other:["group ","${groupName}"," and ","${count}"," other groups"]}},"."],NOTIF_GROUP_USER_INVITE:["You've been invited to join the group ',"${groupName}","."],NOTIF_TAGS:['',"${personName}"," tagged your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_TAGS_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," 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 ',"${galleryName}","."],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 ',"${galleryName}",' and ',"${secondGalleryName}",""],other:['gallery ',"${galleryName}"," and ","${count}"," other galleries"]}},"."],NOTIF_ADD_PERSON:['',"${personName}"," tagged people in your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_ADD_PEOPLE:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," and ","${count}"," others"]}}," tagged people in your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_ADD_ME:['',"${ownerName}"," tagged you in a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_NOTES:['',"${personName}"," 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:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," and ","${count}"," others"]}}," left notes on your ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."],NOTIF_NOTES_OTHER:['',"${personName}",' left a note on ',"${ownerName}","'s photo."],NOTIF_NOTES_OTHER_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",' left notes on ',"${ownerName}","'s photo."],other:['',"${personName}"," and ","${count}",' others left notes on ',"${ownerName}","'s photo."]}}],NOTIF_VIEW_RECENT_ACTIVITY:["View Recent Activity"],NOTIFICATIONS:["Notifications"],NOTIF_SHARE:['',"${personName}"," shared a ",{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}}," with you."],FLICKR_MAIL_COUNT_PAREN:["(","${count}",")"],FLICKR_GROUP_DISCUSSION_REPLY:['',"${personName}",' replied to the discussion ',"${objectTitle}",' in the group ',"${groupName}","."],FLICKR_GROUP_DISCUSSION_REPLY_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," and ","${count}"," others"]}},' replied to the discussion ',"${objectTitle}",' in the group ',"${groupName}","."],NOTIF_GROUP_DISCUSSION_REPLY:['',"${personName}",' replied to the discussion ',"${objectTitle}",' in the group ',"${groupName}","."],NOTIF_GROUP_DISCUSSION_REPLY_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",""],other:['',"${personName}"," and ","${count}"," others"]}},' replied to the discussion ',"${objectTitle}",' in the group ',"${groupName}","."],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 FlickrMail. We think you'll enjoy what we've built so far."],NOTIF_GALLERY_COMMENT:['',"${personName}",' commented on your gallery ',"${objectName}","."],NOTIF_GALLERY_COMMENT_MULTI:[{type:"plural",valueName:"count",options:{one:['',"${personName}",' and ',"${secondPersonName}",' commented on your gallery ',"${objectName}","."],other:['',"${personName}"," and ","${count}",' others commented on your gallery ',"${objectName}","."]}}],NOTIF_FRIEND_JOIN:['Your friend ',"${personName}"," joined Flickr!"],NOTIF_NEW_GROUP_DISCUSSION:['',"${personName}",' created the discussion ',"${discussionName}",' in the group ',"${groupName}","."],NOTIF_FLICKRMAIL:['',"${personName}",' sent you a message: “',"${mailTitle}","”"],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:['',"${personName}",' wrote you a testimonial.'],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! Open menu'],NOTIF_1_PERSON_FAVED_X_PHOTOS:['',"${personName}"," faved ","${photoCountString}"," ",{type:"select",valueName:"mediaType",options:{photo:["photos"],video:["videos"],other:["photos"]}},"."],NOTIF_1_PERSON_FAVED_1_PHOTO:['',"${personName}",' faved “',"${photoTitle}","”."],NOTIF_X_PEOPLE_FAVED_1_PHOTO:['',"${personName}"," and ","${personCountString}",' others faved “',"${photoTitle}","”."],NOTIF_2_PEOPLE_FAVED_1_PHOTO:['',"${personName}",' and ',"${person2Name}",' faved “',"${photoTitle}","”."],NOTIF_1_PERSON_COMMENTED_X_PHOTOS:['',"${personName}"," commented on ","${photoCountString}"," ",{type:"select",valueName:"mediaType",options:{photo:["photos"],video:["videos"],other:["photos"]}},"."],NOTIF_1_PERSON_COMMENTED_1_PHOTO:['',"${personName}",' commented on your photo: "],NOTIF_X_PEOPLE_COMMENTED_1_PHOTO:['',"${personName}"," and ","${personCountString}",' others commented on “',"${photoTitle}","”."],NOTIF_2_PEOPLE_COMMENTED_1_PHOTO:['',"${personName}",' and ',"${person2Name}",' commented on “',"${photoTitle}","”."],NOTIF_1_PERSON_FOLLOWED_YOU:['',"${personName}"," is now following you!"],NOTIF_X_PEOPLE_FOLLOWED_YOU:['',"${personName}"," and ","${personCountString}"," others are now following you!"],NOTIF_2_PEOPLE_FOLLOWED_YOU:['',"${personName}",' and ',"${person2Name}"," are now following you!"],NOTIF_1_PERSON_LEFT_NOTE_1_PHOTO:['',"${personName}",' left a note on your photo: “',"${noteContent}","”"],NOTIF_X_PEOPLE_LEFT_NOTE_1_PHOTO:['',"${personName}"," and ","${personCountString}",' others left notes on “',"${photoTitle}","”."],NOTIF_2_PEOPLE_LEFT_NOTE_1_PHOTO:['',"${personName}",' and ',"${person2Name}",' left notes on “',"${photoTitle}","”."],NOTIF_1_PERSON_TAGGED_1_PHOTO:['',"${personName}",' tagged your photo with “',"${tagName}","”."],NOTIF_X_PEOPLE_TAGGED_1_PHOTO:['',"${personName}"," and ","${personCountString}",' others tagged “',"${photoTitle}","”."],NOTIF_2_PEOPLE_TAGGED_1_PHOTO:['',"${personName}",' and ',"${person2Name}",' tagged “',"${photoTitle}","”."],NOTIF_1_PERSON_TESTIMONIAL:['',"${personName}",' wrote you a testimonial: “',"${testimonialContent}","”"],NOTIF_1_PERSON_FLICKRMAIL:['',"${personName}",' sent you a message: “',"${flickrmailContent}","”"],NOTIF_1_PERSON_COMMENT_MENTIONED_YOU_1_PHOTO:['',"${personName}",' mentioned you in a comment: "],NOTIF_X_PEOPLE_COMMENT_MENTIONED_YOU_1_PHOTO:['',"${personName}"," and ","${personCountString}",' others mentioned you in .'],NOTIF_2_PEOPLE_COMMENT_MENTIONED_YOU_1_PHOTO:['',"${personName}",' and ',"${person2Name}",' mentioned you in .'],NOTIF_1_PERSON_ADDED_1_PHOTO_TO_GALLERY:['',"${personName}",' added your photo to the gallery ',"${galleryTitle}","."],NOTIF_X_PEOPLE_ADDED_1_PHOTO_TO_GALLERIES:['',"${personName}"," and ","${personCountString}"," others added your photo to galleries."],NOTIF_2_PEOPLE_ADDED_1_PHOTO_TO_GALLERIES:['',"${personName}",' and ',"${person2Name}"," added your photo to galleries."],NOTIF_1_PERSON_COMMENTED_ON_1_GALLERY:['',"${personName}",' commented on your gallery ',"${galleryTitle}",': "],NOTIF_X_PEOPLE_COMMENTED_ON_1_GALLERY:['',"${personName}"," and ","${personCountString}",' others commented on your gallery ',"${galleryTitle}","."],NOTIF_2_PEOPLE_COMMENTED_ON_1_GALLERY:['',"${personName}",' and ',"${person2Name}",' commented on your gallery ',"${galleryTitle}","."],NOTIF_1_PERSON_SHARED_1_PHOTO:['',"${personName}",' shared the photo “',"${photoTitle}","” with you."],NOTIF_1_PERSON_INVITED_1_PHOTO_TO_GROUP:['',"${personName}",' invited you to add your photo to the group ',"${groupName}","."],NOTIF_1_PERSON_INVITED_YOU_TO_GROUP:['',"${personName}",' invited you to the group ',"${groupName}","."],NOTIF_1_PERSON_CREATED_TOPIC:['',"${personName}",' created the topic ',"${topicName}","."],NOTIF_X_PEOPLE_CREATED_TOPICS:['',"${personName}"," and ","${personCountString}",' others created the topic new discussion topics.'],NOTIF_2_PEOPLE_CREATED_TOPICS:['',"${personName}",' and ',"${person2Name}",' created the topic new discussion topics.'],NOTIF_1_PERSON_REPLIED_TO_TOPIC:['',"${personName}",' replied to ',"${topicName}",': “',"${replyContent}","”"],NOTIF_X_PEOPLE_REPLIED_TO_TOPIC:['',"${personName}"," and ","${personCountString}",' others replied to ',"${topicName}","."],NOTIF_2_PEOPLE_REPLIED_TO_TOPIC:['',"${personName}",' and ',"${person2Name}",' replied to ',"${topicName}","."],NOTIF_GROUP_ADMIN_APPROVED_1_PHOTO:['An admin approved your photo for ',"${groupName}","."],NOTIF_GROUP_ADMIN_APPROVED_X_PHOTOS:["An admin approved ","${photoCountString}",' photos for ',"${groupName}","."],NOTIF_GROUP_ADMIN_REJECTED_1_PHOTO:['An admin rejected your photo for ',"${groupName}","."],NOTIF_GROUP_ADMIN_REJECTED_X_PHOTOS:["An admin rejected ","${photoCountString}",' photos for ',"${groupName}","."],NOTIF_CONTACT_UPLOAD:['Your contact ',"${personName}"," uploaded new photos."],NOTIF_PHOTO_MODERATED_MODERATE:['The Flickr Moderation Bot 🤖 changed your photo to Moderate. Learn more.'],NOTIF_PHOTO_MODERATED_RESTRICTED:['The Flickr Moderation Bot 🤖 changed your photo to Restricted. Learn more.'],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:['',"${personName}",' updated the admin blast for ',"${groupName}",': “',"${blastContent}","”."],NOTIF_1_PERSON_UPDATED_GROUP_RULES:['',"${personName}",' updated the group rules for ',"${groupName}",': “',"${rulesContent}","”."],NOTIF_1_PERSON_UPDATED_GROUP_DESCRIPTION:['',"${personName}",' updated the group description for ',"${groupName}",': “',"${descriptionContent}","”."],NOTIF_1_PERSON_TAGGED_1_PERSON_IN_PHOTO:['',"${personName}",' tagged ',"${taggedPersonName}",' in “',"${photoTitle}","”."],NOTIF_1_PERSON_TAGGED_PEOPLE_IN_PHOTO:['',"${personName}",' tagged people in “',"${photoTitle}","”."],NOTIF_X_PEOPLE_TAGGED_PEOPLE_IN_PHOTO:['',"${personName}"," and ","${personCountString}",' others tagged people in “',"${photoTitle}","”."],NOTIF_2_PEOPLE_TAGGED_PEOPLE_IN_PHOTO:['',"${personName}",' and ',"${person2Name}",' tagged people in “',"${photoTitle}","”."],NOTIF_1_PERSON_TAGGED_YOU_IN_PHOTO:['',"${personName}",' tagged you in a ',{type:"select",valueName:"mediaType",options:{photo:["photo"],video:["video"],other:["photo"]}},"."]})},"@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:[]});