if (self.CavalryLogger) { CavalryLogger.start_js_script(document.currentScript); } __d("ChatPluginMobileCufee.react",["cx","fbt","ClickableArea.react","JSResource","LiveChatPluginFbts","MPNConstants","MessagingPluginContext","MessengerSpinner.react","TetraText.react","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext,l=c("lazyLoadComponent")(c("JSResource")("ChatPluginCufeeModal.react").__setRef("ChatPluginMobileCufee.react"));function a(a){var b=a.pageName,e=a.feedbackQuestion,g=a.businessPrivacy,h=a.formState;a=a.formID;var n=k(c("MessagingPluginContext")),o=n.dispatchAction;n=n.state;n=n.optimisticStorageState.showCufeeModal===d("MPNConstants").MPNVisibility.NOT_HIDDEN;return j.jsxs("div",{children:[j.jsx("div",{role:"none",className:n?"_92bp":"_9wh-",onClick:p}),j.jsx("div",{className:n?"_908c":"_9jhn",role:"none",children:j.jsxs("div",{className:"_9wjx",children:[j.jsx("div",{className:"_9xpf"}),j.jsx(q,{}),h==="DEFAULT"?j.jsx(j.Suspense,{fallback:j.jsx("div",{style:{margin:"auto"},children:j.jsx(c("MessengerSpinner.react"),{color:"blue",size:c("MessengerSpinner.react").large_size})}),children:j.jsx(l,{pageName:b,feedbackQuestion:e,businessPrivacy:g,formID:a,onCloseModalClick:p})}):j.jsx(m,{}),j.jsx("div",{className:"_9xpg"})]})})]});function p(){o({type:"SHOW_CUFEE_MODAL",showCufeeModal:d("MPNConstants").MPNVisibility.HIDDEN})}function q(){return j.jsx(c("ClickableArea.react"),{onClick:p,children:j.jsx("div",{style:{marginBottom:11,marginTop:11},children:j.jsx(c("TetraText.react"),{type:"body2",children:i._(/*FBT_CALL*/"H\u1ee7y"/*FBT_CALL*/)})})})}q.displayName=q.name+" [from "+f.id+"]"}a.displayName=a.name+" [from "+f.id+"]";function m(){return j.jsx("div",{className:"_9who _9wjy",children:d("LiveChatPluginFbts").CUFEE_EXPIRED_FORM})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MPNMobileBadgeableMessengerIcon.react",["ChatPluginEntryPoint.react","LiveChatPluginMessengerIconSVGWithColor.react","MessagingPluginContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var d=b.prototype;d.render=function(){return h.jsx("div",{children:this.props.shouldShowEntryPointCustomization?h.jsx(c("ChatPluginEntryPoint.react"),{entryPointIcon:this.props.entryPointIcon,entryPointLabel:this.props.entryPointLabel,entryPointSize:this.props.entryPointSize,threadColor:this.props.threadColor,alignment:this.props.alignment}):h.jsx(c("LiveChatPluginMessengerIconSVGWithColor.react"),{threadColor:this.props.threadColor,entryPointSize:this.props.entryPointSize})})};return b}(h.Component);a.contextType=c("MessagingPluginContext");g["default"]=a}),98); __d("MPNMobileBotMenuDialog.react",["cx","ChatPluginTestId","LiveChatPluginLoggerUtil","MPNDropdownMenu","MPNDropdownMenuAlignment","MPNDropdownMenuItem","MPNIdentity","MercuryIDs","MessagingPluginContext","URI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){b=a.call(this,b,c)||this;b.state={navigationPath:[]};b.$1=d("LiveChatPluginLoggerUtil").getAttributionTags();b.$2=d("MercuryIDs").getThreadIDFromUserID(b.context.state.pageID);b.$3=d("MPNIdentity").MPNIdentity.currentUserState()===d("MPNIdentity").MPNIdentityState.FB;return b}var e=b.prototype;e.render=function(){var a=this,b=[],d=this.props.menuItems;for(var e=0;e0?(a.setState({menuItems:b}),f({type:"TOGGLE_HAS_PERSISTENT_MENU",hasPersistentMenu:!0})):(a.setState({menuItems:[]}),f({type:"TOGGLE_HAS_PERSISTENT_MENU",hasPersistentMenu:!1}))});break;case d("MPNIdentity").MPNIdentityState.FB:e=c("XMessengerBotsMenuController").getURIBuilder().setString("page_id",b).setBool("should_flatten",!0).getURI();this.$1=new(c("AsyncRequest"))().setURI(e).setHandler(function(b){a.setState({menuItems:b.payload.menu})}).setErrorHandler(function(b){a.setState({menuItems:[]})});this.$1.send();break;default:return}};e.$4=function(){this.$3(this.state.isMenuOpen),this.props.onClick(),this.setState(function(a){return{isMenuOpen:!a.isMenuOpen}})};e.$3=function(a){a=a?"customer_chat_bot_menu_closed":"customer_chat_bot_menu_opened";var b=this.context.state.pageID,c=d("MPNIdentity").MPNIdentity.currentUserID();d("LiveChatPluginLoggerUtil").logActionFromNewUI("in_thread_action",c,b,d("MPNIdentity").MPNIdentity.currentUserState()===d("MPNIdentity").MPNIdentityState.FB?"logged_in_chat_tab":"guest_chat_tab",{action_type:a})};return b}(j.Component);a.contextType=c("MessagingPluginContext");g["default"]=a}),98); __d("MPNMobileGuestAttachmentButton.react",["cx","MPNPaperclipIconSVG.react","MessagingPluginContext","ShimButton.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var d=b.prototype;d.render=function(){return i.jsx(c("ShimButton.react"),{"data-testid":void 0,className:"_99jy",onClick:this.props.onClick,children:i.jsx(c("MPNPaperclipIconSVG.react"),{color:this.props.color})})};return b}(i.Component);a.contextType=c("MessagingPluginContext");g["default"]=a}),98); __d("MPNMobileGuestUpgradeUpsellPrompt.react",["Arbiter","LiveChatPluginLoggerUtil","MPNSharedGuestUpgradePromptV2.react","MessagingPluginContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f