if (self.CavalryLogger) { CavalryLogger.start_js(["M50jv"]); } __d("FDSStyleXDefaultTheme",[],(function(a,b,c,d,e,f){e.exports={"big-blue-gray-5":"#F5F7F8","big-chart-blue":"#3d6ad6","big-gray-10":"#F3F4F4","big-gray-30":"#DADCDE","big-gray-40":"#C6C9CC","big-gray-50":"#ADB0B3","fds-active-icon":"#3578E5","fds-black-alpha-05":"rgba(0, 0, 0, 0.05)","fds-black-alpha-10":"rgba(0, 0, 0, 0.1)","fds-black-alpha-15":"rgba(0, 0, 0, 0.15)","fds-black-alpha-20":"rgba(0, 0, 0, 0.2)","fds-black-alpha-30":"rgba(0, 0, 0, 0.3)","fds-black-alpha-40":"rgba(0, 0, 0, 0.4)","fds-black-alpha-50":"rgba(0, 0, 0, 0.5)","fds-black-alpha-60":"rgba(0, 0, 0, 0.6)","fds-black-alpha-80":"rgba(0, 0, 0, 0.8)","fds-black":"#000000","fds-blue-05":"#ECF3FF","fds-blue-30":"#AAC9FF","fds-blue-40":"#77A7FF","fds-blue-60":"#3578E5","fds-blue-70":"#2851A3","fds-blue-80":"#1D3C78","fds-blue-badge":"#3578E5","fds-blue-link":"#385898","fds-button-icon":"#444950","fds-button-text":"#444950","fds-comment-background":"#F2F3F5","fds-dark-mode-gray-100":"#1C1C1C","fds-dark-mode-gray-35":"#CCCCCC","fds-dark-mode-gray-50":"#828282","fds-dark-mode-gray-80":"#373737","fds-dark-mode-gray-90":"#282828","fds-dark-ui-card-border":"#282828","fds-dark-ui-divider":"#282828","fds-dark-ui-medium-text":"#828282","fds-dark-ui-primary-text":"#CCCCCC","fds-dark-ui-secondary-text":"#4A4A4A","fds-dark-ui-wash":"#000000","fds-data-eggplant":"#5C3BBF","fds-data-grass":"#63BE09","fds-data-mango":"#FFBA00","fds-data-periwinkle":"#80AAFF","fds-data-periwinkle-dark":"#4D7DDD","fds-data-periwinkle-light":"#B3CCFF","fds-data-pine":"#308360","fds-data-plum":"#9E43DF","fds-data-redwood":"#D45C43","fds-data-rose-light":"#D693C0","fds-data-sea-dark":"#06A0A0","fds-data-sea":"#32CDCD","fds-data-walnut":"#7A563C","fds-disabled-text":"#BEC3C9","fds-divider-on-wash":"#CCD0D5","fds-divider-on-white":"#DADDE1","fds-fast":"200ms","fds-fb-blue-70":"#4267B2","fds-fb-blue-75":"#385898","fds-gray-00":"#F5F6F7","fds-gray-05":"#F2F3F5","fds-gray-10":"#EBEDF0","fds-gray-100":"#1C1E21","fds-gray-20":"#DADDE1","fds-gray-25":"#CCD0D5","fds-gray-30":"#BEC3C9","fds-gray-45":"#8D949E","fds-gray-70":"#606770","fds-gray-80":"#444950","fds-green-30":"#86DF81","fds-green-55":"#00A400","fds-green-60":"#008C00","fds-green-70":"#006900","fds-highlight-cell-background":"#ECF3FF","fds-highlight":"#3578E5","fds-nav-bar-background":"#4267B2","fds-negative":"#FA383E","fds-notification-badge":"#FA383E","fds-placeholder-text":"#8D949E","fds-positive":"#00A400","fds-primary-text":"#1C1E21","fds-purple-40":"#763EE6","fds-red-55":"#FA383E","fds-secondary-button-pressed":"rgba(0, 0, 0, 0.05)","fds-secondary-text":"#606770","fds-sidebar-nav-gutter-dense":"4px","fds-sidebar-nav-gutter":"12px","fds-sidebar-nav-width-collapsed":"72px","fds-sidebar-nav-width-dense-collapsed":"52px","fds-sidebar-nav-width-dense-expanded":"240px","fds-sidebar-nav-width-expanded":"300px","fds-soft":"cubic-bezier(.08,.52,.52,1)","fds-spectrum-blue-gray-dark-1":"#4F5766","fds-spectrum-blue-gray-dark-2":"#303846","fds-spectrum-blue-gray-dark-3":"#23272F","fds-spectrum-blue-gray-tint-15":"#777D88","fds-spectrum-blue-gray-tint-30":"#8F949D","fds-spectrum-blue-gray-tint-50":"#AFB3B9","fds-spectrum-blue-gray-tint-90":"#EFF0F1","fds-spectrum-blue-gray":"#5F6673","fds-spectrum-cherry-dark-1":"#E04C60","fds-spectrum-cherry-tint-50":"#F8A9B4","fds-spectrum-cherry-tint-70":"#FBCCD2","fds-spectrum-cherry":"#F35369","fds-spectrum-grape-dark-1":"#7B64C0","fds-spectrum-grape-tint-15":"#9D87D2","fds-spectrum-grape-tint-30":"#AF9CDA","fds-spectrum-grape-tint-70":"#DDD5F0","fds-spectrum-grape":"#8C72CB","fds-spectrum-lemon-dark-1":"#F5C33B","fds-spectrum-lemon-tint-70":"#FEF2D1","fds-spectrum-lemon-tint-90":"#FFFBF0","fds-spectrum-lime-dark-1":"#89BE4C","fds-spectrum-lime-dark-2":"#71A830","fds-spectrum-lime-tint-50":"#D1E6B9","fds-spectrum-lime-tint-70":"#E4F0D5","fds-spectrum-lime":"#A3CE71","fds-spectrum-orange-dark-1":"#E07A2E","fds-spectrum-orange-tint-15":"#F9A159","fds-spectrum-orange-tint-50":"#FBC89F","fds-spectrum-orange":"#F7923B","fds-spectrum-pink-dark-1":"#EC6FB5","fds-spectrum-pink-dark-2":"#D4539B","fds-spectrum-pink":"#EC7EBD","fds-spectrum-seafoam-dark-1":"#39AFD5","fds-spectrum-seafoam-tint-70":"#CAEEF9","fds-spectrum-seafoam-tint-90":"#EEFAFD","fds-spectrum-seafoam":"#54C7EC","fds-spectrum-skin-3-tint-30":"#E5C29E","fds-spectrum-slate":"#B9CAD2","fds-spectrum-slate-dark-2":"#89A1AC","fds-spectrum-slate-tint-30":"#CEDAE0","fds-spectrum-slate-tint-50":"#DCE5E9","fds-spectrum-slate-tint-90":"#F8FAFB","fds-spectrum-teal-dark-1":"#4DBBA6","fds-spectrum-teal-dark-2":"#31A38D","fds-spectrum-teal-tint-30":"#97DCCF","fds-spectrum-teal-tint-70":"#D2F0EA","fds-spectrum-teal-tint-90":"#F0FAF8","fds-spectrum-teal":"#6BCEBB","fds-spectrum-tomato-dark-1":"#EF6632","fds-spectrum-tomato-dark-2":"#DB4123","fds-spectrum-tomato-tint-30":"#F38E7B","fds-spectrum-tomato":"#FB724B","fds-strong":"cubic-bezier(.12,.8,.32,1)","fds-tertiary-icon":"#8D949E","fds-unified-black-alpha-15":"rgba(0, 0, 0, 0.15)","fds-unified-gray-00":"#050505","fds-unified-gray-05":"#0E0F0F","fds-unified-gray-10":"#18191A","fds-unified-gray-15":"#242526","fds-unified-gray-20":"#323436","fds-unified-gray-25":"#3E4042","fds-unified-gray-30":"#4B4C4F","fds-unified-gray-35":"#56585C","fds-unified-gray-40":"#65676B","fds-unified-gray-45":"#6E7175","fds-unified-gray-50":"#7A7D82","fds-unified-gray-55":"#8A8D91","fds-unified-gray-60":"#96999E","fds-unified-gray-65":"#A4A7AB","fds-unified-gray-70":"#B0B3B8","fds-unified-gray-75":"#BCC0C4","fds-unified-gray-80":"#C9CCD1","fds-unified-gray-90":"#E4E6EB","fds-unified-gray-95":"#F0F2F5","fds-unified-gray-100":"#F7F8FA","fds-unified-blue-00":"#000B1B","fds-unified-blue-05":"#011330","fds-unified-blue-10":"#00193D","fds-unified-blue-15":"#05214D","fds-unified-blue-20":"#07316D","fds-unified-blue-25":"#083E89","fds-unified-blue-30":"#0E499C","fds-unified-blue-35":"#1455B0","fds-unified-blue-40":"#1763CF","fds-unified-blue-45":"#216FDB","fds-unified-blue-50":"#1877F2","fds-unified-blue-55":"#2D88FF","fds-unified-blue-60":"#4599FF","fds-unified-blue-65":"#5FAAFF","fds-unified-blue-70":"#76B6FF","fds-unified-blue-75":"#91C3FF","fds-unified-blue-80":"#A8D1FF","fds-unified-blue-85":"#BADAFF","fds-unified-blue-90":"#CDE5FF","fds-unified-blue-95":"#E7F3FF","fds-unified-blue-100":"#F4FAFF","fds-white-alpha-05":"rgba(255, 255, 255, 0.05)","fds-white-alpha-10":"rgba(255, 255, 255, 0.1)","fds-white-alpha-30":"rgba(255, 255, 255, 0.3)","fds-white-alpha-40":"rgba(255, 255, 255, 0.4)","fds-white-alpha-50":"rgba(255, 255, 255, 0.5)","fds-white-alpha-60":"rgba(255, 255, 255, 0.6)","fds-white-alpha-80":"rgba(255, 255, 255, 0.8)","fds-white-text":"#FFFFFF","fds-white":"#FFFFFF","fds-www-wash":"#EBEDF0","fds-x-border-default":"1px solid #DADDE1","fds-x-border-error":"1px solid #FA383E","fds-x-border-focus":"1px solid #3578E5","fds-x-border-radius":"4px","fds-x-border-valid":"1px solid #00A400","fds-x-border-warning":" 1px solid #FFBA00","fds-x-box-shadow-error":"inset 0 0 0 3px rgba(250, 56, 62, 0.3)","fds-x-box-shadow-focus":"inset 0 0 0 3px rgba(53, 120, 229, 0.2)","fds-x-box-shadow-valid":"inset 0 0 0 3px rgba(0, 164, 0, 0.1)","fds-x-box-shadow-warning":"inset 0 0 0 3px rgba(255, 186, 0, 0.3)","fds-x-large":"36px","fds-x-transition-speed":"0.25s","fds-x-transition-timing-function":"cubic-bezier(0.5, 0, 0.1, 1.15)","fds-yellow-20":"#FFBA00","fds-unified-yellow-95":"#FFF9D1",accent:"rgb(24,119,242)","accent-deemphasized":"rgb(231,243,255)","always-transparent":"rgba(0,0,0,0.00)","always-white":"rgb(255,255,255)","attachment-footer-background":"rgb(240,242,245)","background-deemphasized":"rgb(240,242,245)","black-solidarity-primary-button-background":"rgb(5,5,5)","black-solidarity-primary-button-text":"rgb(255,255,255)","blue-link":"rgb(33,111,219)","border-persistent-ui":"rgba(0,0,0,0.05)","border-responsive-ui":"rgba(0,0,0,0.10)","border-ui-emphasis":"rgb(228,230,235)","bottom-sheet-handle":"rgb(201,204,209)","card-background":"rgb(255,255,255)","card-background-flat":"rgb(247,248,250)","comment-background":"rgb(240,242,245)","comment-threading-lines":"rgb(228,230,235)","decorative-icon-blue":"rgb(24,119,242)","decorative-icon-green":"rgb(69,189,98)","decorative-icon-pink":"rgb(255,102,191)","decorative-icon-purple":"rgb(147,96,247)","decorative-icon-red":"rgb(243,66,95)","decorative-icon-teal":"rgb(42,187,167)","decorative-icon-whatsapp":"rgb(37,211,102)","decorative-icon-yellow":"rgb(247,185,40)","disabled-button-background":"rgb(228,230,235)","disabled-button-background-growth":"rgb(118,182,255)","disabled-icon":"rgb(188,192,196)","disabled-text":"rgb(188,192,196)",divider:"rgb(201,204,209)","event-date":"rgb(240,40,73)","fb-wordmark":"rgb(24,119,242)","hidden-comment-overlay":"rgba(255,255,255,0.60)","hosted-view-selected-state":"rgb(231,243,255)","last-active-state-background":"rgb(239,255,243)","last-active-state-text":"rgb(29,99,46)","media-inner-border":"rgba(0,0,0,0.10)","media-pressed":"rgba(75,76,79,0.35)","nav-bar-background":"rgb(255,255,255)",negative:"rgb(240,40,73)","new-notification-background":"rgb(231,243,255)","non-media-pressed":"rgba(75,76,79,0.15)","non-media-pressed-on-dark":"rgba(255,255,255,0.30)","notification-badge":"rgb(240,40,73)","overlay-on-media":"rgba(0,0,0,0.60)","overlay-on-surface":"rgba(0,0,0,0.40)","placeholder-icon":"rgb(138,141,145)","placeholder-image":"rgb(164,167,171)","placeholder-text":"rgb(138,141,145)","placeholder-text-on-media":"rgba(255,255,255,0.50)","popover-background":"rgb(255,255,255)",positive:"rgb(49,162,76)","primary-button-background":"rgb(24,119,242)","primary-button-background-on-media":"rgb(255,255,255)","primary-button-icon":"rgb(255,255,255)","primary-button-icon-on-media":"rgb(5,5,5)","primary-button-text":"rgb(255,255,255)","primary-button-text-on-media":"rgb(5,5,5)","primary-deemphasized-button-background":"rgb(231,243,255)","primary-deemphasized-button-icon":"rgb(24,119,242)","primary-deemphasized-button-text":"rgb(24,119,242)","primary-icon":"rgb(5,5,5)","primary-icon-on-media":"rgb(255,255,255)","primary-text":"rgb(5,5,5)","primary-text-on-media":"rgb(255,255,255)","progress-ring-blue-background":"rgba(24,119,242,0.20)","progress-ring-blue-foreground":"rgb(24,119,242)","progress-ring-disabled-foreground":"rgb(188,192,196)","progress-ring-neutral-background":"rgba(0,0,0,0.20)","progress-ring-neutral-foreground":"rgb(0,0,0)","progress-ring-on-media-background":"rgba(255,255,255,0.20)","progress-ring-on-media-foreground":"rgb(255,255,255)","secondary-button-background":"rgb(228,230,235)","secondary-button-background-on-color":"rgba(0,0,0,0.05)","secondary-button-background-on-media":"rgba(0,0,0,0.60)","secondary-button-icon":"rgb(5,5,5)","secondary-button-icon-on-media":"rgb(255,255,255)","secondary-button-pressed":"rgba(0,0,0,0.05)","secondary-button-text":"rgb(5,5,5)","secondary-button-text-on-media":"rgb(255,255,255)","secondary-icon":"rgb(101,103,107)","secondary-text":"rgb(101,103,107)","secondary-text-on-media":"rgba(255,255,255,0.80)","shadow-persistent-ui":"rgba(0,0,0,0.10)","shadow-responsive-ui":"rgba(0,0,0,0.10)","shadow-text-and-icon-on-media":"rgba(0,0,0,0.30)","shadow-ui-emphasis":"rgba(0,0,0,0.10)","stepper-active":"rgb(24,119,242)","stepper-inactive":"rgb(228,230,235)","surface-background":"rgb(255,255,255)","text-highlight":"rgba(24,119,242,0.20)","text-input-bar-background":"rgb(240,242,245)","toggle-active-background":"rgb(231,243,255)","toggle-active-icon":"rgb(24,119,242)","toggle-active-text":"rgb(24,119,242)",warning:"rgb(241,168,23)",wash:"rgb(240,242,245)","web-wash":"rgb(240,242,245)","dataviz-primary-1":"rgb(48,200,180)","dataviz-primary-2":"rgb(134,218,255)","dataviz-primary-3":"rgb(95,170,255)","dataviz-secondary-1":"rgb(118,62,230)","dataviz-secondary-2":"rgb(147,96,247)","dataviz-secondary-3":"rgb(219,26,139)","dataviz-supplementary-1":"rgb(255,122,105)","dataviz-supplementary-2":"rgb(241,168,23)","dataviz-supplementary-3":"rgb(49,162,76)","dataviz-supplementary-4":"rgb(50,52,54)"}}),null); __d("StarsSendingVirtualGiftingCards_StarsVirtualGift.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StarsSendingVirtualGiftingCards_StarsVirtualGift",selections:[{alias:null,args:null,kind:"ScalarField",name:"gift_animated_image",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"star_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"StarsVirtualGift",abstractKey:null};e.exports=a}),null); __d("StarsSendingVirtualGiftingCards_starsSendingFlowData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StarsSendingVirtualGiftingCards_starsSendingFlowData",selections:[{alias:null,args:null,kind:"ScalarField",name:"minimum_star_sending_amount",storageKey:null},{alias:null,args:null,concreteType:"StarsVirtualGift",kind:"LinkedField",name:"stars_virtual_gifts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null},{args:null,kind:"FragmentSpread",name:"StarsSendingVirtualGiftingCards_StarsVirtualGift"}],storageKey:null}],type:"StarsSendingFlowData",abstractKey:null};e.exports=a}),null); __d("DeferredComponent.react",["React","createCancelableFunction","prop-types"],(function(a,b,c,d,e,f){var g=b("React");a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.$1=function(a){e.setState({ComponentClass:a},function(){e.props.onComponentLoad&&e.props.onComponentLoad(a)})};var f=null;function g(a){f=a}e.props.deferredComponent(g);e.state={ComponentClass:f,cancelableModulesLoaded:b("createCancelableFunction")(e.$1)};return e}var d=c.prototype;d.componentDidMount=function(){this.props.deferredComponent(this.state.cancelableModulesLoaded)};d.componentWillUnmount=function(){this.state.cancelableModulesLoaded.cancel()};d.render=function(){var a=this.state.ComponentClass;if(!a||this.props.deferredForcePlaceholder)return this.props.deferredPlaceholder;var b=this.props;b.deferredPlaceholder;b.deferredComponent;b.onComponentLoad;b.deferredForcePlaceholder;b=babelHelpers.objectWithoutPropertiesLoose(b,["deferredPlaceholder","deferredComponent","onComponentLoad","deferredForcePlaceholder"]);return g.jsx(a,babelHelpers["extends"]({},b))};return c}(g.Component);a.propTypes={deferredPlaceholder:(c=b("prop-types")).element.isRequired,deferredComponent:c.func.isRequired,onComponentLoad:c.func,deferredForcePlaceholder:c.bool};e.exports=a}),null); __d("PerfHelperUtils",["cx","DeferredComponent.react","JSResource","React","joinClasses","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React"),i=function(c){babelHelpers.inheritsLoose(a,c);function a(){return c.apply(this,arguments)||this}var d=a.prototype;d.render=function(){var a=this.props,c=a.tooltip;a=a.className;return h.jsx("div",{className:"_28hn"+(this.props.color==="red"?" _4ez8":"")+(this.props.color==="green"?" _28ho":""),children:h.jsx(b("DeferredComponent.react"),{deferredPlaceholder:h.jsx("div",{}),deferredComponent:function(a){b("promiseDone")(b("JSResource")("Tooltip.react").__setRef("PerfHelperUtils").load(),a)},className:b("joinClasses")("_5_my",a),tooltip:c,children:this.props.children})})};return a}(h.PureComponent);function a(a){return h.jsx(i,{color:"red",tooltip:"This bootloaded component has a red border\n because "+a.moduleId+"\n took over "+a.timeLimitSecs+" seconds ("+a.timeSpentSecs+"s) to load",children:a.children})}c={SlowBootloadBorder:a,BorderedComponent:i};e.exports=c}),null); __d("PerfUtils",["React","performanceNow","PerfHelperUtils"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React"),i=h.Component,j=b("PerfHelperUtils").SlowBootloadBorder;function a(a,b,c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.componentDidMount=function(){b()};f.render=function(){if(c)return h.jsx(a,babelHelpers["extends"]({},this.props,{ref:c}));else return h.jsx(a,babelHelpers["extends"]({},this.props))};return d}(i);return d}function c(a,c,d){var e=1e4;d=(g||(g=b("performanceNow")))()-d;if(d=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b=b||{};b.value=e}if(b)return b.value;g(0,1145)}e.exports=a}),null); __d("MultiKeyMap",["invariant","lastx"],(function(a,b,c,d,e,f,g){"use strict";var h=typeof WeakMap==="function";a=function(){function a(){this.$1=this.$2(),this.$3=null}var c=a.prototype;c.set=function(a,b){this.$4(a);var c=this.$1;for(var d=0;d= 9")||b("UserAgent").isPlatform("Mac OS X >= 10.11")&&!b("UserAgent").isBrowser("Firefox < 55")?a=b("UserAgent").isBrowser("Chrome 81 - 82")?'"SF Pro Text", "SF UI Text", -apple-system, Arial, sans-serif':"-apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif":b("UserAgent").isPlatform("Chrome OS")&&(a="Roboto, Arial, sans-serif");return a}e.exports={FONT_FAMILY:a(),LETTER_SPACING:"normal"}}),null); __d("FDSPrivateThemeAtomsClassic",["cssVar","FDSPrivateAlphaTransformer","FDSPrivateThemeAtomsType","FDSSystemFonts"],(function(a,b,c,d,e,f,g){"use strict";a=b("FDSPrivateAlphaTransformer").getAlphaTransformer;c={active:"#3578E5","default":"rgba(53, 120, 229, 0.2)",disabled:"rgba(53, 120, 229, 0.2)"};d={xsmall:2,small:4,medium:6,large:8,xlarge:12};f=[0,0,0,1];g=[245,246,247,1];var h=[236,243,255,1];b={id:b("FDSPrivateThemeAtomsType").FDS_CLASSIC,type:{fontFamily:b("FDSSystemFonts").FONT_FAMILY,letterSpacing:b("FDSSystemFonts").LETTER_SPACING,size:12,lineHeight:"16px",base:14,scale:{display:[2.857,1.2],header1:[1.714,1.166],header2:[1.428,1.2],header3:[1.142,1.25],header4:[1,1.286],body1:[1,1.286],body2:[.928,1.308],body3:[.857,1.333]}},colors:{text:{"default":"#444950",primary:"#1C1E21",secondary:"#606770",disabled:"#BEC3C9",header:"#444950",blueLink:"#216FDB",negative:"#FA383E",positive:"#00A400",placeholder:"#8D949E"},layers:{background:"#FFFFFF",border:"#CCD0D5"},flat:{transform:a(f,0)},"default":{transform:a(g,1)},active:{transform:a(h,1)}},baseUnit:1,gutters:{text:0,icon:0,iconInline:0,grid:0},elevation:{depth0:"0 1px 2px 0 rgba(0, 0, 0, 0.1)",depth1:"0 1px 2px 0 rgba(0, 0, 0, 0.1)",depth2:"0 4px 8px 1px rgba(0, 0, 0, 0.1)",depth3:"0 4px 8px 1px rgba(0, 0, 0, 0.1)"},ratios:{square:1,circle:1,landscape:1.5,portrait:1.25},visualAlignment:"strict",borderRadius:{control:d.xsmall,container:d.small,layer:d.small},dropdown:{offsetY:4},list:{paddingVert:0,paddingHoriz:0,item:{marginVert:4,marginHoriz:4,paddingVert:4,paddingHoriz:4}},tab:{active:{background:c.active,color:"#1C1E21"},item:{color:"#606770",height:42,hover:"#CCD0D5"},subItem:{active:{backgroundColor:"#FFFFFF",color:"#444950"},hover:{backgroundColor:c.active,color:"#FFFFFF"},padding:8}},binaryControls:{slider:{checked:{marginLeft:13,size:{medium:12,large:16}},disabled:{backgroundColor:"#BEC3C9"},margin:null,size:{medium:10,large:12}},checked:{active:{backgroundColor:"#FFFFFF",opacity:1},disabled:{backgroundColor:"#EBEDF0",opacity:1},hover:{backgroundColor:c["default"],opacity:1},normal:{backgroundColor:c["default"],opacity:1}},unchecked:{active:{backgroundColor:"#FFFFFF",border:"1px solid #3578E5",boxShadow:"inset 0 0 0 3px rgba(53, 120, 229, 0.2)"},disabled:{backgroundColor:"#EBEDF0",border:"1px solid #CCD0D5",boxShadow:"none"},hover:{backgroundColor:"#EBEDF0",border:"1px solid #CCD0D5",boxShadow:"inset 0 0 0 3px #FFFFFF"},normal:{backgroundColor:"#EBEDF0",border:"1px solid #CCD0D5",boxShadow:"inset 0 0 0 3px #FFFFFF"}},borderRadius:30,height:{medium:20,large:24},width:{medium:30,large:34}},inputs:{active:{backgroundColor:"#FFFFFF"},borderRadius:4,"default":{border:"1px solid #CCD0D5",boxShadow:"none"},disabled:{border:"1px solid #CCD0D5",backgroundColor:"#F5F6F7",boxShadow:"none"},edited:{backgroundColor:"#FFFBF0"},error:{border:"1px solid #FA383E"},focused:{border:"1px solid #3578E5",boxShadow:"inset 0 0 0 3px rgba(53, 120, 229, 0.2)",error:{boxShadow:"inset 0 0 0 3px rgba(250, 56, 62, 0.3)"},valid:{boxShadow:"inset 0 0 0 3px rgba(0, 164, 0, 0.1)"},warning:{boxShadow:"inset 0 0 0 3px rgba(255, 186, 0, 0.3)"}},valid:{border:"1px solid #00A400"},warning:{border:" 1px solid #FFBA00"},size:{medium:20,large:24}},controls:{fontWeight:"bold",fontWeightAlt:"bold",height:{small:24,medium:28,large:36},"default":{active:{background:"#DADDE1",borderColor:"#DADDE1",color:"#444950"},disabled:{background:"#F5F6F7",borderColor:"#EBEDF0",color:"#BEC3C9"},hover:{background:"#EBEDF0",borderColor:"#DADDE1",color:"#444950"},normal:{background:"#F5F6F7",borderColor:"#DADDE1",color:"#444950"}},confirm:{active:{background:"#043B87",borderColor:"#043B87",color:"#FFFFFF"},disabled:{background:"#B0D5FF",borderColor:"#B0D5FF",color:"#FFFFFF"},hover:{background:"#0E52B0",borderColor:"#0E52B0",color:"#FFFFFF"},normal:{background:"#1877F2",borderColor:"#1877F2",color:"#FFFFFF"}},special:{active:{background:"#006900",borderColor:"#006900",color:"#FFFFFF"},disabled:{background:"#86DF81",borderColor:"#86DF81",color:"#FFFFFF"},hover:{background:"#008C00",borderColor:"#008C00",color:"#FFFFFF"},normal:{background:"#00A400",borderColor:"#00A400",color:"#FFFFFF"}},flat:{active:{background:"rgba(0, 0, 0, 0.1)",borderColor:"rgba(0, 0, 0, 0.1)",color:"#444950"},disabled:{background:"transparent",borderColor:"transparent",color:"#BEC3C9"},hover:{background:"rgba(0, 0, 0, 0.05)",borderColor:"rgba(0, 0, 0, 0.05)",color:"#444950"},normal:{background:"transparent",borderColor:"transparent",color:"#444950"}},flatWhite:{active:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.1)",color:"#FFFFFF"},disabled:{background:"transparent",borderColor:"transparent",color:"rgba(255, 255, 255, 0.4)"},hover:{background:"rgba(255, 255, 255, 0.05)",borderColor:"rgba(255, 255, 255, 0.05)",color:"#FFFFFF"},normal:{background:"transparent",borderColor:"transparent",color:"#FFFFFF"}}},inputPrimitive:{size:{medium:28,large:36}},layout:{sidebar:{sparse:{width:{expanded:"300px",collapsed:"72px"},gutter:"12px",itemPaddingHorz:"12px",itemPaddingVert:"8px"},dense:{width:{expanded:"240px",collapsed:"52px"},gutter:"4px",itemPaddingHorz:"12px",itemPaddingVert:"4px"}},borderColor:"#DADDE1",card:{boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.1)"},modal:{boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1), 0 16px 32px 2px rgba(0, 0, 0, 0.15)"},tile:{padding:8,selected:{boxShadow:"0 0 0 1px #3578E5, 0 0 3px 0 #B0D5FF, 0 0 0 3px #D1E7FF"}}}};e.exports=b}),null); __d("FDSPrivateThemeContext.react",["FDSPrivateThemeAtomsClassic","React"],(function(a,b,c,d,e,f){"use strict";a=b("React");e.exports=a.createContext(b("FDSPrivateThemeAtomsClassic"))}),null); __d("PositionEnum",["keyMirror","objectValues","prop-types"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({above:null,below:null,left:null,right:null});c=b("objectValues")(a);d=b("prop-types").oneOf(c);e.exports=babelHelpers["extends"]({},a,{propType:d})}),null); __d("SUIErrorBoundary.react",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.componentDidCatch=function(a,b){b=b.componentStack;a.suiChildError=!0;a.componentStack=a.componentStack!=null?b+"\n\n"+a.componentStack:b;throw a};c.render=function(){var a=this.props.children;return a!==void 0?a:null};return b}(a.PureComponent);e.exports=c}),null); __d("SUIInlineStyle",[],(function(a,b,c,d,e,f){"use strict";a=[0,4,8,12,16,20,24,28,32,36,40,"0","0px","4px","8px","12px","16px","20px","24px","28px","32px","36px","40px","auto"];e.exports={StandardSpacingValues:a}}),null); __d("SUITheme",["invariant","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h=["SUIActionMenu","SUIBreadcrumbNav","SUIButton","SUIButtonIcon","SUICalendarPager","SUICardDEPRECATED","SUICard","SUICloseButton","SUICustomPopover_DEPRECATED","SUIDateInput","SUIDateTimeRangePicker","SUIDecisionModal","SUIDivider","SUIDropdownMenu","SUIError","SUIFileSelector","SUIFloatLabelTextInput","SUIFloatLabelTypeahead","SUIFormRow","SUITableHeaderCell","SUIHelpMessage","SUIHighlightedText","SUIHorizontalLayout","SUIInlineNux","SUIInlineTypeahead","SUILayerFooter","SUILayerHeader","SUILink","SUILoadingBar","SUIMessageBox","SUIModalDEPRECATED","SUIModalBackgroundDEPRECATED","SUIModalCardDEPRECATED","SUIModalCard","SUIMultistepModal","SUIMultiTabDrawer","SUINameCell","SUINestedTable","SUINotice","SUINoticeGroup","SUIPopover","SUIRadioList","SUIRemovableSearchableSelector","SUISearchableSelector","SUISearchInput","SUISectionHeading","SUISelector","SUISelectorButton","SUISelectorOption","SUISelectorOptionGroup","SUISelectorSeparator","SUISimpleTable","SUISpinner","SUISplitButton","SUIStatusIndicator","SUITabGroup","SUITabItem","SUITableDEPRECATED","SUITableCell","SUITable","SUIText","SUITextArea","SUITextInput","SUIThreeStateCheckboxInput","SUIToast","SUIToggle","SUIToggleButtonGroup","SUIToken","SUITokenizer","SUITokenizerItem","SUITokenizerItemList","SUITooltip","SUITypeahead"];a=function(){function a(a){var c=this;this.$1=a.components;this.id=a.id;this.logger=a.logger;h.forEach(function(a){var d=c.$1[a];!d?Object.defineProperty(c,a,{get:function(){var c=this;d||b("requireWeak")("AdsInterfacesComponentsLogger",function(b){return b.logSUIThemeError(new Error("Silvertail theme "+c.id+" does not define a uniform for component "+a),c.id)});d||g(0,2206,this.id,a);return d}}):c[a]=d})}var c=a.prototype;c.hasUniform=function(a){return!!this.$1[a]};a.get=function(a){if(a.props.preserveThemeFromContext&&a.props.theme)return a.props.theme;var c=a.props.theme,d=a.context;c=(c=c)!=null?c:d;var e=a.constructor.displayName||a.constructor.name;c||b("requireWeak")("AdsInterfacesComponentsLogger",function(a){return a.logSUIThemeError(new Error("Silvertail component "+e+" was not passed a theme in props or context. See https://fburl.com/silvertail-theme for more details."),e)});c||g(0,2207,e);return c};return a}();e.exports=a}),null); __d("WhiteSpaceEnum",["keyMirror","objectValues","prop-types"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({inherit:null,initial:null,normal:null,nowrap:null,pre:null,"pre-line":null,"pre-wrap":null});c=b("objectValues")(a);d=b("prop-types").oneOf(c);e.exports=babelHelpers["extends"]({},a,{values:c,propType:d})}),null); __d("autoFlipStyleProps",["Locale"],(function(a,b,c,d,e,f){"use strict";function a(a){if(!a||!b("Locale").isRTL())return a;var c={};Object.keys(a).forEach(function(b){c[g(b)]=h(a[b])});return c}function g(a){switch(a){case"left":return"right";case"marginLeft":return"marginRight";case"paddingLeft":return"paddingRight";case"right":return"left";case"marginRight":return"marginLeft";case"paddingRight":return"paddingLeft";default:return a}}function h(a){switch(a){case"left":return"right";case"right":return"left";default:return a}}e.exports=a}),null); __d("SUIThemeContext.react",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");e.exports=a.createContext(null)}),null); /** * License: https://www.facebook.com/legal/license/oyybAxN87_l/ */ __d("hoist-non-react-statics-2.5.0",[],(function(a,b,c,d,e,f){"use strict";var g={},h={exports:g},i;function j(){(function(b,c){typeof g==="object"&&typeof h!=="undefined"?h.exports=c():typeof i==="function"&&i.amd?i(c):b.hoistNonReactStatics=c()})(this,function(){var a={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},b={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c=Object.defineProperty,d=Object.getOwnPropertyNames,e=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,h=g&&g(Object);return function i(j,k,l){if(typeof k!=="string"){if(h){var m=g(k);m&&m!==h&&i(j,m,l)}m=d(k);e&&(m=m.concat(e(k)));for(var n=0;n=0||g(0,2656,a);this.rules.splice(b,1);if(this.isHeadless())return;a=this.getTag();if(this.isSlow)a.removeChild(a.childNodes[b+1]);else{a=a.sheet;a||g(0,2657);a.deleteRule(b)}};c.normalizeRule=function(a){var b=this.rootTheme;return this.supportsVariables||b==null?a:a.replace(m,function(a,c){return b[c]})};c.getInsertPositionForPriority=function(a){var b=this.ruleForPriority.get(a);if(b!=null)return this.rules.indexOf(b)+1;b=Array.from(this.ruleForPriority.keys()).sort(function(a,b){return b-a}).filter(function(b){return b>a?1:0});if(b.length===0)return this.getRuleCount();b=b.pop();return this.rules.indexOf(this.ruleForPriority.get(b))};c.insert=function(a,b,c){this.injected===!1&&this.inject();c=this.$1&&c!=null?c:a;if(this.externalRules.has(c.slice(0,c.indexOf("{")).trim()))return;if(this.rules.includes(c))return;a=this.normalizeRule(c);if(this.externalRules.has(a.slice(0,a.indexOf("{")).trim()))return;c=this.getInsertPositionForPriority(b);this.rules.splice(c,0,a);this.ruleForPriority.set(b,a);if(this.isHeadless())return;b=this.getTag();if(this.isSlow){var d=document.createTextNode(a);b.insertBefore(d,b.childNodes[c])}else{d=b.sheet;if(d!=null)try{d.insertRule(a,c)}catch(a){}}};return a}();a.LIGHT_MODE_CLASS_NAME=h;a.DARK_MODE_CLASS_NAME=i;e.exports=a}),null); __d("FDSStyleXSheet",["FDSStyleXDefaultTheme","StyleXSheet"],(function(a,b,c,d,e,f){"use strict";var g=new(b("StyleXSheet"))({rootTheme:b("FDSStyleXDefaultTheme")});e.exports={inject:function(){g.inject()}}}),null); __d("makeFDSErrorHandlingComponent",["FDSClientConfig","React"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a,c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.componentDidCatch=function(a,d){d=d.componentStack;a.suiChildError!==!0&&a.fdsError!==!0&&(a.fdsError=!0,a.componentStack=a.componentStack!=null?d+"\n\n"+a.componentStack:d,b("FDSClientConfig").logger!=null&&typeof b("FDSClientConfig").logger.logBIGComponentError==="function"&&b("FDSClientConfig").logger.logBIGComponentError(a,c));throw a};f.render=function(){var b=this.props,c=b.forwardedRef;b=babelHelpers.objectWithoutPropertiesLoose(b,["forwardedRef"]);return g.jsx(a,babelHelpers["extends"]({},b,{ref:c}))};return d}(g.Component),e=function(a,b){return g.jsx(d,babelHelpers["extends"]({},a,{forwardedRef:b}))};e.displayName=c;e=g.forwardRef(e);e.displayName=c;return e}e.exports=a}),null); __d("makeFDSStandardComponent",["requireCond","cr:1266336","FDSStyleXSheet","React","cr:1347282","gkx","hoist-non-react-statics","makeFDSErrorHandlingComponent"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("gkx")("678680")&&window.location.search.includes("geo_theme=1");b("FDSStyleXSheet").inject();function i(a){var c,d=(c=b("cr:1266336"))!=null?c:g.Fragment;function e(b,c){return g.jsx(d,{children:g.jsx(a,babelHelpers["extends"]({},b,{ref:c}))})}return g.forwardRef(e)}function a(a,c){c.displayName==null&&(c.displayName=a);return b("hoist-non-react-statics")(b("makeFDSErrorHandlingComponent")(h?i(c):c,a),c)}e.exports=a}),null); __d("nullableToVoid",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a===null?void 0:a}e.exports=a}),null); __d("FDSText.react",["FDSPrivateThemeContext.react","React","SUIText.react","SUITheme","getSUITextUniform.fds","makeFDSStandardComponent","memoizeWithArgs","nullableToVoid"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("memoizeWithArgs")(function(a,c){return new(b("SUITheme"))({id:"FDSText",components:{SUIText:b("getSUITextUniform.fds")(a,c)}})},function(a,b){return a.id+"."+b});a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=this.context;c=h(c,(c=c.colors.text[a.color])!=null?c:"UNSUPPORTED");return g.jsx(b("SUIText.react"),{children:a.children,color:k(a.color,a.palette),"data-testid":void 0,display:a.display,headingLevel:i(a.size),id:b("nullableToVoid")(a.id),margin:b("nullableToVoid")(a.margin),overflowWrap:a.overflowWrap,palette:a.palette,preserveThemeFromContext:!0,role:a.role,size:j(a.size),textAlign:a.textAlign,theme:c,tooltipPosition:b("nullableToVoid")(a.tooltipPosition),weight:b("nullableToVoid")(a.weight),whiteSpace:b("nullableToVoid")(a.whiteSpace),width:b("nullableToVoid")(a.width)})};return c}(g.Component);a.contextType=b("FDSPrivateThemeContext.react");a.defaultProps={color:"primary",display:"inline",overflowWrap:"normal",size:"body2",textAlign:"left"};function i(a){switch(a){case"header1":return 1;case"header2":return 2;case"header3":return 3;case"header4":return 4;default:return null}}function j(a){switch(a){case"title":return"headline";case"body":return"regular";case"dataDisplay":return"display";default:return a}}function k(a,b){switch(a){case"highlight":return"interactive";case"white":case"disabled":return a;case"secondary":return b==="dark"?a:"primary";default:return"primary"}}e.exports=b("makeFDSStandardComponent")("FDSText",a)}),null); __d("cxMargin",["cx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){throw new Error("cxMargin: Unexpected margin transformation.")}e.exports=a}),null); __d("LoadingMarker.react",["requireCond","LoadingMarkerGated","React","cr:1609270"],(function(a,b,c,d,e,f){"use strict";b("React");function a(a){return a.children}c=b("LoadingMarkerGated").component||a;b("cr:1609270")!=null&&(c=b("cr:1609270")(c));e.exports=c}),null); __d("XUISpinner.react",["cx","fbt","BrowserSupport","LoadingMarker.react","React","UserAgent","joinClasses","prop-types"],(function(a,b,c,d,e,f,g,h){var i=b("React"),j=b("BrowserSupport").hasCSSAnimations()&&!(b("UserAgent").isEngine("Trident < 6")||b("UserAgent").isEngine("Gecko < 39")||b("UserAgent").isBrowser("Safari < 6"));a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.showOnAsync,d=a.background,e=a.paused;a=babelHelpers.objectWithoutPropertiesLoose(a,["showOnAsync","background","paused"]);d="img _55ym"+(this.props.size=="small"?" _55yn":"")+(this.props.size=="large"?" _55yq":"")+(d=="light"?" _55yo":"")+(d=="dark"?" _55yp":"")+(c?" _5tqs":"")+(j?"":" _5d9-")+(j&&e?" _2y32":"");return i.jsx(b("LoadingMarker.react"),{children:i.jsx("span",babelHelpers["extends"]({},a,{className:b("joinClasses")(this.props.className,d),role:"progressbar","aria-valuetext":h._("Loading..."),"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100"}))})};return c}(i.Component);a.propTypes={paused:b("prop-types").bool,showOnAsync:b("prop-types").bool,size:b("prop-types").oneOf(["small","large"]),background:b("prop-types").oneOf(["light","dark"])};a.defaultProps={showOnAsync:!1,size:"small",background:"light"};e.exports=a}),null); __d("PageVoiceDropdownSelector.react",["ix","cx","BootloadedComponent.react","FDSSpinner.react","Image.react","JSResource","React","XUIPopoverButton.react","asset","joinClasses","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=16,k=40;a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0&&(c=b("transformTextRanges")(c,a,function(a,c){c=c.entity&&(c.entity.external||c.entity.__typename==="ExternalUrl");return c?b("URITruncator")(a,b("UFIConstants").commentURLTruncationLength):a})));return c},getCommentBodyInterpolator:function(a,c,d,e,f){return function(g,i){if(i.videoTimestamp){if(e)return h.jsx("span",{children:i.entity});var j=function(a){a.preventDefault();new(b("VideoTimestampsClicksWWWTypedLogger"))().setVideoTimestamp(i.integerTimestamp).setCommentID(d).setIsContentTimestamp(!1).log();c&&(b("UFIVideoPlayerRegistry").seekAvailableVideoPlayerController(c,i.integerTimestamp),b("UFIVideoPlayerRegistry").scrollToAvailableVideo(c));return!1};return h.jsx("a",{className:"TimestampLink",onClick:j,href:"#",children:i.entity})}else if(i.sphericalViewport){j=function(a){a.preventDefault();c&&b("UFIVideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(c,{yaw:i.yaw,pitch:i.pitch});return!1};return h.jsx("a",{onClick:j,href:"#",children:i.entity})}else if(i.sphericalViewportAndTimestamp){j=function(a){a.preventDefault();c&&(b("UFIVideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(c,{yaw:i.yaw,pitch:i.pitch}),b("UFIVideoPlayerRegistry").seekAvailableVideoPlayerController(c,i.integerTimestamp));return!1};return h.jsx("a",{onClick:j,href:"#",children:i.entity})}else if(i.campaign)return h.jsx(b("TextDelightRange.react"),{campaignID:i.campaign.id,commentPrivacy:f||void 0,delightStyles:i.campaign.delight_styles,surface:"comment",children:g});else return b("HovercardLinkInterpolator")(g,i,"_blank",a,"ufi")}},shallowCopyRanges:function(a){if(!a)return a;var b=[];a.forEach(function(a){b.push(babelHelpers["extends"]({},a))});return b},annotateProfileURIIfPublic:function(a,c){return!a?c:new(g||(g=b("URI")))(c).addQueryData("rc","p").toString()},shouldShowTranslateAll:function(a,b,c,d){if(!a)return!1;var e=0,f,g;for(var h=0;h1)return!0;if(c[f.id]){g=b?b[f.id]:[];for(var i=0;i1)return!0}}}return!1}};e.exports=a}),null); __d("CometOnBlueHeroTracingBootstrap",["performanceNow","uuid"],(function(a,b,c,d,e,f){"use strict";f.startInteraction=a;f.inject=c;var g,h=[],i=null;function a(a){var c,d=b("uuid")();c=(c=a.startTime)!=null?c:(g||(g=b("performanceNow")))();c={interactionID:d,startTime:c,tracePolicy:(c=a.tracePolicy)!=null?c:a.moduleID!=null?"comet_on_blue."+a.moduleID:null,traceType:a.traceType};if(i)return i(c);h.push(c);return d}function c(a){if(i)return;i=a;h.forEach(function(b){return a(b)})}}),null); __d("isValidUniqueID",[],(function(a,b,c,d,e,f){function a(a){return a!==null&&a!==void 0&&a!==""&&(typeof a==="string"||typeof a==="number")}e.exports=a}),null); __d("SearchableEntry",["invariant","FbtResultBase","HTML","isValidUniqueID"],(function(a,b,c,d,e,f,g){function h(a){if(a==null||a==="")return"";else if(typeof a==="string")return a;else if(a instanceof b("FbtResultBase"))return a.toString();else if(typeof a==="object"){a=b("HTML").replaceJSONWrapper(a);if(b("HTML").isHTML(a)){a=a.getRootNode();return a.textContent||a.innerText||""}else return""}else return""}a=function(){"use strict";function a(a){this.valueOf=this.getUniqueID;b("isValidUniqueID")(a.uniqueID)||g(0,3851,a.uniqueID);this.$8=a.uniqueID+"";a.title instanceof b("FbtResultBase")&&(a.title=a.title.toString());a.title!=null&&typeof a.title==="string"||g(0,3852,a.title);this.$6=a.title;this.$3=a.order||0;this.$5=h(a.subtitle);this.$2=a.keywordString||"";this.$4=a.photo||"";this.$9=a.uri||"";this.$7=h(a.type);var c=a.auxiliaryData==null?{}:a.auxiliaryData;this.$1=c;this.$10=a.dataType||""}var c=a.prototype;c.getUniqueID=function(){return this.$8};c.getOrder=function(){return this.$3};c.getTitle=function(){return this.$6};c.getSubtitle=function(){return this.$5};c.getKeywordString=function(){return this.$2};c.getPhoto=function(){return this.$4};c.getURI=function(){return this.$9};c.getType=function(){return this.$7};c.getAuxiliaryData=function(){return this.$1};c.getDataType=function(){return this.$10};c.toPlainObject=function(){return{auxiliaryData:this.$1,keywordString:this.$2,order:this.$3,photo:this.$4,subtitle:this.$5,title:this.$6,type:this.$7,uniqueID:this.$8,uri:this.$9,dataType:this.$10}};return a}();e.exports=a}),null); __d("MentionResultsPropTypes",["React","SearchableEntry","SelectionState","prop-types"],(function(a,b,c,d,e,f){b("React");c={viewID:(a=b("prop-types")).string.isRequired,selection:a.instanceOf(b("SelectionState")).isRequired,contextComponent:a.object.isRequired,mentionableEntries:a.array.isRequired,highlightedMentionable:a.instanceOf(b("SearchableEntry")),onMentionSelect:a.func.isRequired,onMentionHighlight:a.func.isRequired,onMentionRenderHighlight:a.func.isRequired};e.exports=c}),null); __d("emptyObject",[],(function(a,b,c,d,e,f){"use strict";a={};e.exports=a}),null); __d("fbjs/lib/emptyObject",["emptyObject"],(function(a,b,c,d,e,f){"use strict";e.exports=b("emptyObject")}),null); __d("create-react-class/factory",["fbjs/lib/emptyObject","fbjs/lib/invariant","object-assign","fbjs/lib/warning"],(function(a,b,c,d,e,f){"use strict";var g="mixins";function h(a){return a}c={};function a(a,c,d){var e=[],f={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},i={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},j={displayName:function(a,b){a.displayName=b},mixins:function(a,b){if(b)for(var c=0;c0?a.set("spendingUnits",0).set("errorMessage",null):a;case"COMPLETE_FETCH_EXCLAMATION_STARS_METADATA":d=a.set("starsMetadata",c.starsMetadata).set("minimumTip",c.minimumTip).set("isMetadataLoading",!1);if(a.spendingUnits!==0){e=this.$ExclamationStarsStore1(d,d.spendingUnits);var f=this.$ExclamationStarsStore2(a,d.spendingUnits);d=d.set("backgroundColor",e).set("errorMessage",f)}return d;case"START_FETCH_BALANCE":return a.set("isBalanceLoading",!0);case"COMPLETE_FETCH_BALANCE":return a.set("balance",c.balance).set("isBalanceLoading",!1);case"HANDLE_TRANSACTION_ERROR":new(b("DigitalContentWalletTypedLogger"))().setEvent("wallet_data_transaction_exception").setPayeeID(c.payeeId).log();return a.set("errorMessage",i);case"ENABLE_EXCLAMATION_STARS":return a.set("isExclamationStarsEnabled",!0);case"FLYOUT_STARS_SELECTED":return a.set("isFlyoutStarsSelected",!0);case"FLYOUT_STARS_UNSELECTED":return a.set("isFlyoutStarsSelected",!1);default:return a}};d.getSpendingUnits=function(){return this.getState().get("spendingUnits")};d.isExclamationStarsDetected=function(){return this.getState().get("spendingUnits")>0};d.getBackgroundColor=function(){return this.getState().get("backgroundColor")};d.isLoading=function(){return this.getState().get("isMetadataLoading")||this.getState().get("isBalanceLoading")};d.getErrorMessage=function(){return this.getState().get("errorMessage")};d.isExclamationStarsEnabled=function(){return this.getState().get("isExclamationStarsEnabled")};d.isFlyoutStarsSelected=function(){return this.getState().get("isFlyoutStarsSelected")};d.getBalance=function(){return this.getState().get("balance")};d.getMinimumTip=function(){return this.getState().get("minimumTip")};d.$ExclamationStarsStore1=function(a,b){a=a.starsMetadata;if(a!=null){if(b<=a[0].min)return a[0].color;for(var c=0;ca.balance)return j(b);return null};return c}(b("FluxReduceStore"));c.__moduleID=e.id;e.exports=new c(b("ExclamationStarsDispatcher.react"))}),null); __d("shallowArrayEqual",[],(function(a,b,c,d,e,f){function a(a,b){if(a===b)return!0;if(a.length!==b.length)return!1;for(var c=0,d=a.length;c0&&f.push(i.jsxs("span",{children:[i.jsx(b("Badge.react"),{type:"subscription",size:"medium"},"badge")," "]}));c.persona?f.push(h._("{author} ({persona})",[h._param("author",c.firstName),h._param("persona",c.persona)])):this.props.useFirstName?f.push(c.firstName):this.props.author.isBusinessPersona&&this.props.author.assetRole?f.push(c.name+" "+h._("(")+this.props.author.assetRole+h._(")")):f.push(c.name);this.props.isAuthorNonCoworker?f.push(i.jsx(b("Badge.react"),{type:"work_non_coworker"},"noncoworker")):this.props.isAuthorBot&&f.push(i.jsx(b("Badge.react"),{type:"bot"},"bot"));var g=this.props.isAdminViewer?"ufi_admin":"ufi",j=Object.assign({},this.props);delete j.author;delete j.delimiter;delete j.dialogUrl;delete j.disableAuthorLink;delete j.focusOnMount;delete j.groupOrEventID;delete j.hovercardLocation;delete j.isAdminViewer;delete j.isAuthorBot;delete j.isAuthorNonCoworker;delete j.isAuthorWeakReference;delete j.isPublic;delete j.showHovercard;delete j.useFirstName;g=this.props.showHovercard?b("HovercardLink").constructEndpointWithGroupLocationAndExtraParams(c,this.props.groupOrEventID,this.props.hovercardLocation?this.props.hovercardLocation:g,this.props.isAuthorWeakReference,{is_public:this.props.isPublic}).toString():null;var k=c.uri&&!this.props.disableAuthorLink;c=k?b("UFICommentUtils").annotateProfileURIIfPublic(!!this.props.isPublic,c.uri):null;k=k?i.jsx("a",babelHelpers["extends"]({},j,{className:e,"data-hovercard":g,"data-ft":this.props["data-ft"],dir:d,href:c,ref:"authorName",children:f})):i.jsx("span",{className:e,dir:d,ref:"authorName",children:f});this.props.dialogUrl&&(k=i.jsx("a",babelHelpers["extends"]({},j,{className:e,"data-hovercard":g,"data-ft":this.props["data-ft"],dir:d,ajaxify:this.props.dialogUrl,rel:"dialog",href:c,ref:"authorName",children:f})));return i.jsxs("span",{children:[k,i.Children.map(this.props.children,function(b){return b?[b.key==="badge"||b.key==="constituentTitle"||b.key==="friendsOnlyBadge"||b.key==="groupMemberBadge"?"":a.props.delimiter,b]:null})]})};return c}(i.Component);a.defaultProps={delimiter:" \xb7 ",isAdminViewer:!1,isPublic:!1};e.exports=a}),null); __d("UFIAttachMediaSection.react",["cx","fbt","Bootloader","Focus","React","UFICommentFileInputAcceptValues","XUIError.react","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;ga?(e=m/b,c=a*e,d=b*e):(e=m/a,c=a*e,d=b*e);return{height:Math.round(c),width:Math.round(d)}};d.$3=function(){var a=b("ReactDOM").findDOMNode(this),c=a?b("DOMVector").getElementDimensions(a).y:0;c!==this.$1&&(this.$1=c,b("Arbiter").inform("ufi/photoPreviewHightChanged",{node:a}))};d.componentDidUpdate=function(){this.props.monitorHeight&&this.$3()};d.getMatchingStarText=function(a,b){return i._("{user_tipped_star_quantity} + {matched_star_quantity} Stars",[i._param("user_tipped_star_quantity",a),i._param("matched_star_quantity",b)])};d.maybeShowStarAttachmentTooltip=function(a){var c=this;return j.jsx(b("XUIAmbientNUX.react"),{alignment:"right",contextRef:function(){return c.refs.attachment_ref},position:"above",shown:this.state.starNuxShown,onCloseButtonClick:this.$4,children:i._("{Number of stars that Facebook will match.} of the Stars will be matched by Facebook.",[i._param("Number of stars that Facebook will match.",a)])},"ambientNUX")};d.render=function(){var a=null,c=this.props.attachedPhoto||this.props.attachedSticker||this.props.attachedVideo||this.props.attachedFile||this.props.attachedGIF||this.props.attachedStars;if(c&&this.props.attachedSticker){var d=this.$2(c.metadata.height,c.metadata.width),e=null,f=null;window.devicePixelRatio&&window.devicePixelRatio>1?(e=c.metadata.sprite_uri_2x,f=c.metadata.source_uri_2x):(e=c.metadata.sprite_uri,f=c.metadata.source_uri);a=j.jsx(b("BootloadedComponent.react"),{accessibilityLabel:c.metadata.accessibilityLabel,bootloadPlaceholder:j.jsx(b("XUISpinner.react"),{}),bootloadLoader:b("JSResource")("Sticker.react").__setRef("UFIAttachedMediaPreview.react"),animationTrigger:"load_and_hover",frameCount:c.metadata.frameCount,frameRate:c.metadata.frameRate,framesPerCol:c.metadata.framesPerCol,framesPerRow:c.metadata.framesPerRow,spriteURI:e,sourceHeight:d.height,sourceURI:f,sourceWidth:d.width})}else if(c&&this.props.attachedGIF)if(c.markup)a=j.jsx(b("DOMContainer.react"),{children:c.markup}),c.markup.clientWidth&&c.markup.clientWidth>l&&(a=j.jsx("div",{style:{marginTop:"20px"},children:a}));else{e=this.props.attachedGIF.media.preview;a=j.jsx("div",{style:{height:e.height,width:e.width},children:j.jsx(b("Image.react"),{src:e.url})})}else if(c&&this.props.attachedFile){f=c.markupPreview;f&&(b("HTML").isHTML(f.markup)&&(f=b("HTML").replaceJSONWrapper(f.markup).getRootNode()),a=j.jsx(b("DOMContainer.react"),{"data-testid":void 0,children:f}))}else if(c&&this.props.attachedPhoto){d=c.markupPreview;d?(b("HTML").isHTML(d.markup)&&(d=b("HTML").replaceJSONWrapper(d.markup).getRootNode()),a=j.jsx(b("DOMContainer.react"),{"data-testid":void 0,children:d})):this.props.attachedPhoto&&this.props.attachedPhoto.metadata&&this.props.attachedPhoto.metadata.preview_uri&&(a=j.jsx("div",{style:{height:this.props.attachedPhoto.metadata.height},children:j.jsx(b("Image.react"),{src:this.props.attachedPhoto.metadata.preview_uri})}))}else if(this.props.isLoadingPhoto||this.props.isLoadingFile)a=j.jsx(b("LoadingIndicator.react"),{color:"white",className:"UFICommentPhotoAttachedPreviewLoadingIndicator",size:"medium"});else if(this.props.videoStatus==="uploading"||this.props.attachedVideo&&this.props.videoStatus==="encoding")a=j.jsx(b("BootloadedComponent.react"),{bootloadLoader:b("JSResource")("OptimisticVideoComment.react").__setRef("UFIAttachedMediaPreview.react"),bootloadPlaceholder:j.jsx("span",{}),videoFileURL:this.props.videoFileURL,videoStatus:this.props.videoStatus,progress:this.props.videoProgress,isVideoFileTranscodedGIF:this.props.isVideoFileTranscodedGIF});else if(c&&this.props.attachedVideo)a=j.jsx("div",{className:"_3f0q",children:j.jsx(b("DOMContainer.react"),{children:c.markup})});else if(c&&this.props.attachedStars){f=(e=c.promotionEvent)==null?void 0:e.imageSrc;d=f&&c.matchingQuantity>0;e=c.previewImageSrc;var h=c.userTippedQuantity,m=c.matchingQuantity,n=c.gift,o=d?this.maybeShowStarAttachmentTooltip(c.matchingQuantity):null;n!=null?a=j.jsx("div",{className:"UFICommentStarsAttachedPreview",children:j.jsx(k,babelHelpers["extends"]({},n,{isSelected:!1}))}):a=j.jsxs("div",{className:"UFICommentStarsAttachedPreview",children:[d?j.jsx(b("Image.react"),{ref:"attachment_ref",className:"UFICommentStarsAttachedPreviewImage",src:f,height:"20",width:"20"}):j.jsx(b("Image.react"),{ref:"attachment_ref",className:"UFICommentStarsAttachedPreviewImage",src:e?e:g("647932")}),j.jsx(b("XUIText.react"),{weight:"bold",children:d?this.getMatchingStarText(h,m):i._("{star_quantity} Stars",[i._param("star_quantity",c.metadata)])}),o]})}n=null;f=this.props.attachedSticker?this.props.onRemoveAttachedStickerPreview:this.props.attachedStars?this.props.onRemoveAttachedStarsPreview:this.props.onRemoveAttachedMediaPreviewClicked;if(a!=null){e=null;this.props.attachedSticker?e=i._("Remove Sticker"):this.props.attachedPhoto?e=i._("Remove Photo"):this.props.attachedVideo?e=i._("Remove Video"):this.props.attachedFile?e=i._("Remove File"):this.props.attachedGIF?e=i._("Remove GIF"):this.props.attachedStars&&(e=this.props.attachedStars.gift==null?i._("Remove Stars"):i._("Remove Gift"));d=b("SutroStoryHeaderUFIGatingConfig").enabled_for_comment_composer_rounded_borders;n=j.jsxs("div",{className:"UFICommentPhotoAttachedPreview"+(d?" _4soo":"")+" pas",children:[a,j.jsx(b("CloseButton.react"),{tooltip:e,onClick:f,ariaLabel:e})]})}return n};return c}(j.Component);c.propTypes={attachedPhoto:(d=b("prop-types")).object,attachedVideo:d.object,attachedFile:d.object,attachedSticker:d.object,attachedGIF:d.object,attachedStars:d.object,onRemoveAttachedMediaPreviewClicked:d.func,onRemoveAttachedStickerPreview:d.func,subtitle:d.string,isLoadingPhoto:d.bool,isLoadingFile:d.bool,videoFileURL:d.string,videoStatus:d.string,videoProgress:d.number,isVideoFileTranscodedGIF:d.bool};e.exports=c}),null); __d("GamesVideoFanSupportAttachmentHandler",["cx","ifRequired"],(function(a,b,c,d,e,f,g){"use strict";var h="tip_attachment_support_link";a={_registeredLinks:new Set(),registerFanSupportAttachment:function(a){if(!a)return;a=a.querySelector('[name="'+h+'"]');a&&!this._registeredLinks.has(a)&&(a.addEventListener("mouseover",this._onLinkMouseover.bind(this,a)),a.addEventListener("click",this._onLinkClick.bind(this,a)),this._registeredLinks.add(a))},_onLinkMouseover:function(a){var b="_1k48";this._isSupportOverlayRegistered()?a.classList.remove(b):a.classList.add(b)},_onLinkClick:function(a,b){if(this._isSupportOverlayRegistered()){a=this._getTahoeView();a&&a.toggleSupportOverlay();b.stopPropagation()}},_isSupportOverlayRegistered:function(){var a=this._getTahoeView();return a&&a.isSupportOverlayRegistered()},_getTahoeView:function(){var a=void 0;b("ifRequired")("Tahoe",function(c){b("ifRequired")("TahoeVideoView",function(b){var d=c.get();if(d){d=d.getView();d instanceof b&&(a=d)}})});return a}};e.exports=a}),null); __d("mergeHelpers",["invariant","FbtResultBase"],(function(a,b,c,d,e,f,g){"use strict";var h=36,i=function(a){return typeof a!=="object"||a instanceof Date||a===null||a instanceof b("FbtResultBase")},j={MAX_MERGE_DEPTH:h,isTerminal:i,normalizeMergeArg:function(a){return a==null?{}:a},checkMergeArrayArgs:function(a,b){Array.isArray(a)&&Array.isArray(b)||g(0,3714,a,b)},checkMergeObjectArgs:function(a,b){j.checkMergeObjectArg(a),j.checkMergeObjectArg(b)},checkMergeObjectArg:function(a){!i(a)&&!Array.isArray(a)||g(0,3715,a)},checkMergeIntoObjectArg:function(a){(!i(a)||typeof a==="function")&&!Array.isArray(a)||g(0,3716,a)},checkMergeLevel:function(a){aa?(f=c/b,d=a*f,e=b*f):(f=c/a,d=a*f,e=b*f);return{height:Math.round(d),width:Math.round(e)}};d.componentDidMount=function(){var a=this,c=this.$2(this.props.comment);c&&this.renderAttachment(c);this.$1=new(b("SubscriptionsHandler"))();this.$1.addSubscriptions(b("UFILocallyComposedCommentStore").addListener(function(){a.setState({localCommentIDs:b("UFILocallyComposedCommentStore").getStateForInstance(a.props.comment.ufiinstanceid)})}))};d.shouldComponentUpdate=function(a,b){b=this.$2(this.props.comment);a=this.$2(a.comment);if(!b&&!a)return!1;if(!b||!a||b.markup!=a.markup)return!0;else return!1};d.componentDidUpdate=function(a){a=this.$2(this.props.comment);if(!a)return;a.type!=="sticker"&&a.type!=="photo"&&this.renderAttachment(a)};d.componentWillUnmount=function(){if(this.refs&&this.refs.contents){var a=b("ReactDOM").findDOMNode(this.refs.contents);b("DOM").empty(a)}this.$1&&this.$1.release()};d.renderAttachment=function(a){var c=this;if(this.props.isPinnedLivingRoomPhotoComment)return;if(a&&this.refs&&this.refs.contents&&a.markup){var d=a.markup;b("HTML").isHTML(d.markup)&&(d=b("HTML").replaceJSONWrapper(d.markup).getRootNode());var e=d.parentNode,f=b("ReactDOM").findDOMNode(this.refs.contents);e&&e!==f&&(d=d.cloneNode(!0));if(this.props.disableTheater){e=d.querySelector('a[rel="theater"]');e&&b("DOM").setAttributes(e,{target:"_blank",rel:""})}b("DOM").setContent(f,d);if(a.type=="share"){e="_6m2";e=f&&b("CSS").hasClass(f,e)?f:b("DOMQuery").scry(f,"."+e)[0];e=e?e:f;e instanceof HTMLElement&&b("LitestandShareAttachment").init(e)}else a.type==="TIP_JAR_PAYMENT"&&b("GamesVideoFanSupportAttachmentHandler").registerFanSupportAttachment(d)}else if(a&&a.type=="video"&&!a.markup){f=b("XVideoInLiveCommentPreviewController").getURIBuilder();new(b("AsyncRequest"))(f.getURI()).setMethod("POST").setData({video_id:a.target.id}).setHandler(function(a){c.renderAttachment(a.payload.video_preview.video_comment)}).send()}else a&&a.type=="gif"&&!a.markup?new(b("AsyncRequest"))(b("XAnimatedImageInLiveCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send():a&&a.type=="file"&&!a.markup?new(b("AsyncRequest"))(b("XFileCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send():a&&a.type=="donation"&&!a.markup?new(b("AsyncRequest"))(b("XDonationCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send():a&&a.type=="TIP_JAR_PAYMENT"&&!a.markup?new(b("AsyncRequest"))(b("XTipJarCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send():a&&a.type=="chat_command_result"&&!a.markup?new(b("AsyncRequest"))(b("XChatCommandResultCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send():a!=null&&a.type=="marketplace_ecomm_product_item"&&!a.markup&&new(b("AsyncRequest"))(b("XMarketplaceEcommProductItemCommentPreviewController").getURIBuilder().getURI()).setMethod("POST").setData({comment_id:this.props.comment.id,dom_selector:"div#"+this.$4(a.type)}).send()};d.renderSticker=function(a){var c=this.$3(Number(a.metadata.height),Number(a.metadata.width)),d=null,e=null;window.devicePixelRatio&&window.devicePixelRatio>1?(d=a.metadata.sprite_uri_2x,e=a.metadata.source_uri_2x):(d=a.metadata.sprite_uri,e=a.metadata.source_uri);return j.jsx(b("BootloadedComponent.react"),{accessibilityLabel:a.metadata.accessibilityLabel,bootloadPlaceholder:j.jsx(b("XUISpinner.react"),{}),bootloadLoader:b("JSResource")("Sticker.react").__setRef("UFICommentAttachment.react"),className:"UFICommentStickerAttachment",animationTrigger:"load_and_hover",frameCount:a.metadata.frameCount,frameRate:a.metadata.frameRate,framesPerCol:a.metadata.framesPerCol,framesPerRow:a.metadata.framesPerRow,spriteURI:d,sourceHeight:c.height,sourceURI:e,sourceWidth:c.width,testID:m})};d.renderPhoto=function(a){var c="_2rn3 _4-eo";return j.jsx("div",{className:"_4iv9",children:j.jsx(b("Link.react"),{className:c,"data-testid":void 0,rel:"theater",href:a.metadata.url,children:j.jsx("div",{style:{height:a.metadata.height},children:j.jsx(b("Image.react"),{src:a.metadata.preview_uri})})})})};d.renderShare=function(a){return j.jsx(b("BootloadedComponent.react"),{bootloadPlaceholder:j.jsx("span",{}),bootloadLoader:b("JSResource")("UFILiveCommentLinkPreview.react").__setRef("UFICommentAttachment.react"),attachment:a})};d.renderLivePlaceInfo=function(a){return j.jsx(b("BootloadedComponent.react"),{bootloadPlaceholder:j.jsx("span",{}),bootloadLoader:b("JSResource")("PlaceListLiveCommentAttachment.react").__setRef("UFICommentAttachment.react"),commentID:this.props.comment.fbid,data:a,postID:this.props.comment.ftentidentifier})};d.renderPlaceInfo=function(a){var c=this.props.comment.__typename==="local"||this.state.localCommentIDs[this.props.comment.id];return j.jsx(b("BootloadedComponent.react"),babelHelpers["extends"]({bootloadPlaceholder:j.jsx(b("XUISpinner.react"),{}),bootloadLoader:b("JSResource")("MultiPlacePageInfoCard.react").__setRef("UFICommentAttachment.react"),isLocallyComposed:c,postID:this.props.comment.ftentidentifier,actorID:this.props.comment.author},a.props))};d.renderUpsellInfo=function(a){if(a.subtype){if(a.subtype=="question_triggered_page_msg")return j.jsx(j.Suspense,{fallback:j.jsx(b("XUISpinner.react"),{}),children:j.jsx(h,babelHelpers["extends"]({},a))});if(a.subtype=="private_reply_user_msg")return j.jsx(j.Suspense,{fallback:j.jsx(b("XUISpinner.react"),{}),children:j.jsx(i,babelHelpers["extends"]({},a))})}return j.jsx("span",{})};d.$4=function(a){return a+"_comment_attachment_"+this.props.comment.id+this.state.randomInstanceID};d.render=function(){var a=this.$2(this.props.comment);if(a)if(a.type==="sticker")return this.renderSticker(a);else if(a.type==="gif"||a.type==="donation"||a.type==="TIP_JAR_PAYMENT"||a.type==="chat_command_result"||a.type==="marketplace_ecomm_product_item")return j.jsx("div",{ref:"contents",id:this.$4(a.type),children:j.jsx(b("XUISpinner.react"),{})});else if(a.type==="photo")return this.renderPhoto(a);else if(a.type==="live_share")return this.renderShare(a);else if(a.type=="comment_place_info")return this.renderPlaceInfo(a);else if(a.type=="live_comment_place_info")return this.renderLivePlaceInfo(a);else if(a.type=="upsell_info")return this.renderUpsellInfo(a);else return j.jsx("div",{ref:"contents"});return j.jsx("span",{})};return c}(j.Component);e.exports=c}),null); __d("UFICommentMetadata.react",["ix","cx","fbt","BootloadedComponent.react","Image.react","JSResource","Middot.react","React","Timestamp.react","TrackingNodes","UFIConstants","URI","XUISpinner.react","asset"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React"),l=b("UFIConstants").UFIStatus;a="ufi_comment_timestamp";var m="UFIFailureMessageIcon",n="UFIFailureMessage",o="uiLinkSubtle",p=function(a){a=a.status;return a===l.FAILED_ADD||a===l.FAILED_EDIT};c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;ff.y);if(d!=null&&!i)return d;if(h)return h;e=Math.floor((f.x+a)*(f.y-c)/(4*f.x));return Math.max(e,g)},setFixedTopMargin:function(a){h=a}};e.exports=a}),null); __d("LayerTabIsolation",["TabIsolation"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this._layer=a,this._tabIsolation=null,this._subscriptions=null}var c=a.prototype;c.enable=function(){var a=this._layer.getRoot();if(a==null)return;a=new(b("TabIsolation"))(a);this._tabIsolation=a;this._subscriptions=[this._layer.subscribe("show",a.enable.bind(a)),this._layer.subscribe("hide",a.disable.bind(a))]};c.disable=function(){while(this._subscriptions&&this._subscriptions.length)this._subscriptions.pop().unsubscribe();this._tabIsolation&&this._tabIsolation.disable();this._tabIsolation=null};return a}();Object.assign(a.prototype,{_subscriptions:[]});e.exports=a}),null); __d("LayerTogglerContext",["Toggler"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this._layer=a}var c=a.prototype;c.enable=function(){this._root=this._layer.getRoot(),b("Toggler").createInstance(this._root).setSticky(!1)};c.disable=function(){b("Toggler").destroyInstance(this._root),this._root=null};return a}();e.exports=a}),null); __d("DialogX",["cx","fbt","Arbiter","CSS","DialogPosition","DOMQuery","Event","JSXDOM","Layer","LayerAutoFocus","LayerButtons","LayerFormHooks","LayerRefocusOnHide","LayerTabIsolation","LayerTogglerContext","ModalLayer","Style","Vector","debounce","getOrCreateDOMID","goURI","shield"],(function(a,b,c,d,e,f,g,h){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d._configure=function(c,d){a.prototype._configure.call(this,c,d);d=this.getRoot();d!=null&&b("CSS").addClass(d,"_4-hy");if(c.autohide)var e=this.subscribe("show",function(){e.unsubscribe(),window.setTimeout(b("shield")(this.hide,this),c.autohide)}.bind(this));if(c.redirectURI)var f=this.subscribe("hide",function(){f.unsubscribe();var a=c.redirectURI;a!=null&&b("goURI")(a)});this._fixedTopPosition=c.fixedTopPosition;this._ignoreFixedTopInShortViewport=c.ignoreFixedTopInShortViewport};d._getDefaultBehaviors=function(){return a.prototype._getDefaultBehaviors.call(this).concat([i,b("ModalLayer"),b("LayerAutoFocus"),b("LayerButtons"),b("LayerFormHooks"),b("LayerTabIsolation"),b("LayerTogglerContext"),b("LayerRefocusOnHide")])};d._buildWrapper=function(a,c){var d=a.xui?"_4t2a":"_t",e=a.xui?"_59s7":"_1yv";this._innerContent=b("JSXDOM").div(null,c);c={className:e,role:"dialog"};if(a.labelledBy)c["aria-labelledby"]=a.labelledBy;else if(a.label)c["aria-label"]=a.label;else if(a.titleID)c["aria-labelledby"]=a.titleID;else if(a.titleClass){e=b("DOMQuery").scry(this._innerContent,a.titleClass);if(e.length){e=b("getOrCreateDOMID")(e[0]);c["aria-labelledby"]=e}else c["aria-label"]=this._getDefaultLabel()}else c["aria-label"]=this._getDefaultLabel();e={className:d};a["data-testid"]&&(e["data-testid"]=a["data-testid"]);this._wrapper=b("JSXDOM").div(c,b("JSXDOM").div(e,this._innerContent));a.width!=null&&this.setWidth(a.width);a.height!=null&&this.setHeight(a.height);return b("JSXDOM").div({className:"_10"},this._wrapper)};d._getDefaultLabel=function(){return h._("Dialog content")};d.getContentRoot=function(){return this._wrapper};d.getInnerContent=function(){return this._innerContent};d.updatePosition=function(){var a=b("Vector").getElementDimensions(this._wrapper);a=b("DialogPosition").calculateTopMargin(a.x,a.y,this._fixedTopPosition,(a=this._ignoreFixedTopInShortViewport)!=null?a:!1);b("Style").set(this._wrapper,"margin-top",a+"px");this.inform("update_position",{type:"DialogX",top:a});return!0};d.setWidth=function(a){a=Math.floor(a);if(a===this._width)return;this._width=a;b("Style").set(this._wrapper,"width",a+"px")};d.getWidth=function(){return this._width};d.setHeight=function(a){a=Math.floor(a);if(a===this._height)return;this._height=a;b("Style").set(this._wrapper,"height",a+"px")};d.getFixedTopPosition=function(){return this._fixedTopPosition};d.shouldIgnoreFixedTopInShortViewport=function(){return this._ignoreFixedTopInShortViewport};return c}(b("Layer"));var i=function(){"use strict";function a(a){this._subscription=null,this._resize=null,this._layer=a}var c=a.prototype;c.enable=function(){this._subscription=this._layer.subscribe(["show","hide"],function(a){a==="show"?(this._attach(),b("Arbiter").inform("layer_shown",{type:"DialogX"})):(this._detach(),b("Arbiter").inform("layer_hidden",{type:"DialogX"}))}.bind(this))};c.disable=function(){var a;(a=this._subscription)==null?void 0:a.unsubscribe();this._subscription=null;this._resize&&this._detach()};c._attach=function(){this._layer.updatePosition(),this._resize=b("Event").listen(window,"resize",b("debounce")(this._layer.updatePosition.bind(this._layer)))};c._detach=function(){var a;(a=this._resize)==null?void 0:a.remove();this._resize=null};return a}();e.exports=a}),null); __d("AbstractDialog.react",["DialogX","LayerHideOnBlur","LayerHideOnEscape","React","ReactDOM","prop-types"],(function(a,b,c,d,e,f){b("React");a={createSpec:function(a){var c;return{displayName:a.displayName,propTypes:{behaviors:(c=b("prop-types")).object,className:c.string,"data-testid":c.string,modal:c.bool,autohide:c.number,width:c.oneOfType([c.number,c.string]),label:c.node,labelledBy:c.string,titleID:c.string,titleClass:c.string,causalElement:c.object,causalElementRef:c.func,shown:c.bool,layerHideOnBlur:c.bool,hideOnEscape:c.bool,isStrictlyControlled:c.bool,onHide:c.func,onToggle:c.func,fixedTopPosition:c.number},createLayer:function(c){var d=this.props.className;d=babelHelpers["extends"]({"data-testid":this.props["data-testid"]?this.props["data-testid"]:void 0,width:this.props.width,xui:!0,autohide:this.props.autohide,classNames:d?d.split(" "):null,label:this.props.label,labelledBy:this.props.labelledBy,isStrictlyControlled:this.props.isStrictlyControlled,titleID:this.props.titleID,titleClass:this.props.titleClass,causalElement:this._getCausalElement(),fixedTopPosition:this.props.fixedTopPosition},a||{});var e=babelHelpers["extends"]({},a.addedBehaviors,this.props.behaviors);this.props.layerHideOnBlur!==!1&&(e.LayerHideOnBlur=b("LayerHideOnBlur"));(this.props.hideOnEscape===!0||this.props.hideOnEscape!==!1&&a.hideOnEscape===!0)&&(e.LayerHideOnEscape=b("LayerHideOnEscape"));d.addedBehaviors=this.enumerateBehaviors(e);e=new(b("DialogX"))(d,c);e.conditionShow(this.props.shown);return e},receiveProps:function(a,b){this.updateBehaviors(b.behaviors,a.behaviors),this.layer&&(this.layer.setCausalElement(this._getCausalElement()),this.layer.conditionShow(a.shown),this.layer.setWidth(a.width),a.shown&&this.layer.updatePosition())},_getCausalElement:function(){var a;this.props.causalElementRef?a=b("ReactDOM").findDOMNode(this.props.causalElementRef()):a=this.props.causalElement;return a}}}};e.exports=a}),null); __d("replaceMentionedTextInEditorState",["replaceSelectionWithMention"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d,e,f){var i=c.getSelection(),j=c.getCurrentContent(),k=i.getAnchorKey(),l=i.getAnchorOffset();j=j.getBlockMap().get(k);k=i.getStartOffset();k=j.getText().substr(k-d,d);var m=f?f(a,k):g(a,k);f=l-h(j.getText().substr(0,l),m,d);return b("replaceSelectionWithMention")(a,c,i.set("anchorOffset",f),e,function(){return m})}function g(a,b){return a.getType()==="group_rule"?a.getSubtitle():a.getTitle()}function h(a,b,c){(b.startsWith("#")||b.startsWith("\\uFF03"))&&(a=a.toLowerCase(),b=b.toLowerCase());for(var d=c;d<=b.length;d++)a.substr(-d)==b.substr(0,d)&&(c=d);return c}e.exports=a}),null); __d("AbstractMentionsTextEditor.react",["DraftEditor.react","Keys","React","TypeaheadNavigation","clearImmediate","getDefaultKeyBinding","getOrCreateDOMID","prop-types","replaceMentionedTextInEditorState","setImmediate","uniqueID"],(function(a,b,c,d,e,f){var g=b("React");a=5;var h="handled",i="not-handled";c=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.$1=b("uniqueID")();e.$2=!1;e.$3=[];e.containerRef=g.createRef();e.abstractTextEditorRef=g.createRef();e.__onShowMentions=function(a,b,c,d){d===void 0&&(d=!0);if(!e.$2)return;b=b||0;if(!a||!a.length){var f=e.state.mentionableEntries;if(f&&f.length&&f[0].getDataType()!==(c||""))return;e.setState({highlightedMentionable:null,activeDescendantID:null,mentionableEntries:null,characterOffset:0});return}f=e.props.typeaheadViewProps;c=a;f&&f.mentionSortFn&&c.sort(f.mentionSortFn);c=a.slice(0,e.props.maxResults);e.props.reverseOrder&&(c=c.reverse());f=null;(e.props.autoHighlight||e.state.highlightedMentionable!==null)&&(f=e.props.autoUpdateHighlight?c[0]:e.state.highlightedMentionable);e.setState({highlightedMentionable:d?f:null,mentionableEntries:c,characterOffset:b});e.props.onShowMentions&&e.props.onShowMentions(c,b)};e.$13=function(a){var c;if(a.keyCode===b("Keys").TAB)return e.$6(a);if(a.keyCode===b("Keys").ESC)return e.$5(a);if(a.keyCode===b("Keys").UP)return e.$11(a);return a.keyCode===b("Keys").DOWN?e.$4(a):(c=e.props.keyBindingFn==null?void 0:e.props.keyBindingFn(a))!=null?c:b("getDefaultKeyBinding")(a)};e.$8=function(a){e.setState(e.$12()),e.props.onBlur&&e.props.onBlur(a)};e.$7=function(a){e.props.mentionsSource&&e.props.mentionsSource.bootstrap(),e.props.onFocus&&e.props.onFocus(a)};e.$14=function(a,b){if(e.state.highlightedMentionable){e.$10(e.state.highlightedMentionable,a);return h}else if(e.props.handleContentReturn&&e.props.handleContentReturn(a,b))return h;return i};e.$9=function(a){e.setState({highlightedMentionable:a})};e.$15=function(a){a=b("getOrCreateDOMID")(a);e.setState({ariaActiveDescendantID:a})};e.$10=function(a,c){var d,f=a.getDataType(),g=e.props.mentionCreationForContentStateFn;f==="ASSISTANT_TYPEAHEAD"&&e.props.mentionTypeaheadCreationForContentStateFn&&(g=e.props.mentionTypeaheadCreationForContentStateFn);f=e.props.onMentionSelect;f==null?d=b("replaceMentionedTextInEditorState")(a,e.props.editorState,e.state.characterOffset,g,e.props.overrideMentionGetEntryText):d=f(a,e.props.editorState,e.state.characterOffset,g);e.props.onChange(d);e.setState(e.$12());f=e.props.onAddMention;g=e.state.mentionableEntries;if(f&&g){d=g.indexOf(a);f(a,d,c)}};babelHelpers.assertThisInitialized(e).__onShowMentions=e.__onShowMentions.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$4=e.$4.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$5=e.$5.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$6=e.$6.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$7=e.$7.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$8=e.$8.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$9=e.$9.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$10=e.$10.bind(babelHelpers.assertThisInitialized(e));babelHelpers.assertThisInitialized(e).$11=e.$11.bind(babelHelpers.assertThisInitialized(e));e.state=e.$12();return e}var d=c.prototype;d.componentDidMount=function(){this.$2=!0};d.componentWillUnmount=function(){this.$2=!1,this.$3.forEach(function(a){return b("clearImmediate")(a)}),this.$3=[]};d.$12=function(){return{highlightedMentionable:null,mentionableEntries:null,characterOffset:0}};d.$6=function(a){var b=this.state.highlightedMentionable;b?(a.preventDefault(),this.$10(b,a)):this.props.onTab&&this.props.onTab(a)};d.$5=function(a){this.props.onEscape&&this.props.onEscape(a),this.state.mentionableEntries&&(a.stopPropagation(),a.nativeEvent.composerPropagationStopped=!0,this.setState(this.$12()))};d.$11=function(a){var c=this.state.mentionableEntries;c?(a.preventDefault(),b("TypeaheadNavigation").moveUp(c,this.state.highlightedMentionable,this.$9)):this.props.onUpArrow&&this.props.onUpArrow(a)};d.$4=function(a){var c=this.state.mentionableEntries;c?(a.preventDefault(),b("TypeaheadNavigation").moveDown(c,this.state.highlightedMentionable,this.$9)):this.props.onDownArrow&&this.props.onDownArrow(a)};d.shouldComponentUpdate=function(a,b){return this.props.editorState!==a.editorState||this.props.placeholder!==a.placeholder||this.props.readOnly!==a.readOnly||this.props.className!==a.className||this.state.mentionableEntries!==b.mentionableEntries||this.state.highlightedMentionable!==b.highlightedMentionable||this.state.ariaActiveDescendantID!==b.ariaActiveDescendantID};d.componentDidUpdate=function(a){var c=this,d=this.props.editorState;if(d===a.editorState)return;var e=d.getSelection();if(e.getHasFocus()&&e.isCollapsed()){var f=d.getCurrentContent(),g=this.props.mentionsSource;g&&this.$3.push(b("setImmediate")(function(){f.getBlockForKey(e.getAnchorKey())!=null&&g.search(f,e,c.__onShowMentions)}));var h=this.props.assistantTypeaheadSource;h&&this.$3.push(b("setImmediate")(function(){h.search(f,e,c.__onShowMentions)}))}};d.blur=function(){var a;(a=this.abstractTextEditorRef.current)==null?void 0:a.blur()};d.focus=function(){var a;(a=this.abstractTextEditorRef.current)==null?void 0:a.focus()};d.$16=function(){var a=this.state.mentionableEntries;if(!a||!a.length)return null;var b=this.props.mentionResultsComponent;return g.jsx(b,babelHelpers["extends"]({},this.props.mentionResultsProps,{viewID:this.$1,selection:this.props.editorState.getSelection(),contextComponent:this,characterOffset:this.state.characterOffset,mentionableEntries:a||[],highlightedMentionable:this.state.highlightedMentionable,onMentionSelect:this.$10,onMentionHighlight:this.$9,onMentionRenderHighlight:this.$15}))};d.exitCurrentMode=function(){var a;(a=this.abstractTextEditorRef.current)==null?void 0:a.exitCurrentMode()};d.render=function(){var a=this.state.mentionableEntries;a=!!(a&&a.length);var c=this.props.readOnly?null:"-1",d=this.props.role||"combobox",e=this.props.ariaAutoComplete||"list",f=this.props.ariaLabel,h=this.props;h.onTab;h.onUpArrow;h.onDownArrow;h.onEscape;h=babelHelpers.objectWithoutPropertiesLoose(h,["onTab","onUpArrow","onDownArrow","onEscape"]);return g.jsxs("div",{ref:this.containerRef,className:this.props.className,tabIndex:c,children:[g.jsx(b("DraftEditor.react"),babelHelpers["extends"]({},h,{ref:this.abstractTextEditorRef,role:d,ariaActiveDescendantID:this.state.ariaActiveDescendantID,ariaAutoComplete:e,ariaControls:this.$1,ariaExpanded:a,ariaHasPopup:a,ariaLabel:f,editorState:this.props.editorState,onBlur:this.$8,onChange:this.props.onChange,onFocus:this.$7,handleReturn:this.$14,keyBindingFn:this.$13})),this.$16()]})};d.isShowingMentionables=function(){return!!this.state.mentionableEntries};return c}(g.Component);c.defaultProps=babelHelpers["extends"]({},b("DraftEditor.react").defaultProps,{autoHighlight:!0,autoUpdateHighlight:!0,maxResults:a,reverseOrder:!1});c.propTypes={mentionsSource:(d=b("prop-types")).object,assistantTypeaheadSource:d.object,mentionCreationForContentStateFn:d.func.isRequired,mentionTypeaheadCreationForContentStateFn:d.func,mentionResultsComponent:d.func.isRequired,mentionResultsProps:d.object,excludedEntries:d.object,handleContentReturn:d.func,onAddMention:d.func,onShowMentions:d.func,autoHighlight:d.bool,maxResults:d.number,webDriverTestID:d.string};e.exports=c}),null); __d("MentionsInput.react",["cx","AbstractMentionsTextEditor.react","MentionsLayer.react","React","createMentionEntityForContentState","joinClasses"],(function(a,b,c,d,e,f,g){var h=b("React");a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f=a.offsetWidth)};return a}();Object.assign(a.prototype,{_setMenuSubscription:null,_showSubscription:null,_menuSubscription:null});e.exports=a}),null); __d("PopoverMenuOverlappingBorder",["cx","CSS","DOM","Style","shield"],(function(a,b,c,d,e,f,g){a=function(){"use strict";function a(a){this._popoverMenu=a,this._popover=a.getPopover(),this._triggerElem=a.getTriggerElem()}var c=a.prototype;c.enable=function(){this._setMenuSubscription=this._popoverMenu.subscribe("setMenu",b("shield")(this._onSetMenu,this))};c.disable=function(){this._popoverMenu.unsubscribe(this._setMenuSubscription),this._setMenuSubscription=null,this._removeBorderSubscriptions(),this._removeShortBorder()};c._onSetMenu=function(){this._removeBorderSubscriptions();this._menu=this._popoverMenu.getMenu();this._renderShortBorder(this._menu.getRoot());this._showSubscription=this._popover.subscribe("show",b("shield")(this._updateBorder,this));var a=this._updateBorder.bind(this);this._menuSubscription=this._menu.subscribe(["change","resize"],function(){setTimeout(a,0)});this._updateBorder()};c._updateBorder=function(){var a=this._menu.getRoot(),c=this._triggerElem.offsetWidth;a=Math.max(a.offsetWidth-c,0);b("Style").set(this._shortBorder,"width",a+"px")};c._renderShortBorder=function(a){this._shortBorder=b("DOM").create("div",{className:"_54hx"}),b("DOM").appendContent(a,this._shortBorder),b("CSS").addClass(a,"_54hy")};c._removeShortBorder=function(){this._shortBorder&&(b("DOM").remove(this._shortBorder),this._shortBorder=null,b("CSS").removeClass(this._popoverMenu.getMenu().getRoot(),"_54hy"))};c._removeBorderSubscriptions=function(){this._showSubscription&&(this._popover.unsubscribe(this._showSubscription),this._showSubscription=null),this._menuSubscription&&(this._menu.unsubscribe(this._menuSubscription),this._menuSubscription=null)};return a}();Object.assign(a.prototype,{_shortBorder:null,_setMenuSubscription:null,_showSubscription:null,_menuSubscription:null});e.exports=a}),null); __d("AbstractSelector.react",["cx","invariant","ContextualLayerAutoFlip","InlineBlock.react","PopoverMenu.react","PopoverMenuContextMinWidth","PopoverMenuOverlappingBorder","React","ReactSelectorUtils","intlList","joinClasses","prop-types"],(function(a,b,c,d,e,f,g,h){var i=b("React");function a(a,b){if(a[b]==null)return;var c=Array.isArray(a[b]);if(a.multiple){if(!c)return new Error("You are trying to set a single value for `"+b+"` but the menu has `multiple` set to true, so it should be an array of values.")}else if(c)return new Error("You are trying to set an array of values for `"+b+"` but the menu has `multiple` set to false, so it should be a single value.")}c=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0&&a.timeRemaining()>0)b("ReactDOM").unmountComponentAtNode(g.pop());g.length>0&&j()})}function k(a,c){b("BanzaiODS").bumpEntityKey(2966,"core.www.react_component_register_unmount",a+"."+c)}function a(a,c){function d(){a!=null&&Object.prototype.hasOwnProperty.call(a,"setState")&&(a.setState=b("emptyFunction"),a.shouldComponentUpdate=b("emptyFunction").thatReturnsFalse),i(c)}var e=!1;e?k("contextual_component","not_found_fallback"):k("arbiter","default");var f=b("Arbiter").subscribe(b("PageEvents").AJAXPIPE_ONBEFORECLEARCANVAS,function(a,b){a=b.canvasID;if(a!=="content"&&a!=="content_container")return;d();f.unsubscribe()})}e.exports=a}),null); __d("unmountConcurrentComponentOnTransition",["Arbiter","PageEvents"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("Arbiter").subscribe(b("PageEvents").AJAXPIPE_ONBEFORECLEARCANVAS,function(b,e){b=e.canvasID;if(b!=="content"&&b!=="content_container")return;a.unmount(c);d.unsubscribe()})}e.exports=a}),null); __d("PluginOptin",["DOMEvent","DOMEventListener","PlatformWidgetEndpoint","PluginLoggedOutUserTypedLogger","PluginMessage","PopupWindow","URI","UserAgent_DEPRECATED"],(function(a,b,c,d,e,f){var g;function h(a,c){Object.assign(this,{return_params:(g||(g=b("URI"))).getRequestURI().getQueryData(),login_params:{},optin_params:{},plugin:a,api_key:c}),this.addReturnParams({ret:"optin"}),delete this.return_params.hash}Object.assign(h.prototype,{addReturnParams:function(a){Object.assign(this.return_params,a);return this},addLoginParams:function(a){Object.assign(this.login_params,a);return this},addOptinParams:function(a){Object.assign(this.optin_params,a);return this},start:function(){var a=this.api_key||127760087237610;(g||(g=b("URI"))).getRequestURI().getQueryData().kid_directed_site&&(this.login_params.kid_directed_site=!0);this.login_params.referrer=document.referrer;var c=new(g||(g=b("URI")))(b("PlatformWidgetEndpoint").dialog("plugin.optin")).addQueryData(this.optin_params).addQueryData({app_id:a,secure:g.getRequestURI().isSecure(),social_plugin:this.plugin,return_params:JSON.stringify(this.return_params),login_params:JSON.stringify(this.login_params)});b("UserAgent_DEPRECATED").mobile()?c.setSubdomain("m"):c.addQueryData({display:"popup"});this.return_params.act!==null&&this.return_params.act==="send"&&new(b("PluginLoggedOutUserTypedLogger"))().setPluginAppID(a).setPluginName(this.return_params.act).setHref(this.return_params.href).logVital();this.popup=b("PopupWindow").open(c.toString(),420,450);b("PluginMessage").listen();return this}});h.starter=function(a,b,c,d){a=new h(a);a.addReturnParams(b||{});a.addLoginParams(c||{});a.addOptinParams(d||{});return a.start.bind(a)};h.listen=function(a,c,d,e,f){b("DOMEventListener").add(a,"click",function(a){new(b("DOMEvent"))(a).kill(),h.starter(c,d,e,f)()})};e.exports=h}),null); __d("XCommentEmbedPluginEmbedAsyncDialogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comment-embed/async/embed/dialog/",{comment_id:{type:"String",required:!0},width:{type:"Int"},__asyncDialog:{type:"Int"}})}),null); __d("XPluginCommentsActorChangeAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comment/async/actor_change/",{})}),null); __d("XPluginCommentsBanAuthorAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/moderate/ban/{comment_id}/",{comment_id:{type:"String",required:!0}})}),null); __d("XPluginCommentsCreateCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/createComment/{target_id}/",{target_id:{type:"Int",required:!0}})}),null); __d("XPluginCommentsCreateReplyAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/createReply/{parent_comment_id}/",{parent_comment_id:{type:"String",required:!0}})}),null); __d("XPluginCommentsDeleteCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/delete/",{})}),null); __d("XPluginCommentsEditCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/edit/",{})}),null); __d("XPluginCommentsFlagCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/flag/",{})}),null); __d("XPluginCommentsHideCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/moderate/hide/{url_id}/",{url_id:{type:"Int",required:!0},action:{type:"Enum",required:!0,enumType:1},type:{type:"Enum",required:!0,enumType:1}})}),null); __d("XPluginCommentsLikeCommentAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/like/",{action_like:{type:"Bool",defaultValue:!1}})}),null); __d("XPluginCommentsPagerAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/{target_id}/pager/{ordering}/",{target_id:{type:"Int",required:!0},ordering:{type:"Enum",required:!0,enumType:1}})}),null); __d("XPluginCommentsRepliesPagerAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/plugins/comments/async/comment/{comment_id}/pager/",{comment_id:{type:"String",required:!0}})}),null); __d("getChunkForContentState",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){if(b){c=c.getEntity(b);if(c.getType()==="EMOTICON")return c.getData().originalEmoticon;else if(c.getType()==="EMOJI")return c.getData().emoji.join("")}return a.replace("@[","@ [")}e.exports=a}),null); __d("getMentionsTextForContentState",["emptyFunction","getChunkForContentState"],(function(a,b,c,d,e,f){"use strict";var g=b("emptyFunction").thatReturnsTrue,h=/[\\\]:]/g;function a(a,b){b===void 0&&(b="");var c=a.getBlockMap().map(function(b){var c=b.getText(),d=[];b.findEntityRanges(g,function(e,f){d.push(i(c.slice(e,f),b.getEntityAt(e),a))});return d.join("")});return c.join("\n"+b)}function i(a,c,d){if(c){var e=d.getEntity(c);if(e.getType()==="MENTION"){a=a.replace(h,function(a){return"\\"+a});e=e.getData().id;if(/^\d+$/.test(e))return"@["+e+":"+a+"]"}}return b("getChunkForContentState")(a,c,d)}e.exports=a}),null); __d("getVisibleValueForContentState",["DraftEntity","emptyFunction"],(function(a,b,c,d,e,f){function a(a){a=a.getBlockMap().map(function(a){var c=a.getText(),d="";a.findEntityRanges(b("emptyFunction").thatReturnsTrue,function(e,f){var g=a.getEntityAt(e);if(g===null)d+=c.slice(e,f);else{g=b("DraftEntity").get(g);g.getType()==="EMOTICON"?d+=g.getData().originalEmoticon:g.getType()==="EMOJI"?d+=g.getData().emoji.join(""):d+=c.slice(e,f)}});return d});return a.join("\n")}e.exports=a}),null); __d("CommentsPluginStore",["invariant","ActorURI","AsyncDialog","AsyncRequest","CurrentUser","DeveloperCommentsModerationAction","DeveloperCommentsModerationType","DevxFluxDispatcher","PluginOptin","UnverifiedXD","URI","WebStorage","XCommentEmbedPluginEmbedAsyncDialogController","XPluginCommentsActorChangeAsyncController","XPluginCommentsBanAuthorAsyncController","XPluginCommentsCreateCommentAsyncController","XPluginCommentsCreateReplyAsyncController","XPluginCommentsDeleteCommentAsyncController","XPluginCommentsEditCommentAsyncController","XPluginCommentsFlagCommentAsyncController","XPluginCommentsHideCommentAsyncController","XPluginCommentsLikeCommentAsyncController","XPluginCommentsPagerAsyncController","XPluginCommentsRepliesPagerAsyncController","getMentionsTextForContentState","getVisibleValueForContentState","mixInEventEmitter","nullthrows","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=10,k="__DEVX__",l={visibleValue:"",encodedValue:""};a={change:!0,composerChange:!0,composerCommentAdded:!0,login:!0,moreCommentsCompleted:!0,moreRepliesCompleted:!0,postError:!0,sortingCompleted:!0,sentryAction:!0,previousComposerCommentPrefill:!0,actorChange:!0,previousPostToFeedPrefill:!0,commentsCountChange:!0,likeStateChange:!0};var m={maxLines:10,maxLength:1e3},n="0",o=[],p={},q={userID:null,actors:{},actorsOptIn:{},appID:null,afterCursor:null,channelURL:null,composerSearchSource:{},deeplinkedCommentID:null,href:"",iframeReferer:null,isMobile:!1,isModerator:!1,mirroredPage:null,moderateURL:null,targetFBID:null,totalCount:0,user:{id:n},minFeedLength:0,maxCommentLength:0,enablePhoto:!1,enableSticker:!1,ret:null,threadClosed:!1,shouldSwitchAccount:!1,fromModTool:!1,privacyOptionsList:[]},r=!1,s="current_composer",t={},u={},v={},w={},x={ordering:null,ranking_allowed:null},y={},z={},A={setPostToFeed:!0,sort:!0,showMoreComments:!0,showMoreReplies:!0,toggleVisibility:!0,setPrivacyOption:!0},B={restorePreviousState:!0,setUser:!0,edit:!0,showReplyComposer:!0,cancelEdit:!0,cancelReply:!0},C={addComment:!0,addReply:!0,saveEdit:!0},D={};function E(a){Object.prototype.hasOwnProperty.call(L,a)||g(0,3351,a)}function F(){Array.isArray(o)||g(0,3348),p instanceof Object||g(0,3349)}function G(a){var c,d=K.getUser().id,e=a.action;c=(c=L[a.action]).bind.apply(c,[L].concat(a.args));if(K.isLoggedIn()&&(K.isPlatformEnabled(d)||B[e])||A[e])c.call();else{d=(h||(h=b("WebStorage"))).getSessionStorage();d&&d.setItem("previousState",JSON.stringify(H(a)));new(b("PluginOptin"))("comments").addReturnParams({numposts:Math.min(Math.max(1,q.totalCount),100),order_by:x.ordering}).start()}}function H(a){var b="",c="",d=[],e={},f={},g=r,h=s,i=K.getCreateComposerContent();i&&(b=i.encodedValue);C[a.action]||(c=a.action,d=a.args);Object.keys(y).forEach(function(a){var b=K.getCreateComposerContent(a);b.encodedValue&&(e[a]=b.encodedValue)});Object.keys(z).forEach(function(a){var b=K.getEditComposerContent(a);b.encodedValue&&(f[a]=b.encodedValue)});return{commentBody:b,action:c,commentIDs:d,replies:e,edits:f,postToFeed:g,privacyOption:h}}function I(a,b,c){return c.indexOf(a)===b}function J(a,c){if(!q.channelURL)return;c.href=q.href;b("UnverifiedXD").send({data:JSON.stringify(c),event:a,type:"sdk_event"},q.channelURL)}var K={getCommentIDs:function(){return o},getByID:function(a){F();return b("nullthrows")(p)[a]},isOptimisticComment:function(a){return a.id.startsWith(k)},getCurrentSorting:function(){return b("nullthrows")(x.ordering)},isRankingAllowed:function(){return b("nullthrows")(x.ranking_allowed)},getTargetFBID:function(){return b("nullthrows")(q.targetFBID)},getCommentsCount:function(){F();return q.totalCount},updateCommentsCount:function(a){q.totalCount+=a,this.emit("commentsCountChange")},getUser:function(){return q.user},getIframeReferer:function(){return q.iframeReferer},getAuthor:function(a){return this.getByID(this.getByID(a).authorID)},getPageSize:function(){return j},getCommentBodyTruncationLimits:function(){return m},getComposerSearchSource:function(){return q.composerSearchSource},getMirroredPage:function(){return q.mirroredPage},getMinFeedLength:function(){return q.minFeedLength+1},getMaxCommentLength:function(){return q.maxCommentLength?q.maxCommentLength:Number.MAX_VALUE},isMirrored:function(){return this.getMirroredPage()!=null},isReply:function(a){a=this.getByID(a);return a.targetID!==this.getTargetFBID()},getPermalink:function(a){var c=this.getByID(a);return new(i||(i=b("URI")))(c.ogURL).addQueryData({fb_comment_id:a}).toString()},isOptinReturn:function(){return!!q.ret},setActor:function(a){q.user=q.actors[a]},getPrivacyOptionsList:function(){return q.privacyOptionsList},getPostToFeed:function(){return r},getPrivacyOption:function(){return s},setPostToFeed:function(a){r=a},setPrivacyOption:function(a){s=a},getEnablePhoto:function(){return q.enablePhoto},getEnableSticker:function(){return q.enableSticker},isDeeplinkComment:function(){return!!q.deeplinkedCommentID&&q.fromModTool},getOriginalLink:function(){return q.href},getCommentIDsToFetch:function(a){var b=this.getCommentIDsIncludingReplies(o);if(!D[a])return b;var c=Object.keys(D[a].hasLiked),d=[];b.forEach(function(a){!a.startsWith(k)&&!c.includes(a)&&d.push(a)});return d},canActorLike:function(a,b){return!D[b]?!1:!!D[b].canLike[a.id]},hasActorLiked:function(a,b){return!D[b]?!1:!!D[b].hasLiked[a.id]},setActorLike:function(a,b,c){D[c].hasLiked[a.id]=b},getCreateComposerAttachment:function(a){return t[a||k]||null},setCreateComposerAttachment:function(a,b){t[b||k]=a,this.emit("composerChange")},getEditComposerAttachment:function(a){return u[a]||null},setEditComposerAttachment:function(a,b){u[b]=a,this.emit("composerChange")},getLoadingCreateComposerAttachment:function(a){return v[a||k]||!1},setLoadingCreateComposerAttachment:function(a,b){v[b||k]=a,this.emit("composerChange")},getLoadingEditComposerAttachment:function(a){return w[a]||!1},setLoadingEditComposerAttachment:function(a,b){w[b]=a,this.emit("composerChange")},setCreateComposerState:function(a,b){y[b||k]=a,this.emit("composerChange")},getCreateComposerState:function(a){return y[a||k]||null},getCreateComposerContent:function(a){return this._editorStateToComposerPayload(this.getCreateComposerState(a))},isEmptyCreateComposer:function(a){return this.getLoadingCreateComposerAttachment(a)||this.getCreateComposerContent(a).visibleValue.trim()===""&&!this.getCreateComposerAttachment(a)},setEditComposerState:function(a,b){z[b]=a,this.emit("composerChange")},getEditComposerState:function(a){return z[a]},getEditComposerContent:function(a){return this._editorStateToComposerPayload(this.getEditComposerState(a))},isEmptyEditComposer:function(a){return this.getLoadingEditComposerAttachment(a)||this.getEditComposerContent(a).visibleValue.trim()===""&&!this.getEditComposerAttachment(a)},hasTextChanged:function(a,b){return a.trim()!==b.trim()},hasAttachmentChanged:function(a,b){if(a)return b?a.fbid!==b.fbid:!0;else return!!b},hasCommentChanged:function(a,b){var c=this.getByID(a);return this.hasTextChanged(b.encodedValue,c.body.text)||this.hasAttachmentChanged(u[a],c.photo_comment||c.attachment)},_editorStateToComposerPayload:function(a){if(!a)return l;a=a.getCurrentContent();var c=b("getVisibleValueForContentState")(a);a=b("getMentionsTextForContentState")(a);return{visibleValue:c,encodedValue:a}},hasAttachment:function(){var a=Object.keys(v);for(var b=0;b0?!0:!1},getUnloadedCommentsCount:function(){return q.totalCount-o.length},getDialogWidth:function(){return Math.min(document.body.offsetWidth-10,this.isMobile()?320:445)},dispatcherIndex:b("DevxFluxDispatcher").register(function(a){E(a.action),G(a)}),init:function(a,b,c,d){q=b,this.updateCommentData(a,c,q.userID),Object.keys(q.actors).forEach(function(a){return p[a]=q.actors[a]}),this.setActor(q.userID),x.ranking_allowed=d},updateCommentData:function(a,b,c){o=a.commentIDs,Object.assign(p,this.initComments(o,a.idMap)),x.ordering=b,this.initActorLikeState(this.getCommentIDsIncludingReplies(o),c)},getCommentIDsIncludingReplies:function(a){var b=a;o.forEach(function(a){a=p[a].public_replies;if(!a)return;a=a.commentIDs;if(!a)return;b=b.concat(a)});return b},initActorLikeState:function(a,b){var c=D[b]?D[b].hasLiked:{},d=D[b]?D[b].canLike:{};a.forEach(function(a){a=p[a];c[a.id]=!!a.hasLiked;d[a.id]=!!a.canLike});D[b]={hasLiked:c,canLike:d}},initComment:function(a){a.collapsed=!1;a.editor=!1;a.composer=!1;a.deleted=!1;a.flagged=!1;return a},initComments:function(a,b){var c=this;a.forEach(function(a){return b[a]=c.initComment(b[a])});return b},emit:void 0,addListener:void 0,removeCurrentListener:void 0,ActionHandler:void 0};b("mixInEventEmitter")(K,a);var L={ban:function(a){var c=K.getByID(a);c.deleted=!0;K.emit("change");c=b("XPluginCommentsBanAuthorAsyncController").getURIBuilder().setString("comment_id",a).getURI();new(b("AsyncRequest"))(c).setMethod("POST").setData({ban:!0,source:"url"}).send()},hide:function(a){var c=K.getByID(a);c.deleted=!0;K.emit("change");c=b("XPluginCommentsHideCommentAsyncController").getURIBuilder().setInt("url_id",q.targetFBID).setEnum("action",b("DeveloperCommentsModerationAction").DELETE).setEnum("type",b("DeveloperCommentsModerationType").APPROVED).getURI();new(b("AsyncRequest"))(c).setData({comment_ids:[a]}).setMethod("POST").send()},addComment:function(){var a=this,c=K.getUser().id,d=K.getCreateComposerContent(),e=this._getAttachmentFBID(K.getCreateComposerAttachment()),f=b("ActorURI").create(b("XPluginCommentsCreateCommentAsyncController").getURIBuilder().setInt("target_id",q.targetFBID).getURI(),c);new(b("AsyncRequest"))(f).setData({app_id:q.appID,text:d.encodedValue,attached_photo_fbid:e.photoFBID,attached_sticker_fbid:e.stickerFBID,post_to_feed:K.getPostToFeed(),privacy_option:K.getPrivacyOption(),iframe_referer:q.iframeReferer}).setMethod("POST").setHandler(function(b){b=b.payload;var e=b.commentID;a._prependComment(b.idMap[e]);K.initActorLikeState([e],c);delete y[k];K.emit("composerCommentAdded",{});J("comment.create",{commentID:e,message:d.visibleValue});b.sentryAction&&K.emit("sentryAction",b.sentryAction,e)}).setErrorHandler(function(a){delete p[k],o.shift(),K.updateCommentsCount(-1),K.emit("change"),K.emit("postError",a)}).send();this._prependComment({authorID:q.user.id,targetID:q.targetFBID,body:{text:d.visibleValue}});K.updateCommentsCount(1)},addReply:function(a){var c=K.getUser().id,d=K.getCreateComposerContent(a),e=this._getAttachmentFBID(K.getCreateComposerAttachment(a)),f=b("ActorURI").create(b("XPluginCommentsCreateReplyAsyncController").getURIBuilder().setString("parent_comment_id",a).getURI(),c),g=k+b("uniqueID")();new(b("AsyncRequest"))(f).setData({app_id:q.appID,text:d.encodedValue,attached_photo_fbid:e.photoFBID,attached_sticker_fbid:e.stickerFBID,iframe_referer:q.iframeReferer,replied_to:K.getByID(a).replyToCommentID}).setMethod("POST").setHandler(function(b){var e=K.getByID(a),f=Object.assign({},e.public_replies);Object.assign(p,b.payload.idMap);e=K.getByID(a);e.public_replies=f;delete p[g];delete y[a];o.splice(o.indexOf(g),1);e.composer=!1;delete e.replyToCommentID;f=b.payload.commentID;e.public_replies.commentIDs.pop();e.public_replies.commentIDs.push(f);J("comment.create",{commentID:f,parentCommentID:a,message:d.visibleValue});K.initActorLikeState([f],c);K.emit("change")}).setErrorHandler(function(b){delete p[g],o.splice(o.indexOf(g),1),f=K.getByID(a),f.public_replies.commentIDs.pop(),f.public_replies.totalCount--,f.composer=!1,delete f.replyToCommentID,K.emit("change"),K.emit("postError",b)}).send();f=K.getByID(a);e=Object.assign({},f.public_replies);e.commentIDs||(e.commentIDs=[]);e.totalCount||(e.totalCount=0);e.totalCount++;e.commentIDs.push(g);f.public_replies=e;p[g]={authorID:q.user.id,body:{text:d.visibleValue},targetID:a,id:g};o.push(g);K.emit("change")},_prependComment:function(a){!a.id?a.id=k:(o.shift(),delete p[k]),o.unshift(a.id),p[a.id]=K.initComment(a),K.emit("change")},_getAttachmentFBID:function(a){var c=0,d=0;a&&(a.attachmentType==="photo"?c=b("nullthrows")(a.fbid):a.attachmentType==="sticker"&&(d=b("nullthrows")(a.fbid)));return{photoFBID:c,stickerFBID:d}},edit:function(a,b){a=K.getByID(a);a.editor=!0;a.prefillText=b;K.emit("change")},saveEdit:function(a){var c=JSON.parse(JSON.stringify(K.getByID(a))),d=b("ActorURI").create(b("XPluginCommentsEditCommentAsyncController").getURIBuilder().getURI(),K.getAuthor(a).id),e=K.getEditComposerContent(a),f=this._getAttachmentFBID(K.getEditComposerAttachment(a)),g=K.hasCommentChanged(a,e);if(g){new(b("AsyncRequest"))(d).setMethod("POST").setData({app_id:q.appID,text:e.encodedValue,comment_id:a,attached_photo_fbid:f.photoFBID,attached_sticker_fbid:f.stickerFBID,iframe_referer:q.iframeReferer}).setHandler(function(b){b=b.payload;p[b.commentID]=K.initComment(b.idMap[b.commentID]);delete z[a];K.emit("change")}).setErrorHandler(function(b){c.editor=!1,Object.assign(K.getByID(a),c),K.emit("change"),K.emit("postError",b)}).send();g=K.getByID(a);g.editor=!1;g.body.text=e.visibleValue;f.photoFBID===0&&delete g.photo_comment;f.stickerFBID===0&&delete g.attachment;delete g.ranges;K.emit("change")}else this.cancelEdit(a)},cancelEdit:function(a){a=K.getByID(a);a.editor=!1;K.emit("change")},"delete":function(a){var c=K.getByID(a);c.deleted=!0;c=b("ActorURI").create(b("XPluginCommentsDeleteCommentAsyncController").getURIBuilder().getURI(),K.getAuthor(a).id);new(b("AsyncRequest"))(c).setData({app_id:q.appID,comment_id:a,iframe_referer:q.iframeReferer}).setMethod("POST").setHandler(function(){return J("comment.remove",{commentID:a})}).setErrorHandler(function(b){b=K.getByID(a);b.deleted=!1;K.isReply(a)||K.updateCommentsCount(1);K.emit("change")}).send();K.isReply(a)||K.updateCommentsCount(-1);K.emit("change")},like:function(a){var c=K.getUser().id,d=K.getByID(a),e=K.hasActorLiked(d,c);a=b("ActorURI").create(b("XPluginCommentsLikeCommentAsyncController").getURIBuilder().setBool("action_like",!e).getURI(),c);new(b("AsyncRequest"))(a).setData({app_id:q.appID,comment_id:d.id,iframe_referer:q.iframeReferer}).setMethod("POST").setHandler(function(a){a=a.payload;Object.assign(p[a.commentID],K.initComment(a.idMap[a.commentID]));K.emit("change")}).setErrorHandler(function(a){K.hasActorLiked(d,c)?d.likeCount>0&&d.likeCount--:d.likeCount++,K.setActorLike(d,e,c),K.emit("postError",a)}).send();K.setActorLike(d,!e,c);K.hasActorLiked(d,c)?d.likeCount++:d.likeCount>0&&d.likeCount--;p[d.id]=d;K.emit("change")},sort:function(a){var c=K.getUser().id,d=b("XPluginCommentsPagerAsyncController").getURIBuilder().setInt("target_id",q.targetFBID).setEnum("ordering",a).getURI();new(b("AsyncRequest"))(d).setMethod("POST").setData({app_id:q.appID,limit:K.getPageSize(),iframe_referer:q.iframeReferer}).setHandler(function(b){b=b.payload;q.afterCursor=b.afterCursor;K.updateCommentData(b,a,c);K.emit("sortingCompleted");K.emit("change")}).send()},showMoreComments:function(){var a=K.getUser().id,c=b("XPluginCommentsPagerAsyncController").getURIBuilder().setInt("target_id",q.targetFBID).setEnum("ordering",K.getCurrentSorting()).getURI();new(b("AsyncRequest"))(c).setMethod("POST").setData({app_id:q.appID,after_cursor:q.afterCursor,limit:K.getPageSize(),deeplinked_comment_id:q.deeplinkedCommentID,iframe_referer:q.iframeReferer}).setHandler(function(b){b=b.payload;q.afterCursor=b.afterCursor;o=o.concat(b.commentIDs).filter(I);Object.assign(p,K.initComments(b.commentIDs,b.idMap));K.initActorLikeState(b.commentIDs,a);K.emit("moreCommentsCompleted");K.emit("change")}).setErrorHandler(function(a){K.emit("postError",a),K.emit("moreCommentsCompleted")}).send()},setUser:function(a){K.setActor(a);K.emit("actorChange");var c=K.getCommentIDsToFetch(a);if(c.length===0)return;var d=b("ActorURI").create(b("XPluginCommentsActorChangeAsyncController").getURIBuilder().getURI(),a);new(b("AsyncRequest"))(d).setMethod("POST").setData({comment_ids:c}).setHandler(function(b){var d=b.payload;c.forEach(function(b){D[a].hasLiked[b]=d.hasLiked[b],D[a].canLike[b]=d.canLike[b]});K.emit("likeStateChange")}).send();this._setDefaultLikeStates(a,c)},_setDefaultLikeStates:function(a,b){var c=D[a]?D[a].hasLiked:{},d=D[a]?D[a].canLike:{};b.forEach(function(a){c[a]=!1,d[a]=!1});D[a]={hasLiked:c,canLike:d};K.emit("likeStateChange")},setPostToFeed:function(a){K.setPostToFeed(a)},setPrivacyOption:function(a){K.setPrivacyOption(a)},showMoreReplies:function(a){var c=K.getUser().id,d=b("XPluginCommentsRepliesPagerAsyncController").getURIBuilder().setString("comment_id",a).getURI(),e=K.getByID(a).public_replies;new(b("AsyncRequest"))(d).setMethod("POST").setData({app_id:q.appID,after_cursor:e.afterCursor,limit:K.getPageSize(),iframe_referer:q.iframeReferer}).setHandler(function(b){b=b.payload;p=Object.assign(K.initComments(b.commentIDs,b.idMap),p);e.afterCursor=b.afterCursor;e.commentIDs=e.commentIDs.concat(b.commentIDs).filter(I);K.initActorLikeState(b.commentIDs,c);K.emit("moreRepliesCompleted",{commentID:a});K.emit("change")}).setErrorHandler(function(b){K.emit("postError",b),K.emit("moreRepliesCompleted",{commentID:a})}).send()},toggleVisibility:function(a){a=K.getByID(a);a.collapsed=!a.collapsed;K.emit("change")},flag:function(a){p[a].flagged=!0,this._sendFlagOrUnflagRequest(a,"flag"),K.emit("change")},unflag:function(a){p[a].flagged=!1,this._sendFlagOrUnflagRequest(a,"unflag"),K.emit("change")},_sendFlagOrUnflagRequest:function(a,c){var d=b("XPluginCommentsFlagCommentAsyncController").getURIBuilder().getURI();new(b("AsyncRequest"))(d).setData({app_id:q.appID,comment_id:a,iframe_referer:q.iframeReferer,unflag:c==="unflag"}).setMethod("POST").setErrorHandler(function(b){p[a].flagged=!p[a].flagged,K.emit("postError",b)}).send()},report:function(a){window.open(K.getByID(a).reportURI,"_blank")},showReplyComposer:function(a,b){var c=K.getByID(a);if(K.isReply(a)){a=a;c=K.getByID(c.targetID);c.replyToCommentID=a}c.prefillText=b;c.composer=!0;K.emit("change")},cancelReply:function(a){a=K.getByID(a);a.composer=!1;delete a.replyToCommentID;K.emit("change")},restorePreviousState:function(){var a=this,c=(h||(h=b("WebStorage"))).getSessionStorage(),d=c?c.getItem("previousState"):null;if(d){d=JSON.parse(d);c&&c.clear();c=K.getCommentIDs();if(d.action){var e={};e.action=d.action;e.args=d.commentIDs;G(e)}var f=d.replies,g=d.edits;c.map(function(b){f[b]&&a.showReplyComposer(b,f[b]),g[b]&&a.edit(b,g[b])});d.commentBody&&K.emit("previousComposerCommentPrefill",{prefillText:d.commentBody});d.postToFeed&&(this.setPostToFeed(d.postToFeed),K.emit("previousPostToFeedPrefill"))}},embed:function(a){a=b("XCommentEmbedPluginEmbedAsyncDialogController").getURIBuilder().setString("comment_id",a).setInt("width",K.getDialogWidth()).getURI();b("AsyncDialog").send(new(b("AsyncRequest"))(a))}};K.ActionHandler=L;e.exports=K}),null); __d("CommentsPluginActions",["CommentsPluginStore","DevxProxyActions"],(function(a,b,c,d,e,f){"use strict";e.exports=new(b("DevxProxyActions"))(b("CommentsPluginStore"))}),null); __d("CommentsPluginAction",["fbt"],(function(a,b,c,d,e,f,g){"use strict";var h={EDIT:"edit",DELETE:"delete",FLAG:"flag",SETUSER:"setUser",BAN:"ban",HIDE:"hide",REPORT:"report",COLLAPSE:"collapse",EMBED:"embed",getLabel:function(a){switch(a){case h.COLLAPSE:return g._("Collapse comment");case h.EDIT:return g._("Edit comment");case h.DELETE:return g._("Delete comment");case h.FLAG:return g._("Mark as spam");case h.BAN:return g._("Ban user");case h.HIDE:return g._("Hide comment");case h.REPORT:return g._("Report to Facebook");case h.SETUSER:return g._("Switch Accounts");case h.EMBED:return g._("Embed")}},getMenuActions:function(){return[h.COLLAPSE,h.EDIT,h.DELETE,h.FLAG,h.BAN,h.HIDE,h.REPORT,h.EMBED]}};e.exports=h}),null); __d("MixinCommentsPluginConfirmAction",["fbt","invariant","CommentsPluginAction","CommentsPluginActions","CommentsPluginStore","React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogCancelButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=120;a={UNSAFE_componentWillMount:function(){this.setState({actionConfirmationShown:!1,action:null,id:null,pageY:null})},requiresConfirmation:function(a){var c=new Set([b("CommentsPluginAction").DELETE,b("CommentsPluginAction").BAN,b("CommentsPluginAction").HIDE]);return c.has(a)},confirmAction:function(a,b,c){this.setState({actionConfirmationShown:!0,action:a,id:b,pageY:c})},_onActionConfirmed:function(){b("CommentsPluginActions")[this.state.action](this.state.id),this.setState({actionConfirmationShown:!1})},_onActionCancelled:function(){this.setState({actionConfirmationShown:!1})},_getActionMetadata:function(a){switch(a){case b("CommentsPluginAction").DELETE:return{body:g._("Are you sure you want to delete this comment?"),button_label:g._("Confirm Delete")};case b("CommentsPluginAction").BAN:return{body:g._("Are you sure you want to ban this user?"),button_label:g._("Confirm Ban")};case b("CommentsPluginAction").HIDE:return{body:g._("Are you sure you want to hide this comment?"),button_label:g._("Confirm Hide")};case b("CommentsPluginAction").SETUSER:return{body:g._("Commenting as another account will clear the attachments you've uploaded."),button_label:g._("Switch Accounts")};default:h(0,6208,a)}},renderActionConfirmationDialog:function(){var a=this.state.action;if(!a)return null;var c=this._getActionMetadata(a);return i.jsxs(b("XUIDialog.react"),{shown:this.state.actionConfirmationShown,fixedTopPosition:this.state.pageY+j1&&b("CommentsPluginStore").shouldUseCustomActorSelector()&&b("ShortProfiles").getMulti(this.actorIDs,function(b){a.setState({actorsData:b})})};d.$CommentsPluginAuthorSelector2=function(a){return h._("Commenting as {actorName}",[h._param("actorName",a)])};d.render=function(){var a=this;if(this.actorIDs.length<=1)return null;var c=b("CommentsPluginStore").getUser().id;if(b("CommentsPluginStore").shouldUseCustomActorSelector()){var d=this.state.actorsData;return!d?null:i.jsxs("div",{className:"_3-95",children:[i.jsx(b("XUIText.react"),{size:"meta1",className:"_1y5f _2pih",children:h._("Commenting as")}),i.jsx("select",{value:c,onChange:function(b){return a.$CommentsPluginAuthorSelector1(b.target.value)},className:"_1y5g",children:this.actorIDs.map(function(a){return i.jsx("option",{value:a,children:d&&d[a].name},a)})}),this.renderActionConfirmationDialog()]})}return i.jsxs("div",{className:b("joinClasses")(this.props.className,"inlineBlock"),children:[i.jsx(b("ActorSelector.react"),{actorIDs:this.actorIDs,coverEnabled:!1,selectedActorID:c,onChange:function(b){return a.$CommentsPluginAuthorSelector1(b.value)},tooltipConstructor:this.$CommentsPluginAuthorSelector2}),this.renderActionConfirmationDialog()]})};return c}(b("classWithMixins")(i.Component,b("mixin")(b("MixinCommentsPluginConfirmAction"))));e.exports=a}),null); __d("CommentsPluginComposerMirroringNotice.react",["cx","fbt","CommentsPluginStore","React","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=b("CommentsPluginStore").getMirroredPage();return!a?null:i.jsx("div",{className:"_5sge _2ph-",children:a.name?this.props.isReply?h._("Your reply may also appear on {page name}'s Facebook Page.",[h._param("page name",i.jsx("a",{href:a.uri,target:"blank",children:a.name}))]):h._("Your comment may also appear on {page name}'s Facebook Page.",[h._param("page name",i.jsx("a",{href:a.uri,target:"blank",children:a.name}))]):this.props.isReply?h._("Your reply may also appear on Facebook."):h._("Your comment may also appear on Facebook.")})};return c}(i.Component);a.propTypes={isReply:b("prop-types").bool};e.exports=a}),null); __d("PrivacyTransparentOverlay.react",["cx","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return h.jsxs("div",{className:"_4cqr",children:[this.props.children,h.jsx("div",{className:"clearfix"})]})};return b}(h.PureComponent);e.exports=a}),null); __d("CommentsPluginProfilePicture.react",["cx","Image.react","PrivacyTransparentOverlay.react","React","prop-types"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=h.jsx("a",babelHelpers["extends"]({},this.props,{href:this.props.href,children:h.jsx(b("Image.react"),{className:(this.props.isReply?"":"_1ci")+(this.props.isReply?" _1cj":""),src:this.props.src})}));if(this.props.usePrivacyOverlay)return h.jsx(b("PrivacyTransparentOverlay.react"),{children:a});else return a};return c}(h.Component);a.propTypes={href:(c=b("prop-types")).string.isRequired,src:c.string.isRequired,isReply:c.bool,usePrivacyOverlay:c.bool};e.exports=a}),null); __d("createPlainBlocksFromText",["CharacterMetadata","ContentBlock","immutable","generateRandomKey","sanitizeDraftText"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").List,h=b("immutable").Repeat,i=b("CharacterMetadata").EMPTY;function a(a){return a.map(function(a){a=b("sanitizeDraftText")(a);var c=a.length;return new(b("ContentBlock"))({key:b("generateRandomKey")(),text:a,type:"unstyled",characterList:g(h(i,c))})})}e.exports=a}),null); __d("createEditorStateWithRanges",["invariant","ContentState","DraftModifier","EditorState","SelectionState","UnicodeUtils","createPlainBlocksFromText"],(function(a,b,c,d,e,f,g){var h;function a(a){var c=a.addEntityToContentStateFn,d=a.allowUndo,e=a.decorator,f=a.splitIntoBlocks,i=a.text;a=a.ranges;f===void 0&&(f=!0);i||(i="");var j=[],k=[];f=f?i.split(/(\r\n?|\n)/g):[i];var l=0;f.forEach(function(a,c){c%2===0&&(j.push(a),k.push(l)),l+=(h||(h=b("UnicodeUtils"))).strlen(a)});var m=b("createPlainBlocksFromText")(j);i=b("ContentState").createFromBlockArray(m);if(a&&a.length&&c){var n=c;i=a.reduce(function(a,c,d){d=n(c,a);a=d.getLastCreatedEntityKey();var e=c.offset;c=e+c.length;var f,i,j,l;for(var o=0;o=p&&e=p&&c=b("CommentsPluginStore").getMinFeedLength(),unableToPost:c>b("CommentsPluginStore").getMaxCommentLength()})});c.addListener("composerCommentAdded",function(){a.setState({waitingAsyncResponse:!1}),a.refs.composer.resetAttachment()});c.addListener("login",function(){a.setState({waitingAsyncResponse:!1})});c.addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()});c.addListener("previousPostToFeedPrefill",function(){a.setState({postToFeed:b("CommentsPluginStore").getPostToFeed()})})};d.$4=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||b("CommentsPluginStore").isEmptyCreateComposer()};d.render=function(){var a=b("CommentsPluginStore").isLoggedIn()?h._("Post"):h._("Log In to Post"),c=b("CommentsPluginStore").getMinFeedLength()-this.state.commentLength;return i.jsx(b("CommentsPluginComposer.react"),{allowPhotoAttachments:b("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:b("CommentsPluginStore").getEnableSticker(),ref:"composer",className:"_2392",readOnly:this.state.waitingAsyncResponse,unableToPost:this.state.unableToPost,children:i.jsxs(b("LeftRight.react"),{className:"_5tr6 clearfix _2ph-",children:[b("CommentsPluginStore").isMirrored()?i.jsx("span",{}):i.jsxs(b("Grid.react"),{cols:1,children:[i.jsx(j,{children:i.jsxs(b("InputLabel_DEPRECATED.react"),{className:"_1u0n",children:[i.jsx(b("XUICheckboxInput.react"),{checked:this.state.postToFeed,onChange:this.$2}),i.jsx(b("InputLabelLabel_DEPRECATED.react"),{className:"_3-99 _2ern _50f8 _5kx5",children:h._("Also post on Facebook")})]})}),i.jsx(j,{children:this.state.postToFeed&&!this.state.ablePostToFeed?h._({"*":{"character":"Write {lengthRemain} more character to post to Facebook","characters":"Write {lengthRemain} more characters to post to Facebook"}},[h._param("lengthRemain",c,[0]),h._enum(c===1?"character":"characters",{character:"character",characters:"characters"})]):i.jsx("span",{})})]}),i.jsxs("span",{children:[i.jsx(b("CommentsPluginAuthorSelector.react"),{}),b("CommentsPluginConfig").commentPrivacy&&this.state.postToFeed?i.jsx(b("CommentsPluginPrivacySelector.react"),{privacyOption:this.state.privacyOption,onChange:this.$1,addlPrivacyOptions:b("CommentsPluginStore").getPrivacyOptionsList()}):null,i.jsx(b("XUIButton.react"),{"data-testid":void 0,disabled:this.$4(),label:a,use:"confirm",className:"rfloat _3-99",onClick:this.$3})]})]})})};return c}(i.Component);e.exports=a}),null); __d("XDeveloperProductsController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/products/{product_name}/{?product_section}/{?path1}/{?path2}/{?path3}/",{product_name:{type:"String",required:!0},product_section:{type:"String"},path1:{type:"String"},path2:{type:"String"},path3:{type:"String"}})}),null); __d("CommentsPluginFooter.react",["cx","fbt","ix","Image.react","ImageBlock.react","React","XDeveloperProductsController"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a;return j.jsx("div",{className:"_5lm5 _2pi3 _3-8y",children:j.jsxs(b("ImageBlock.react"),{children:[j.jsx(b("Image.react"),{src:i("83801")}),j.jsx("a",{target:"_blank",href:b("XDeveloperProductsController").getURIBuilder().setString("product_name","social-plugins").setString("product_section","comments").getURI().setQueryData((a={},a.utm_campaign="social_plugins",a.utm_medium="offsite_pages",a.utm_source="comments_plugin",a)).setSubdomain("developers"),children:h._("Facebook Comments Plugin")})]})})};return c}(j.Component);e.exports=a}),null); __d("CommentsPluginHeader.react",["cx","fbt","CommentsPluginActions","CommentsPluginStore","DeveloperCommentsPluginOrdering","LeftRight.react","Link.react","React","XUISingleSelector.react","XUISpinner.react","XUIText.react","cxMargin"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("XUISingleSelector.react").Option;a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;d.$1=function(a){d.setState({sorting:!0}),b("CommentsPluginStore").addListener("sortingCompleted",function(){d.setState({sorting:!1}),b("CommentsPluginStore").removeCurrentListener()}),b("CommentsPluginActions").sort(a.value||a.target.value)};d.state={sorting:!1};return d}var d=c.prototype;d.componentDidMount=function(){var a=this;b("CommentsPluginStore").addListener("commentsCountChange",function(){a.forceUpdate()})};d.render=function(){var a=null,c=null;b("CommentsPluginStore").getModerateURL()&&(a=i.jsxs("span",{children:[i.jsx("span",{className:"_52bm",children:"|"}),i.jsx(b("Link.react"),{href:b("CommentsPluginStore").getModerateURL(),target:"_blank",children:h._("Moderation Tool")})]}));b("CommentsPluginStore").isDeeplinkComment()&&(c=i.jsxs("span",{children:[i.jsx("span",{className:"_52bm",children:"|"}),i.jsx(b("Link.react"),{href:b("CommentsPluginStore").getOriginalLink(),target:"_blank",children:h._("Original Link")})]}));var d=b("DeveloperCommentsPluginOrdering").__types.filter(function(a){return a!=="social"||b("CommentsPluginStore").isRankingAllowed()});return i.jsxs(b("LeftRight.react"),{className:"_491z",children:[i.jsxs("span",{children:[i.jsx(b("XUIText.react"),{weight:"bold",children:b("CommentsPluginStore").getCommentsCount()!==1?h._("{count} Comments",[h._param("count",b("CommentsPluginStore").getCommentsCount())]):h._("1 Comment")}),a,c]}),i.jsxs("div",{children:[this.state.sorting?i.jsx(b("XUISpinner.react"),{size:"small",className:"_3-90"}):null,i.jsx("span",{className:"_pup",children:h._("Sort by")})," ",b("CommentsPluginStore").isMobile()?i.jsx("select",{className:"_3-8_ _33ki",initialValue:b("CommentsPluginStore").getCurrentSorting(),onChange:this.$1,children:d.map(function(a){return i.jsx("option",{value:a,children:b("DeveloperCommentsPluginOrdering").__labels[a]},a)})}):i.jsx(b("XUISingleSelector.react"),{alignh:"right",className:"_3-8_",defaultValue:b("CommentsPluginStore").getCurrentSorting(),onChange:this.$1,children:d.map(function(a){return i.jsx(j,{value:a,children:b("DeveloperCommentsPluginOrdering").__labels[a]},a)})})]})]})};return c}(i.Component);e.exports=a}),null); __d("CommentsPluginCommentActions.react",["cx","fbt","ActionList.react","CommentsPluginAction","CommentsPluginActions","CommentsPluginStore","Image.react","Link.react","MixinCommentsPluginConfirmAction","React","ReactionIconFilepaths","UFICommentMetadata.react","classWithMixins","mixin","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;gb("CommentsPluginStore").getMaxCommentLength()});a.forceUpdate()});this.$2=b("CommentsPluginStore").addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()})};d.componentWillUnmount=function(){this.$1&&this.$1.remove(),this.$2&&this.$2.remove()};d.$5=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||b("CommentsPluginStore").isEmptyEditComposer(this.props.commentID)};d.render=function(){var a=b("CommentsPluginStore").getByID(this.props.commentID);return i.jsxs(b("CommentsPluginComposer.react"),{alwaysExpanded:!0,ref:"composer",prefillText:a.prefillText,readOnly:this.state.waitingAsyncResponse,allowPhotoAttachments:b("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:b("CommentsPluginStore").getEnableSticker(),editCommentID:this.props.commentID,unableToPost:this.state.unableToPost,children:[i.jsxs("div",{className:"_5tr6 clearfix _2ph_",children:[i.jsx(b("XUIButton.react"),{disabled:this.$5(),label:h._("Save"),use:"confirm",className:"rfloat _3-99",onClick:this.$3}),i.jsx(b("XUIButton.react"),{disabled:this.state.waitingAsyncResponse,label:h._("Cancel"),use:"default",className:"rfloat _3-99",onClick:this.$4})]}),this.props.children]})};return c}(i.Component);a.propTypes={commentID:b("prop-types").string.isRequired};e.exports=a}),null); __d("CommentsPluginComposerReply.react",["cx","fbt","CommentsPluginActions","CommentsPluginAuthorSelector.react","CommentsPluginComposer.react","CommentsPluginStore","React","ReactDOM","XUIButton.react","cxMargin","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.$3=function(){e.setState({waitingAsyncResponse:!0}),b("CommentsPluginActions").addReply(e.props.commentID),e.refs.composer.resetAttachment()};e.$4=function(){e.refs.composer.resetAttachment(),b("CommentsPluginActions").cancelReply(e.props.commentID)};e.state={waitingAsyncResponse:!1,unableToPost:!1};e.$1=null;return e}var d=c.prototype;d.componentDidMount=function(){var a=this;this.$1=b("CommentsPluginStore").addListener("composerChange",function(){var c=b("CommentsPluginStore").getCreateComposerContent(a.props.commentID).visibleValue;a.setState({unableToPost:c.trim().length>b("CommentsPluginStore").getMaxCommentLength()});a.forceUpdate()});this.$2=b("CommentsPluginStore").addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()});var c=b("ReactDOM").findDOMNode(this);c.scrollIntoView&&c.scrollIntoView()};d.componentWillUnmount=function(){this.$1&&this.$1.remove(),this.$2&&this.$2.remove()};d.$5=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||b("CommentsPluginStore").isEmptyCreateComposer(this.props.commentID)};d.render=function(){var a=b("CommentsPluginStore").getByID(this.props.commentID);return i.jsx(b("CommentsPluginComposer.react"),{allowPhotoAttachments:b("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:b("CommentsPluginStore").getEnableSticker(),ref:"composer",alwaysExpanded:!0,prefillText:a.prefillText,readOnly:this.state.waitingAsyncResponse,parentCommentIDOfNewReply:this.props.commentID,unableToPost:this.state.unableToPost,placeholder:h._("Add a reply..."),children:i.jsxs("div",{className:"_5tr6 clearfix _2ph_",children:[i.jsx(b("CommentsPluginAuthorSelector.react"),{}),i.jsx(b("XUIButton.react"),{disabled:this.state.waitingAsyncResponse,label:h._("Cancel"),use:"default",className:"_3-99",onClick:this.$4}),i.jsx(b("XUIButton.react"),{disabled:this.$5(),label:h._("Reply"),use:"confirm",className:"_3-99",onClick:this.$3})]})})};return c}(i.Component);a.propTypes={commentID:b("prop-types").string.isRequired};e.exports=a}),null); __d("CommentsPluginMenu.react",["fbt","ix","CommentsPluginAction","CommentsPluginActions","CommentsPluginConfig","CommentsPluginStore","Image.react","MixinCommentsPluginConfirmAction","PopoverMenu.react","React","ReactXUIMenu","Tooltip","classWithMixins","mixin","prop-types"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("ReactXUIMenu").Item;a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.$CommentsPluginMenu1=function(){e.setState({opened:!0})};e.$CommentsPluginMenu2=function(){e.setState({opened:!1})};e.$CommentsPluginMenu4=function(a,c){a=c.item.getValue();e.requiresConfirmation(a)?e.confirmAction(a,e.props.commentID,c.event.pageY):a===b("CommentsPluginAction").SHOW||a===b("CommentsPluginAction").COLLAPSE?e.$CommentsPluginMenu3():b("CommentsPluginActions")[a](e.props.commentID)};e.state={opened:!1};return e}var d=c.prototype;d.isOpen=function(){return this.state.opened};d.$CommentsPluginMenu3=function(){b("CommentsPluginActions").toggleVisibility(this.props.commentID)};d.$CommentsPluginMenu5=function(a,c){var d=b("CommentsPluginStore").isReply(c.id),e=b("CommentsPluginStore").getUser().id===b("CommentsPluginStore").getAuthor(c.id).id;switch(a){case b("CommentsPluginAction").DELETE:if(!c.canEdit||!e)return null;break;case b("CommentsPluginAction").EDIT:if(!c.canEdit||b("CommentsPluginStore").isThreadClosed()||!e)return null;break;case b("CommentsPluginAction").FLAG:if(c.canEdit||c.collapsed||c.flagged)return null;break;case b("CommentsPluginAction").COLLAPSE:if(d||c.collapsed||c.flagged)return null;break;case b("CommentsPluginAction").BAN:case b("CommentsPluginAction").HIDE:if(!b("CommentsPluginStore").isViewerModerator())return null;break;case b("CommentsPluginAction").REPORT:if(!c.reportURI||c.canEdit)return null;break;case b("CommentsPluginAction").EMBED:e=c.canEmbed;if(d){d=b("CommentsPluginStore").getByID(c.targetID);e=e&&d.canEmbed}if(c.flagged||!b("CommentsPluginConfig").commentEmbed||!e)return null;break;default:break}return i.jsx(j,{value:a,children:b("CommentsPluginAction").getLabel(a)},a)};d.render=function(){var a=this,c=b("CommentsPluginStore").getByID(this.props.commentID);return i.jsxs("div",{children:[i.jsx(b("PopoverMenu.react"),{alignh:"right",onShow:this.$CommentsPluginMenu1,onHide:this.$CommentsPluginMenu2,menu:i.jsx(b("ReactXUIMenu"),{onItemClick:this.$CommentsPluginMenu4,children:b("CommentsPluginAction").getMenuActions().map(function(b){return a.$CommentsPluginMenu5(b,c)})}),children:i.jsx("a",{children:i.jsx(b("Image.react"),babelHelpers["extends"]({},b("Tooltip").propsFor(g._("Menu")),{src:h("96566")}))})}),this.renderActionConfirmationDialog()]})};return c}(b("classWithMixins")(i.Component,b("mixin")(b("MixinCommentsPluginConfirmAction"))));a.propTypes={commentID:b("prop-types").string.isRequired};e.exports=a}),null); __d("CommentsPluginComment.react",["ix","cx","fbt","ActorBio.react","Badge.react","CenteredContainer.react","CommentsPluginActions","CommentsPluginCommentActions.react","CommentsPluginComposerEdit.react","CommentsPluginComposerReply.react","CommentsPluginMenu.react","CommentsPluginProfilePicture.react","CommentsPluginStore","Image.react","Link.react","React","TruncatedTextWithEntities.react","UFIActor.react","UFICommentAttachment.react","UFICommentUtils","UFIImageBlock.react","XUIGrayText.react","XUISpinner.react","XUIText.react","asset","cxMargin","joinClasses","linkifyEntityRange","nullthrows"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React"),k=function(c){babelHelpers.inheritsLoose(a,c);function a(){var a,d;for(var e=arguments.length,f=new Array(e),g=0;g0?j.jsx("div",{className:"_5yct _3-8y _3-96 _2ph-",children:this.state.loading?j.jsx(b("CenteredContainer.react"),{children:j.jsx(b("XUISpinner.react"),{size:"small"})}):j.jsxs(b("Link.react"),{onClick:this.$1,children:[j.jsx(b("XUIText.react"),{size:"body3",weight:"bold",children:f===1?i._("Show 1 more reply in this thread"):i._("Show {number of replies} more replies in this thread",[i._param("number of replies",f)])}),j.jsx(b("Image.react"),{className:"_2pir",align:"top",src:g("512929")})]})}):null,c.composer?j.jsx("div",{className:"_3-8y",children:j.jsx(b("CommentsPluginComposerReply.react"),{commentID:this.props.commentID})}):null]})};return a}(j.Component);e.exports=k}),null); __d("CommentsPluginLoadMore.react",["cx","fbt","CenteredContainer.react","CommentsPluginActions","CommentsPluginStore","React","XUIButton.react","XUISpinner.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.$1=function(){b("CommentsPluginActions").showMoreComments(),e.setState({loading:!0}),b("CommentsPluginStore").addListener("moreCommentsCompleted",function(){e.setState({loading:!1}),b("CommentsPluginStore").removeCurrentListener()})};e.state={loading:!1};return e}var d=c.prototype;d.render=function(){var a=b("CommentsPluginStore").getUnloadedCommentsCount();if(!b("CommentsPluginStore").hasUnloadedComments()||a<1)return null;if(this.state.loading)return i.jsx(b("CenteredContainer.react"),{className:"_ndl",children:i.jsx(b("XUISpinner.react"),{size:"large"})});var c=b("CommentsPluginStore").getPageSize();a=a0?b("getElementPosition")(d[0]):null;e=e.length>0?b("getElementPosition")(e[0]):null;return Math.max(a,d?d.y+d.height+1:0,e?e.height:0)},"resize.iframe",!1).resize().auto();b("CommentsPluginStore").addListener("change",function(){a.forceUpdate()});b("CommentsPluginStore").isOptinReturn()&&b("CommentsPluginActions").restorePreviousState()};d.$1=function(){return b("CommentsPluginStore").isThreadClosed()||b("CommentsPluginStore").shouldSwitchAccount()};d.render=function(){return i.jsx("div",{className:b("joinClasses")("_56q9",this.props.className),children:i.jsxs("div",{className:"_2pi8",children:[i.jsx(b("CommentsPluginHeader.react"),{}),this.$1()?i.jsx(b("CommentsPluginNotice.react"),{}):b("CommentsPluginStore").isDeeplinkComment()?null:i.jsx(b("CommentsPluginComposerComment.react"),{}),i.jsx(b("CommentsPluginListing.react"),{}),i.jsx(b("CommentsPluginFooter.react"),{})]})})};return c}(i.Component);e.exports=c}),null); __d("DocumentMentionsRegex",[],(function(a,b,c,d,e,f){"use strict";a="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";b="\\b[A-Z][^\\s"+a+"]";c={PUNCTUATION:a,NAME:b};e.exports=c}),null); __d("AtSignMentionsWithLongAliasStrategy",["DocumentMentionsRegex"],(function(a,b,c,d,e,f){a=b("DocumentMentionsRegex").PUNCTUATION;c=["@","\\uff20"].join("");d="[^"+c+a+"\\s]";f="(?:\\.[ |$]| |["+a+"]|)";b=75;var g=new RegExp("(?:^|\\s|\\()(["+c+"]((?:"+d+f+"){0,"+b+"}))$");a=50;var h=new RegExp("(?:^|\\s|\\()(["+c+"]((?:"+d+"){0,"+a+"}))$");f={name:"AtSignMentionsWithLongAliasStrategy",findMentionableString:function(a){var b=g.exec(a);b===null&&(b=h.exec(a));if(b!==null){a=b[2];if(a.length)return{matchingString:a,leadOffset:b[1].length}}return null}};e.exports=f}),null); __d("CapitalizedNameMentionsStrategy",["DocumentMentionsRegex"],(function(a,b,c,d,e,f){"use strict";a=1;var g=new RegExp("(^|[^#])((?:"+b("DocumentMentionsRegex").NAME+"{"+a+",})$)");c={name:"CapitalizedNameMentionsStrategy",findMentionableString:function(a){a=g.exec(a);return a!==null?{matchingString:a[2],leadOffset:a[2].length}:null}};e.exports=c}),null); __d("DocumentCompositeMentionsSource",["invariant","createCancelableFunction","emptyFunction","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var c=a.getCharacterList().toSeq().slice(0,b).reverse().takeWhile(function(a){return a.getEntity()===null}).count();return a.getText().slice(b-c,b)}a=function(){function a(a){a.length>0||g(0,1514),this.$1=a,this.$2=!1,this.$3=null}var c=a.prototype;c.bootstrap=function(a){if(this.$2)return;this.$2=!0;a=a||b("emptyFunction");var c=this.$1.length;function d(){c--,c||a&&a()}this.$1.forEach(function(a){a.bootstrap(d)})};c.search=function(a,c,d){var e=c.getAnchorKey();a=a.getBlockForKey(e);var f=b("createCancelableFunction")(d);this.$4(h(a,c.getAnchorOffset()),f);return{remove:function(){f.cancel()}}};c.$4=function(a,c){var d=this,e=this.$1.length,f,g;for(var h=0;h=3&&a.getTitle().startsWith(d+c)||c==b("TokenizeUtil").tokenize(a.getTitle())[0];else return c.length>=5||b("TokenizeUtil").isExactMatch(c,a.getTitle());else if(a.getType()==="page")return e.connectedPage&&(c.length>=5||b("TokenizeUtil").isExactMatch(c,a.getTitle()));else return!1}var g={};e.exports=a}),null);