!function(){"use strict";var n={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},d:function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)}},t=CoreUtilities,c=React,i=n.n(c),r=ReactDOM,e=PropTypes,a=n.n(e),o=ReactUtilities,u={common:["CommonUI.UserAgreements","CommonUI.Controls"],feature:null},s=Roblox,l=s.EnvironmentUrls.userAgreementsServiceApi,f=s.EnvironmentUrls.universalAppConfigurationApi,m=function(){return{withCredentials:!0,url:"".concat(l,"/v1/agreements-resolution/").concat("web")}},p=function(){return{withCredentials:!0,url:"".concat(l,"/v1/acceptances")}},d=function(){return{withCredentials:!0,url:"".concat(f,"/v1/behaviors/").concat("user-agreements-policy","/content")}},v=function(){var e=m();return t.httpService.get(e)},g=function(e){var r=p(),e={acceptances:e.map(function(e){return{agreementId:e}})};return t.httpService.post(r,e)},y=ReactStyleGuide,h="Roblox.UserAgreements",b=864e5,A={TermsOfService:"Modal.Agreement.TermsOfService",PrivacyPolicy:"Modal.Agreement.PrivacyPolicy",RiderTerms:"Modal.Agreement.RiderTerms",ChildrenPrivacyPolicy:"Modal.Agreement.ChildrenPrivacyPolicy"},S="Modal.Body",w="Modal.Title",x="Modal.Agree",T=CoreRobloxUtilities,E=HeaderScripts,R=function(){var e=d();return t.httpService.get(e)};function U(e,r,t,n,a,o,c){try{var i=e[o](c),u=i.value}catch(e){return void t(e)}i.done?r(u):Promise.resolve(u).then(n,a)}var k={shouldFetchAgreements:function(){var i,e=(i=regeneratorRuntime.mark(function e(r){var t,n,a,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!!s.DeviceMeta&&(0,s.DeviceMeta)().isInApp)return e.abrupt("return",!1);e.next=3;break;case 3:if(E.authenticatedUser.isAuthenticated){e.next=6;break}return e.abrupt("return",!1);case 6:e.prev=6,t=T.localStorageService.getLocalStorage(h),e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(6),e.t0 instanceof SyntaxError)return e.abrupt("return",!0);e.next=14;break;case 14:throw e.t0;case 15:if(null===t)return e.abrupt("return",!0);e.next=17;break;case 17:if(n=t.lastFetchTimestamp,n=Date.parse(n),Number.isNaN(n))return e.abrupt("return",!0);e.next=21;break;case 21:if(t.doesUserNeedToAcceptAgreements)return e.abrupt("return",!0);e.next=24;break;case 24:return a=r.getTime(),e.prev=25,e.next=28,R();case 28:o=e.sent,o=o.data.cooldownPeriodInMs,e.next=35;break;case 32:e.prev=32,e.t1=e.catch(25),o=b;case 35:return e.abrupt("return",n+oe.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t