if (self.CavalryLogger) { CavalryLogger.start_js(["8qW4V"]); } __d("WorkFeedComposerTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:WorkFeedComposerLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:WorkFeedComposerLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:WorkFeedComposerLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={event:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null); __d("WorkplacePaymentsClientEventsTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:WorkplacePaymentsClientEventsLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:WorkplacePaymentsClientEventsLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:WorkplacePaymentsClientEventsLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setScreen=function(a){this.$1.screen=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={event:!0,screen:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null); __d("ReactComposerFocusModal.react",["Arbiter","Bootloader","React","ReactComposerFocusScrollLockUtils","ReactComposerFocusWrapperCore.react","ReactComposerLoggingActions","ReactDOM"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").PropTypes;var g=null,h=null,i=null;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),j=0;j60)return null;else if(c>30)return this.$5(c);else if(c>14)return this.$6(c);else return this.$7(c)}else if(a)return this.$4(a);else return this.props.adminAccountInfo.shouldRestrictPremiumFeatures&&this.props.placement==="dashboard"?this.$8():this.$9()};d.$5=function(a){return!this.state.chunky_megaphone_dismissed&&!this.$10(60)?b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"hourglass_full",header:h._({"Advanced":{"*":"Your Free Advanced Trial Ends in {number} Days","_1":"Your Free Advanced Trial Ends in 1 Day"},"Advanced Trial":{"*":"Your Free Advanced Trial Trial Ends in {number} Days","_1":"Your Free Advanced Trial Trial Ends in 1 Day"},"Enterprise":{"*":"Your Free Enterprise Trial Ends in {number} Days","_1":"Your Free Enterprise Trial Ends in 1 Day"},"Premium":{"*":"Your Free Premium Trial Ends in {number} Days","_1":"Your Free Premium Trial Ends in 1 Day"},"Essential":{"*":"Your Free Essential Trial Ends in {number} Days","_1":"Your Free Essential Trial Ends in 1 Day"},"Free":{"*":"Your Free Free Trial Ends in {number} Days","_1":"Your Free Free Trial Ends in 1 Day"},"Standard":{"*":"Your Free Standard Trial Ends in {number} Days","_1":"Your Free Standard Trial Ends in 1 Day"}},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum")),h._plural(a,"number")]),primaryActionTitle:this.$11(),onPrimaryAction:this.$12,secondaryActionTitle:this.$13(),onSecondaryAction:this.$14},h._("Add a payment method now to make sure you're ready when billing starts. Need more info? {Help centre link about Workplace Premium vs Standard}.",[h._param("Help centre link about Workplace Premium vs Standard",this.$15())])):null};d.$6=function(a){return!this.state.chunky_megaphone_dismissed&&!this.$10(30)?b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"hourglass_regular",header:h._({"Advanced":{"*":"Your Free Advanced Trial Ends in {number} Days","_1":"Your Free Advanced Trial Ends in 1 Day"},"Advanced Trial":{"*":"Your Free Advanced Trial Trial Ends in {number} Days","_1":"Your Free Advanced Trial Trial Ends in 1 Day"},"Enterprise":{"*":"Your Free Enterprise Trial Ends in {number} Days","_1":"Your Free Enterprise Trial Ends in 1 Day"},"Premium":{"*":"Your Free Premium Trial Ends in {number} Days","_1":"Your Free Premium Trial Ends in 1 Day"},"Essential":{"*":"Your Free Essential Trial Ends in {number} Days","_1":"Your Free Essential Trial Ends in 1 Day"},"Free":{"*":"Your Free Free Trial Ends in {number} Days","_1":"Your Free Free Trial Ends in 1 Day"},"Standard":{"*":"Your Free Standard Trial Ends in {number} Days","_1":"Your Free Standard Trial Ends in 1 Day"}},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum")),h._plural(a,"number")]),primaryActionTitle:this.$11(),onPrimaryAction:this.$12,secondaryActionTitle:this.$13(),onSecondaryAction:this.$14},b("WorkModeConfig").can_downgrade_company?h._({"Workplace Advanced":"Keep Workplace Advanced for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}.","Workplace Advanced Trial":"Keep Workplace Advanced Trial for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}.","Workplace Enterprise":"Keep Workplace Enterprise for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}.","Workplace Premium":"Keep Workplace Premium for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}.","Workplace Essential":"Keep Workplace Essential for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}.","Workplace Standard":"Keep Workplace Standard for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard} or {Link to downgrade to Workplace Standard}."},[h._enum(b("WorkPackages").getPackageName__DEPRECATED(),b("WorkProductTypeNames$FbtEnum")),h._param("Help centre link about Workplace Premium vs Standard",this.$15()),h._param("Link to downgrade to Workplace Standard",b("React").createElement(b("Link.react"),{onClick:this.$16},h._({"Advanced":"switch to Advanced","Advanced Trial":"switch to Advanced Trial","Enterprise":"switch to Enterprise","Premium":"switch to Premium","Essential":"switch to Essential","Free":"switch to Free","Standard":"switch to Standard"},[h._enum("Standard",b("WorkProductTierShortName$FbtEnum"))])))]):h._({"Advanced":"Keep Advanced for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Advanced Trial":"Keep Advanced Trial for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Enterprise":"Keep Enterprise for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Premium":"Keep Premium for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Essential":"Keep Essential for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Free":"Keep Free for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}","Standard":"Keep Standard for your business by adding a payment method. Need more info? {Help centre link about Workplace Premium vs Standard}"},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum")),h._param("Help centre link about Workplace Premium vs Standard",this.$15())])):null};d.$7=function(a){return b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"hourglass_almost_empty",header:h._({"Advanced":{"*":"Your Free Advanced Trial Ends in {number} Days","_1":"Your Free Advanced Trial Ends in 1 Day"},"Advanced Trial":{"*":"Your Free Advanced Trial Trial Ends in {number} Days","_1":"Your Free Advanced Trial Trial Ends in 1 Day"},"Enterprise":{"*":"Your Free Enterprise Trial Ends in {number} Days","_1":"Your Free Enterprise Trial Ends in 1 Day"},"Premium":{"*":"Your Free Premium Trial Ends in {number} Days","_1":"Your Free Premium Trial Ends in 1 Day"},"Essential":{"*":"Your Free Essential Trial Ends in {number} Days","_1":"Your Free Essential Trial Ends in 1 Day"},"Free":{"*":"Your Free Free Trial Ends in {number} Days","_1":"Your Free Free Trial Ends in 1 Day"},"Standard":{"*":"Your Free Standard Trial Ends in {number} Days","_1":"Your Free Standard Trial Ends in 1 Day"}},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum")),h._plural(a,"number")]),primaryActionTitle:this.$11(),onPrimaryAction:this.$12,secondaryActionTitle:this.$17(),onSecondaryAction:this.$16},h._({"Workplace Advanced":"Add a payment method now so {Workplace company name} can keep using Workplace Advanced. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Advanced Trial":"Add a payment method now so {Workplace company name} can keep using Workplace Advanced Trial. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Enterprise":"Add a payment method now so {Workplace company name} can keep using Workplace Enterprise. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Premium":"Add a payment method now so {Workplace company name} can keep using Workplace Premium. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Essential":"Add a payment method now so {Workplace company name} can keep using Workplace Essential. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Standard":"Add a payment method now so {Workplace company name} can keep using Workplace Standard. Need more info? {Help centre link about Workplace Premium vs Standard}."},[h._param("Workplace company name",this.props.adminAccountInfo.companyName),h._enum(b("WorkPackages").getPackageName__DEPRECATED(),b("WorkProductTypeNames$FbtEnum")),h._param("Help centre link about Workplace Premium vs Standard",this.$15())]))};d.$9=function(){return b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"hourglass_empty",header:h._({"Advanced":"Your Free Advanced Trial Has Ended","Advanced Trial":"Your Free Advanced Trial Trial Has Ended","Enterprise":"Your Free Enterprise Trial Has Ended","Premium":"Your Free Premium Trial Has Ended","Essential":"Your Free Essential Trial Has Ended","Free":"Your Free Free Trial Has Ended","Standard":"Your Free Standard Trial Has Ended"},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum"))]),primaryActionTitle:this.$11(),onPrimaryAction:this.$12,secondaryActionTitle:this.$17(),onSecondaryAction:this.$16},h._({"Workplace Advanced":"Add a payment method now so {Workplace company name} can keep using Workplace Advanced. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Advanced Trial":"Add a payment method now so {Workplace company name} can keep using Workplace Advanced Trial. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Enterprise":"Add a payment method now so {Workplace company name} can keep using Workplace Enterprise. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Premium":"Add a payment method now so {Workplace company name} can keep using Workplace Premium. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Essential":"Add a payment method now so {Workplace company name} can keep using Workplace Essential. Need more info? {Help centre link about Workplace Premium vs Standard}.","Workplace Standard":"Add a payment method now so {Workplace company name} can keep using Workplace Standard. Need more info? {Help centre link about Workplace Premium vs Standard}."},[h._param("Workplace company name",this.props.adminAccountInfo.companyName),h._enum(b("WorkPackages").getPackageName__DEPRECATED(),b("WorkProductTypeNames$FbtEnum")),h._param("Help centre link about Workplace Premium vs Standard",this.$15())]))};d.$15=function(){return b("React").createElement(b("Link.react"),{href:b("WorkPackages").getLearnMoreLink(),target:"_blank"},h._({"Advanced":{"Advanced":"Compare Advanced with the free Advanced plan","Advanced Trial":"Compare Advanced with the free Advanced Trial plan","Enterprise":"Compare Advanced with the free Enterprise plan","Premium":"Compare Advanced with the free Premium plan","Essential":"Compare Advanced with the free Essential plan","Free":"Compare Advanced with the free Free plan","Standard":"Compare Advanced with the free Standard plan"},"Advanced Trial":{"Advanced":"Compare Advanced Trial with the free Advanced plan","Advanced Trial":"Compare Advanced Trial with the free Advanced Trial plan","Enterprise":"Compare Advanced Trial with the free Enterprise plan","Premium":"Compare Advanced Trial with the free Premium plan","Essential":"Compare Advanced Trial with the free Essential plan","Free":"Compare Advanced Trial with the free Free plan","Standard":"Compare Advanced Trial with the free Standard plan"},"Enterprise":{"Advanced":"Compare Enterprise with the free Advanced plan","Advanced Trial":"Compare Enterprise with the free Advanced Trial plan","Enterprise":"Compare Enterprise with the free Enterprise plan","Premium":"Compare Enterprise with the free Premium plan","Essential":"Compare Enterprise with the free Essential plan","Free":"Compare Enterprise with the free Free plan","Standard":"Compare Enterprise with the free Standard plan"},"Premium":{"Advanced":"Compare Premium with the free Advanced plan","Advanced Trial":"Compare Premium with the free Advanced Trial plan","Enterprise":"Compare Premium with the free Enterprise plan","Premium":"Compare Premium with the free Premium plan","Essential":"Compare Premium with the free Essential plan","Free":"Compare Premium with the free Free plan","Standard":"Compare Premium with the free Standard plan"},"Essential":{"Advanced":"Compare Essential with the free Advanced plan","Advanced Trial":"Compare Essential with the free Advanced Trial plan","Enterprise":"Compare Essential with the free Enterprise plan","Premium":"Compare Essential with the free Premium plan","Essential":"Compare Essential with the free Essential plan","Free":"Compare Essential with the free Free plan","Standard":"Compare Essential with the free Standard plan"},"Free":{"Advanced":"Compare Free with the free Advanced plan","Advanced Trial":"Compare Free with the free Advanced Trial plan","Enterprise":"Compare Free with the free Enterprise plan","Premium":"Compare Free with the free Premium plan","Essential":"Compare Free with the free Essential plan","Free":"Compare Free with the free Free plan","Standard":"Compare Free with the free Standard plan"},"Standard":{"Advanced":"Compare Standard with the free Advanced plan","Advanced Trial":"Compare Standard with the free Advanced Trial plan","Enterprise":"Compare Standard with the free Enterprise plan","Premium":"Compare Standard with the free Premium plan","Essential":"Compare Standard with the free Essential plan","Free":"Compare Standard with the free Free plan","Standard":"Compare Standard with the free Standard plan"}},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum")),h._enum("Standard",b("WorkProductTierShortName$FbtEnum"))]))};d.$8=function(){return b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"hourglass_empty",header:h._({"Advanced":"Your Free Advanced Trial Has Ended","Advanced Trial":"Your Free Advanced Trial Trial Has Ended","Enterprise":"Your Free Enterprise Trial Has Ended","Premium":"Your Free Premium Trial Has Ended","Essential":"Your Free Essential Trial Has Ended","Free":"Your Free Free Trial Has Ended","Standard":"Your Free Standard Trial Has Ended"},[h._enum(b("WorkPackages").getShortPackageName(),b("WorkProductTierShortName$FbtEnum"))]),primaryActionTitle:this.$11(),onPrimaryAction:this.$12,secondaryActionTitle:this.$17(),onSecondaryAction:this.$16},h._("So we've temporarily locked some of the features in your company dashboard. Add a payment method to unlock them."))};d.$4=function(a){return b("React").createElement(b("WorkChunkyMegaphone.react"),{className:"_1veb",icon:"wallet",header:h._({"*":"You have {number} failed payments","_1":"You have 1 failed payment"},[h._plural(a,"number")]),primaryActionTitle:this.$18(),onPrimaryAction:this.$12,secondaryActionTitle:this.$17(),onSecondaryAction:this.$16},h._({"Workplace Advanced":"Update your payment method now so {Workplace company name} can keep using Workplace Advanced. If you don't update it, we'll try to take the payment again in a few days.","Workplace Advanced Trial":"Update your payment method now so {Workplace company name} can keep using Workplace Advanced Trial. If you don't update it, we'll try to take the payment again in a few days.","Workplace Enterprise":"Update your payment method now so {Workplace company name} can keep using Workplace Enterprise. If you don't update it, we'll try to take the payment again in a few days.","Workplace Premium":"Update your payment method now so {Workplace company name} can keep using Workplace Premium. If you don't update it, we'll try to take the payment again in a few days.","Workplace Essential":"Update your payment method now so {Workplace company name} can keep using Workplace Essential. If you don't update it, we'll try to take the payment again in a few days.","Workplace Standard":"Update your payment method now so {Workplace company name} can keep using Workplace Standard. If you don't update it, we'll try to take the payment again in a few days."},[h._param("Workplace company name",this.props.adminAccountInfo.companyName),h._enum(b("WorkPackages").getPackageName__DEPRECATED(),b("WorkProductTypeNames$FbtEnum"))]))};d.$3=function(){var a=this;return this.state.show_downgrade_dialog?b("React").createElement(b("BootloadedComponent.react"),{bootloadLoader:b("JSResource")("WorkAdminPanelDowngradeDialog.react").__setRef("WorkPaymentMegaphone.react"),bootloadPlaceholder:b("React").createElement(b("LoadingDialog.react"),null),onToggle:function(b){return a.setState({show_downgrade_dialog:b})},onClose:function(){return a.setState({show_downgrade_dialog:!1})}}):null};d.$11=function(){return h._("Add Payment Method")};d.$18=function(){return h._("Update Payment Method")};d.$17=function(){return!b("WorkModeConfig").can_downgrade_company?null:h._({"Advanced":"Switch to Advanced for Free","Advanced Trial":"Switch to Advanced Trial for Free","Enterprise":"Switch to Enterprise for Free","Premium":"Switch to Premium for Free","Essential":"Switch to Essential for Free","Free":"Switch to Free for Free","Standard":"Switch to Standard for Free"},[h._enum("Standard",b("WorkProductTierShortName$FbtEnum"))])};d.$13=function(){return h._("Not Now")};d.$10=function(a){var c=this.$1.get(k);if(!c)return!1;c=(b("nullthrows")(this.props.adminAccountInfo.trialEndTimestamp)*1e3-c)/j;return c<=a};d.$19=function(a){a.credential_state&&a.payment_method_id&&i({type:"payments/PaymentMethodAdded",data:a.payment_method_id})};return c}(b("React").Component);e.exports=a}),null); __d("WorkPaymentMegaphoneContainer.react",["FluxContainer","React","WorkAdminAccountInfoStore","WorkPaymentMegaphone.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}c.getStores=function(){return[b("WorkAdminAccountInfoStore")]};c.calculateState=function(){return{accountInfoLoadObject:b("WorkAdminAccountInfoStore").get()}};var d=c.prototype;d.render=function(){var a=this.state.accountInfoLoadObject;if(!a.hasValue())return null;a=a.getValueEnforcing();return b("React").createElement(b("WorkPaymentMegaphone.react"),{placement:this.props.placement,adminAccountInfo:a})};return c}(b("React").PureComponent);e.exports=b("FluxContainer").create(a)}),null); __d("WorkAdminMegaphones.react",["React","SUIBusinessTheme","SUIThemeContainer.react","WorkAdminMegaphonesConfig","WorkAdminNoticeStores","WorkPaymentMegaphoneContainer.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.UNSAFE_componentWillMount=function(){b("WorkAdminNoticeStores").init()};d.render=function(){return b("React").createElement(b("SUIThemeContainer.react"),{theme:b("SUIBusinessTheme")},b("React").createElement("div",null,this.$1()))};d.$1=function(){return!b("WorkAdminMegaphonesConfig").payment.placements.includes(this.props.placement)?null:b("React").createElement(b("WorkPaymentMegaphoneContainer.react"),{placement:this.props.placement})};return c}(b("React").Component);e.exports=a}),null);