if (self.CavalryLogger) { CavalryLogger.start_js(["RNY7E"]); } __d("XAYMTPostPickerController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/growth/aymt/post_picker/",{page_id:{type:"FBID",required:!0}})}),null); __d("XBoostedComponentRenderDialogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/boosted_components/render_dialog/",{page_id:{type:"FBID",required:!0},boost_id:{type:"FBID"},coupon_offer:{type:"Int"},post_id:{type:"FBID"},notif_id:{type:"Int"},notif_t:{type:"String"},ref:{type:"Enum",required:!0,enumType:1},product:{type:"Enum",required:!0,enumType:1}})}),null); __d("AYMTNotifJewelInlineButton.react",["fbt","AsyncDialog","AsyncRequest","AYMTJewelNotificationConfig","FDSButton.react","React","ReactDOM","XAYMTPostPickerController","XBoostedComponentRenderDialogController"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("AYMTJewelNotificationConfig").show_double_cta;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0&&this.setState({actionsTaken:[]})};d.componentDidUpdate=function(){if(this.props.enableHubView&&this.props.isSelected&&this.$2){var a=b("ReactDOM").findDOMNode(this.$2);a&&typeof a.focus==="function"&&a.focus()}};d.componentWillUnmount=function(){this.$3&&this.$3.release(),delete this.$3};d.$9=function(a){a===void 0&&(a=this.state);return a.actionsTaken.some(function(a){return a.type==="HIDE"})};d.$12=function(a){if(this.state.actionsTaken.length>=2)return null;var b={};this.state.actionsTaken.forEach(function(a){b[a.actionToken]=!0});return a.filter(function(a){a=a.server_action;return a==null||b[a]!==!0})};d.$13=function(a,c){var d=b("React").createElement(b("Image.react"),{className:"_6_gi",src:g("698991")});a=b("React").createElement(b("LogicalGridCell.react"),{columnIndex:0,component:b("React").createElement("div",null)},b("React").createElement(b("NotificationListItemOptionConfirmation.react"),{notificationOptions:a.nextNotificationOptions?this.$12(a.nextNotificationOptions):null,onUndoClick:this.$11,onMenuOptionClick:this.$8,undoText:a.undoText,undoToken:a.undoToken}));return c?b("React").createElement("div",{className:c?"_6_gj":""},d,a):a};d.render=function(){__p&&__p();if(!this.props.visible&&!this.$9())return b("React").createElement("li",{className:"_4_62"});var a=this.props.isNotifsBiz,c="_33c"+(a?" _6_a8":"")+(b("NotificationListConfig").isWork?" _1rqj":"")+(this.props.isRead?"":" jewelItemNew")+(this.state.sendingFeedback?" _4m8s":"")+(this.props.isSelected?" _u-o":""),d=b("NotificationTracking").getTrackingString(this.props.notification,this.props.row),e=this.props.rowIndex;if(this.state.actionsTaken.length>0){var f=this.state.actionsTaken[this.state.actionsTaken.length-1];return b("React").createElement("li",{className:c,"data-gt":d,"data-testid":"notif_list_item"},b("React").createElement(b("LogicalGridRow.react"),{className:"_dre",rowIndex:e,component:b("React").createElement("div",null)},this.$13(f,a)))}f=b("React").createElement(b("NotificationListItemContents.react"),this.props);f=this.props.renderLink(f);return b("React").createElement("li",{className:c,"data-ft":b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.NOTIFICATION_ITEM,this.props.row),"data-gt":d,"data-alert-id":this.$4(),"data-testid":"notif_list_item"},b("React").createElement(b("LogicalGridRow.react"),{className:"_dre anchorContainer",rowIndex:e,component:b("React").createElement("div",null)},b("React").createElement(b("LogicalGridCell.react"),{columnIndex:0,component:b("React").createElement("div",null)},f),b("React").createElement("ul",{className:(a?"":"_55mc")+(a?" _6_8m":"")},b("React").createElement(b("LogicalGridCell.react"),{columnIndex:1,component:b("React").createElement("li",{className:(a?"":"_h_c")+(a?" _6_8n":"")})},this.$6()),b("React").createElement(b("LogicalGridCell.react"),{columnIndex:2,component:b("React").createElement("li",{className:(a?"":"_h_d")+(a?" _6_8o":"")}),disableFocusRecovery:!0},this.$7()))))};return c}(b("React").Component);e.exports=a}),null);