MWSOnboardingM4EVerifyModal.react",["fbt","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","GeoVStack.react","MWSProductKeyInput.react","MWSTermsAndConditions.react","XWorkAccountsAdminPlansControllerRouteBuilder","react","useMWSRedeemProductKeyMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useState;function d(e){var t=e.onHide,n=c(!1),a=n[0],i=n[1],l=c(null),d=l[0],m=l[1],p=c(null),_=p[0],f=p[1],g=c(!1),h=g[0],y=g[1],C=r("useMWSRedeemProductKeyMutation")("DEVICE_MANAGER_PRODUCTS_AND_BILLING",d,r("XWorkAccountsAdminPlansControllerRouteBuilder").buildURL({}),f,y,m,i);return u.jsx(r("GeoModal.react"),{footer:u.jsx(r("GeoModalFooter.react"),{primaryButton:u.jsx(r("GeoButton.react"),{isDisabled:d==null||d===""||!a||h,isLoading:h,label:s._(/*BTDS*/"Redeem"),onClick:C,variant:"primary"}),secondaryButton:u.jsx(r("GeoButton.react"),{label:s._(/*BTDS*/"Cancel"),onClick:function(){return t("layerHideButton")}})}),header:u.jsx(r("GeoModalHeader.react"),{heading:s._(/*BTDS*/"Redeem product key")}),onHide:t,children:u.jsx(r("GeoSection.react"),{children:u.jsxs(r("GeoVStack.react"),{context:"content",relation:"section",children:[u.jsx(r("GeoText.react"),{display:"block",children:s._(/*BTDS*/"Redeem your product key purchased from your reseller to add a new subscription. You should have received an email containing the product key.")}),u.jsx(o("MWSProductKeyInput.react").MWSProductKeyInput,{errorMessage:_,isLoading:h,productKey:d,setErrorMessage:f,setProductKey:m}),u.jsx(r("MWSTermsAndConditions.react"),{checkboxLabel:s._(/*BTDS*/"Read and agree to these terms on behalf of your organization before you continue. By agreeing, you represent that you have full authority to bind your organization to the terms."),checkboxValue:a,isDisabled:h,linkLabel:s._(/*BTDS*/"Reseller Customer Terms"),onChange:function(){return i(!a)},url:"https://forwork.meta.com/legal/mfw-reseller-customer-terms/"}),u.jsx(r("GeoNotice.react"),{status:"info",children:s._(/*BTDS*/"Note: Once you close this window, future product keys can be redeemed in Products & billing.")})]})})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226);
-----
MWSProductKeyCard.react",["fbt","GeoButton.react","GeoCard.react","GeoHStack.react","GeoLink.react","GeoSection.react","GeoText.react","GeoVStack.react","MWSProductKeyInput.react","MWSProductMDCURLs","MWSTermsAndConditions.react","XWorkAccountsAdminPlansControllerRouteBuilder","react","useMWSRedeemProductKeyMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(){var a=k(!1),b=a[0],e=a[1];a=k(null);var f=a[0];a=a[1];var g=k(null),i=g[0];g=g[1];var l=k(!1),m=l[0];l=l[1];l=c("useMWSRedeemProductKeyMutation")("DEVICE_MANAGER_PRODUCTS_AND_BILLING",f,c("XWorkAccountsAdminPlansControllerRouteBuilder").buildURL({}),g,l,a,e);return j.jsx(c("GeoCard.react"),{children:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoVStack.react"),{context:"content",relation:"section",children:[j.jsxs(c("GeoHStack.react"),{alignItems:"end",children:[j.jsx(d("MWSProductKeyInput.react").MWSProductKeyInput,{errorMessage:i,isLoading:m,productKey:f,setErrorMessage:g,setProductKey:a}),j.jsx(c("GeoButton.react"),{isDisabled:f==null||f===""||!b||m,isLoading:m,label:h._(/*BTDS*/"Redeem"),onClick:l,variant:"primary"})]}),j.jsx(c("GeoText.react"),{display:"block",children:h._(/*BTDS*/"Redeem your product key purchased from your reseller to add a new subscription. You should have received an email containing the product key. {=m1}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:d("MWSProductMDCURLs").META_QUEST_SIGNUP_WITH_RESELLER_HELP_URL,showUnderline:"always",target:"_blank",children:h._(/*BTDS*/"Learn more about product key")}))])}),j.jsx(c("MWSTermsAndConditions.react"),{checkboxLabel:h._(/*BTDS*/"Read and agree to these terms on behalf of your organization before you continue. By agreeing, you represent that you have full authority to bind your organization to the terms."),checkboxValue:b,isDisabled:m,linkLabel:h._(/*BTDS*/"Reseller Customer Terms"),onChange:function(){return e(!b)},url:"https://forwork.meta.com/legal/mfw-reseller-customer-terms/"})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useMWSRedeemProductKeyMutation",["fbt","GeoToast.react","MWSProductKeyInput.react","RelayHooks","react","useCometRouterDispatcher","useGeoToaster","useMWSRedeemProductKeyMutation.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("useMWSRedeemProductKeyMutation.graphql");function a(a,b,e,f,g,i,j){var m=d("RelayHooks").useMutation(l),n=m[0];m=c("useGeoToaster")();var o=m.add,p=c("useCometRouterDispatcher")(),q=function(){g(!1),j(!1),i(null)};m=function(){g(!0),n({onCompleted:function(){o(k.jsx(c("GeoToast.react"),{heading:h._(/*BTDS*/"Product key successfully redeemed")})),p==null||p.go(e,{force:!0,navigationType:"initial",onNavigationTransitioning:function(){q()},replace:!0})},onError:function(){q(),f(h._(/*BTDS*/"Failed to redeem product key."))},variables:{input:{product_key:d("MWSProductKeyInput.react").cleanInput(b),source:a}}})};return m}g["default"]=a}),226);
-----
useMWSRedeemProductKeyMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24793326900320493"}),null);
-----
MWSSignupMethodProductKey.react",["fbt","GeoButton.react","GeoCardFooter.react","GeoDivider.react","GeoHeading.react","GeoLink.react","GeoSection.react","GeoText.react","GeoVStack.react","MWSProductKeyInput.react","MWSProductMDCURLs","MWSProductsAndBillingCardedPage.react","MWSTermsAndConditions.react","XWorkAccountsHomeControllerRouteBuilder","geoMargin","react","useMWSRedeemProductKeyMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(a){var b=a.goBack,e=a.prefillProductKey;a.requestId;a=a.xstyle;var f=k(!1),g=f[0],i=f[1];f=k(e);e=f[0];f=f[1];var l=k(null),m=l[0];l=l[1];var n=k(!1),o=n[0];n=n[1];n=c("useMWSRedeemProductKeyMutation")("DEVICE_MANAGER_SIGNUP",e,c("XWorkAccountsHomeControllerRouteBuilder").buildURL({}),l,n,f,i);return j.jsx(d("MWSProductsAndBillingCardedPage.react").MWSProductsAndBillingCard,{bodyContent:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",children:[j.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"To activate your Horizon managed solutions plan, please enter the product key you received when you made a purchase with your reseller.")}),j.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").bottom0}),j.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Agree to the terms and redeem product key")}),j.jsx(c("MWSTermsAndConditions.react"),{checkboxLabel:h._(/*BTDS*/"Read and agree to these terms on behalf of your organization before you continue. By agreeing, you represent that you have full authority to bind your organization to the terms."),checkboxValue:g,linkLabel:h._(/*BTDS*/"Reseller Customer Terms"),onChange:function(){return i(!g)},url:"https://forwork.meta.com/legal/mfw-reseller-customer-terms/"}),j.jsxs(c("GeoVStack.react"),{context:"component",relation:"related",children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Enter your product key number (16 digits)")}),j.jsx(c("GeoText.react"),{display:"block",children:h._(/*BTDS*/"You should have received an email containing the product key. {=m1}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:d("MWSProductMDCURLs").META_QUEST_SIGNUP_WITH_RESELLER_HELP_URL,showUnderline:"always",target:"_blank",children:h._(/*BTDS*/"Learn more about product key")}))])}),j.jsx(d("MWSProductKeyInput.react").MWSProductKeyInput,{errorMessage:m,isLoading:o,productKey:e,setErrorMessage:l,setProductKey:f})]})]})}),footer:j.jsx(c("GeoCardFooter.react"),{secondaryButton:j.jsx(c("GeoButton.react"),{isDisabled:e==null||e===""||!g||o,isLoading:o,label:h._(/*BTDS*/"Redeem"),onClick:n,variant:"primary"}),startContent:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:o,label:h._(/*BTDS*/"Back"),onClick:b,variant:"default"})}),headerContent:h._(/*BTDS*/"Redeem your product key"),xstyle:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
-----
MWSProductKeyCard.react",["fbt","GeoButton.react","GeoCard.react","GeoHStack.react","GeoLink.react","GeoSection.react","GeoText.react","GeoVStack.react","MWSProductKeyInput.react","MWSProductMDCURLs","MWSTermsAndConditions.react","XWorkAccountsAdminPlansControllerRouteBuilder","react","useMWSRedeemProductKeyMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(){var a=k(!1),b=a[0],e=a[1];a=k(null);var f=a[0];a=a[1];var g=k(null),i=g[0];g=g[1];var l=k(!1),m=l[0];l=l[1];l=c("useMWSRedeemProductKeyMutation")("DEVICE_MANAGER_PRODUCTS_AND_BILLING",f,c("XWorkAccountsAdminPlansControllerRouteBuilder").buildURL({}),g,l,a,e);return j.jsx(c("GeoCard.react"),{children:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoVStack.react"),{context:"content",relation:"section",children:[j.jsxs(c("GeoHStack.react"),{alignItems:"end",children:[j.jsx(d("MWSProductKeyInput.react").MWSProductKeyInput,{errorMessage:i,isLoading:m,productKey:f,setErrorMessage:g,setProductKey:a}),j.jsx(c("GeoButton.react"),{isDisabled:f==null||f===""||!b||m,isLoading:m,label:h._(/*BTDS*/"Redeem"),onClick:l,variant:"primary"})]}),j.jsx(c("GeoText.react"),{display:"block",children:h._(/*BTDS*/"Redeem your product key purchased from your reseller to add a new subscription. You should have received an email containing the product key. {=m1}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:d("MWSProductMDCURLs").META_QUEST_SIGNUP_WITH_RESELLER_HELP_URL,showUnderline:"always",target:"_blank",children:h._(/*BTDS*/"Learn more about product key")}))])}),j.jsx(c("MWSTermsAndConditions.react"),{checkboxLabel:h._(/*BTDS*/"Read and agree to these terms on behalf of your organization before you continue. By agreeing, you represent that you have full authority to bind your organization to the terms."),checkboxValue:b,isDisabled:m,linkLabel:h._(/*BTDS*/"Reseller Customer Terms"),onChange:function(){return e(!b)},url:"https://forwork.meta.com/legal/mfw-reseller-customer-terms/"})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useMWSRedeemProductKeyMutation",["fbt","GeoToast.react","MWSProductKeyInput.react","RelayHooks","react","useCometRouterDispatcher","useGeoToaster","useMWSRedeemProductKeyMutation.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("useMWSRedeemProductKeyMutation.graphql");function a(a,b,e,f,g,i,j){var m=d("RelayHooks").useMutation(l),n=m[0];m=c("useGeoToaster")();var o=m.add,p=c("useCometRouterDispatcher")(),q=function(){g(!1),j(!1),i(null)};m=function(){g(!0),n({onCompleted:function(){o(k.jsx(c("GeoToast.react"),{heading:h._(/*BTDS*/"Product key successfully redeemed")})),p==null||p.go(e,{force:!0,navigationType:"initial",onNavigationTransitioning:function(){q()},replace:!0})},onError:function(){q(),f(h._(/*BTDS*/"Failed to redeem product key."))},variables:{input:{product_key:d("MWSProductKeyInput.react").cleanInput(b),source:a}}})};return m}g["default"]=a}),226);
-----
useMWSRedeemProductKeyMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24793326900320493"}),null);
-----
MWSSignupMethodProductKey.react",["fbt","GeoButton.react","GeoCardFooter.react","GeoDivider.react","GeoHeading.react","GeoLink.react","GeoSection.react","GeoText.react","GeoVStack.react","MWSProductKeyInput.react","MWSProductMDCURLs","MWSProductsAndBillingCardedPage.react","MWSTermsAndConditions.react","XWorkAccountsHomeControllerRouteBuilder","geoMargin","react","useMWSRedeemProductKeyMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(a){var b=a.goBack,e=a.prefillProductKey;a.requestId;a=a.xstyle;var f=k(!1),g=f[0],i=f[1];f=k(e);e=f[0];f=f[1];var l=k(null),m=l[0];l=l[1];var n=k(!1),o=n[0];n=n[1];n=c("useMWSRedeemProductKeyMutation")("DEVICE_MANAGER_SIGNUP",e,c("XWorkAccountsHomeControllerRouteBuilder").buildURL({}),l,n,f,i);return j.jsx(d("MWSProductsAndBillingCardedPage.react").MWSProductsAndBillingCard,{bodyContent:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",children:[j.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"To activate your Horizon managed solutions plan, please enter the product key you received when you made a purchase with your reseller.")}),j.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").bottom0}),j.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Agree to the terms and redeem product key")}),j.jsx(c("MWSTermsAndConditions.react"),{checkboxLabel:h._(/*BTDS*/"Read and agree to these terms on behalf of your organization before you continue. By agreeing, you represent that you have full authority to bind your organization to the terms."),checkboxValue:g,linkLabel:h._(/*BTDS*/"Reseller Customer Terms"),onChange:function(){return i(!g)},url:"https://forwork.meta.com/legal/mfw-reseller-customer-terms/"}),j.jsxs(c("GeoVStack.react"),{context:"component",relation:"related",children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Enter your product key number (16 digits)")}),j.jsx(c("GeoText.react"),{display:"block",children:h._(/*BTDS*/"You should have received an email containing the product key. {=m1}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:d("MWSProductMDCURLs").META_QUEST_SIGNUP_WITH_RESELLER_HELP_URL,showUnderline:"always",target:"_blank",children:h._(/*BTDS*/"Learn more about product key")}))])}),j.jsx(d("MWSProductKeyInput.react").MWSProductKeyInput,{errorMessage:m,isLoading:o,productKey:e,setErrorMessage:l,setProductKey:f})]})]})}),footer:j.jsx(c("GeoCardFooter.react"),{secondaryButton:j.jsx(c("GeoButton.react"),{isDisabled:e==null||e===""||!g||o,isLoading:o,label:h._(/*BTDS*/"Redeem"),onClick:n,variant:"primary"}),startContent:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:o,label:h._(/*BTDS*/"Back"),onClick:b,variant:"default"})}),headerContent:h._(/*BTDS*/"Redeem your product key"),xstyle:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----