text: !function(e){function t(t){for(var r,i,c=t[0],l=t[1],s=t[2],p=0,f=[];p<c.length;p++)i=c[p],a[i]&&f.push(a[i][0]),a[i]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);f.length;)f.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,c=1;c<n.length;c++){var l=n[c];0!==a[l]&&(r=!1)}r&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},a={0:0},o=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/adminpanel/";var c=window.webpackJsonp=window.webpackJsonp||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var u=l;o.push([636,2]),n()}({436:function(e,t,n){var r=n(437);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},437:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-input-wrapper {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  width: 100%;\n}\n\n.iap-login-form__input::placeholder {\n  color: #aaa;\n}\n\n.iap-login-form__input {\n  padding: 12px 20px;\n  border-radius: 7px;\n  background-color: #f7fcff;\n  border: 1px solid #cbe7fb;\n  font-size: 15px;\n  outline: none;\n  color: #2d2d2d;\n  width: 100%;\n  margin: 4px 0;\n}\n\n.iap-login-form__input:focus {\n  border: 1px solid #3CA6F5;\n}\n\n.iap-login-form__input:disabled {\n  opacity: .5;\n  cursor: default;\n}\n\n.iap-login-form__input.iap-login-form__input--iconized {\n  padding-left: 43px;\n}\n\n.iap-login-form__input.iap-login-form__input--invalid {\n  border-color: #d15555;\n  background-color: #fff;\n}\n\n.iap-input-icon {\n  height: 17px;\n  width: 17px;\n  position: absolute;\n  left: 17px;\n  pointer-events: none;\n  transform: translateY(-1px);\n}\n\n.iap-input-icon path,\n.iap-input-icon circle {\n  fill: #a9cce4;\n}\n\n.iap-input-error {\n  font-size: 15px;\n  color: #d15555;\n  width: 100%;\n  display: block;\n  text-align: left;\n}\n\n.iap-input-btn {\n  position: absolute;\n  right: 15px;\n  display: flex;\n  align-items: center;\n}\n\n.iap-login-form__input.iap-login-form__input--invalid + .iap-input-btn {\n  top: 16px;\n}",""])},439:function(e,t,n){var r=n(440);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},440:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-btn {\n  background-color: #3CA6F5;\n  color: #fff;\n  border-radius: 5px;\n  border: none;\n  font-size: 16px;\n  padding: 8px 18px;\n  outline: none;\n  cursor: pointer;\n  border: 2px solid #3CA6F5;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: relative;\n  margin-right: 5px;\n}\n\n.iap-btn:last-of-type {\n  margin-right: 0px;\n}\n\n.iap-btn.iap-btn--stretch {\n  width: 100%;\n}\n\n.iap-btn.iap-btn--iconized {\n  text-indent: 10px;\n}\n\n.iap-btn.iap-btn--transparent {\n  background-color: transparent;\n  border-color: transparent;\n  color: #aaa;\n}\n\n.iap-btn.iap-btn--transparent:focus,\n.iap-btn.iap-btn--transparent:hover {\n  background-color: #eee;\n  border-color: transparent;\n}\n\n.iap-btn.iap-btn--transparent:active {\n  background-color: #e8e6e6 !important;\n  border-color: transparent !important;\n  color: #7d7d7d;\n}\n\n.iap-btn.iap-btn--transparent:disabled:hover {\n  pointer-events: none;\n  background-color: transparent !important;\n  border-color: transparent !important;\n  color: #7d7d7d;\n}\n\n.iap-btn.iap-btn--error {\n  background-color: #d15555;\n  border-color: #d15555;\n}\n\n.iap-btn.iap-btn--error:hover {\n  background-color: #d66363;\n  border-color: #d66363;\n}\n\n.iap-btn.iap-btn--error:focus {\n  background-color: #d66363;\n  border-color: #c94c4c;\n}\n\n.iap-btn.iap-btn--error:active {\n  border-color: #c94c4c !important;\n  background-color: #c94c4c !important;\n}\n\n.iap-btn.iap-btn--error:disabled:hover {\n  background-color: #d15555;\n  border-color: #d15555;\n}\n\n.iap-btn:hover {\n  background-color: #1B9CFC;\n}\n\n.iap-btn:focus {\n  border-color: #1D72B3;\n}\n\n.iap-btn:active {\n  background-color: #1D8FE3;\n  border-color: #1D8FE3;\n}\n\n.iap-btn:disabled {\n  opacity: .5;\n  pointer-events: none;\n  cursor: default;\n}\n\n.iap-btn.iap-btn:disabled:hover {\n  background: #3CA6F5;\n}\n\n.iap-btn.iap-btn:active {\n  background: #3CA6F5;\n  border-color: #3CA6F5;\n}\n\n.iap-btn__icon {\n  height: 15px;\n  width: 15px;\n  transform: translateY(-1px);\n}\n\n.iap-btn__icon path,\n.iap-btn__icon circle {\n  fill: #fff;\n}\n\n.iap-btn.iap-btn--section-title-sticky-btn {\n  background-color: red !important;\n}",""])},441:function(e,t,n){var r=n(442);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},442:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-management-section-error {\n  color: #d15555;\n  display: flex;\n  align-items: center;\n  margin-bottom: 30px;\n}\n\n.iap-management-section-error__icon {\n  width: 45px;\n  transform: translateY(-1px);\n}\n\n.iap-management-section-error__msg {\n  display: inline-block;\n  margin-left: 15px;\n  font-size: 15px;\n}\n\n.iap-management-section-error__title {\n  font-size: 14px;\n  color: #3d3d3d;\n}",""])},444:function(e,t,n){var r=n(445);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},445:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-login-layout {\n  height: 100vh;\n  width: 100vw;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.iap-login-form {\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  width: 350px;\n  box-sizing: content-box;\n}\n\n.login-form__logo {\n  display: flex;\n  padding: 0;\n  margin-bottom: 40px;\n}\n\n.login-form__logo span {\n  font: 400 24px 'Circe';\n  display: inline-block;\n  display: flex;\n  align-items: center;\n}\n\n.login-form__logo span:first-of-type {\n  padding-right: 12px;\n  border-right: 1px solid #3d3d3d;\n  color: #3d3d3d;\n  height: 26px;\n}\n\n.login-form__logo span:last-of-type {\n  font: 400 18px 'Circe';\n  padding-left: 12px;\n  height: 28px;\n  color: var(--main-color);\n}\n\n.iap-login-form__err {\n  align-self: flex-start;\n}\n\n.iap-login-form__footer {\n  margin-top: 10px;\n  width: 100%;\n}",""])},446:function(e,t,n){var r=n(447);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},447:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-global-container {\n  width: 950px;\n  position: relative;\n  left: calc(50% - 475px);\n  display: flex;\n}\n",""])},454:function(e,t){},456:function(e,t){},490:function(e,t){},491:function(e,t){},536:function(e,t,n){var r=n(537);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},537:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-management-header {\n  width: 100%;\n  height: 70px;\n  border-bottom: 1px solid #eee;\n  display: flex;\n  align-items: center;\n  z-index: 999;\n  position: fixed;\n  background-color: rgba(255, 255, 255, .95);\n}\n\n.iap-management-header__inner {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n}\n\n.iap-management-header__logo {\n  display: flex;\n  padding: 0;\n}\n\n.iap-management-header__logo span {\n  font: 400 18px 'Circe';\n  display: inline-block;\n  display: flex;\n  align-items: center;\n}\n\n.iap-management-header__logo span:first-of-type {\n  padding-right: 9px;\n  border-right: 1px solid #8d8d8d;\n  color: #3d3d3d;\n  height: 18px;\n}\n\n.iap-management-header__logo span:last-of-type {\n  font: 400 14px 'Circe';\n  padding-left: 9px;\n  color: #aaa;\n  height: 20px;\n}\n\n.iap-header-profile {\n  position: relative;\n}\n\n.iap-header-profile__trigger {\n  font-size: 15px;\n  padding: 5px;\n  border: none;\n  background-color: transparent;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  outline: none;\n}\n\n.iap-header-profile__trigger:hover {\n  opacity: .6;\n}\n\n.iap-header-profile__trigger:focus {\n  color: #1B9CFC;\n}\n\n.iap-header-profile__trigger:focus:hover {\n  opacity: 1;\n}\n\n.iap-header-profile__trigger span:first-of-type {\n  margin-right: 10px;\n}\n\n.iap-profile-dropdown {\n  padding: 4px 0;\n  background: #fff;\n  box-shadow: 1px 3px 5px 1px rgba(0, 0, 0, .3);\n  border-radius: 3px;\n  position: absolute;\n  bottom: 0;\n  right: 0;\n  transform-origin: top right;\n  animation: profile-dropdown-fadeout 100ms forwards;\n  z-index: 1000;\n  min-width: 150px;\n}\n\n.iap-profile-dropdown__section {\n  width: 100%;\n  border: none;\n  outline: none;\n  background-color: #fff;\n  text-align: left;\n  font: normal 15px 'Circe';\n  padding: 10px 16px;\n  cursor: pointer;\n  color: #616161;\n  display: flex;\n  align-items: center;\n}\n\n.iap-profile-dropdown__section:hover,\n.iap-profile-dropdown__section:focus {\n  background-color: #f0f9ff;\n}\n\n.iap-profile-dropdown__section span:first-of-type {\n  margin-left: 13px;\n}\n\n.iap-dropdown-icon {\n  height: 11px;\n  width: 11px;\n  display: inline-block;\n}\n\n.iap-profile-dropdown__icon {\n  height: 16px;\n  width: 16px;\n  display: inline-block;\n  transform: translateY(-2px);\n}\n",""])},538:function(e,t,n){var r=n(539);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},539:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-management-sidebar {\n  display: flex;\n  flex-direction: column;\n  width: 240px;\n  min-height: calc(100vh - 80px); /* header height */\n  padding: 50px 0;\n  background-color: #fff;\n  position: fixed;\n}\n\n.iap-management-sidebar__section {\n  color: #000;\n  margin: 7px 0;\n  text-decoration: none;\n  font-size: 16px;\n  position: relative;\n  display: flex;\n  align-items: center;\n  padding-left: 30px;\n}\n\n.iap-management-sidebar__section:hover {\n  opacity: .6;\n}\n\n.iap-management-sidebar__section.iap-management-sidebar__section--active {\n  color: #1B9CFC;\n}\n\n.iap-management-sidebar__section.iap-management-sidebar__section--active:hover {\n  opacity: 1;\n}\n\n.iap-sidebarnav-icon {\n  height: 23px;\n  width: 23px;\n  position: absolute;\n  left: -6px;\n  transform: translateY(-2px);\n}\n\n.iap-management-sidebar__section--active > .iap-sidebarnav-icon {\n  fill: #1B9CFC;\n}\n",""])},540:function(e,t,n){var r=n(541);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},541:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"",""])},542:function(e,t,n){var r=n(543);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},543:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-datagrid-header {\n  border-bottom: 1px solid #eee;\n}\n\n.iap-datagrid-header .iap-datagrid-row > div {\n  font-size: 14px;\n  color: #989898;\n}\n\n.iap-datagrid-row {\n  padding: 15px 10px;\n  display: flex;\n  align-items: center;\n  border-bottom: 1px solid #eee;\n}\n\n.iap-datagrid-row:last-of-type {\n  border-bottom: none;\n}\n\n.iap-datagrid-row > div {\n  color: #3d3d3d;\n  white-space: nowrap;\n}\n\n.iap-datagrid-row:hover {\n  cursor: pointer;\n  background: #f9f9f9;\n}\n\n.iap-datagrid-row.iap-datagrid-row--header {\n  padding: 10px;\n}\n\n.iap-datagrid-row.iap-datagrid-row--header:hover {\n  background-color: transparent;\n  cursor: default;\n}\n\n.iap-datagrid-body {\n  margin-top: 5px;\n}\n\n.iap-datagrid__not-found {\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin: 35px 0 20px 0;\n  flex-direction: column;\n}\n\n.iap-datagrid__not-found-icon {\n  height: 140px;\n  width: 140px;\n}\n\n.iap-datagrid__not-found-icon path,\n.iap-datagrid__not-found-icon circle {\n  fill: #ddd;\n}\n\n.iap-datagrid__not-found-text {\n  margin: 17px 0;\n  font-size: 12px;\n  text-transform: uppercase;\n  font-weight: bold;\n  color: #5d5d5d;\n}",""])},544:function(e,t,n){var r=n(545);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},545:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-userlist {\n  margin: 25px 0;\n}\n\n.iap-datagrid-row__user-icon {\n  height: 35px;\n  width: 35px;\n  border-radius: 50%;\n  background-color: #3185C3;\n  color: #fff;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 12px;\n  font-weight: bold;\n}\n\n.iap-users-row__fake-icon {\n  height: 35px;\n  width: 35px;\n  border-radius: 50%;\n  animation: pulse .8s linear infinite;\n}\n\n.iap-users-row__fake-name,\n.iap-users-row__fake-latest-login,\n.iap-users-row__fake-logins,\n.iap-users-row__fake-email {\n  height: 15px;\n  width: 140px;\n  animation: pulse .8s linear infinite;\n  margin: 0 30px;\n  border-radius: 4px;\n}\n\n.iap-users-row__fake-name {\n  width: 100px;\n}\n\n.iap-users-row__fake-latest-login {\n  width: 50px;\n  margin-left: 50px;\n}\n\n.iap-users-row__fake-logins {\n  width: 30px;\n}\n\n.user-phone-icon {\n  height: 15px;\n  width: 15px;\n  fill: white;\n}",""])},546:function(e,t,n){var r=n(547);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},547:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-search-input {\n  width: 250px;\n  margin-top: 50px;\n}",""])},553:function(e,t,n){var r=n(554);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},554:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".form-field {\n  margin: 10px 0;\n  position: relative;\n}\n\n.form-field__label {\n  color: #5d5d5d;\n  font-weight: bold;\n  font-size: 12px;\n  text-transform: uppercase;\n  display: flex;\n  align-items: center;\n}\n\n.form-field__label-icon {\n  height: 18px;\n  width: 18px;\n  margin-left: 5px;\n  fill: #5d5d5d;\n}\n\n.form-field__subtext {\n  font-size: 14px;\n  color: #aaa;\n  white-space: nowrap;\n}",""])},555:function(e,t,n){var r=n(556);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},556:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-default-toggle {\n  display: flex;\n  width: 100%;\n  justify-content: space-between;\n}\n\n.iap-form__field + .iap-default-toggle {\n  margin-top: 20px;\n  margin-bottom: 20px;\n}\n\n.iap-default-toggle + .iap-form__field {\n  margin-top: 20px;\n}\n\n.iap-default-toggle + .iap-default-toggle {\n  margin-top: 10px;\n}\n\n.iap-default-toggle > span {\n  font: normal 15px 'Circe';\n  color: #aaa;\n}\n\n.iap-default-toggle__body {\n  height: 13px;\n  width: 40px;\n  border-radius: 20px;\n  background-color: #eee;\n  position: relative;\n  display: flex;\n  align-items: center;\n  transition: all 200ms;\n  cursor: pointer;\n  border: 1px solid #eee;\n  outline: none;\n  box-sizing: border-box;\n}\n\n.iap-default-toggle__body.iap-default-toggle__body--on {\n  background-color: #D8EEFF;\n}\n\n.iap-default-toggle__body:hover .iap-default-toggle__handle {\n  left: 1px;\n}\n\n.iap-default-toggle__body.iap-default-toggle__body--on:hover .iap-default-toggle__handle {\n  left: 100%;\n  transform: translateX(calc(-100% - 1px));\n}\n\n.iap-default-toggle__handle {\n  height: 23px;\n  width: 23px;\n  background-color: #fff;\n  border: 1px solid #eee;\n  left: 0;\n  transform: translateX(0);\n  position: absolute;\n  border-radius: 50%;\n  transition: all 200ms;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.iap-default-toggle__body.iap-default-toggle__body--on .iap-default-toggle__handle {\n  background-color: #3CA6F5;\n  border: 1px solid #D8EEFF;\n  left: 100%;\n  transform: translateX(-100%);\n}\n\n.iap-default-toggle__handle-icon {\n  height: 13px;\n  width: 13px;\n}\n\n.iap-default-toggle__handle-icon rect {\n  fill: #aaa;\n}\n\n.iap-default-toggle__body.iap-default-toggle__body--on .iap-default-toggle__handle-icon rect {\n  fill: white;\n}",""])},557:function(e,t,n){var r=n(558);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},558:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-users-form {\n  width: 350px;\n  margin: 50px 0;\n}\n\n.iap-users-form__footer {\n  margin-top: 30px;\n  display: flex;\n  align-items: center;\n}",""])},559:function(e,t,n){var r=n(560);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},560:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".top-progress-bar {\n  width: 0vw;\n  height: 1px;\n  top: 69px;\n  position: fixed;\n  left: 0;\n  background-color: var(--main-color);\n  z-index: 1000;\n  transition: width 500ms ease-in-out;\n  animation: progress-bar-blink 2s infinite;\n}\n",""])},561:function(e,t,n){var r=n(562);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},562:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-notification-container {\n  position: fixed;\n  top: 20px;\n  right: 20px;\n  display: flex;\n  flex-direction: column;\n  z-index: 1001;\n}\n\n.iap-notification {\n  min-width: 250px;\n  max-width: 50vw;\n  border-radius: 4px;\n  box-shadow: 0 2px 12px 1px rgba(0, 0, 0, .3);\n  padding: 15px 25px 15px 20px;\n  margin-bottom: 10px;\n  animation-name: notification-appear;\n  animation-duration: 300ms;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease-out;\n  display: flex;\n  background-color: #3d3d3d;\n  outline: none;\n  border: none;\n  cursor: pointer;\n  text-align: left;\n  transition: opacity 200ms ease-in-out;\n}\n\n.iap-notification:hover {\n  background-color: rgba(61, 61, 61, 0.8);\n}\n\n.iap-notification__title {\n  font-size: 15px;\n  color: #9d9d9d;\n}\n\n.iap-notification__text {\n  color: #fff;\n  font-size: 16px;\n}\n\n.iap-notification__icon {\n  height: 35px;\n  width: 35px;\n  margin-right: 15px;\n  transform: translateY(4px);\n}\n",""])},563:function(e,t,n){var r=n(564);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},564:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-actions-btn {\n  position: relative;\n  z-index: 999;\n}\n\n.iap-actions-btn--stuck {\n  position: fixed;\n  right: auto;\n  top: 87px;\n}\n\n.iap-actions-btn__icon {\n  height: 12px;\n  width: 12px;\n  transform: none;\n}\n\n.iap-actions-btn__icon path,\n.iap-actions-btn__icon circle {\n  fill: #fff;\n}\n\n.iap-actions-btn__actions {\n  position: absolute;\n  bottom: 0;\n  right: 0;\n  background: #fff;\n  padding: 5px 0;\n  min-width: 100%;\n  background-color: #fff;\n  box-shadow: 1px 4px 12px 1px rgba(0, 0, 0, .2);\n  border-radius: 3px;\n  display: flex;\n  flex-direction: column;\n  transform-origin: top right;\n  animation: profile-dropdown-fadeout 100ms forwards;\n}\n\n.iap-actions-btn__action {\n  border: none;\n  background: transparent;\n  padding: 10px 23px;\n  font: normal 16px 'Circe';\n  text-align: left;\n  cursor: pointer;\n  outline: none;\n  white-space: nowrap;\n}\n\n.iap-actions-btn__action:hover,\n.iap-actions-btn__action:focus {\n  background-color: #f0f9ff;\n}",""])},565:function(e,t,n){var r=n(566);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},566:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-section__title {\n  display: inline-block;\n  width: 100%;\n  border-bottom: 1px solid #eee;\n  padding-bottom: 3px;\n  text-transform: uppercase;\n  font: bold 13px 'Circe';\n  color: #aaa;\n}\n\n.iap-section__description {\n  font-size: 15px;\n  margin: 0;\n  padding-top: 5px;\n}",""])},567:function(e,t,n){var r=n(568);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},568:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-section__value {\n  font-size: 17px;\n  color: #3d3d3d;\n  margin: 0;\n  padding: 0;\n}\n\n.iap-section__field {\n  margin: 15px 0;\n}",""])},569:function(e,t,n){var r=n(570);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},570:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-db-dropdown {\n  position: relative;\n}\n\n.iap-db-dropdown__options {\n  position: absolute;\n  left: 0;\n  bottom: 0;\n  transform: translateY(100%);\n  padding: 5px 0;\n  min-width: 100%;\n  background-color: #fff;\n  box-shadow: 1px 4px 12px 1px rgba(0, 0, 0, .2);\n  border-radius: 6px;\n  z-index: 999;\n  animation: db-dropdown-fadein 70ms ease-out forwards;\n}\n\n.iap-db-dropdown__option {\n  width: 100%;\n  display: block;\n  padding: 12px 22px;\n  border: none;\n  outline: none;\n  background-color: #fff;\n  text-align: left;\n  font-size: 16px;\n  cursor: pointer;\n  color: #616161;\n  border-bottom: 1px solid #f0f9ff;\n}\n\n.iap-db-dropdown__option:last-of-type {\n  border: none;\n}\n\n.iap-db-dropdown__option:hover,\n.iap-db-dropdown__option:focus {\n  background-color: #f0f9ff;\n}\n\n.iap-db-dropdown__option.iap-db-dropdown__option--active {\n  font-weight: bold;\n  color: #000;\n  color: #3CA6F5;\n}\n\n.iap-select-icon {\n  height: 25px;\n  width: 25px;\n  padding: 5px;\n  fill: var(--main-color);\n  border-radius: 50%;\n  cursor: pointer;\n}\n\n.iap-select-icon rect {\n  fill: var(--main-color);\n}\n\n.iap-select-icon:hover {\n  background-color: #eee;\n}\n",""])},571:function(e,t,n){var r=n(572);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},572:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-tabs-tablist {\n  display: flex;\n  align-items: center;\n  width: calc(100% + 10px);\n  padding: 6px 0 4px 0;\n  position: relative;\n  left: -5px;\n}\n\n.iap-tabs-tab {\n  cursor: pointer;\n  text-align: left;\n  outline: none;\n  border: none;\n  font-size: 15px;\n  background-color: #fff;\n  color: #9d9d9d;\n  padding: 1px 6px;\n}\n\n.iap-tabs-tab:hover {\n  color: #6d6d6d;\n}\n\n.iap-tabs-tab.iap-tabs-tab--active {\n  color: #000;\n}\n\n.tab-underline {\n  height: 2px;\n  width: 100px;\n  background-color: var(--main-color);\n  position: absolute;\n  bottom: 0px;\n  left: 0;\n  border-radius: 15px;\n  transition: all 200ms ease-in-out;\n}",""])},573:function(e,t,n){var r=n(574);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},574:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-db-connection-section {\n  margin-top: 25px;\n}\n\n.iap-db-form {\n  width: 350px;\n  margin: 50px 0;\n}\n\n.iap-db-form__footer {\n  margin-top: 30px;\n  display: flex;\n  align-items: center;\n}\n\n.iap-db__connection {\n  font-size: 15px;\n  display: flex;\n  align-items: center;\n}\n\n.iap-db__connection.iap-db__connection--established {\n  color: green;\n}\n\n.iap-db__connection.iap-db__connection--failed {\n  color: #d15555;\n}\n\n.iap-db__connection-icon {\n  height: 20px;\n  transform: translateY(-1px);\n  margin-right: 10px;\n}\n\n.iap-db__connection.iap-db__connection--established .iap-db__connection-icon path,\n.iap-db__connection.iap-db__connection--established .iap-db__connection-icon circle {\n  fill: green;\n}",""])},575:function(e,t,n){var r=n(576);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},576:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-apps-form {\n  width: 350px;\n  margin: 50px 0;\n}\n\n.iap-tabs-tablist + .iap-apps-form {\n  margin: 20px 0;\n}\n\n.iap-apps-form__footer {\n  margin-top: 30px;\n  display: flex;\n  align-items: center;\n}\n\n.iap-apps-form__secret-field {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n\n.iap-apps-form__secret-value {\n  padding: 10px 16px;\n  min-height: 45px;\n  border-radius: 7px;\n  background-color: #f7fcff;\n  border: 1px solid #cbe7fb;\n  font-size: 14px;\n  font-family: 'Circe', monospace;\n  outline: none;\n  color: #aaa;\n  width: 100%;\n  margin: 4px 5px 4px 0;\n  max-width: 233.5px;\n  overflow: hidden;\n  text-align: center;\n}\n\n.iap-apps-form__note {\n  margin-bottom: 30px;\n  font-size: 14px;\n  color: #aaa;\n  display: flex;\n  align-items: center;\n  padding: 4px 20px;\n  border-radius: 8px;\n  background-color: #f3f3f3;\n  width: 130%;\n}\n\n.iap-apps-form__note-icon {\n  height: 55px;\n  fill: #aaa;\n  margin-right: 15px;\n}\n\n.iap-apps-form__note-link {\n  color: var(--main-color);\n  margin-left: 5px;\n  margin-right: 5px;\n}\n\n.casbin-code-editor {\n  width: 150%;\n  border: 1px solid #cbe7fb;\n  border-radius: 7px;\n  overflow: hidden;\n  margin-top: 5px;\n}\n\n.casbin-code-editor .CodeMirror {\n  height: auto !important;\n  background-color: #f7fcff;\n}\n\n.casbin-code-editor .CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like {\n  padding-left: 10px !important;\n}",""])},577:function(e,t,n){var r=n(578);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},578:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-applications-list {\n  margin: 80px 0;\n}\n\n.iap-application-row {\n  padding: 15px 10px;\n  width: 100%;\n}\n\n.iap-application-row__clientid {\n  font-size: 14px;\n  color: #6d6d6d;\n  padding: 2px 7px;\n  border-radius: 2px;\n  background: #eee;\n  display: inline-block;\n  cursor: text;\n}\n\n.iap-application-row__icon-wrapper {\n  display: flex;\n  align-items: center;\n  padding-left: 15px;\n}\n\n.iap-application-row__icon {\n  height: 40px;\n  width: 40px;\n}\n\n.iap-application-row__type {\n  font-size: 12px;\n  font-weight: bold;\n  color: #7d7d7d;\n  text-transform: uppercase;\n}\n\n.iap-application-row__name {\n  font-size: 14px;\n  color: #3d3d3d;\n  margin-top: 3px;\n  padding-right: 5px;\n}\n\n.iap-application-row__tfa-status {\n  font-size: 14px;\n  color: #3d3d3d;\n  text-transform: capitalize;\n}\n\n.iap-apps-row__fake-icon {\n  height: 45px;\n  width: 45px;\n  border-radius: 50%;\n  animation: pulse .8s linear infinite;\n  margin-left: 15px;\n}\n\n.iap-apps-row__fake-type,\n.iap-apps-row__fake-client-id {\n  height: 15px;\n  width: 125px;\n  animation: pulse .8s linear infinite;\n  margin: 0 30px;\n  border-radius: 4px;\n}\n\n.iap-apps-row__fake-client-id {\n  width: 240px;\n  margin-left: 45px;\n}",""])},579:function(e,t,n){var r=n(580);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},580:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".multiple-input__value-tags {\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n}\n\n.value-tag {\n  padding: 2px 8px;\n  border-radius: 4px;\n  background-color: #3CA6F5;\n  color: white;\n  font-size: 13px;\n  font-weight: bold;\n  list-style: none;\n  display: flex;\n  align-items: center;\n  margin-top: 4px;\n  margin-right: 3px;\n  white-space: nowrap;\n}\n\n.value-tag__delete {\n  margin-left: 5px;\n  cursor: pointer;\n  outline: none;\n  border: none;\n  background-color: transparent;\n  height: 100%;\n  display: flex;\n  align-items: center;\n}\n\n.value-tag__delete-icon {\n  height: 9px;\n  width: 9px;\n  fill: white;\n}\n\n.multiple-input__add-btn {\n  background-color: transparent;\n  cursor: pointer;\n  color: #3CA6F5;\n  font-size: 13px;\n  border: none;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 50%;\n  height: 25px;\n  width: 25px;\n  outline: none;\n}\n\n.multiple-input__add-btn:hover {\n  background-color: #eee;\n}\n\n.multiple-input__add-btn-icon {\n  fill: #3CA6F5;\n  height: 17px;\n  width: 17px;\n}\n",""])},582:function(e,t,n){var r=n(583);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},583:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-settings-section {\n  margin: 25px 0;\n}\n\n.iap-settings-section + .iap-settings-section {\n  margin-top: 50px;\n}\n\n.iap-settings-form {\n  width: 350px;\n  margin: 50px 0;\n}\n\n.iap-tabs-tablist + .iap-settings-form {\n  margin: 20px 0;\n}\n\n.iap-settings-form__footer {\n  margin-top: 30px;\n  display: flex;\n  align-items: center;\n}\n\n.iap-settings-form__edit-password-btn {\n  border: none;\n  display: inline-block;\n  font-size: 14px;\n  font-weight: 'normal';\n  text-align: left;\n  color: #1D8FE3;\n  cursor: pointer;\n  text-decoration: underline;\n  outline: none;\n}\n\n.iap-settings-form__edit-password-btn:focus,\n.iap-settings-form__edit-password-btn:hover {\n  color: #1569A7;\n}\n\n.iap-settings-form__password-fields {\n  margin-top: 25px;\n}",""])},584:function(e,t,n){var r=n(585);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},585:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"",""])},586:function(e,t,n){var r=n(587);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},587:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".file-input {\n  display: flex;\n  align-items: flex-start;\n}\n\n.file-input__upload-wrapper {\n  position: relative;\n  width: 60px;\n  height: 48px;\n}\n\n.file-input__upload {\n  height: 100%;\n  width: 100%;\n  border-radius: 7px;\n  background-color: var(--main-color);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border: none;\n  margin-left: 5px;\n  cursor: pointer;\n  outline: none;\n  transition: background-color 200ms;\n  top: 4px;\n  position: relative;\n}\n\n.file-input__upload--success {\n  background-color: #589C69;\n}\n\n.file-input__upload.file-input__upload--success:hover {\n  background-color: #4B935D;\n\n}\n\n.file-input__upload:hover {\n  background-color: var(--main-color-hover);\n}\n\n.file-input__upload-icon {\n  fill: white;\n  height: 20px;\n  width: 20px;\n  animation: file-input-icon-appear 200ms forwards;\n}\n\n.upload-prompt {\n  border-radius: 7px;\n  background-color: #3d3d3d;\n  padding: 7px 15px;\n  top: 4px;\n  right: -10px;\n  transform: translateX(100%);\n  position: absolute;\n  display: flex;\n  height: 100%;\n  align-items: center;\n  animation: upload-prompt-appear 200ms forwards;\n}\n\n.upload-prompt__filename {\n  font-size: 13px;\n  color: #aaa;\n  white-space: nowrap;\n  max-width: 150px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.upload-prompt__another {\n  white-space: nowrap;\n  border: none;\n  outline: none;\n  cursor: pointer;\n  background-color: transparent;\n  color: white;\n  font-size: 13px;\n  text-align: left;\n  text-transform: uppercase;\n  margin-left: 10px;\n};\n",""])},588:function(e,t,n){var r=n(589);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},589:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".login-types-form {\n  margin-top: 50px;\n}\n\n.login-types-table {\n  margin: 35px 0;\n}\n\n.login-types-row {\n  padding: 15px 10px;\n  width: 100%;\n  cursor: default !important;\n}\n\n.login-types-row__enabled {\n  margin-top: 3px;\n  padding-right: 5px;\n}\n\n.login-types-row__icon {\n  display: flex;\n  align-items: center;\n  padding-left: 18%;\n}\n\n.login-type-icon {\n  height: 40px;\n  width: 40px;\n}\n\n.section-field {\n  margin-top: 45px;\n  width: 250px;\n}",""])},590:function(e,t,n){var r=n(591);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},591:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".hosted-pages-main {\n  margin-top: 50px;\n}\n\n.template-editor {\n  border-radius: 7px;\n  border: 1px solid #cbe7fb;\n  min-height: 200px;\n  background-color: #fff;\n  position: relative;\n  max-width: 705px;\n  cursor: text;\n}\n\n.template-editor-inner {\n  border-radius: 7px;\n  overflow: hidden;\n}\n\n.template-editor .CodeMirror {\n  height: 410px;\n}\n\n.template-editor .CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like {\n  padding-left: 7px !important;\n}\n\n.template-editor__numpad-area {\n  position: absolute;\n  left: 0;\n  top: 0;\n  bottom: 0;\n  margin: auto;\n  width: 30px;\n  background-color: #f7f7f7;\n  border-right: 1px solid #ddd;\n  border-bottom-left-radius: 7px;\n  border-top-left-radius: 7px;\n}\n\n.template-selector-title {\n  font-size: 14px;\n  width: 100%;\n  text-align: right;\n  color: #aaa;\n}\n\n.template-editor-header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 8px;\n}\n\n.template-editor__filename {\n  font-size: 15px;\n  color: #3d3d3d;\n  border-radius: 4px;\n  color: #999;\n  display: flex;\n  align-items: center;\n}\n\n.template-editor__file-icon {\n  height: 15px;\n  width: 15px;\n  fill: #999;\n  margin-right: 5px;\n}\n\n.template-editor__upload-code {\n  border: none;\n  background-color: transparent;\n  font-size: 14px;\n  color: var(--main-color);\n  cursor: pointer;\n  outline: none;\n  display: flex;\n  align-items: center;\n}\n\n.template-editor__upload-code:hover {\n  color: var(--main-color-hover);\n}\n\n.template-editor__upload-code:hover .template-editor__upload-icon {\n  fill: var(--main-color-hover);\n}\n\n.template-editor__upload-icon {\n  height: 15px;\n  fill: var(--main-color);\n  margin-right: 5px;\n}\n\n.template-editor-footer {\n  margin-top: 25px;\n}\n\n.template-lang-selector {\n  position: absolute;\n  top: 0;\n  right: 0;\n  transform: translateX(110%);\n}\n\n.template-lang-selector__btn {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: #999;\n  height: 40px;\n  width: 55px;\n  border: none;\n  outline: none;\n  background-color: transparent;\n  font-size: 12px;\n  border-radius: 7px;\n  margin-bottom: 5px;\n  cursor: pointer;\n  position: relative;\n  z-index: 1;\n  text-transform: uppercase;\n}\n\n.template-lang-selector__btn:hover {\n  color: var(--main-color);\n}\n\n.template-lang-selector__btn.template-lang-selector__btn--active {\n  color: white;\n  transition: color 150ms;\n}\n\n.template-lang-selector__indicator {\n  background-color: var(--main-color);\n  height: 40px;\n  width: 55px;\n  border-radius: 7px;\n  position: absolute;\n  top: 0;\n  transition: all 150ms ease-in-out;\n}\n\n.file-changes-indicator {\n  height: 6px;\n  width: 6px;\n  background-color: var(--main-color);\n  border-radius: 50%;\n  margin-left: 8px;\n}\n\n.file-changes-indicator-container {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.file-changes-indicator:hover + .file-changes-tooltip {\n  display: block;\n}\n\n.file-changes-tooltip {\n  position: absolute;\n  white-space: nowrap;\n  top: -20px;\n  transform: translate(3px, -100%);\n  padding: 3px 7px;\n  font-size: 14px;\n  border-radius: 4px;\n  background-color: #3d3d3d;\n  color: #eee;\n  display: none;\n  animation: tooltip-appear 300ms forwards;\n  box-shadow: 0 2px 12px 1px rgba(0, 0, 0, .3);\n  pointer-events: none;\n}\n\n.editor-changes-warning {\n  background-color: #3d3d3d;\n  border-radius: 4px;\n  padding: 12px 17px;\n  color: white;\n  position: absolute;\n  top: 26px;\n  right: 3px;\n  box-shadow: 0 2px 12px 1px rgba(0, 0, 0, .3);\n  outline: none;\n  animation: editor-unsaved-changes-warning-appear 150ms ease-in-out forwards;\n}\n\n@keyframes editor-unsaved-changes-warning-appear {\n  from {\n    right: 10px;\n    opacity: 0;\n  }\n  to {\n    right: 3px;\n    opacity: 1;\n  }\n}\n\n.editor-changes-warning::after {\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 10px 0 10px 7px;\n  border-color: transparent transparent transparent #3d3d3d;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  margin: auto;\n  right: 0;\n  content: '';\n  display: block;\n  transform: translateX(100%);\n}\n\n.editor-changes-warning__btns {\n  display: flex;\n  justify-content: flex-end;\n  margin-top: 10px;\n}\n\n.editor-changes-warning__btn {\n  background-color: transparent;\n  border: none;\n  color: var(--main-color);\n  text-transform: uppercase;\n  font-size: 13px;\n  cursor: pointer;\n  outline: none;\n}\n\n.editor-changes-warning__btn + .editor-changes-warning__btn {\n  margin-left: 10px;\n}\n\n.editor-changes-warning__btn.editor-changes-warning__btn--dimmed {\n  color: #9d9d9d;\n}\n",""])},596:function(e,t,n){var r=n(597);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},597:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-404-screen {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n}\n\n.iap-404-screen__title {\n  font-size: 18px;\n  margin-top: 15px;\n  color: #aaa;\n}\n\n.iap-404-screen__subtitle {\n  font-size: 22px;\n  margin-bottom: 20px;\n  color: #3d3d3d;\n}\n\n.iap-404-screen__icon {\n  margin-bottom: 25px;\n  height: 120px;\n}",""])},598:function(e,t,n){var r=n(599);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},599:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"",""])},600:function(e,t,n){var r=n(601);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},601:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".domain-association-form {\n  margin: 35px 0;\n  width: 500px;\n}\n\n.app-site-association-form {\n  margin-top: 30px;\n}\n",""])},602:function(e,t,n){var r=n(603);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},603:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".popup {\n  position: fixed;\n  bottom: 25px;\n  right: 25px;\n  padding: 15px;\n  border-radius: 4px;\n  background-color: #3d3d3d;\n  color: white;\n  display: flex;\n  align-items: center;\n  flex-wrap: nowrap;\n  justify-content: space-between;\n  opacity: 0;\n  animation: popup-appear 300ms forwards;\n  box-shadow: 0 2px 12px 1px rgba(0, 0, 0, .3);\n}\n\n.popup-text {\n  max-width: 450px;\n}\n\n.popup-btn {\n  text-transform: uppercase;\n  font-size: 14px;\n  color: var(--main-color);\n  background-color: transparent;\n  border: none;\n  margin: 0 15px 0 20px;\n  cursor: pointer;\n  outline: none;\n}\n\n.popup-btn:hover {\n  color: var(--main-color-hover);\n}\n\n.popup-btn.popup-btn--subtle {\n  color: #7d7d7d;\n  margin-left: 0;\n  margin-right: 0;\n}\n\n.popup-loading {\n  height: 20px;\n  width: 20px;\n  fill: white;\n  margin-left: 15px;\n}\n",""])},604:function(e,t,n){var r=n(605);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},605:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-management-section {\n  width: 100%;\n  padding: 50px 0 20px 40px;\n  margin-left: 205px;\n}\n\n.iap-management-section__title {\n  font-size: 36px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  font-weight: normal;\n  margin: 0;\n  padding: 0;\n}\n\n.iap-management-section__description {\n  font-size: 15px;\n  margin: 10px 0;\n}\n\n.iap-section-placeholder {\n  display: flex;\n  align-items: center;\n  width: 100%;\n  justify-content: center;\n  padding: 30px 0;\n  flex-direction: column;\n}\n\n.iap-section-placeholder__title {\n  font: normal 36px 'Circe';\n  margin: 0 0 20px 0;\n  padding: 0;\n}\n\n.iap-section-placeholder__icon {\n  height: 110px;\n}\n\n.iap-section-placeholder__icon path,\n.iap-section-placeholder__icon circle {\n  fill: #c3e0ff;\n}\n\n.iap-placeholder__fetch-failure-icon {\n  height: 110px;\n}\n\n.iap-section-placeholder__msg {\n  margin: 25px 0 10px 0;\n}\n\n.iap-section-placeholder__add-icon {\n  height: 15px;\n  width: 15px;\n  transform: translateY(-1px);\n}\n\n.iap-section-placeholder__btn-text {\n  margin-left: 10px;\n}\n\n.iap-section__highlight {\n  background-color: #f0f9ff;\n  padding: 15px 25px;\n  border-radius: 4px;\n  color: #3d3d3d;\n  margin: 25px 0;\n}\n\n.iap-section-title__icon {\n  height: 15px;\n  transform: translate(5px, 1px);\n  line-height: 13px;\n}\n\n.iap-section__info {\n  margin: 30px 0 25px 0;\n}\n\n.iap-section__info span:first-of-type {\n  color: #5d5d5d;\n  font-weight: bold;\n  font-size: 12px;\n  text-transform: uppercase;\n}\n\n.iap-section__value--fake {\n  margin-top: 5px;\n  height: 20px;\n  border-radius: 4px;\n  background: #eee;\n  width: 150px;\n  animation: pulse .8s linear infinite;\n}\n\n.iap-management-section__back {\n  text-decoration: none;\n  color: #3d3d3d;\n  font-size: 14px;\n  border: none;\n  background: transparent;\n  -webkit-appearance: none;\n  cursor: pointer;\n}\n\n.iap-management-section__back:hover {\n  opacity: .6;\n}\n\n.iap-section-description__id {\n  background: #eee;\n  padding: 2px 5px;\n  border-radius: 4px;\n  font-size: 14px;\n  letter-spacing: .8px;\n}\n\n.iap-management-section__header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n}\n\n.iap-management-section__tabs {\n  margin-top: 20px;\n}\n\n.iap-management-layout {\n  height: 100vh;\n  width: 100vw;\n  display: flex;\n  flex-direction: column;\n}\n\n.iap-management-content {\n  margin-top: 70px;\n}",""])},606:function(e,t,n){var r=n(607);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},607:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,".iap-global-not-found-screen {\n  height: calc(100vh - 70px); /* header height */\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n",""])},608:function(e,t,n){var r=n(609);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,a);r.locals&&(e.exports=r.locals)},609:function(e,t,n){(t=e.exports=n(7)(!1)).i(n(610),""),t.i(n(611),""),t.push([e.i,":root {\n  --main-color: #3CA6F5; \n  --main-color-hover: #1B9CFC;\n  --main-font: 'Circe';\n}\n\n* {\n  margin: 0;\n  padding: 0;\n  font-family: var(--main-font);\n  box-sizing: border-box;\n}\n\n/* react router dom link */\n.rrdl { \n  text-decoration: none;\n  color: inherit;\n}\n",""])},610:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"@keyframes pulse {\n  0% {\n    background-color: #eee;\n    opacity: 1;\n  }\n  50% {\n    background-color: #f3f3f3;\n    opacity: 0.75;\n  }\n  100% {\n    background-color: #eee;\n    opacity: 1;\n  }\n}\n\n@keyframes profile-dropdown-fadeout {\n  from {\n    transform: translateY(105%) scale(0.7);\n  }\n\n  to {\n    transform: translateY(105%) scale(1);\n  }\n}\n\n@keyframes file-input-icon-appear {\n  from {\n    transform: scale(.2);\n  }\n  to {\n    transform: scale(1);\n  }\n}\n\n@keyframes upload-prompt-appear {\n  from {\n    transform: translateX(90%);\n    opacity: .3\n  }\n  to {\n    transform: translateX(100%);\n    opacity: 1;\n  }\n}\n\n@keyframes notification-appear {\n  from {\n    opacity: 0;\n    transform: translateY(-10px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0px);\n  }\n}\n\n@keyframes db-dropdown-fadein {\n  from {\n    transform: translateY(calc(100% - 10px));\n    opacity: .1;\n  }\n\n  to {\n    transform: translateY(100%);\n    opacity: 1;\n  }\n}\n\n@keyframes progress-bar-blink {\n  10% {\n    background-color: #eee;\n  }\n  20% {\n    background-color: var(--main-color);\n  }\n}\n\n@keyframes popup-appear {\n  from {\n    opacity: 0;\n    bottom: 15px;\n  }\n  to {\n    opacity: 1;\n    bottom: 25px;\n  }\n}\n\n@keyframes tooltip-appear {\n  from {\n    top: -15px;\n    opacity: 0;\n  }\n  to {\n    top: -10px;\n    opacity: 1;\n  }\n}",""])},611:function(e,t,n){t=e.exports=n(7)(!1);var r=n(612),a=r(n(613)),o=r(n(614));t.push([e.i,"@font-face {\n  font-family: 'Circe';\n  src: url("+a+");\n  font-weight: normal;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Circe';\n  src: url("+o+");\n  font-weight: 700;\n  font-style: normal;\n}\n",""])},613:function(e,t,n){e.exports=n.p+"src/assets/fonts/Circe-Regular.woff"},614:function(e,t,n){e.exports=n.p+"src/assets/fonts/Circe-Bold.woff"},636:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(104),i=n.n(o),c=n(5),l=n(641),s=n(643),u=n(240),p=n(6),f=n.n(p),m={LOGIN_ATTEMPT:"LOGIN_ATTEMPT",LOGIN_FAILURE:"LOGIN_FAILURE",LOGOUT_ATTEMPT:"LOGOUT_ATTEMPT",AUTH_STATE_CHANGE:"AUTH_STATE_CHANGE"};function d(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){d(o,r,a,i,c,"next",e)}function c(e){d(o,r,a,i,c,"throw",e)}i(void 0)}))}}var v=f()(m.LOGIN_ATTEMPT),g=f()(m.LOGIN_FAILURE),E=f()(m.LOGOUT_ATTEMPT),b=f()(m.AUTH_STATE_CHANGE),y=function(){return function(){var e=h(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.auth,t(E()),e.next=4,a.logout();case 4:t(b(!1));case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()},_=n(1),w=n.n(_),x=n(19),S=n.n(x);n(436);function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=a.a.forwardRef((function(e,t){var n=e.Icon,r=e.errorMessage,o=e.renderButton,i=e.onChange,c=e.onValue,l=T(e,["Icon","errorMessage","renderButton","onChange","onValue"]),s=S()({"iap-login-form__input":!0,"iap-login-form__input--iconized":!!n,"iap-login-form__input--invalid":!!r});return a.a.createElement("div",{className:"iap-input-wrapper"},!!n&&a.a.createElement(n,{className:"iap-input-icon"}),a.a.createElement("input",C({ref:t},l,{spellCheck:!1,autoComplete:"off",className:s,onChange:function(e){i(e),c(e.target.value)}})),!!o&&a.a.createElement("div",{className:"iap-input-btn"},o()),r&&a.a.createElement("p",{className:"iap-input-error"},r))}));O.propTypes={name:w.a.string,type:w.a.string,value:w.a.string,placeholder:w.a.string,onChange:w.a.func,errorMessage:w.a.string,Icon:w.a.func,onValue:w.a.func},O.defaultProps={name:"",type:"text",placeholder:"",value:"",errorMessage:"",Icon:null,onChange:function(){},onValue:function(){}};var P=O;n(439);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function A(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var R=function(e){var t,n,r,o=e.stretch,i=e.Icon,c=e.children,l=e.error,s=e.transparent,u=e.iconClassName,p=e.extraClassName,f=A(e,["stretch","Icon","children","error","transparent","iconClassName","extraClassName"]),m=S()((r=!!p,(n=p)in(t={"iap-btn":!0,"iap-btn--stretch":o,"iap-btn--iconized":!!i,"iap-btn--transparent":s,"iap-btn--error":l})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));return a.a.createElement("button",k({className:m},f),i&&a.a.createElement(i,{className:"iap-btn__icon ".concat(u).trim()}),a.a.createElement("span",null,c))};R.propTypes={type:w.a.string,children:w.a.node,onClick:w.a.func,disabled:w.a.bool,stretch:w.a.bool,transparent:w.a.bool,iconClassName:w.a.string,Icon:w.a.func,error:w.a.bool,extraClassName:w.a.string},R.defaultProps={type:"button",onClick:null,children:null,disabled:!1,stretch:!1,transparent:!1,iconClassName:"",Icon:null,error:!1,extraClassName:""};var N=R;function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var j=function(e){return a.a.createElement("svg",I({viewBox:"0 0 100 100"},e),a.a.createElement("g",{transform:"rotate(0 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.9166666666666666s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(30 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.8333333333333334s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(60 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.75s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(90 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.6666666666666666s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(120 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.5833333333333334s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(150 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.5s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(180 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.4166666666666667s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(210 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.3333333333333333s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(240 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.25s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(270 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.16666666666666666s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(300 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.08333333333333333s",repeatCount:"indefinite"}))),a.a.createElement("g",{transform:"rotate(330 50 50)"},a.a.createElement("rect",{x:"47",y:"0",rx:"0",ry:"0",width:"6",height:"20",fill:"#ffffff"},a.a.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))};function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var M=function(e){return a.a.createElement("svg",z({viewBox:"0 0 452.84 452.84"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"m449.483,190.4l.001-.001-57.824-38.335v-128.134c0-4.142-3.358-7.5-7.5-7.5h-315.49c-4.142,0-7.5,3.358-7.5,7.5v128.143l-57.814,38.326 .001,.002c-2.022,1.343-3.357,3.639-3.357,6.249v232.26c0,4.142 3.358,7.5 7.5,7.5h437.84c4.142,0 7.5-3.358 7.5-7.5v-232.26c0-2.61-1.335-4.906-3.357-6.25zm-388.313,26.229l-23.525-12.479h23.525v12.479zm-46.17-7.511l172.475,91.49-172.475,114.327v-205.817zm211.417,83.671l194.037,128.621h-388.073l194.036-128.621zm38.945,7.82l172.477-91.491v205.821l-172.477-114.33zm126.298-96.459h23.536l-23.536,12.484v-12.484zm28.794-15h-28.794v-19.09l28.794,19.09zm-43.794-157.72v193.161l-125.527,66.586-20.573-13.637c-2.511-1.665-5.776-1.665-8.287,0l-20.57,13.635-125.533-66.589v-193.156h300.49zm-315.49,157.72h-28.782l28.782-19.08v19.08z"}),a.a.createElement("path",{d:"m226.415,213.671h59.754c4.142,0 7.5-3.358 7.5-7.5s-3.358-7.5-7.5-7.5h-59.754c-28.813,0-52.254-23.441-52.254-52.254v-2.213c0-28.813 23.441-52.254 52.254-52.254s52.254,23.441 52.254,52.254v5.533c0,6.237-5.074,11.312-11.312,11.312s-11.312-5.074-11.312-11.312v-10.512c0-17.864-14.533-32.398-32.397-32.398s-32.397,14.533-32.397,32.398c0,17.864 14.533,32.397 32.397,32.397 8.169,0 15.636-3.045 21.34-8.052 4.644,7.483 12.932,12.478 22.369,12.478 14.508,0 26.312-11.803 26.312-26.312v-5.533c0-37.084-30.17-67.254-67.254-67.254s-67.254,30.17-67.254,67.254v2.213c5.68434e-14,37.085 30.17,67.255 67.254,67.255zm-2.767-57.049c-9.593,0-17.397-7.804-17.397-17.397s7.805-17.398 17.397-17.398 17.397,7.805 17.397,17.398-7.804,17.397-17.397,17.397z"})))};function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var L=function(e){return a.a.createElement("svg",F({viewBox:"-66 0 512 512"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"M 340 197.007812 L 340 150 C 340 67.289062 272.710938 0 190 0 C 107.289062 0 40 67.289062 40 150 L 40 197.007812 C 17.203125 201.652344 0 221.855469 0 246 L 0 302.769531 C 0 308.292969 4.476562 312.769531 10 312.769531 C 15.523438 312.769531 20 308.292969 20 302.769531 L 20 246 C 20 229.457031 33.457031 216 50 216 L 330 216 C 346.542969 216 360 229.457031 360 246 L 360 462 C 360 475.035156 351.640625 486.152344 340 490.28125 L 340 430 C 340 424.476562 335.523438 420 330 420 C 324.476562 420 320 424.476562 320 430 L 320 492 L 50 492 C 33.457031 492 20 478.542969 20 462 L 20 383 C 20 377.476562 15.523438 373 10 373 C 4.476562 373 0 377.476562 0 383 L 0 462 C 0 489.570312 22.429688 512 50 512 L 330 512 C 357.570312 512 380 489.570312 380 462 L 380 246 C 380 221.855469 362.796875 201.652344 340 197.007812 Z M 114 196 L 114 150 C 114 108.09375 148.09375 74 190 74 C 231.90625 74 266 108.09375 266 150 L 266 196 Z M 286 196 L 286 150 C 286 97.066406 242.933594 54 190 54 C 137.066406 54 94 97.066406 94 150 L 94 196 L 60 196 L 60 150 C 60 78.316406 118.316406 20 190 20 C 261.683594 20 320 78.316406 320 150 L 320 196 Z M 286 196 ",stroke:"none",fillRule:"nonzero",fill:"rgb(0%,0%,0%)",fillOpacity:"1"}),a.a.createElement("path",{d:"M 10 352.488281 C 12.628906 352.488281 15.210938 351.421875 17.070312 349.558594 C 18.929688 347.699219 20 345.121094 20 342.488281 C 20 339.859375 18.929688 337.277344 17.070312 335.421875 C 15.210938 333.558594 12.628906 332.488281 10 332.488281 C 7.371094 332.488281 4.789062 333.558594 2.929688 335.421875 C 1.070312 337.277344 0 339.859375 0 342.488281 C 0 345.121094 1.070312 347.699219 2.929688 349.558594 C 4.789062 351.421875 7.371094 352.488281 10 352.488281 Z M 10 352.488281 ",stroke:"none",fillRule:"nonzero",fill:"rgb(0%,0%,0%)",fillOpacity:"1"}),a.a.createElement("path",{d:"M 190 458 C 206.542969 458 220 444.542969 220 428 L 220 374.898438 C 235.023438 364.953125 244.128906 348.234375 244.128906 329.914062 C 244.128906 300.140625 219.902344 275.914062 190.128906 275.914062 C 160.351562 275.914062 136.128906 300.140625 136.128906 329.914062 C 136.128906 348.101562 145.132812 364.757812 160 374.726562 L 160 428 C 160 444.542969 173.457031 458 190 458 Z M 156.128906 329.914062 C 156.128906 311.164062 171.378906 295.914062 190.128906 295.914062 C 208.875 295.914062 224.128906 311.164062 224.128906 329.914062 C 224.128906 342.789062 216.980469 354.410156 205.476562 360.25 C 202.117188 361.953125 200 365.398438 200 369.167969 L 200 428 C 200 433.515625 195.515625 438 190 438 C 184.484375 438 180 433.515625 180 428 L 180 369.035156 C 180 365.292969 177.910156 361.863281 174.582031 360.148438 C 163.199219 354.28125 156.128906 342.695312 156.128906 329.914062 Z M 156.128906 329.914062 ",stroke:"none",fillRule:"nonzero",fill:"rgb(0%,0%,0%)",fillOpacity:"1"}),a.a.createElement("path",{d:"M 330 399 C 332.640625 399 335.210938 397.929688 337.070312 396.070312 C 338.929688 394.210938 340 391.640625 340 389 C 340 386.359375 338.929688 383.789062 337.070312 381.929688 C 335.210938 380.070312 332.640625 379 330 379 C 327.371094 379 324.789062 380.070312 322.929688 381.929688 C 321.070312 383.789062 320 386.371094 320 389 C 320 391.628906 321.070312 394.210938 322.929688 396.070312 C 324.789062 397.929688 327.371094 399 330 399 Z M 330 399 ",stroke:"none",fillRule:"nonzero",fill:"rgb(0%,0%,0%)",fillOpacity:"1"})))};function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var B=function(e){return a.a.createElement("svg",U({viewBox:"0 0 508 508"},e),a.a.createElement("circle",{fill:"#cbe7fb",cx:"254",cy:"254",r:"254"}),a.a.createElement("circle",{fill:"#FFFFFF",cx:"254",cy:"254",r:"220"}),a.a.createElement("path",{fill:"#F2705B",d:"M305,254l60.1-60.1c14.1-14.1,14.1-36.9,0-51s-36.9-14.1-51,0L254,203l-60.1-60.1 c-14.1-14.1-36.9-14.1-51,0s-14.1,36.9,0,51L203,254l-60.1,60.1c-14.1,14.1-14.1,36.9,0,51s36.9,14.1,51,0L254,305l60.1,60.1 c14.1,14.1,36.9,14.1,51,0s14.1-36.9,0-51L305,254z"}))},D=(n(441),function(e){var t=e.error;return a.a.createElement("div",{className:"iap-management-section-error"},a.a.createElement(B,{className:"iap-management-section-error__icon"}),a.a.createElement("div",{className:"iap-management-section-error__msg"},a.a.createElement("p",{className:"iap-management-section-error__title"},"Server error:"),a.a.createElement("p",null,t.message)))});D.propTypes={error:w.a.instanceOf(Error).isRequired};var H=D,V=n(2),G=n.n(V);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Y=function(e,t,n){var a=K(Object(r.useState)(e||{}),2),o=a[0],i=a[1],c=K(Object(r.useState)({}),2),l=c[0],s=c[1],u=function(e,t){e in l&&s(G()(l,e,"")),i(G()(o,e,t))};return{values:o,errors:l,setErrors:s,setValue:u,setValues:i,handleSubmit:function(e){if(e.preventDefault(),t){var r=t(o);if(Object.keys(r).length>0)return void s(r)}n(o),Object.keys(l).length>0&&s({})},handleChange:function(e){var t=e.target;u(t.name,t.value)},handleBlur:function(){}}},q=function(){var e=Object(c.c)(),t=Object(c.d)((function(e){return e.auth.inProgress})),n=Object(c.d)((function(e){return e.auth.error}));a.a.useEffect((function(){e(function(){var e=h(regeneratorRuntime.mark((function e(t,n,r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.auth,o=r.http,t(v()),e.next=4,a.checkAuthState();case 4:i=e.sent,t(b(i)),o.addResponseInterceptor((function(e){return e}),(function(e){return e.response&&401===e.response.status&&t(y()),Promise.reject(e)}));case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}())}),[]);var r=Y({email:"",password:""},null,(function(t){var n,r;e((n=t.email,r=t.password,function(){var e=h(regeneratorRuntime.mark((function e(t,a,o){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.auth,t(v()),e.prev=2,e.next=5,i.login(n,r);case 5:t(b(!0)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),t(g(e.t0));case 11:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t,n,r){return e.apply(this,arguments)}}()))}));return a.a.createElement("form",{className:"iap-login-form",onSubmit:r.handleSubmit},a.a.createElement("h1",{className:"login-form__logo"},a.a.createElement("span",null,"identifo"),a.a.createElement("span",null,"Admin Panel")),n&&a.a.createElement("div",{className:"iap-login-form__err"},a.a.createElement(H,{error:n})),a.a.createElement(P,{name:"email",value:r.values.email,placeholder:"Email",disabled:t,Icon:M,onChange:r.handleChange}),a.a.createElement(P,{name:"password",type:"password",value:r.values.password,placeholder:"Password",disabled:t,Icon:L,onChange:r.handleChange}),a.a.createElement("footer",{className:"iap-login-form__footer"},a.a.createElement(N,{stretch:!0,type:"submit",disabled:t,Icon:t?j:null,error:!!n},"Sign In")))};q.defaultProps={signingIn:!1,error:null};var W=q,X=(n(444),function(){return a.a.createElement("div",{className:"iap-login-layout"},a.a.createElement(W,null))}),Z=n(157),J=(n(446),function(e){var t=e.children;return a.a.createElement("div",{className:"iap-global-container"},t)});J.propTypes={children:w.a.node.isRequired};var Q=J,$=n(74),ee=n.n($);function te(){return(te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ne=function(e){return a.a.createElement("svg",te({viewBox:"0 0 129 129"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"})))};function re(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oe=function(e){e.styles;var t=re(e,["styles"]);return a.a.createElement("svg",ae({height:"512pt",viewBox:"0 0 511 512",width:"512pt",xmlns:"http://www.w3.org/2000/svg"},t),a.a.createElement("path",{d:"M361.5 392v40c0 44.113-35.887 80-80 80h-201c-44.113 0-80-35.887-80-80V80c0-44.113 35.887-80 80-80h201c44.113 0 80 35.887 80 80v40c0 11.047-8.953 20-20 20s-20-8.953-20-20V80c0-22.055-17.945-40-40-40h-201c-22.055 0-40 17.945-40 40v352c0 22.055 17.945 40 40 40h201c22.055 0 40-17.945 40-40v-40c0-11.047 8.953-20 20-20s20 8.953 20 20zm136.355-170.355l-44.785-44.786c-7.812-7.812-20.476-7.812-28.285 0-7.812 7.809-7.812 20.473 0 28.282L456.641 237H216.5c-11.047 0-20 8.953-20 20s8.953 20 20 20h240.14l-31.855 31.86c-7.812 7.808-7.812 20.472 0 28.28a19.935 19.935 0 0014.14 5.86 19.937 19.937 0 0014.145-5.86l44.785-44.785c19.497-19.496 19.497-51.214 0-70.71zm0 0"}))},ie=function(e){var t=e.onClick,n=Object(c.c)();return a.a.createElement("button",{type:"button",className:"iap-profile-dropdown__section",onClick:Object(r.useCallback)((function(){n(y()),t()}),[y,t])},a.a.createElement(oe,{className:"iap-profile-dropdown__icon",fill:"#6d6d6d"}),a.a.createElement("span",null,"Logout"))};ie.defaultProps={onClick:function(){}};var ce=ie,le=n(642);function se(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=function(e){e.styles;var t=se(e,["styles"]);return a.a.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33.054 33.054"},t),a.a.createElement("path",{d:"M29.125 3.292H3.928a.5.5 0 010-1h25.197a.5.5 0 010 1zM30.554 30.761H2.5a2.503 2.503 0 01-2.5-2.5V8.005c0-1.378 1.121-2.5 2.5-2.5h28.054c1.379 0 2.5 1.122 2.5 2.5v20.257a2.502 2.502 0 01-2.5 2.499zM2.5 6.505c-.827 0-1.5.673-1.5 1.5v20.257c0 .827.673 1.5 1.5 1.5h28.054c.827 0 1.5-.673 1.5-1.5V8.005c0-.827-.673-1.5-1.5-1.5H2.5z"}),a.a.createElement("path",{d:"M25.117 6.505H7.937a.5.5 0 010-1h17.181a.5.5 0 11-.001 1zM17.091 25.837H5.327a.5.5 0 01-.5-.5v-1.338a2.18 2.18 0 011.242-1.962l2.648-1.628a3.847 3.847 0 01-1.429-2.836l-.101-2.636c0-2.015 1.646-3.638 3.671-3.638h.698c2.024 0 3.672 1.624 3.672 3.619l-.102 2.655a3.839 3.839 0 01-1.432 2.838l2.676 1.638A2.182 2.182 0 0117.589 24v1.337a.497.497 0 01-.498.5zm-11.264-1h10.764V24c0-.451-.264-.866-.672-1.059-.016-.008-.032-.016-.047-.026l-3.375-2.066a.5.5 0 01.037-.874 2.857 2.857 0 001.594-2.441l.102-2.636c0-1.425-1.198-2.6-2.672-2.6h-.698c-1.473 0-2.671 1.175-2.671 2.619l.101 2.617a2.858 2.858 0 001.589 2.439.498.498 0 01.275.425.503.503 0 01-.238.448l-3.37 2.068c-.455.219-.718.634-.718 1.084v.839zM27.798 14.627h-6.177a.5.5 0 010-1h6.177a.5.5 0 010 1zM27.798 19.066h-6.177a.5.5 0 010-1h6.177a.5.5 0 010 1zM27.798 23.508h-6.177a.5.5 0 010-1h6.177a.5.5 0 010 1z"}))},fe=function(e){var t=e.history,n=e.onClick;return a.a.createElement("button",{type:"button",className:"iap-profile-dropdown__section",onClick:Object(r.useCallback)((function(){t.push("/management/account"),n()}),[t,n])},a.a.createElement(pe,{className:"iap-profile-dropdown__icon"}),a.a.createElement("span",null,"Account"))};fe.propTypes={history:w.a.shape({push:w.a.func}).isRequired,onClick:w.a.func},fe.defaultProps={onClick:function(){}};var me=Object(le.a)(fe),de=n(108),he=n.n(de);function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ge=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Ee=function(e,t){return{target:{name:e,value:t}}},be=function(e){return e.response&&e.response.data?new Error(e.response.data.error):e},ye={FETCH_ACCOUNT_SETTINGS_ATTEMPT:"FETCH_ACCOUNT_SETTINGS_ATTEMPT",FETCH_ACCOUNT_SETTINGS_SUCCESS:"FETCH_ACCOUNT_SETTINGS_SUCCESS",FETCH_ACCOUNT_SETTINGS_FAILURE:"FETCH_ACCOUNT_SETTINGS_FAILURE",POST_ACCOUNT_SETTINGS_ATTEMPT:"POST_ACCOUNT_SETTINGS_ATTEMPT",POST_ACCOUNT_SETTINGS_SUCCESS:"POST_ACCOUNT_SETTINGS_SUCCESS",POST_ACCOUNT_SETTINGS_FAILURE:"POST_ACCOUNT_SETTINGS_FAILURE",RESET_ACCOUNT_ERROR:"RESET_ACCOUNT_ERROR"};function _e(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function we(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){_e(o,r,a,i,c,"next",e)}function c(e){_e(o,r,a,i,c,"throw",e)}i(void 0)}))}}var xe=f()(ye.FETCH_ACCOUNT_SETTINGS_ATTEMPT),Se=f()(ye.FETCH_ACCOUNT_SETTINGS_SUCCESS),Ce=f()(ye.FETCH_ACCOUNT_SETTINGS_FAILURE),Te=f()(ye.POST_ACCOUNT_SETTINGS_ATTEMPT),Oe=f()(ye.POST_ACCOUNT_SETTINGS_SUCCESS),Pe=f()(ye.POST_ACCOUNT_SETTINGS_FAILURE),ke=function(){return function(){var e=we(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(xe()),e.prev=1,e.next=4,r.account.fetchSettings();case 4:a=e.sent,t(Se(a)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t(Ce(be(e.t0)));case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n,r){return e.apply(this,arguments)}}()},Ae=function(e){return function(){var t=we(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Te()),t.prev=1,t.next=4,a.account.postSettings(e);case 4:n(Oe(e)),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),n(Pe(be(t.t0)));case 10:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r){return t.apply(this,arguments)}}()};f()(ye.RESET_ACCOUNT_ERROR);function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ne=function(){var e=Re(ee()(),4),t=e[0],n=e[1],o=e[2],i=e[3],l=Object(c.c)(),s=Object(c.d)((function(e){return e.account.settings}));return Object(r.useEffect)((function(){l(ke())}),[]),a.a.createElement("div",{className:"iap-header-profile",ref:t},a.a.createElement("button",{type:"button",className:"iap-header-profile__trigger",onClick:o},a.a.createElement("span",null,s?s.email:"Admin Panel"),a.a.createElement(ne,{className:"iap-dropdown-icon"})),n&&a.a.createElement("div",{className:"iap-profile-dropdown"},a.a.createElement(me,{onClick:i}),a.a.createElement(ce,{onClick:i})))},Ie=(n(536),function(){return a.a.createElement("header",{className:"iap-management-header"},a.a.createElement(Q,null,a.a.createElement("div",{className:"iap-management-header__inner"},a.a.createElement(Z.a,{to:"/management",className:"rrdl"},a.a.createElement("h1",{className:"iap-management-header__logo"},a.a.createElement("span",null,"identifo"),a.a.createElement("span",null,"Admin Panel"))),a.a.createElement(Ne,null))))});n(538);function je(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ze(){return(ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Me(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Le(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ue(){return(Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Be(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function He(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ke(){return(Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ye(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function qe(){return(qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function We(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Xe(){return(Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ze(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Je(){return(Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qe(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function $e(){return($e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function et(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function tt(){return(tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var nt=n(639),rt=function(e){var t=e.exact,n=e.disabled,r=e.path,o=e.title,i=e.Icon;return a.a.createElement(nt.a,{exact:t,to:r,className:"iap-management-sidebar__section",activeClassName:"iap-management-sidebar__section--active",style:{opacity:n?.4:1,pointerEvents:n?"none":"unset"}},a.a.createElement(i,{className:"iap-sidebarnav-icon"}),a.a.createElement("span",null,o))};rt.propTypes={path:w.a.string.isRequired,title:w.a.string.isRequired,Icon:w.a.func.isRequired,exact:w.a.bool},rt.defaultProps={exact:!1};var at=Object(le.a)(rt);function ot(){return(ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var it=[{title:"Server",path:"/management",exact:!0,Icon:function(e){e.styles;var t=Qe(e,["styles"]);return a.a.createElement("svg",$e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),a.a.createElement("path",{d:"M262.785 317.207a8.084 8.084 0 00-10.769-3.837 128.725 128.725 0 01-20.448 7.648 8.08 8.08 0 00-5.748 6.2l-8.552 42.758a9.088 9.088 0 01-8.888 7.287h-23.329a9.088 9.088 0 01-8.888-7.287l-8.552-42.758a8.084 8.084 0 00-5.748-6.2 128.448 128.448 0 01-28.391-11.764 8.086 8.086 0 00-8.452.317l-36.286 24.19c-3.582 2.388-8.392 1.911-11.438-1.133L60.8 316.131c-3.045-3.045-3.52-7.855-1.133-11.438l24.19-36.286a8.081 8.081 0 00.317-8.452 128.411 128.411 0 01-11.764-28.391 8.08 8.08 0 00-6.2-5.748l-42.758-8.552a9.088 9.088 0 01-7.287-8.888v-23.329a9.088 9.088 0 017.287-8.888l42.758-8.552a8.084 8.084 0 006.2-5.748 128.448 128.448 0 0111.764-28.391 8.086 8.086 0 00-.317-8.452L59.669 88.734a9.09 9.09 0 011.133-11.438L77.298 60.8c3.045-3.045 7.856-3.52 11.438-1.133l36.286 24.19a8.083 8.083 0 008.452.317 128.448 128.448 0 0128.391-11.764 8.08 8.08 0 005.748-6.2l8.552-42.758a9.088 9.088 0 018.888-7.287h23.329a9.088 9.088 0 018.888 7.287l8.552 42.758a8.084 8.084 0 005.748 6.2 128.448 128.448 0 0128.391 11.764 8.086 8.086 0 008.452-.317l36.286-24.19c3.582-2.388 8.391-1.911 11.438 1.133l16.496 16.496c3.045 3.045 3.52 7.855 1.133 11.438l-24.19 36.286a8.081 8.081 0 00-.317 8.452 128.448 128.448 0 0111.764 28.391 8.08 8.08 0 006.2 5.748l42.758 8.552a9.088 9.088 0 017.287 8.888v23.329a9.088 9.088 0 01-7.287 8.888l-42.758 8.552a8.084 8.084 0 00-6.2 5.75 128.672 128.672 0 01-7.88 20.934 8.083 8.083 0 003.791 10.785 8.082 8.082 0 0010.785-3.791 144.997 144.997 0 007.442-18.777l37.991-7.598c11.749-2.352 20.279-12.758 20.279-24.744V185.05c0-11.986-8.53-22.391-20.284-24.743l-37.99-7.598a144.66 144.66 0 00-9.434-22.769l21.492-32.239c6.648-9.973 5.323-23.363-3.153-31.839l-16.496-16.496c-8.477-8.476-21.867-9.8-31.839-3.153l-32.239 21.492a144.755 144.755 0 00-22.769-9.434l-7.598-37.99C230.772 8.53 220.366 0 208.38 0h-23.329c-11.986 0-22.391 8.53-24.743 20.284l-7.598 37.99a144.66 144.66 0 00-22.769 9.434L97.704 46.216c-9.972-6.648-23.363-5.324-31.839 3.153L49.369 65.865c-8.475 8.476-9.801 21.865-3.153 31.839l21.492 32.239a144.716 144.716 0 00-9.434 22.769l-37.991 7.598C8.53 162.66 0 173.066 0 185.052v23.329c0 11.986 8.53 22.391 20.284 24.743l37.99 7.598a144.644 144.644 0 009.434 22.769L46.216 295.73c-6.648 9.973-5.323 23.363 3.153 31.839l16.496 16.496c8.476 8.476 21.866 9.8 31.839 3.153l32.239-21.492a144.716 144.716 0 0022.769 9.434l7.598 37.992c2.35 11.75 12.756 20.281 24.742 20.281h23.329c11.986 0 22.391-8.53 24.743-20.284l7.598-37.99a144.831 144.831 0 0018.228-7.18 8.085 8.085 0 003.835-10.772z"}),a.a.createElement("path",{d:"M266.739 241.636a8.083 8.083 0 0010.882-3.504c6.52-12.715 9.967-27.036 9.967-41.415 0-50.107-40.765-90.873-90.873-90.873-23.838 0-46.364 9.162-63.43 25.801a8.084 8.084 0 0011.285 11.577c14.029-13.676 32.547-21.209 52.143-21.209 41.192 0 74.705 33.512 74.705 74.705 0 11.994-2.754 23.446-8.185 34.038a8.084 8.084 0 003.506 10.88zM121.043 162.125a8.083 8.083 0 00-10.274 5.014 90.728 90.728 0 00-4.924 29.577c0 50.108 40.766 90.873 90.873 90.873 19.271 0 37.683-5.956 53.247-17.227a8.086 8.086 0 00-9.483-13.097c-12.788 9.259-27.921 14.154-43.765 14.154-41.193 0-74.705-33.513-74.705-74.705 0-8.334 1.36-16.517 4.044-24.318a8.08 8.08 0 00-5.013-10.271zM496.442 353.316l-23.377-4.675a97.791 97.791 0 00-5.127-12.373l13.226-19.838c5.099-7.65 4.083-17.92-2.418-24.42l-10.84-10.84c-6.501-6.5-16.771-7.517-24.42-2.418l-19.838 13.226a97.639 97.639 0 00-12.373-5.126l-4.675-23.377c-1.803-9.015-9.784-15.558-18.977-15.558h-15.331c-9.192 0-17.174 6.543-18.977 15.558l-4.675 23.377a97.933 97.933 0 00-12.373 5.126l-19.838-13.226c-7.65-5.098-17.92-4.083-24.42 2.418l-10.84 10.84c-6.501 6.501-7.517 16.771-2.418 24.42l13.226 19.838a97.706 97.706 0 00-6.605 17.177 8.086 8.086 0 0015.571 4.357 81.578 81.578 0 017.476-18.043 8.086 8.086 0 00-.317-8.452l-15.897-23.845a3.194 3.194 0 01.398-4.019l10.84-10.84a3.198 3.198 0 014.019-.398l23.845 15.897a8.083 8.083 0 008.452.317 81.598 81.598 0 0118.043-7.476 8.08 8.08 0 005.748-6.2l5.619-28.097a3.193 3.193 0 013.123-2.56h15.331a3.195 3.195 0 013.123 2.56l5.619 28.099a8.084 8.084 0 005.748 6.2 81.578 81.578 0 0118.043 7.476 8.086 8.086 0 008.452-.317l23.845-15.897a3.193 3.193 0 014.019.398l10.84 10.84a3.196 3.196 0 01.398 4.019l-15.897 23.845a8.081 8.081 0 00-.317 8.452 81.598 81.598 0 017.476 18.043 8.08 8.08 0 006.2 5.748l28.097 5.619a3.193 3.193 0 012.56 3.123v15.331a3.195 3.195 0 01-2.56 3.123l-28.099 5.619a8.084 8.084 0 00-6.2 5.748 81.578 81.578 0 01-7.476 18.043 8.086 8.086 0 00.317 8.452l15.897 23.845a3.194 3.194 0 01-.398 4.019l-10.84 10.84a3.195 3.195 0 01-4.019.398l-23.845-15.897a8.086 8.086 0 00-8.452-.317 81.598 81.598 0 01-18.043 7.476 8.08 8.08 0 00-5.748 6.2l-5.619 28.097a3.193 3.193 0 01-3.123 2.56H372.29a3.195 3.195 0 01-3.123-2.56l-5.619-28.099a8.084 8.084 0 00-5.748-6.2 81.578 81.578 0 01-18.043-7.476 8.085 8.085 0 00-8.452.317L307.46 467.71a3.193 3.193 0 01-4.019-.398l-10.84-10.84a3.196 3.196 0 01-.398-4.019l15.897-23.845a8.081 8.081 0 00.317-8.452 81.598 81.598 0 01-7.476-18.043 8.08 8.08 0 00-6.2-5.748l-28.097-5.619a3.193 3.193 0 01-2.56-3.123v-15.331a3.195 3.195 0 012.56-3.123l1.72-.344a8.083 8.083 0 006.341-9.513c-.876-4.378-5.13-7.213-9.514-6.341l-1.72.344c-9.013 1.804-15.556 9.785-15.556 18.978v15.331c0 9.192 6.543 17.174 15.558 18.977l23.377 4.675a97.933 97.933 0 005.126 12.373l-13.226 19.838c-5.1 7.65-4.083 17.92 2.418 24.42l10.84 10.84c6.501 6.501 16.771 7.517 24.42 2.418l19.838-13.226a97.639 97.639 0 0012.373 5.126l4.675 23.377C355.119 505.457 363.1 512 372.293 512h15.331c9.192 0 17.174-6.543 18.977-15.558l4.675-23.377a97.791 97.791 0 0012.373-5.127l19.838 13.226c7.65 5.099 17.92 4.083 24.42-2.418l10.84-10.84c6.501-6.501 7.517-16.771 2.418-24.42l-13.226-19.838a97.639 97.639 0 005.126-12.373l23.377-4.675c9.014-1.803 15.557-9.784 15.557-18.977v-15.331c.001-9.192-6.542-17.173-15.557-18.976z"}),a.a.createElement("path",{d:"M379.958 350.855c16.048 0 29.103 13.055 29.103 29.103a8.084 8.084 0 0016.168 0c0-24.963-20.309-45.272-45.272-45.272s-45.272 20.309-45.272 45.272 20.309 45.272 45.272 45.272c10.111 0 19.675-3.261 27.659-9.429a8.086 8.086 0 00-9.886-12.796c-5.128 3.961-11.274 6.056-17.773 6.056-16.048 0-29.103-13.055-29.103-29.103.001-16.049 13.056-29.103 29.104-29.103zM245.969 196.716c0-27.158-22.096-49.253-49.253-49.253-27.158 0-49.253 22.096-49.253 49.253 0 27.158 22.095 49.253 49.253 49.253s49.253-22.096 49.253-49.253zm-82.338 0c0-18.242 14.843-33.085 33.085-33.085s33.085 14.843 33.085 33.085-14.842 33.085-33.085 33.085c-18.244 0-33.085-14.843-33.085-33.085z"}))}},{title:"Account",path:"/management/account",Icon:function(e){e.styles;var t=Le(e,["styles"]);return a.a.createElement("svg",Ue({height:"511pt",viewBox:"0 -3 512 511",width:"511pt",xmlns:"http://www.w3.org/2000/svg"},t),a.a.createElement("path",{d:"M499.902 236.066c-7.664-7.07-18.09-11.437-28.605-11.984-11.942-.617-23.129 3.64-31.461 11.977l-56.93 56.332a37.788 37.788 0 00-3.851-5.496C372.05 278.578 361.809 274 350.219 274h-79.696c-15.027 0-29.687-1.95-43.57-5.79-36.195-10.01-70.773-2.698-100.004 21.161-11.886 9.703-20.558 20.258-26.043 27.953l-14.289-13.867a10.158 10.158 0 00-7.047-2.86h-.066a10.179 10.179 0 00-7.223 3.102L2.816 375.812a10.065 10.065 0 00-2.812 7.204 10.07 10.07 0 003.121 7.078l117.488 111.87a10.046 10.046 0 006.946 2.782 10.05 10.05 0 007.214-3.043l68.817-70.601a10.18 10.18 0 002.87-7.262 10.172 10.172 0 00-3.07-7.07l-5.992-5.813 13.715-1.543a217.973 217.973 0 0125.086-1.453h121.254c19.703 0 36.438-4.309 49.742-12.809.11-.07.22-.144.328-.218a67.12 67.12 0 0012.848-11.664l81.711-96.13c13.984-16.449 13.11-36.976-2.18-51.074zm-372.605 244.45L24.352 382.492l55.457-57.574 102.343 99.316zm359.437-206.422l-81.71 96.133a47.08 47.08 0 01-8.844 8.058c-9.989 6.324-23.016 9.535-38.727 9.535H236.195c-9.12 0-18.343.535-27.37 1.586l-30.15 3.383-63.124-61.258c4.386-6.504 12.453-17.015 24.136-26.554 24.29-19.829 51.844-25.668 81.895-17.352 15.633 4.324 32.098 6.52 48.941 6.52h79.696c14.312 0 18.133 12.398 18.133 19.722 0 5.352-1.72 10.446-4.715 13.977-3.25 3.824-7.871 5.761-13.735 5.761h-69.375c-5.562 0-10.07 4.512-10.07 10.075s4.508 10.07 10.07 10.07h69.375c11.711 0 22.04-4.57 29.086-12.867 5.864-6.899 9.207-15.969 9.489-25.664l65.566-64.88c9.371-9.37 24.012-7.019 32.203.536 4.234 3.906 9.93 12.113.488 23.219zm0 0"}),a.a.createElement("path",{d:"M249.117 340.996c-1.27-5.418-6.687-8.773-12.105-7.508-5.414 1.27-8.778 6.688-7.504 12.106l.094.41c1.09 4.64 5.226 7.773 9.796 7.773.762 0 1.536-.086 2.309-.265 5.418-1.27 8.777-6.692 7.508-12.106zm0 0M68.078 213h98.14c5.345 0 10.29-1.734 14.313-4.664A24.236 24.236 0 00194.844 213h98.144c5.344 0 10.29-1.734 14.313-4.664A24.236 24.236 0 00321.613 213h98.14c13.446 0 24.384-10.941 24.384-24.387v-45.765c0-20.555-11.504-38.41-28.723-47.22 8.344-10.062 13.367-22.968 13.367-37.03C428.781 26.563 402.72.5 370.684.5s-58.098 26.063-58.098 58.098c0 14.062 5.023 26.972 13.367 37.03a52.759 52.759 0 00-18.652 15.993 52.66 52.66 0 00-18.656-15.992c8.343-10.059 13.367-22.969 13.367-37.031C302.012 26.563 275.949.5 243.914.5s-58.098 26.063-58.098 58.098c0 14.062 5.028 26.972 13.371 37.035a52.66 52.66 0 00-18.656 15.992 52.71 52.71 0 00-18.656-15.996c8.344-10.059 13.367-22.969 13.367-37.027C175.242 26.562 149.18.5 117.145.5 85.113.5 59.05 26.563 59.05 58.602c0 14.058 5.023 26.968 13.367 37.03-17.219 8.81-28.727 26.669-28.727 47.22v45.761C43.691 202.06 54.633 213 68.078 213zm302.61-192.355c20.925 0 37.953 17.023 37.953 37.953 0 20.925-17.028 37.953-37.954 37.953-20.93 0-37.953-17.024-37.953-37.953-.004-20.93 17.024-37.953 37.954-37.953zm-26.168 89.8a57.725 57.725 0 0026.164 6.25 57.7 57.7 0 0026.164-6.25c15.652 2.727 27.148 16.215 27.148 32.403v45.765a4.246 4.246 0 01-4.242 4.242h-98.14a4.245 4.245 0 01-4.239-4.242v-45.765c-.004-16.184 11.496-29.676 27.145-32.403zm-100.602-89.8c20.926 0 37.953 17.023 37.953 37.953 0 20.925-17.027 37.953-37.953 37.953-20.93 0-37.953-17.024-37.953-37.953 0-20.93 17.023-37.953 37.953-37.953zm-26.164 89.8a57.7 57.7 0 0026.164 6.25c9.41 0 18.293-2.261 26.164-6.25 15.648 2.727 27.148 16.215 27.148 32.403v45.765a4.246 4.246 0 01-4.242 4.242h-98.14a4.246 4.246 0 01-4.243-4.242v-45.765c0-16.184 11.5-29.676 27.149-32.403zm-100.606-89.8c20.926 0 37.954 17.023 37.954 37.953 0 20.925-17.028 37.953-37.954 37.953-20.925 0-37.953-17.028-37.953-37.953 0-20.93 17.028-37.953 37.953-37.953zM63.836 142.848c0-16.184 11.5-29.676 27.148-32.403a57.713 57.713 0 0026.164 6.25c9.41 0 18.293-2.261 26.165-6.25 15.652 2.727 27.148 16.215 27.148 32.403v45.765a4.246 4.246 0 01-4.242 4.242h-98.14a4.246 4.246 0 01-4.243-4.242zm0 0"}))}},{title:"Users",path:"/management/users",Icon:function(e){e.styles;var t=Me(e,["styles"]);return a.a.createElement("svg",Fe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 380.65 380.65"},t),a.a.createElement("path",{d:"M310.805 268.65h-44.84a53.568 53.568 0 00-26.44 6.96 54.529 54.529 0 00-17.4 15.64 53.75 53.75 0 00-9.28-.8h-44.88a53.651 53.651 0 00-9.28.8 54.484 54.484 0 00-17.4-15.64 53.568 53.568 0 00-26.44-6.96h-44.84c-29.796.066-53.934 24.204-54 54v30.44a5.8 5.8 0 005.8 5.76h92v16a5.8 5.8 0 005.8 5.8h141.44a5.8 5.8 0 005.8-5.8v-16h92a5.8 5.8 0 005.8-5.8v-30.4c-.066-29.734-24.107-53.846-53.84-54zm-196.4 70.6V347.25h-86.8v-24.6c.066-23.39 19.01-42.334 42.4-42.4h44.84a41.998 41.998 0 0120.72 5.44 43.083 43.083 0 0111.24 9.16 54.281 54.281 0 00-32.4 44.4zm140.72 5.2v24.64h-129.56v-25.08-1.32-3.12-4.2l.24-.96.4-1.44.28-.96c5.746-17.415 21.982-29.206 40.32-29.28l1.16-.64h44.88c21.297.078 39.258 15.885 42.04 37 0 .88 0 1.76.24 2.64v2.72zm98.08 2.84h-86.4v-3.48-1.32-1.36V330.49l-.28-1v-1.96l-.56-1.56a54.44 54.44 0 00-29.44-30.84 43.081 43.081 0 018.68-9.44 41.998 41.998 0 0120.72-5.44h44.88c23.389.066 42.334 19.01 42.4 42.4v24.64z"}),a.a.createElement("circle",{cx:"190.645",cy:"77.85",r:"6.56"}),a.a.createElement("path",{d:"M121.285 189.17a40.682 40.682 0 00-28.88-12c-22.555-.02-40.856 18.248-40.876 40.804-.02 22.555 18.248 40.856 40.804 40.876s40.856-18.248 40.876-40.804a40.841 40.841 0 00-11.924-28.876zm-8.2 49.48c-11.417 11.421-29.93 11.425-41.352.008-11.421-11.417-11.425-29.93-.008-41.352 11.417-11.421 29.93-11.425 41.352-.008a29.24 29.24 0 018.568 20.672 29.157 29.157 0 01-8.56 20.68z"}),a.a.createElement("circle",{cx:"233.045",cy:"77.85",r:"6.56"}),a.a.createElement("path",{d:"M258.725 22.73A109.64 109.64 0 00190.405.01a109.642 109.642 0 00-68.32 22.72c-17.92 14.32-29 34.24-29 56.28a66.478 66.478 0 008.28 32 80.804 80.804 0 0020.36 24l-4.6 30.6a5.76 5.76 0 008.6 5.84l31.28-18.24a114.317 114.317 0 0015.12 3.4 120.053 120.053 0 0018.32 1.4 109.64 109.64 0 0068.32-22.72c17.88-14.36 28.96-34.24 28.96-56.28s-11.08-41.96-29-56.28zm-7.2 103.6a98.038 98.038 0 01-61.12 20c-5.53.008-11.053-.406-16.52-1.24a102.766 102.766 0 01-16-3.72 5.76 5.76 0 00-4.64.52l-22.84 13.48 3.32-22a5.799 5.799 0 00-2.36-5.56 70.206 70.206 0 01-20-22.4 54.964 54.964 0 01-6.8-26.4c0-18.4 9.4-35.12 24.6-47.28a98.038 98.038 0 0161.12-20 98.038 98.038 0 0161.12 20c15.2 12 24.6 28.88 24.6 47.28 0 18.4-9.28 35.12-24.48 47.32zM288.438 177.13c-22.555-.02-40.856 18.248-40.876 40.804a40.835 40.835 0 0011.924 28.876 40.682 40.682 0 0028.88 12c22.555.02 40.856-18.248 40.876-40.804s-18.249-40.856-40.804-40.876zm20.647 61.503c-11.417 11.421-29.93 11.425-41.352.008a29.24 29.24 0 01-8.568-20.672 29.157 29.157 0 018.56-20.68c11.417-11.421 29.93-11.425 41.352-.008 11.421 11.417 11.425 29.931.008 41.352z"}),a.a.createElement("circle",{cx:"148.245",cy:"77.85",r:"6.56"}),a.a.createElement("path",{d:"M219.225 210.83a40.8 40.8 0 00-28.82-11.9 40.682 40.682 0 00-28.88 12c-15.906 15.961-15.861 41.794.1 57.7 15.961 15.906 41.794 15.861 57.7-.1s15.861-41.794-.1-57.7zm-28.828 58.212c-16.149-.005-29.236-13.1-29.232-29.248s13.1-29.236 29.248-29.232a29.24 29.24 0 0120.672 8.568 29.157 29.157 0 018.56 20.68c-.005 16.149-13.1 29.236-29.248 29.232z"}))}},{title:"Applications",path:"/management/applications",Icon:function(e){e.styles;var t=He(e,["styles"]);return a.a.createElement("svg",Ve({height:"512pt",viewBox:"0 -13 512.001 512",width:"512pt",xmlns:"http://www.w3.org/2000/svg"},t),a.a.createElement("path",{d:"M452.61 0h-82.837a7.604 7.604 0 100 15.207h82.836c24.364 0 44.184 19.824 44.184 44.184v42.015H15.207V59.395c0-24.364 19.82-44.184 44.188-44.184h279.964c4.2 0 7.602-3.406 7.602-7.606S343.559 0 339.359 0H59.395C26.645 0 0 26.645 0 59.395v297a7.604 7.604 0 1015.207 0V116.613h481.586v309.692c0 24.363-19.82 44.183-44.184 44.183H59.395c-24.364 0-44.188-19.82-44.188-44.183v-39.492a7.604 7.604 0 10-15.207 0v39.492c0 32.75 26.645 59.394 59.395 59.394h393.214c32.75 0 59.391-26.644 59.391-59.394V59.395C512 26.645 485.355 0 452.61 0zm0 0"}),a.a.createElement("path",{d:"M36.395 58.309c0 14.257 11.597 25.855 25.855 25.855S88.105 72.566 88.105 58.31c0-14.258-11.597-25.86-25.855-25.86S36.395 44.051 36.395 58.31zm36.503 0c0 5.87-4.777 10.648-10.648 10.648S51.602 64.18 51.602 58.309 56.379 47.66 62.25 47.66s10.648 4.774 10.648 10.649zm0 0M105.879 58.309c0 14.257 11.601 25.855 25.86 25.855 14.253 0 25.855-11.598 25.855-25.855 0-14.258-11.602-25.86-25.856-25.86-14.258 0-25.86 11.602-25.86 25.86zm36.508 0c0 5.87-4.778 10.648-10.649 10.648-5.87 0-10.648-4.777-10.648-10.648s4.777-10.649 10.648-10.649c5.871 0 10.649 4.774 10.649 10.649zm0 0M175.367 58.309c0 14.257 11.602 25.855 25.86 25.855 14.253 0 25.855-11.598 25.855-25.855 0-14.258-11.602-25.86-25.855-25.86-14.258 0-25.86 11.602-25.86 25.86zm36.508 0c0 5.87-4.777 10.648-10.648 10.648-5.872 0-10.649-4.777-10.649-10.648s4.777-10.649 10.649-10.649c5.87 0 10.648 4.774 10.648 10.649zm0 0M256.008 349.11c32.258 0 58.504-26.255 58.504-58.524 0-32.258-26.246-58.504-58.504-58.504-32.27 0-58.52 26.246-58.52 58.504 0 32.27 26.25 58.523 58.52 58.523zm0-101.82c23.875 0 43.297 19.425 43.297 43.296 0 23.883-19.422 43.316-43.297 43.316-23.883 0-43.313-19.433-43.313-43.316 0-23.871 19.43-43.297 43.313-43.297zm0 0"}),a.a.createElement("path",{d:"M109.418 344.598l26.531 45.949a7.601 7.601 0 009.39 3.262l39.411-15.649a111.888 111.888 0 0031.05 17.945l6.153 41.93a7.605 7.605 0 007.524 6.504h53.046c3.77 0 6.973-2.77 7.52-6.5l6.168-41.937a111.888 111.888 0 0031.035-17.942l39.43 15.649a7.602 7.602 0 009.39-3.266l26.516-45.95a7.6 7.6 0 00-1.867-9.761l-33.227-26.293a114.25 114.25 0 001.426-17.953c0-5.969-.48-11.98-1.426-17.938l33.227-26.289a7.607 7.607 0 001.867-9.765l-26.516-45.95a7.606 7.606 0 00-9.39-3.265l-39.43 15.648a111.832 111.832 0 00-31.035-17.941l-6.168-41.953a7.601 7.601 0 00-7.52-6.5h-53.046a7.605 7.605 0 00-7.524 6.504l-6.148 41.945a111.853 111.853 0 00-31.055 17.945l-39.41-15.648a7.599 7.599 0 00-9.39 3.266l-26.532 45.945a7.607 7.607 0 001.867 9.77l33.238 26.285a113.676 113.676 0 00-1.421 17.94c0 6.028.476 12.048 1.421 17.954l-33.238 26.29a7.607 7.607 0 00-1.867 9.769zm48.117-26.957a7.604 7.604 0 002.735-7.48 98.26 98.26 0 01-1.961-19.575c0-6.59.656-13.168 1.96-19.555a7.604 7.604 0 00-2.734-7.48l-31.664-25.043 19.961-34.567 37.555 14.91a7.617 7.617 0 007.855-1.378 96.9 96.9 0 0133.828-19.551 7.601 7.601 0 005.118-6.11l5.859-39.968h39.906l5.879 39.972a7.598 7.598 0 005.11 6.106 96.945 96.945 0 0133.816 19.55 7.618 7.618 0 007.851 1.38l37.57-14.91 19.95 34.566-31.649 25.043a7.602 7.602 0 00-2.734 7.465 99.221 99.221 0 011.965 19.57c0 6.527-.66 13.117-1.965 19.59a7.605 7.605 0 002.734 7.465l31.649 25.043-19.95 34.566-37.57-14.91a7.602 7.602 0 00-7.851 1.379 96.945 96.945 0 01-33.817 19.55 7.592 7.592 0 00-5.109 6.106l-5.875 39.953h-39.91l-5.86-39.95a7.612 7.612 0 00-5.117-6.112c-12.547-4.184-23.925-10.762-33.828-19.547a7.61 7.61 0 00-7.851-1.38l-37.559 14.911-19.96-34.566zm0 0"}))}},{title:"Storages",path:"/management/database",Icon:function(e){e.styles;var t=Be(e,["styles"]);return a.a.createElement("svg",De({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},t),a.a.createElement("path",{d:"M10.5 6.125c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5zm0 7c-1.378 0-2.5-1.121-2.5-2.5s1.122-2.5 2.5-2.5 2.5 1.121 2.5 2.5-1.122 2.5-2.5 2.5z"}),a.a.createElement("circle",{cx:"50",cy:"9.125",r:"1"}),a.a.createElement("circle",{cx:"46",cy:"9.125",r:"1"}),a.a.createElement("circle",{cx:"52",cy:"12.125",r:"1"}),a.a.createElement("circle",{cx:"48",cy:"12.125",r:"1"}),a.a.createElement("circle",{cx:"42",cy:"9.125",r:"1"}),a.a.createElement("circle",{cx:"44",cy:"12.125",r:"1"}),a.a.createElement("circle",{cx:"38",cy:"9.125",r:"1"}),a.a.createElement("circle",{cx:"40",cy:"12.125",r:"1"}),a.a.createElement("circle",{cx:"34",cy:"9.125",r:"1"}),a.a.createElement("circle",{cx:"36",cy:"12.125",r:"1"}),a.a.createElement("path",{d:"M10.5 25.125c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5zm0 7c-1.378 0-2.5-1.121-2.5-2.5s1.122-2.5 2.5-2.5 2.5 1.121 2.5 2.5-1.122 2.5-2.5 2.5zM10.5 44.125c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5zm0 7c-1.378 0-2.5-1.121-2.5-2.5s1.122-2.5 2.5-2.5 2.5 1.121 2.5 2.5-1.122 2.5-2.5 2.5z"}),a.a.createElement("path",{d:"M60 16.517V4.733A4.613 4.613 0 0055.392.125H4.608A4.613 4.613 0 000 4.733v11.783c0 1.469.703 2.764 1.777 3.608C.703 20.969 0 22.265 0 23.733v11.783c0 1.469.703 2.764 1.777 3.608C.703 39.969 0 41.265 0 42.733v11.783a4.613 4.613 0 004.608 4.608h27.875c2.682.494 5.622.75 8.517.75 8.672 0 17.816-2.249 18.895-6.553a.99.99 0 00.105-.446v-27.75a.981.981 0 00-.096-.416c-.347-1.464-1.648-2.697-3.562-3.685A4.614 4.614 0 0060 16.517zm-58 19V23.733a2.611 2.611 0 012.608-2.608h20.86c-1.809.971-3.037 2.169-3.372 3.584a.985.985 0 00-.096.416v13H4.608A2.611 2.611 0 012 35.517zm22.626-6.137l.139.087c.176.11.359.218.55.324.055.03.108.061.163.09.233.125.475.247.727.364.04.019.083.037.123.055.221.101.448.198.682.293l.206.083a21.444 21.444 0 001.751.604l.236.07c.288.084.58.166.879.244l.071.019c.322.083.651.16.985.235l.253.055c.286.062.575.121.867.177l.174.034c.343.064.69.123 1.041.179l.251.039c.291.045.584.087.88.126l.243.032c.358.045.718.087 1.081.125.073.008.147.014.22.021.305.03.612.057.919.082l.278.022c.367.027.736.051 1.105.07l.158.007c.325.016.651.028.977.037l.295.008c.373.008.746.014 1.118.014s.745-.006 1.118-.014l.295-.008c.326-.009.651-.021.977-.037l.158-.007a50.386 50.386 0 002.302-.174l.22-.021c.363-.038.723-.079 1.081-.125l.243-.032c.295-.039.589-.081.88-.126.084-.013.168-.025.251-.039a40.25 40.25 0 001.041-.179l.174-.034c.293-.056.582-.115.867-.177l.253-.055c.333-.075.663-.152.985-.235l.071-.019c.299-.077.591-.159.879-.244l.236-.07c.291-.088.577-.179.855-.274l.048-.016a22.488 22.488 0 001.054-.397c.234-.095.461-.192.682-.293.041-.019.083-.036.123-.055.252-.117.493-.239.727-.364l.163-.09c.19-.105.373-.213.55-.324.046-.029.094-.057.139-.087a9.28 9.28 0 00.589-.414l.038-.026v4.988a.975.975 0 00-.021.353c.014.073.024.145.024.219 0 .11-.031.222-.058.333a1.734 1.734 0 01-.2.485 2.581 2.581 0 01-.407.538c-.037.04-.074.08-.114.12-2.117 2.048-8.364 3.898-16.22 3.898-7.851 0-14.095-1.848-16.216-3.895a3.734 3.734 0 01-.124-.131 2.497 2.497 0 01-.405-.538 1.709 1.709 0 01-.198-.485c-.027-.108-.058-.217-.058-.325 0-.071.009-.142.021-.212a.997.997 0 00-.021-.385v-4.964l.038.026c.185.142.381.28.588.415zm33.231 14.712a2.581 2.581 0 01-.523.764c-.037.04-.074.08-.114.12-2.117 2.048-8.364 3.898-16.22 3.898-7.851 0-14.095-1.848-16.216-3.895a3.734 3.734 0 01-.124-.131 2.497 2.497 0 01-.405-.538 1.709 1.709 0 01-.198-.485c-.023-.094-.047-.189-.05-.283v-.12c.004-.045.006-.09.013-.135.014-.086-.005-.17-.014-.255L24 38.125v-.186c.04.031.087.06.129.09a10.09 10.09 0 00.733.494 12.496 12.496 0 00.556.327c2.086 1.137 4.954 1.958 8.125 2.455l.072.011c1.023.159 2.073.283 3.141.374.227.019.453.039.682.055a54.917 54.917 0 001.576.086c.176.007.352.015.529.02.487.014.973.024 1.458.024.484 0 .97-.009 1.455-.023.178-.005.355-.013.533-.02a53.434 53.434 0 001.574-.086c.225-.016.447-.035.671-.054a45.947 45.947 0 003.17-.377l.046-.007c3.465-.542 6.564-1.473 8.681-2.779a8.488 8.488 0 00.73-.491c.045-.033.096-.064.14-.098v4.988a.975.975 0 00-.021.353c.01.073.02.145.02.219 0 .11-.031.222-.058.333a1.74 1.74 0 01-.085.259zM4.608 57.125A2.611 2.611 0 012 54.517V42.733a2.611 2.611 0 012.608-2.608H22v13.75h.296c.016.037.039.073.057.11a4.234 4.234 0 00.392.66 6.098 6.098 0 00.53.632 7.95 7.95 0 001.43 1.147c.384.247.799.481 1.248.702H4.608zM58 52.619a1.05 1.05 0 00-.02.094c-.409 2.493-7.33 5.162-16.98 5.162-3.079 0-5.875-.273-8.276-.724l.001-.008c-4.973-.941-7.725-2.53-8.495-3.87l-.002-.004c-.035-.062-.06-.123-.087-.183a1.706 1.706 0 01-.121-.373l-.008-5.765c.036.028.079.054.116.082a10.09 10.09 0 00.733.494 12.496 12.496 0 00.556.327c2.086 1.137 4.954 1.958 8.125 2.455l.072.011c1.023.159 2.073.283 3.141.374.227.019.453.039.682.055a54.917 54.917 0 001.576.086c.176.007.352.015.529.02.487.014.973.024 1.458.024.484 0 .97-.009 1.455-.023.178-.005.355-.013.533-.02a53.434 53.434 0 001.574-.086c.225-.016.447-.035.671-.054a45.947 45.947 0 003.17-.377l.046-.007c3.465-.542 6.564-1.473 8.681-2.779a8.488 8.488 0 00.73-.491c.045-.033.096-.064.14-.098v5.678zM58 25.5c0 2.537-7.271 5.375-17 5.375-9.73 0-17-2.838-17-5.375 0-.128.031-.258.068-.388.04-.129.094-.261.174-.397l.009-.018c.333-.556 1.004-1.154 2.037-1.731a16.296 16.296 0 01.695-.357 15.757 15.757 0 01.867-.378c1.162-.463 2.562-.874 4.138-1.21a35.87 35.87 0 011.511-.288c.137-.023.271-.047.41-.069 4.477-.69 9.7-.69 14.177 0 .141.022.277.047.416.07a33.61 33.61 0 011.501.286C54.878 22.058 58 23.841 58 25.5zm0-8.983a2.611 2.611 0 01-2.608 2.608h-4.63c-.058-.013-.122-.021-.18-.034a37.369 37.369 0 00-2.021-.379l-.201-.031a48.512 48.512 0 00-7.36-.556c-2.479 0-4.997.189-7.358.556l-.206.031a38.14 38.14 0 00-2.015.378c-.059.013-.125.021-.184.034H4.608A2.61 2.61 0 012 16.517V4.733a2.611 2.611 0 012.608-2.608h50.783A2.611 2.611 0 0158 4.733v11.784z"}))}},{title:"Login Settings",path:"/management/settings",Icon:function(e){e.styles;var t=Ye(e,["styles"]);return a.a.createElement("svg",qe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 511.999 511.999"},t),a.a.createElement("path",{d:"M418.071 297.743H93.929c-31.846 0-57.754 25.909-57.754 57.755s25.909 57.754 57.754 57.754h33.852l-4.369 3.549a16.979 16.979 0 00-5.909 16.892 16.976 16.976 0 0012.426 12.879l2.269.583L121 490.784c-1.373 5.35 1.851 10.799 7.2 12.172l34.009 8.729a10.004 10.004 0 0012.172-7.2l11.199-43.631 2.269.583a16.976 16.976 0 0017.092-5.304 16.978 16.978 0 002.956-17.649l-10.257-25.233h220.431v.001c31.846 0 57.754-25.908 57.754-57.754s-25.91-57.755-57.754-57.755zM134.364 438.712l-.004.015.005-.019-.001.004zm47.752.606a11.206 11.206 0 00-8.556 1.216 11.206 11.206 0 00-5.186 6.907l-10.879 42.387-14.638-3.758 10.878-42.382a11.211 11.211 0 00-1.218-8.558 11.2 11.2 0 00-6.906-5.182l-5.064-1.301 18.953-15.396 12.441-10.106 4.108 10.106 11.123 27.364-5.056-1.297zm185.746-46.066H189.51l-4.126-10.15a9.998 9.998 0 00-15.57-3.996L152.4 393.252H93.929c-20.818 0-37.754-16.937-37.754-37.754 0-20.818 16.937-37.755 37.754-37.755h273.934v75.509zm50.209 0h-30.208v-75.509h30.208c20.818 0 37.754 16.937 37.754 37.755-.001 20.817-16.938 37.754-37.754 37.754z"}),a.a.createElement("path",{d:"M423.868 332.589c-3.425-4.332-9.714-5.069-14.046-1.642-4.333 3.425-5.067 9.714-1.642 14.046l6.735 8.519-6.735 8.519c-3.425 4.332-2.69 10.621 1.642 14.046a9.954 9.954 0 006.195 2.156 9.986 9.986 0 007.851-3.798l11.64-14.721a9.997 9.997 0 000-12.404l-11.64-14.721zM96.979 359.319a9.87 9.87 0 002.17 3.25c.46.461.97.881 1.52 1.24.54.36 1.12.67 1.72.92.61.25 1.23.44 1.87.57.65.13 1.3.2 1.96.2a10.098 10.098 0 005.55-1.69 9.92 9.92 0 001.52-1.24c.46-.46.88-.97 1.24-1.52.36-.54.67-1.12.92-1.73a10.089 10.089 0 00.77-3.819c0-.65-.07-1.311-.2-1.96-.13-.63-.32-1.26-.57-1.87-.25-.601-.56-1.18-.92-1.72a9.533 9.533 0 00-1.24-1.521c-.46-.46-.98-.88-1.52-1.25a10.098 10.098 0 00-3.6-1.49c-3.25-.649-6.7.41-9.02 2.74-.46.46-.88.97-1.25 1.521-.36.54-.67 1.119-.92 1.72-.25.61-.44 1.24-.57 1.87-.13.649-.19 1.31-.19 1.96a9.847 9.847 0 00.76 3.819zM150.16 359.319a9.87 9.87 0 002.17 3.25c.46.461.97.881 1.52 1.24.54.36 1.12.67 1.72.92.61.25 1.24.44 1.87.57.65.13 1.31.2 1.96.2s1.31-.07 1.95-.2c.64-.13 1.27-.32 1.87-.57a9.87 9.87 0 001.73-.92 9.462 9.462 0 001.52-1.24c.46-.46.88-.97 1.24-1.52.36-.54.67-1.12.92-1.73a10.089 10.089 0 00.77-3.819c0-.65-.07-1.311-.2-1.96-.13-.63-.32-1.26-.57-1.87-.25-.601-.56-1.18-.92-1.72a9.533 9.533 0 00-1.24-1.521c-2.32-2.33-5.77-3.39-9.03-2.74-.63.13-1.26.32-1.87.57-.6.25-1.18.56-1.72.92a10.172 10.172 0 00-2.77 2.771c-.36.54-.67 1.119-.92 1.72-.25.61-.44 1.24-.57 1.87-.13.649-.19 1.31-.19 1.96a9.847 9.847 0 00.76 3.819zM203.349 359.319c.25.61.56 1.19.92 1.73.36.55.78 1.06 1.24 1.52.46.461.97.881 1.52 1.24.54.36 1.12.67 1.73.92a10.098 10.098 0 003.82.77 10.098 10.098 0 003.82-.77 9.87 9.87 0 001.73-.92 9.462 9.462 0 001.52-1.24c.46-.46.88-.97 1.24-1.52.36-.54.67-1.12.92-1.73a10.089 10.089 0 00.77-3.819c0-.65-.07-1.311-.2-1.96a9.81 9.81 0 00-.57-1.87c-.25-.601-.56-1.18-.92-1.72a9.533 9.533 0 00-1.24-1.521c-2.32-2.33-5.78-3.39-9.02-2.74-.64.13-1.27.32-1.88.57-.6.25-1.18.56-1.72.92-.55.37-1.06.79-1.52 1.25-.46.46-.88.97-1.24 1.521-.36.54-.67 1.119-.92 1.72a9.81 9.81 0 00-.57 1.87c-.13.649-.2 1.31-.2 1.96 0 .649.07 1.31.2 1.95.12.64.32 1.27.57 1.869zM256.53 359.319c.25.61.56 1.19.92 1.73.36.55.78 1.06 1.24 1.52.46.461.97.881 1.52 1.24.54.36 1.12.67 1.73.92a10.098 10.098 0 003.82.77 10.098 10.098 0 003.82-.77 9.87 9.87 0 001.73-.92 9.462 9.462 0 001.52-1.24c.46-.46.88-.97 1.24-1.52.36-.54.67-1.12.92-1.73.25-.6.45-1.229.57-1.869.13-.641.2-1.301.2-1.95 0-.65-.07-1.311-.2-1.96a9.81 9.81 0 00-.57-1.87c-.25-.601-.56-1.18-.92-1.72a9.533 9.533 0 00-1.24-1.521c-2.32-2.33-5.78-3.39-9.02-2.74-.64.13-1.27.32-1.87.57a9.87 9.87 0 00-4.49 3.691c-.36.54-.67 1.119-.92 1.72-.25.61-.44 1.24-.57 1.87-.13.649-.2 1.31-.2 1.96 0 .649.07 1.31.2 1.95.13.64.32 1.27.57 1.869zM309.71 359.319c.25.61.56 1.19.92 1.73.36.55.78 1.06 1.24 1.52.46.461.97.881 1.52 1.24.54.36 1.12.67 1.73.92a10.098 10.098 0 003.82.77c.65 0 1.31-.07 1.96-.2.63-.13 1.26-.32 1.87-.57.6-.25 1.18-.56 1.72-.92a9.462 9.462 0 001.52-1.24 9.87 9.87 0 002.17-3.25 9.855 9.855 0 00.76-3.819c0-.65-.06-1.311-.19-1.96-.13-.63-.32-1.26-.57-1.87-.25-.601-.56-1.18-.92-1.72a10.172 10.172 0 00-2.77-2.771c-.54-.36-1.12-.67-1.72-.92-.61-.25-1.24-.44-1.87-.57a9.898 9.898 0 00-3.91 0c-.64.13-1.27.32-1.87.57a9.87 9.87 0 00-4.49 3.691c-.36.54-.67 1.119-.92 1.72-.25.61-.44 1.24-.57 1.87-.13.649-.2 1.31-.2 1.96 0 .649.07 1.31.2 1.95s.32 1.27.57 1.869zM168.259 252.763c.245.233.498.459.768.668 22.963 17.766 50.111 27.821 78.925 29.321l.616.031c.914.044 1.831.078 2.748.105.27.008.54.018.81.025 1.131.026 2.263.043 3.399.043 1.142 0 2.281-.017 3.419-.043.26-.006.518-.016.777-.024a145.627 145.627 0 003.351-.135c29.286-1.515 56.797-11.843 79.972-30.112.318-.251.617-.522.899-.806C376.267 225.885 397 186.061 397 141.479 397.001 63.467 333.535 0 255.525 0S114.046 63.467 114.046 141.478c0 45.113 21.224 85.361 54.213 111.285zm100.256 9.496c-.62.065-1.241.125-1.863.181-.688.063-1.375.126-2.066.177a123.113 123.113 0 01-4.847.256c-1.401.047-2.805.081-4.215.081-1.392 0-2.778-.033-4.162-.079a126.694 126.694 0 01-4.664-.243c-.666-.048-1.33-.106-1.993-.165a128.25 128.25 0 01-4.543-.48c-.141-.018-.281-.039-.422-.057-20.159-2.627-38.78-10.213-54.596-21.493v-18.105c0-23.827 11.834-44.928 29.92-57.779 11.304 8.834 25.509 14.119 40.934 14.119s29.631-5.284 40.934-14.119c18.086 12.851 29.92 33.952 29.92 57.779v17.412h.001c-16.74 12.185-36.696 20.204-58.338 22.515zM255.525 20c66.983 0 121.478 54.494 121.478 121.478 0 30.622-11.394 58.63-30.159 80.018-.265-29.199-14.371-55.15-36.064-71.597 7.453-10.756 11.835-23.793 11.835-37.841 0-3.305-.245-6.629-.729-9.88-.813-5.462-5.897-9.231-11.363-8.419-5.463.813-9.232 5.899-8.419 11.362.339 2.279.511 4.613.511 6.937 0 10.303-3.366 19.832-9.048 27.557a46.895 46.895 0 01-17.859 14.673 46.322 46.322 0 01-19.707 4.385 46.322 46.322 0 01-19.707-4.385 46.895 46.895 0 01-17.859-14.673c-5.682-7.725-9.048-17.253-9.048-27.557 0-25.703 20.911-46.614 46.614-46.614 3.538 0 7.061.396 10.473 1.179 5.389 1.239 10.749-2.129 11.982-7.513 1.234-5.383-2.129-10.747-7.512-11.981a66.948 66.948 0 00-14.942-1.685c-36.731 0-66.614 29.883-66.614 66.614 0 14.048 4.382 27.085 11.835 37.841-21.901 16.604-36.075 42.893-36.075 72.433v.222c-19.326-21.518-31.101-49.946-31.101-81.076C134.046 74.494 188.541 20 255.525 20z"}),a.a.createElement("path",{d:"M288.259 77.37c.25.6.56 1.18.92 1.72.36.55.78 1.06 1.24 1.52.46.471.97.881 1.52 1.25a10.096 10.096 0 003.6 1.49c.64.13 1.3.19 1.95.19s1.31-.061 1.95-.19c.64-.13 1.27-.319 1.88-.569.6-.25 1.18-.561 1.72-.921a9.522 9.522 0 001.52-1.25c.46-.46.88-.97 1.24-1.52.36-.54.67-1.12.92-1.72.25-.61.45-1.23.57-1.87.13-.65.2-1.3.2-1.96 0-.65-.07-1.311-.2-1.95-.12-.64-.32-1.271-.57-1.87s-.56-1.189-.92-1.729a9.533 9.533 0 00-1.24-1.521 9.57 9.57 0 00-1.52-1.24c-.54-.359-1.12-.67-1.72-.92-.61-.25-1.24-.439-1.88-.569a9.81 9.81 0 00-3.9 0 10.096 10.096 0 00-3.6 1.489c-.55.36-1.06.78-1.52 1.24-.46.46-.88.97-1.24 1.521-.36.54-.67 1.13-.92 1.729s-.44 1.23-.57 1.87c-.13.64-.2 1.3-.2 1.95 0 .66.07 1.31.2 1.96.13.64.32 1.26.57 1.87z"}))}},{title:"External Services",path:"/management/email_integration",Icon:function(e){e.styles;var t=Ge(e,["styles"]);return a.a.createElement("svg",Ke({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 487.316 487.316"},t),a.a.createElement("path",{d:"M347.658 0h-288c-30.911.04-55.96 25.089-56 56v287.336c.04 30.911 25.089 55.96 56 56h88v-16h-88c-22.08-.026-39.974-17.92-40-40V208h51.376a8.608 8.608 0 007.328-11.872c-7.11-16.18.242-35.06 16.422-42.17 16.18-7.11 35.06.242 42.17 16.422a32.002 32.002 0 010 25.748 8.296 8.296 0 007.328 11.873h51.376v48a46.826 46.826 0 00-8-.664c-26.51-.009-48.007 21.474-48.017 47.983a48 48 0 0028.817 44.017l6.4-14.656c-16.206-7.05-23.629-25.902-16.58-42.108a32 32 0 0129.38-19.236 31.61 31.61 0 0112.8 2.704 8 8 0 0011.2-7.328V208h40.68a46.833 46.833 0 00-.68 8c.048 22.794 16.077 42.43 38.4 47.04l3.2-15.672c-14.882-3.079-25.567-16.171-25.6-31.368a31.61 31.61 0 012.704-12.8 8 8 0 00-7.328-11.2h-51.376v-40.68c2.642.455 5.319.683 8 .68 26.51 0 48-21.49 48-48s-21.49-48-48-48a46.833 46.833 0 00-8 .68V16h136c22.08.026 39.974 17.92 40 40v136h-51.376a8 8 0 00-7.328 11.2 31.61 31.61 0 012.704 12.8h16a46.833 46.833 0 00-.68-8h48.68a8 8 0 008-8V56c-.04-30.911-25.089-55.96-56-56zm-128 72c17.673 0 32 14.327 32 32s-14.327 32-32 32a31.61 31.61 0 01-12.8-2.704 8 8 0 00-11.2 7.328v50.712h-40.624c.401-2.425.609-4.878.624-7.336v-.416-.248c0-26.51-21.49-48-48-48s-48 21.49-48 48V184c.015 2.458.223 4.911.624 7.336H19.658V56c.026-22.08 17.92-39.974 40-40h136v51.376a8 8 0 0011.2 7.328 31.61 31.61 0 0112.8-2.704z"}),a.a.createElement("path",{d:"M466.546 343.856l-67.256-46.312-25.832-69.016A8 8 0 00362.73 224l-52 23a8 8 0 00-4.24 10.176c.864 2.24 1.672 3.936 2.528 5.696s1.648 3.408 2.616 6.008c6.21 16.593-2.151 35.087-18.712 41.384-16.553 6.191-34.991-2.208-41.183-18.762a31.994 31.994 0 01-1.977-13.006 8 8 0 00-10.816-7.904l-55.584 20.936a8 8 0 00-4.672 10.288l19.952 53.304a45.09 45.09 0 00-7.76 2.144c-24.895 9.277-37.555 36.979-28.278 61.874 9.277 24.895 36.979 37.555 61.874 28.278a48.024 48.024 0 007.404-3.504l14.304 38.208a8 8 0 0010.298 4.685l.014-.005 79.264-29.864a42.96 42.96 0 0025.336 22.624l5.056-15.2a26.976 26.976 0 01-15.296-13.072l24.12-9.08c7.923 22.285 29.029 37.159 52.68 37.128v-16c-22.035-.135-39.865-17.965-40-40a8 8 0 00-2.344-5.656l-27.856-27.856a11.864 11.864 0 01-1.096-15.432 11.647 11.647 0 018.6-4.688c3.421-.288 6.79.972 9.184 3.432l55.856 55.856 11.312-11.312-16.528-16.528a55.808 55.808 0 00-.712-37.4l-14.992-40.04L457.426 357a24.049 24.049 0 0110.232 19.664V480h16V376.664a40.07 40.07 0 00-17.112-32.808zM409.09 369.36a40.092 40.092 0 012.336 18.424l-25.968-25.96c-10.719-10.993-28.319-11.214-39.312-.496-10.993 10.719-11.214 28.319-.496 39.312.163.167.328.333.496.496l25.304 25.304-113.056 42.584-15.248-40.744a8 8 0 00-7.488-5.192 8.002 8.002 0 00-5.6 2.28c-12.846 12.137-33.1 11.562-45.237-1.285-12.137-12.846-11.562-33.1 1.285-45.237a32.005 32.005 0 0110.448-6.591 30.787 30.787 0 017.912-1.792 28.405 28.405 0 015.016-.168 8 8 0 007.912-10.792l-20.896-55.792 38.096-14.344c5 26.034 30.158 43.085 56.192 38.086a47.962 47.962 0 007.808-2.198c24.807-9.412 37.346-37.099 28.056-61.952a71.236 71.236 0 00-2.04-4.92l36.8-16.296 47.68 127.273z"}))}},{title:"Static Files",path:"/management/static",Icon:function(e){e.styles;var t=je(e,["styles"]);return a.a.createElement("svg",ze({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},t),a.a.createElement("path",{d:"M57.49 27H54v-6.268A2.736 2.736 0 0051.268 18H48v-2.414l-.495-.495-.001-.002-7.296-7.296L32.414 0H8v11H2.732A2.736 2.736 0 000 13.732v43.687h.006c-.005.563.17 1.114.522 1.575A2.546 2.546 0 002.565 60h44.759c1.156 0 2.174-.779 2.45-1.813L60 30.149v-.177C60 28.25 58.944 27 57.49 27zm-6.222-7c.403 0 .732.328.732.732V27h-4v-7h3.268zM33 3.415L44.586 15H33V3.415zM10 2h21v15h15v10H12.731c-.143 0-.284.012-.422.035-.974.162-1.786.872-2.028 1.778l-.281.772V2zM2 13.732c0-.404.329-.732.732-.732H8v22.035L2 51.399V13.732zm45.869 43.851a.565.565 0 01-.545.417H2.565a.552.552 0 01-.448-.222c-.063-.082-.16-.256-.123-.408L8 40.898v.005l4.16-11.404.026-.082a.566.566 0 01.545-.417H57.49c.38 0 .477.546.502.819L47.869 57.583z"}),a.a.createElement("path",{d:"M16 17h10a1 1 0 100-2H16a1 1 0 100 2zM16 10h10a1 1 0 100-2H16a1 1 0 100 2zM16 24h24a1 1 0 100-2H16a1 1 0 100 2z"}))}},{title:"Apple Integration",path:"/management/apple",Icon:function(e){e.styles;var t=et(e,["styles"]);return a.a.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),a.a.createElement("path",{d:"M457.081 362.584c-14.003-7.049-47.42-28.262-55.26-72.862a7.5 7.5 0 00-14.775 2.598c8.997 51.185 47.102 75.493 63.188 83.613-4.334 12.556-14.158 37.284-31.447 62.524-18.375 26.867-39.2 57.318-70.12 57.904-31.048.514-42.266-19.777-82.011-19.777-39.752 0-52.398 19.222-81.827 20.388-27.702 1.06-49.923-27.66-72.124-59.749-41.025-59.34-73.555-169.266-31.209-242.766 17.707-30.733 47.025-51.569 80.435-57.165 4.085-.684 6.842-4.551 6.158-8.637s-4.548-6.845-8.637-6.158c-37.849 6.34-71.001 29.839-90.956 64.472-45.263 78.562-12.643 194.408 31.87 258.788 18.316 26.475 45.829 66.248 83.046 66.244 33.553 0 46.154-20.414 83.243-20.416 36.163 0 46.793 20.438 82.29 19.774 38.656-.733 62.814-36.053 82.22-64.43 18.326-26.754 28.72-52.962 33.283-66.204 2.416-7.011-.751-14.81-7.367-18.141zM363.875 14.506c-.188-8.95-8.289-15.691-17.175-14.331-58.293 8.905-100.445 65.247-98.593 114.719.299 7.943 6.883 14.251 14.771 14.251.14 0 .28-.002.42-.006 54.547-1.543 101.768-58.219 100.577-114.633zm-100.784 99.632c-.874-25.268 12.409-49.994 25.186-64.767 14.729-17.245 39.083-31.046 60.605-34.365.899 47.713-39.179 97.641-85.791 99.132z"}),a.a.createElement("path",{d:"M447.658 165.468c-22.62-28.835-54.825-43.14-91.835-45.9-42.603-3.154-78.92 22.862-95.694 22.862-13.729 0-37.375-14.517-62.942-19.715a7.502 7.502 0 00-2.99 14.7c25.02 5.088 47.74 20.016 65.932 20.016 21.872 0 55.367-25.811 94.582-22.904 32.643 2.436 61.016 14.63 81.035 40.061-13.025 9.383-43.764 35.909-49.606 80.457a7.502 7.502 0 0014.874 1.951c5.09-38.814 32.158-62.078 43.558-70.277 6.746-4.85 8.394-14.486 3.086-21.251z"}))}},{title:"Multi-factor Auth",path:"/management/multi-factor_auth",Icon:function(e){e.styles;var t=We(e,["styles"]);return a.a.createElement("svg",Xe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 480 480"},t),a.a.createElement("path",{d:"M456 232V56c0-22.056-17.944-40-40-40H64c-22.056 0-40 17.944-40 40v120c-13.232 0-24 10.768-24 24v240c0 13.232 10.768 24 24 24h176c13.232 0 24-10.768 24-24h67.048c7.544 0 14.496-3.44 19.072-9.432s6.064-13.608 4.08-20.88L298.472 352H344v88c0 13.232 10.768 24 24 24h88c13.232 0 24-10.768 24-24V256c0-13.232-10.768-24-24-24zM208 440c0 4.408-3.592 8-8 8H24c-4.408 0-8-3.592-8-8v-16h192v16zm0-32H16V232h192v176zm0-192H16v-16c0-4.408 3.592-8 8-8h176c4.408 0 8 3.592 8 8v16zm90.768 197.896c.664 2.424.168 4.96-1.36 6.96s-3.84 3.144-6.36 3.144H224v-16h73.16l1.608 5.896zM224 392v-40h57.888l10.912 40H224zm120-56H224v-48h120v48zm0-80v16H224v-72c0-13.232-10.768-24-24-24H40V56c0-13.232 10.768-24 24-24h352c13.232 0 24 10.768 24 24v176h-72c-13.232 0-24 10.768-24 24zm120 184c0 4.408-3.592 8-8 8h-88c-4.408 0-8-3.592-8-8v-16h104v16zm0-32H360V288h104v120zm0-136H360v-16c0-4.408 3.592-8 8-8h88c4.408 0 8 3.592 8 8v16z"}),a.a.createElement("path",{d:"M42.34 346.335l32-32 11.314 11.313-32 32zM74.337 370.337l96.001-96 11.314 11.313-96.001 96zM90.336 298.346l47.997-47.997 11.314 11.313-47.998 47.998zM378.326 346.348l39.993-39.993 11.314 11.314-39.993 39.992zM394.323 378.382l39.993-39.993 11.314 11.314-39.993 39.993zM210.334 154.345l47.997-47.998 11.313 11.314-47.997 47.997zM282.338 138.345l47.997-47.998 11.314 11.314-47.997 47.997zM234.332 186.354l32-32 11.314 11.313-32 32zM274.286 90.446l32.08-32.08L317.68 69.68l-32.08 32.08zM56 48h16v16H56zM88 48h16v16H88zM120 48h16v16h-16z"}))},disabled:!0},{title:"Hosted Pages",path:"/management/hosted_pages",Icon:function(e){e.styles;var t=Ze(e,["styles"]);return a.a.createElement("svg",Je({height:"424pt",viewBox:"0 -25 424 424",width:"424pt",xmlns:"http://www.w3.org/2000/svg"},t),a.a.createElement("path",{d:"M167.29 272.133a6.972 6.972 0 01-4.532-1.672l-45.297-38.57a7 7 0 010-10.66l45.297-38.57a7 7 0 019.867.788c2.504 2.946 2.152 7.363-.793 9.867l-39.035 33.243 39.035 33.242a7 7 0 01-4.543 12.332zm0 0M256.71 272.133c-1.98 0-3.948-.836-5.331-2.465a7 7 0 01.789-9.867l39.035-33.242-39.035-33.243a7 7 0 019.074-10.656l45.297 38.57a7 7 0 010 10.66l-45.297 38.57a6.972 6.972 0 01-4.531 1.673zm0 0M195.965 301.063a7.002 7.002 0 01-6.86-8.445l28.23-134.036a7 7 0 0113.7 2.887l-28.23 134.035a7.001 7.001 0 01-6.84 5.559zm0 0"}),a.a.createElement("path",{d:"M377 374.086H47c-25.914 0-47-21.082-47-47V47C0 21.086 21.086 0 47 0h330c25.914 0 47 21.086 47 47v280.086c0 25.918-21.086 47-47 47zM47 14c-18.195 0-33 14.805-33 33v280.086c0 18.195 14.805 33 33 33h330c18.195 0 33-14.805 33-33V47c0-18.195-14.805-33-33-33zm0 0"}),a.a.createElement("path",{d:"M417 112.09H7a7.001 7.001 0 010-14h410a7.001 7.001 0 010 14zm0 0M119.602 78.594c-12.211 0-22.153-9.942-22.153-22.153 0-12.214 9.942-22.152 22.153-22.152 12.214 0 22.152 9.938 22.152 22.152 0 12.211-9.938 22.153-22.152 22.153zm0-30.305c-4.493 0-8.153 3.656-8.153 8.152s3.66 8.153 8.153 8.153c4.496 0 8.152-3.656 8.152-8.153s-3.656-8.152-8.152-8.152zm0 0M51.54 78.379c-12.216 0-22.153-9.938-22.153-22.152 0-12.215 9.937-22.153 22.152-22.153 12.215 0 22.152 9.938 22.152 22.153 0 12.214-9.937 22.152-22.152 22.152zm0-30.305c-4.493 0-8.153 3.66-8.153 8.153 0 4.496 3.66 8.152 8.152 8.152 4.496 0 8.152-3.656 8.152-8.152 0-4.493-3.656-8.153-8.152-8.153zm0 0M187.664 78.805c-12.21 0-22.148-9.938-22.148-22.153 0-12.21 9.937-22.148 22.148-22.148 12.215 0 22.152 9.937 22.152 22.148 0 12.215-9.937 22.153-22.152 22.153zm0-30.305c-4.492 0-8.148 3.656-8.148 8.152s3.656 8.153 8.148 8.153c4.496 0 8.152-3.657 8.152-8.153s-3.656-8.152-8.152-8.152zm0 0"}))}}],ct=function(){return a.a.createElement("aside",{className:"iap-management-sidebar"},it.map((function(e){return a.a.createElement(at,ot({key:e.title},e))})))};function lt(){return(lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var st=function(e){return a.a.createElement("svg",lt({viewBox:"0 0 31.444 31.444"},e),a.a.createElement("path",{d:"M1.119,16.841c-0.619,0-1.111-0.508-1.111-1.127c0-0.619,0.492-1.111,1.111-1.111h13.475V1.127  C14.595,0.508,15.103,0,15.722,0c0.619,0,1.111,0.508,1.111,1.127v13.476h13.475c0.619,0,1.127,0.492,1.127,1.111  c0,0.619-0.508,1.127-1.127,1.127H16.833v13.476c0,0.619-0.492,1.127-1.111,1.127c-0.619,0-1.127-0.508-1.127-1.127V16.841H1.119z"}))};function ut(){return(ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pt=function(e){return a.a.createElement("svg",ut({viewBox:"0 0 55 55"},e),a.a.createElement("path",{d:"M55,27.5C55,12.337,42.663,0,27.5,0S0,12.337,0,27.5c0,8.009,3.444,15.228,8.926,20.258l-0.026,0.023l0.892,0.752  c0.058,0.049,0.121,0.089,0.179,0.137c0.474,0.393,0.965,0.766,1.465,1.127c0.162,0.117,0.324,0.234,0.489,0.348  c0.534,0.368,1.082,0.717,1.642,1.048c0.122,0.072,0.245,0.142,0.368,0.212c0.613,0.349,1.239,0.678,1.88,0.98  c0.047,0.022,0.095,0.042,0.142,0.064c2.089,0.971,4.319,1.684,6.651,2.105c0.061,0.011,0.122,0.022,0.184,0.033  c0.724,0.125,1.456,0.225,2.197,0.292c0.09,0.008,0.18,0.013,0.271,0.021C25.998,54.961,26.744,55,27.5,55  c0.749,0,1.488-0.039,2.222-0.098c0.093-0.008,0.186-0.013,0.279-0.021c0.735-0.067,1.461-0.164,2.178-0.287  c0.062-0.011,0.125-0.022,0.187-0.034c2.297-0.412,4.495-1.109,6.557-2.055c0.076-0.035,0.153-0.068,0.229-0.104  c0.617-0.29,1.22-0.603,1.811-0.936c0.147-0.083,0.293-0.167,0.439-0.253c0.538-0.317,1.067-0.648,1.581-1  c0.185-0.126,0.366-0.259,0.549-0.391c0.439-0.316,0.87-0.642,1.289-0.983c0.093-0.075,0.193-0.14,0.284-0.217l0.915-0.764  l-0.027-0.023C51.523,42.802,55,35.55,55,27.5z M2,27.5C2,13.439,13.439,2,27.5,2S53,13.439,53,27.5  c0,7.577-3.325,14.389-8.589,19.063c-0.294-0.203-0.59-0.385-0.893-0.537l-8.467-4.233c-0.76-0.38-1.232-1.144-1.232-1.993v-2.957  c0.196-0.242,0.403-0.516,0.617-0.817c1.096-1.548,1.975-3.27,2.616-5.123c1.267-0.602,2.085-1.864,2.085-3.289v-3.545  c0-0.867-0.318-1.708-0.887-2.369v-4.667c0.052-0.519,0.236-3.448-1.883-5.864C34.524,9.065,31.541,8,27.5,8  s-7.024,1.065-8.867,3.168c-2.119,2.416-1.935,5.345-1.883,5.864v4.667c-0.568,0.661-0.887,1.502-0.887,2.369v3.545  c0,1.101,0.494,2.128,1.34,2.821c0.81,3.173,2.477,5.575,3.093,6.389v2.894c0,0.816-0.445,1.566-1.162,1.958l-7.907,4.313  c-0.252,0.137-0.502,0.297-0.752,0.476C5.276,41.792,2,35.022,2,27.5z M42.459,48.132c-0.35,0.254-0.706,0.5-1.067,0.735  c-0.166,0.108-0.331,0.216-0.5,0.321c-0.472,0.292-0.952,0.57-1.442,0.83c-0.108,0.057-0.217,0.111-0.326,0.167  c-1.126,0.577-2.291,1.073-3.488,1.476c-0.042,0.014-0.084,0.029-0.127,0.043c-0.627,0.208-1.262,0.393-1.904,0.552  c-0.002,0-0.004,0.001-0.006,0.001c-0.648,0.16-1.304,0.293-1.964,0.402c-0.018,0.003-0.036,0.007-0.054,0.01  c-0.621,0.101-1.247,0.174-1.875,0.229c-0.111,0.01-0.222,0.017-0.334,0.025C28.751,52.97,28.127,53,27.5,53  c-0.634,0-1.266-0.031-1.895-0.078c-0.109-0.008-0.218-0.015-0.326-0.025c-0.634-0.056-1.265-0.131-1.89-0.233  c-0.028-0.005-0.056-0.01-0.084-0.015c-1.322-0.221-2.623-0.546-3.89-0.971c-0.039-0.013-0.079-0.027-0.118-0.04  c-0.629-0.214-1.251-0.451-1.862-0.713c-0.004-0.002-0.009-0.004-0.013-0.006c-0.578-0.249-1.145-0.525-1.705-0.816  c-0.073-0.038-0.147-0.074-0.219-0.113c-0.511-0.273-1.011-0.568-1.504-0.876c-0.146-0.092-0.291-0.185-0.435-0.279  c-0.454-0.297-0.902-0.606-1.338-0.933c-0.045-0.034-0.088-0.07-0.133-0.104c0.032-0.018,0.064-0.036,0.096-0.054l7.907-4.313  c1.36-0.742,2.205-2.165,2.205-3.714l-0.001-3.602l-0.23-0.278c-0.022-0.025-2.184-2.655-3.001-6.216l-0.091-0.396l-0.341-0.221  c-0.481-0.311-0.769-0.831-0.769-1.392v-3.545c0-0.465,0.197-0.898,0.557-1.223l0.33-0.298v-5.57l-0.009-0.131  c-0.003-0.024-0.298-2.429,1.396-4.36C21.583,10.837,24.061,10,27.5,10c3.426,0,5.896,0.83,7.346,2.466  c1.692,1.911,1.415,4.361,1.413,4.381l-0.009,5.701l0.33,0.298c0.359,0.324,0.557,0.758,0.557,1.223v3.545  c0,0.713-0.485,1.36-1.181,1.575l-0.497,0.153l-0.16,0.495c-0.59,1.833-1.43,3.526-2.496,5.032c-0.262,0.37-0.517,0.698-0.736,0.949  l-0.248,0.283V39.8c0,1.612,0.896,3.062,2.338,3.782l8.467,4.233c0.054,0.027,0.107,0.055,0.16,0.083  C42.677,47.979,42.567,48.054,42.459,48.132z",fill:"#c3e0ff"}))},ft=(n(540),function(e){return a.a.createElement("div",{className:"iap-section-placeholder"},a.a.createElement("h2",{className:"iap-section-placeholder__title"},"Users"),a.a.createElement(pt,{className:"iap-section-placeholder__icon"}),a.a.createElement("p",{className:"iap-section-placeholder__msg"},"No users have been added to your applications."),a.a.createElement(N,{Icon:st,onClick:e.onCreateNewUserClick},"Create your first user"))});ft.propTypes={onCreateNewUserClick:w.a.func},ft.defaultProps={onCreateNewUserClick:function(){}};var mt=ft;var dt=function(e){var t,n,r,o=e.children,i=e.header,c=e.className;return a.a.createElement("div",{className:S()((t={"iap-datagrid-row":!0,"iap-datagrid-row--header":i},n=c,r=!!c,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))},o)};dt.propTypes={children:w.a.node.isRequired,header:w.a.bool,className:w.a.string},dt.defaultProps={header:!1,className:null};var ht=dt,vt=function(e){var t=e.children;return a.a.createElement("header",{className:"iap-datagrid-header"},a.a.createElement(ht,{header:!0},t))};vt.propTypes={children:w.a.node.isRequired};var gt=vt;function Et(){return(Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bt=function(e){return a.a.createElement("svg",Et({viewBox:"-64 0 512 512"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"m10 401.996094c5.523438 0 10-4.476563 10-10v-371.996094h344.445312v20.003906c0 5.519532 4.476563 10 10 10 5.523438 0 10-4.480468 10-10v-30.003906c0-5.523438-4.476562-10-10-10h-364.445312c-5.523438 0-10 4.476562-10 10v381.996094c0 5.523437 4.476562 10 10 10zm0 0"}),a.a.createElement("path",{d:"m374.445312 110.003906c-5.523437 0-10 4.476563-10 10v267.976563h-94.019531c-5.523437 0-10 4.476562-10 10v94.019531h-240.425781v-20.003906c0-5.519532-4.476562-10-10-10s-10 4.480468-10 10v30.003906c0 5.523438 4.476562 10 10 10h260.425781c.050781 0 .101563-.007812.15625-.007812.273438-.003907.546875-.015626.820313-.039063.167968-.015625.332031-.050781.496094-.074219.15625-.023437.316406-.039062.46875-.070312.167968-.03125.332031-.082032.5-.121094.148437-.039062.300781-.070312.449218-.113281.15625-.046875.304688-.109375.457032-.164063.15625-.054687.3125-.101562.464843-.164062.136719-.058594.269531-.128906.402344-.191406.164063-.074219.328125-.144532.484375-.226563.125-.066406.246094-.144531.367188-.21875.160156-.09375.320312-.179687.472656-.285156.144531-.09375.277344-.203125.414062-.304688.128906-.09375.257813-.179687.378906-.28125.257813-.207031.503907-.429687.738282-.667969l104.019531-104.019531c.316406-.316406.601563-.65625.867187-1.007812.070313-.085938.136719-.175781.199219-.265625.25-.355469.488281-.714844.691407-1.097656.011718-.023438.019531-.046876.03125-.070313.1875-.363281.351562-.738281.492187-1.121094.039063-.101562.078125-.207031.113281-.3125.136719-.40625.257813-.816406.34375-1.238281 0-.007812 0-.015625.003906-.027344.078126-.410156.125-.832031.152344-1.253906.011719-.113281.015625-.226562.019532-.339844.003906-.113281.015624-.222656.015624-.335937v-277.976563c0-5.523437-4.476562-10-10-10zm-94.019531 367.855469v-69.878906h69.875zm0 0"}),a.a.createElement("path",{d:"m94.222656 308.785156c25.007813-20.148437 60.726563-31.707031 98-31.707031 37.273438 0 72.992188 11.558594 98 31.707031 1.847656 1.492188 4.066406 2.214844 6.269532 2.214844 2.917968 0 5.816406-1.273438 7.792968-3.726562 3.464844-4.300782 2.785156-10.597657-1.515625-14.0625-28.496093-22.960938-68.792969-36.132813-110.546875-36.132813s-82.050781 13.171875-110.546875 36.132813c-4.304687 3.464843-4.980469 9.761718-1.515625 14.0625 3.464844 4.296874 9.761719 4.980468 14.0625 1.511718zm0 0"}),a.a.createElement("path",{d:"m303.566406 107.925781c-3.902344-3.90625-10.234375-3.90625-14.140625 0l-22.597656 22.597657-22.601563-22.597657c-3.902343-3.90625-10.234374-3.90625-14.140624 0-3.90625 3.902344-3.90625 10.234375 0 14.140625l22.597656 22.597656-22.597656 22.601563c-3.90625 3.902344-3.90625 10.234375 0 14.140625 3.902343 3.90625 10.234374 3.90625 14.140624 0l22.601563-22.597656 22.597656 22.597656c1.953125 1.953125 4.511719 2.929688 7.070313 2.929688s5.117187-.976563 7.070312-2.929688c3.90625-3.90625 3.90625-10.238281 0-14.140625l-22.597656-22.601563 22.597656-22.597656c3.90625-3.90625 3.90625-10.238281 0-14.140625zm0 0"}),a.a.createElement("path",{d:"m80.878906 181.40625c3.902344 3.902344 10.234375 3.902344 14.140625-.003906l22.597657-22.597656 22.597656 22.597656c1.953125 1.953125 4.511718 2.929687 7.070312 2.929687s5.121094-.976562 7.070313-2.929687c3.90625-3.902344 3.90625-10.234375.003906-14.140625l-22.597656-22.597657 22.597656-22.601562c3.902344-3.902344 3.902344-10.234375-.003906-14.140625-3.902344-3.902344-10.234375-3.90625-14.140625 0l-22.597656 22.597656-22.597657-22.597656c-3.90625-3.90625-10.238281-3.90625-14.140625 0-3.90625 3.90625-3.90625 10.238281 0 14.140625l22.597656 22.601562-22.597656 22.597657c-3.90625 3.90625-3.90625 10.238281 0 14.144531zm0 0"}),a.a.createElement("path",{d:"m10 441.996094c5.507812 0 10-4.488282 10-10 0-5.507813-4.492188-10-10-10s-10 4.492187-10 10c0 5.511718 4.492188 10 10 10zm0 0"}),a.a.createElement("path",{d:"m374.445312 70.003906c-5.507812 0-10 4.488282-10 10 0 5.507813 4.492188 10 10 10 5.507813 0 10-4.492187 10-10 0-5.511718-4.492187-10-10-10zm0 0"})))},yt=function(e){var t=e.text;return a.a.createElement("div",{className:"iap-datagrid__not-found"},a.a.createElement(bt,{className:"iap-datagrid__not-found-icon"}),a.a.createElement("p",{className:"iap-datagrid__not-found-text"},t))};yt.propTypes={text:w.a.string},yt.defaultProps={text:"Not Found"};var _t=yt;n(542);function wt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function xt(){return(xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var St=function(e){e.styles;var t=wt(e,["styles"]);return a.a.createElement("svg",xt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 480.56 480.56"},t),a.a.createElement("path",{d:"M365.354 317.9c-15.7-15.5-35.3-15.5-50.9 0-11.9 11.8-23.8 23.6-35.5 35.6-3.2 3.3-5.9 4-9.8 1.8-7.7-4.2-15.9-7.6-23.3-12.2-34.5-21.7-63.4-49.6-89-81-12.7-15.6-24-32.3-31.9-51.1-1.6-3.8-1.3-6.3 1.8-9.4 11.9-11.5 23.5-23.3 35.2-35.1 16.3-16.4 16.3-35.6-.1-52.1-9.3-9.4-18.6-18.6-27.9-28-9.6-9.6-19.1-19.3-28.8-28.8-15.7-15.3-35.3-15.3-50.9.1-12 11.8-23.5 23.9-35.7 35.5-11.3 10.7-17 23.8-18.2 39.1-1.9 24.9 4.2 48.4 12.8 71.3 17.6 47.4 44.4 89.5 76.9 128.1 43.9 52.2 96.3 93.5 157.6 123.3 27.6 13.4 56.2 23.7 87.3 25.4 21.4 1.2 40-4.2 54.9-20.9 10.2-11.4 21.7-21.8 32.5-32.7 16-16.2 16.1-35.8.2-51.8-19-19.1-38.1-38.1-57.2-57.1zM346.254 238.2l36.9-6.3c-5.8-33.9-21.8-64.6-46.1-89-25.7-25.7-58.2-41.9-94-46.9l-5.2 37.1c27.7 3.9 52.9 16.4 72.8 36.3 18.8 18.8 31.1 42.6 35.6 68.8zM403.954 77.8c-42.6-42.6-96.5-69.5-156-77.8l-5.2 37.1c51.4 7.2 98 30.5 134.8 67.2 34.9 34.9 57.8 79 66.1 127.5l36.9-6.3c-9.7-56.2-36.2-107.2-76.6-147.7z"}))},Ct=function(e){var t,n=e.username,r=e.email,o=e.phone;return n||r?t=/^[+][0-9]{9,15}$/.test(n)?a.a.createElement(St,{className:"user-phone-icon"}):function(e,t){var n=function(e){return function(t){return t.slice(0,e)}},r=n(2),a=n(1),o=ve(e.split(/\s/),2),i=o[0],c=o[1];return i||c?c?"".concat(a(i)).concat(a(c)).toUpperCase():r(i).toUpperCase():r(t).toUpperCase()}(n,r):t=o?a.a.createElement(St,{className:"user-phone-icon"}):"-",a.a.createElement("div",{className:"iap-datagrid-row__user-icon"},t)},Tt=function(e){var t=e.data,n=e.config;return a.a.createElement(ht,null,a.a.createElement("div",{style:{width:n.icon.width}},a.a.createElement("div",{className:"iap-datagrid-row__user-icon"},a.a.createElement(Ct,t))),a.a.createElement("div",{style:{width:n.name.width}},t.username||"-"),a.a.createElement("div",{style:{width:n.email.width}},t.email||"-"),a.a.createElement("div",{style:{width:n.phone.width}},t.phone||"-"),a.a.createElement("div",{style:{width:n.num_of_logins.width}},t.num_of_logins||0))};Tt.propTypes={data:w.a.shape({name:w.a.string,email:w.a.string,latest_login_time:w.a.number,num_of_logins:w.a.number}).isRequired,config:w.a.shape({name:w.a.object,email:w.a.object,latest_login_time:w.a.object,num_of_logins:w.a.object}).isRequired};var Ot=Tt,Pt=function(e){var t=e.config;return a.a.createElement(gt,null,Object.keys(t).map((function(e){return a.a.createElement("div",{key:e,style:{width:t[e].width}},t[e].title)})))};Pt.propTypes={config:w.a.shape().isRequired};var kt=Pt,At=function(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(ht,null,a.a.createElement("div",{className:"iap-users-row__fake-icon"}),a.a.createElement("div",{className:"iap-users-row__fake-name"}),a.a.createElement("div",{className:"iap-users-row__fake-email"}),a.a.createElement("div",{className:"iap-users-row__fake-latest-login"}),a.a.createElement("div",{className:"iap-users-row__fake-logins"})),a.a.createElement(ht,null,a.a.createElement("div",{className:"iap-users-row__fake-icon"}),a.a.createElement("div",{className:"iap-users-row__fake-name"}),a.a.createElement("div",{className:"iap-users-row__fake-email"}),a.a.createElement("div",{className:"iap-users-row__fake-latest-login"}),a.a.createElement("div",{className:"iap-users-row__fake-logins"})))},Rt=(n(544),{icon:{title:"",width:"10%"},name:{title:"Username",width:"30%"},email:{title:"Email",width:"30%"},phone:{title:"Phone",width:"25%"},num_of_logins:{title:"# of Logins",width:"10%"}}),Nt=function(e){var t=e.users,n=e.loading;return a.a.createElement("div",{className:"iap-userlist"},a.a.createElement("div",{className:"iap-datagrid"},a.a.createElement(kt,{config:Rt}),a.a.createElement("main",{className:"iap-datagrid-body"},n&&a.a.createElement(At,null),!n&&t.map((function(e){return a.a.createElement(Z.a,{key:e.id,to:"/management/users/".concat(e.id),className:"rrdl"},a.a.createElement(Ot,{data:e,config:Rt}))})),!t.length&&!n&&a.a.createElement(_t,{text:"No Users Found"}))))};Nt.propTypes={users:w.a.arrayOf(w.a.shape()),loading:w.a.bool},Nt.defaultProps={users:[],loading:!1};var It=Nt,jt={FETCH_USERS_ATTEMPT:"FETCH_USERS_ATTEMPT",FETCH_USERS_SUCCESS:"FETCH_USERS_SUCCESS",FETCH_USERS_FAILURE:"FETCH_USERS_FAILURE",POST_USER_ATTEMPT:"POST_USER_ATTEMPT",POST_USER_SUCCESS:"POST_USER_SUCCESS",POST_USER_FAILURE:"POST_USER_FAILURE",ALTER_USER_ATTEMPT:"ALTER_USER_ATTEMPT",ALTER_USER_SUCCESS:"ALTER_USER_SUCCESS",ALTER_USER_FAILURE:"ALTER_USER_FAILURE",FETCH_USER_BY_ID_ATTEMPT:"FETCH_USER_BY_ID_ATTEMPT",FETCH_USER_BY_ID_SUCCESS:"FETCH_USER_BY_ID_SUCCESS",FETCH_USER_BY_ID_FAILURE:"FETCH_USER_BY_ID_FAILURE",DELETE_USER_BY_ID_ATTEMPT:"DELETE_USER_BY_ID_ATTEMPT",DELETE_USER_BY_ID_SUCCESS:"DELETE_USER_BY_ID_SUCCESS",DELETE_USER_BY_ID_FAILURE:"DELETE_USER_BY_ID_FAILURE",RESET_USER_ERROR:"RESET_USER_ERROR"};function zt(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Mt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){zt(o,r,a,i,c,"next",e)}function c(e){zt(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Ft=f()(jt.FETCH_USERS_ATTEMPT),Lt=f()(jt.FETCH_USERS_SUCCESS),Ut=f()(jt.FETCH_USERS_FAILURE),Bt=f()(jt.POST_USER_ATTEMPT),Dt=f()(jt.POST_USER_SUCCESS),Ht=f()(jt.POST_USER_FAILURE),Vt=f()(jt.ALTER_USER_ATTEMPT),Gt=f()(jt.ALTER_USER_SUCCESS),Kt=f()(jt.ALTER_USER_FAILURE),Yt=f()(jt.FETCH_USER_BY_ID_ATTEMPT),qt=f()(jt.FETCH_USER_BY_ID_SUCCESS),Wt=f()(jt.FETCH_USER_BY_ID_FAILURE),Xt=f()(jt.DELETE_USER_BY_ID_ATTEMPT),Zt=f()(jt.DELETE_USER_BY_ID_SUCCESS),Jt=f()(jt.DELETE_USER_BY_ID_FAILURE),Qt=function(e){return function(){var t=Mt(regeneratorRuntime.mark((function t(n,r,a){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Bt()),t.prev=1,t.next=4,a.users.postUser(e);case 4:o=t.sent,n(Dt(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),n(Ht(be(t.t0)));case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n,r){return t.apply(this,arguments)}}()},$t=function(e,t){return function(){var n=Mt(regeneratorRuntime.mark((function n(r,a,o){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Vt()),n.prev=1,n.next=4,o.users.alterUser(e,t);case 4:i=n.sent,r(Gt(i)),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),r(Kt(be(n.t0)));case 11:case"end":return n.stop()}}),n,null,[[1,8]])})));return function(e,t,r){return n.apply(this,arguments)}}()},en=function(e){return function(){var t=Mt(regeneratorRuntime.mark((function t(n,r,a){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Yt()),t.prev=1,t.next=4,a.users.fetchUserById(e);case 4:o=t.sent,n(qt(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),n(Wt(be(t.t0)));case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n,r){return t.apply(this,arguments)}}()},tn=function(e){return function(){var t=Mt(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Xt()),t.prev=1,t.next=4,a.users.deleteUserById(e);case 4:n(Zt(e)),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),n(Jt(be(t.t0)));case 10:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r){return t.apply(this,arguments)}}()},nn=f()(jt.RESET_USER_ERROR);function rn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function an(){return(an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var on=function(e){e.styles;var t=rn(e,["styles"]);return a.a.createElement("svg",an({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56.966 56.966"},t),a.a.createElement("path",{d:"M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z"}))};function cn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n(546);function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sn=function(e){var t=e.placeholder,n=e.timeout,r=e.onChange,o=ln(a.a.useState(""),2),i=o[0],c=o[1],l=a.a.useRef(i),s=a.a.useMemo((function(){return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];clearTimeout(t),t=setTimeout((function(){return e.apply(void 0,a)}),n)}}((function(){return r(l.current)}),n)}),[n,r]);return a.a.createElement("div",{className:"iap-search-input"},a.a.createElement(P,{Icon:on,value:i,onValue:function(e){c(e),l.current=e,s(e)},placeholder:t}))};function un(e){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dn(e,t){return(dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hn=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(r=fn(t).call(this))||"object"!==un(r)&&"function"!=typeof r?mn(n):r).state={searchQuery:""},e.handleSearch=e.handleSearch.bind(mn(e)),e}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.props.fetchUsers()}},{key:"handleSearch",value:function(e){this.props.fetchUsers({search:e}),this.setState({searchQuery:e})}},{key:"render",value:function(){var e=this.props,t=e.users,n=e.fetching,r=e.history,o=this.state.searchQuery;return t.length||n||o?a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Users",a.a.createElement(N,{Icon:st,onClick:function(){return r.push("/management/users/new")}},"Create User")),a.a.createElement("p",{className:"iap-management-section__description"},"Look for users, edit, delete them and add new ones."),a.a.createElement(sn,{timeout:400,placeholder:"Search for users",onChange:this.handleSearch}),a.a.createElement(It,{loading:n,users:t})):a.a.createElement("section",{className:"iap-management-section"},a.a.createElement(mt,{onCreateNewUserClick:function(){return r.push("/management/users/new")}}))}}])&&pn(n.prototype,r),o&&pn(n,o),t}(r.Component);hn.propTypes={fetchUsers:w.a.func.isRequired,users:w.a.arrayOf(w.a.shape({id:w.a.string,name:w.a.string,email:w.a.string,latest_login_time:w.a.number,num_of_logins:w.a.number})),fetching:w.a.bool,history:w.a.shape({push:w.a.func}).isRequired},hn.defaultProps={users:[],fetching:!1};var vn={fetchUsers:function(e){return function(){var t=Mt(regeneratorRuntime.mark((function t(n,r,a){var o,i,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Ft()),t.prev=1,t.next=4,a.users.fetchUsers(e);case 4:o=t.sent,i=o.users,c=void 0===i?[]:i,l=o.total,n(Lt({users:c,total:void 0===l?0:l})),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),n(Ut(be(t.t0)));case 15:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(e,n,r){return t.apply(this,arguments)}}()}},gn=Object(c.b)((function(e){return{fetching:e.users.fetching,users:e.users.list}}),vn)(hn),En=n(4);n(553);function bn(){return(bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var yn=function(e){var t=e.label,n=e.subtext,r=e.Icon,o=e.children;return a.a.createElement("div",{className:"form-field"},a.a.createElement("span",{className:"form-field__label"},t,!!r&&a.a.createElement(r.type,bn({},r.props,{className:"form-field__label-icon"}))),o,!!n&&a.a.createElement("p",{className:"form-field__subtext"},n))};yn.propTypes={label:w.a.string,children:w.a.node,Icon:w.a.element,subtext:w.a.string},yn.defaultProps={label:"",children:null,Icon:null,subtext:""};var _n=yn;function wn(){return(wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xn,Sn=function(e){return a.a.createElement("svg",wn({viewBox:"0 0 513.32 513.32"},e),a.a.createElement("polygon",{points:"352.907,276.979 237.411,411.725 168.968,360.393 143.302,394.615 243.827,471.613 384.99,306.922 ",fill:"#ffffff"}),a.a.createElement("path",{d:"M423.489,176.453C406.378,99.455,337.935,41.707,256.66,41.707c-94.109,0-171.107,76.998-171.107,171.107v2.139  C36.36,225.647,0,268.424,0,319.755c0,59.887,47.055,106.942,106.942,106.942V383.92c-36.36,0-64.165-29.944-64.165-64.165  c0-36.36,27.805-64.165,64.165-64.165h21.388v-42.777c0-70.581,57.749-128.33,128.33-128.33c64.165,0,119.775,47.055,126.191,111.22  l2.139,17.11l14.972,2.139c40.638,8.555,70.581,42.777,70.581,83.414c0,47.055-38.499,85.553-85.553,85.553v42.777  c70.581,0,128.33-57.749,128.33-128.33C513.32,242.757,476.96,193.564,423.489,176.453L423.489,176.453z"}))};n(555);function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Tn=function(e){var t=e.label,n=e.value,o=e.onChange,i=Cn(Object(r.useState)(!1),2),c=i[0],l=i[1];Object(r.useEffect)((function(){c&&l(!1),clearTimeout(xn)}),[n]);var s=S()({"iap-default-toggle__body":!0,"iap-default-toggle__body--on":n});return a.a.createElement("div",{className:"iap-default-toggle"},!!t&&a.a.createElement("span",null,t),a.a.createElement("button",{type:"button",className:s,onClick:function(){o(!n),xn=setTimeout(l,70,!0)}},a.a.createElement("div",{className:"iap-default-toggle__handle"},c&&a.a.createElement(j,{className:"iap-default-toggle__handle-icon"}))))};Tn.propTypes={label:w.a.string,value:w.a.bool,onChange:w.a.func},Tn.defaultProps={label:"",value:!1,onChange:function(){}};var On=Tn,Pn={username:[Object(En.notEmpty)("Username should not be empty")],password:[Object(En.notEmpty)("Password should not be empty"),Object(En.longerThan)(6,"Password should have length of at least six characters"),Object(En.hasUpperLetter)("Password should contain at least one uppercase letter")],confirmPassword:[Object(En.notEmpty)("You should confirm password"),Object(En.matches)("password","Passwords do not match")]},kn=Object(En.applyRules)(Pn),An=function(e){var t=kn("all",e);return Object(En.hasError)(t)?t:{}};function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var jn=function(e){return e.replace(/[A-Z]/,(function(e){return"_".concat(e.toLowerCase())}))},zn=function(e){return e.replace(/_(\w)/,(function(e,t){return t.toUpperCase()}))},Mn=function e(t,n){var r="camel"===n?zn:jn;return Object.entries(t).map((function(t){var a=In(t,2),o=a[0],i=a[1];return"object"!==Nn(i)||Array.isArray(i)?[r(o),i]:[r(o),e(i,n)]})).reduce((function(e,t){var n=In(t,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rn(e,t,n[t])}))}return e}({},e,Rn({},n[0],n[1]))}),{})},Fn=(n(557),function(e){var t=e.saving,n=e.error,r=e.onCancel,o=e.onSubmit,i=Y({username:"",password:"",confirmPassword:"",tfaEnabled:!1,role:""},An,(function(e){o(Mn({username:e.username,password:e.password,accessRole:e.role,tfaInfo:{isEnabled:e.tfaEnabled}},"snake"))}));return a.a.createElement("form",{className:"iap-users-form",onSubmit:i.handleSubmit},n&&a.a.createElement(H,{error:n}),a.a.createElement(_n,{label:"Username"},a.a.createElement(P,{name:"username",value:i.values.username,placeholder:"Enter username",onChange:i.handleChange,errorMessage:i.errors.username})),a.a.createElement(_n,{label:"Access Role"},a.a.createElement(P,{name:"role",value:i.values.role,placeholder:"Enter access role",onChange:i.handleChange})),a.a.createElement(_n,{label:"Password"},a.a.createElement(P,{name:"password",type:"password",value:i.values.password,placeholder:"Enter password",onChange:i.handleChange,errorMessage:i.errors.password})),a.a.createElement(_n,{label:"Confirm Password"},a.a.createElement(P,{name:"confirmPassword",type:"password",value:i.values.confirmPassword,placeholder:"Enter password once more",onChange:i.handleChange,errorMessage:i.errors.confirmPassword})),a.a.createElement(On,{label:"Enable 2FA",value:i.values.tfaEnabled,onChange:function(e){return i.setValue("tfaEnabled",e)}}),a.a.createElement("footer",{className:"iap-users-form__footer"},a.a.createElement(N,{type:"submit",Icon:t?j:Sn,disabled:t||Object(En.hasError)(i.errors),error:!t&&!!n},"Save User"),a.a.createElement(N,{transparent:!0,onClick:r,disabled:t},"Cancel")))});Fn.propTypes={onCancel:w.a.func,onSubmit:w.a.func,saving:w.a.bool,error:w.a.instanceOf(Error)},Fn.defaultProps={onCancel:function(){},onSubmit:function(){},saving:!1,error:null};var Ln=Fn;n(559);function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Bn=Object(r.createContext)(),Dn=function(e){var t=e.children,n=Un(Object(r.useState)(0),2),o=n[0],i=n[1];Object(r.useEffect)((function(){o>=100&&i(0)}),[o]);return a.a.createElement(Bn.Provider,{value:{progress:o,setProgress:function(e){if(e>=100)return i(99.9999),void setTimeout(i,400,100);i(e)}}},o<100&&a.a.createElement("div",{className:"top-progress-bar",style:{width:"".concat(o,"vw")}}),t)};function Hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.useContext)(Bn),n=Object(r.useState)(0),a=Hn(n,2),o=a[0],i=a[1];return e.local?{progress:o,setProgress:i}:t};function Gn(){return(Gn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Kn=function(e){return a.a.createElement("svg",Gn({viewBox:"0 0 426.667 426.667"},e),a.a.createElement("path",{fill:"#6AC259",d:"M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"}))},Yn={SUCCESS:"success",FAILURE:"failure"},qn=function(e){var t=e.title,n=e.text,r=e.type,o=e.onClick,i=S()({"iap-notification":!0,"iap-notification--failure":r===Yn.FAILURE,"iap-notification--success":r===Yn.SUCCESS}),c="failure"===r?B:Kn;return a.a.createElement("button",{className:i,onClick:o},a.a.createElement(c,{className:"iap-notification__icon"}),a.a.createElement("div",null,a.a.createElement("p",{className:"iap-notification__title"},t),a.a.createElement("p",{className:"iap-notification__text"},n)))};qn.propTypes={title:w.a.string,text:w.a.string.isRequired,type:w.a.oneOf(Object.values(Yn)).isRequired},qn.defaultProps={title:"Notification"};var Wn=qn,Xn=function(e){var t=Object(r.useRef)();return Object(r.useEffect)((function(){t.current=e}),[e]),t.current};function Zn(){return(Zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $n=a.a.createContext(),er=function(e){var t=e.children,n=Qn(a.a.useState([]),2),r=n[0],o=n[1],i=Xn(r),c=function(e){return!i.map((function(e){return e.id})).includes(e.id)},l=function(e){o(r.filter((function(t){return t.id!==e.id})))},s=function(e){setTimeout(l,3e3,e)};a.a.useEffect((function(){var e;(e=r,e.filter(c)).forEach(s)}),[r]);var u=function(e,t){return G()(t,{type:e,id:Date.now()})},p={notifySuccess:function(e){o([].concat(Jn(r),[u("success",e)]))},notifyFailure:function(e){o([].concat(Jn(r),[u("failure",e)]))}};return a.a.createElement($n.Provider,{value:p},a.a.createElement("div",{className:"iap-notification-container"},r.map((function(e){return a.a.createElement(Wn,Zn({key:e.id},e,{onClick:function(){return l(e)}}))}))),t)},tr=(n(561),function(){return Object(r.useContext)($n)});function nr(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var rr,ar=function(e){var t=e.history,n=Object(c.c)(),r=Vn(),o=r.progress,i=r.setProgress,l=tr(),s=l.notifySuccess,u=l.notifyFailure,p=Object(c.d)((function(e){return e.selectedUser.user})),f=Object(c.d)((function(e){return e.selectedUser.error}));a.a.useEffect((function(){p&&p.id&&t.push("/management/users/".concat(p.id))}),[p]);var m=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(70),e.prev=1,e.next=4,n(Qt(t));case 4:s({title:"Created",text:"User has been created successfully"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),u({title:"Error",text:"User could not be created"});case 10:return e.prev=10,i(100),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,7,10,13]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){nr(o,r,a,i,c,"next",e)}function c(e){nr(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("div",null,a.a.createElement(Z.a,{to:"/management/users",className:"iap-management-section__back"},"←  Users")),a.a.createElement("p",{className:"iap-management-section__title"},"Create User"),a.a.createElement("p",{className:"iap-management-section__description"},"Created user is going to be able to log in using these credentials")),a.a.createElement("main",null,a.a.createElement(Ln,{error:f,saving:!!o,onCancel:function(){n(nn()),t.push("/management/users")},onSubmit:m})))},or=/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/,ir={username:[Object(En.notEmpty)("Username should not be empty")],email:[Object(En.notEmpty)("Email should not be empty"),Object(En.emailFormat)("Email format is invalid")],password:[Object(En.notEmpty)("Password should not be empty"),Object(En.longerThan)(6,"Password should have length of at least six characters"),Object(En.hasUpperLetter)("Password should contain at least one uppercase letter")],confirmPassword:[Object(En.notEmpty)("You should confirm password"),Object(En.matches)("password","Passwords do not match")],phone:[(rr="Phone number format is invalid",function(e){return e?or.test(e)?"":rr:""})]},cr=Object(En.applyRules)(ir),lr=function(e){var t=cr("all",e,{omit:e.editPassword?[]:["password","confirmPassword"]});return Object(En.hasError)(t)?t:{}},sr=function(e){var t=e.user,n=e.error,r=e.loading,o=e.onSubmit,i=e.onCancel,c=Y({email:"",username:"",password:"",confirmPassword:"",tfaEnabled:!1,role:"",phone:"",active:!1,editPassword:!1},lr,(function(e){o(Mn({email:e.email,username:e.username,password:e.editPassword?e.password:"",tfaInfo:{isEnabled:e.tfaEnabled},accessRole:e.role,phone:e.phone,active:e.active},"snake"))}));return a.a.useEffect((function(){t&&c.setValues({email:t.email,username:t.username,tfaEnabled:!!t.tfa_info&&t.tfa_info.is_enabled,role:t.access_role||"",active:t.active||!1,phone:t.phone||"",editPassword:c.values.editPassword,password:c.values.password,confirmPassword:c.values.confirmPassword})}),[t]),a.a.createElement("form",{className:"iap-users-form",onSubmit:c.handleSubmit},!!n&&a.a.createElement(H,{error:n}),a.a.createElement(_n,{label:"Username"},a.a.createElement(P,{name:"username",value:c.values.username,placeholder:"Enter username",onChange:c.handleChange,errorMessage:c.errors.username,disabled:r})),a.a.createElement(_n,{label:"Access Role"},a.a.createElement(P,{name:"role",value:c.values.role,placeholder:"Enter access role",onChange:c.handleChange,disabled:r})),a.a.createElement(_n,{label:"Email"},a.a.createElement(P,{name:"email",value:c.values.email,placeholder:"Enter email",onChange:c.handleChange,errorMessage:c.errors.email,disabled:r})),a.a.createElement(_n,{label:"Pnone Number"},a.a.createElement(P,{name:"phone",value:c.values.phone,placeholder:"Enter phone number",onChange:c.handleChange,errorMessage:c.errors.phone,disabled:r})),a.a.createElement("div",null,a.a.createElement(On,{label:"Enable 2FA",value:c.values.tfaEnabled,onChange:function(e){return c.setValue("tfaEnabled",e)}}),a.a.createElement(On,{label:"Active",value:c.values.active,onChange:function(e){return c.setValue("active",e)}}),a.a.createElement(On,{label:"Edit Password",value:c.values.editPassword,onChange:function(e){return c.setValue("editPassword",e)}})),c.values.editPassword&&a.a.createElement(a.a.Fragment,null,a.a.createElement(_n,{label:"Password"},a.a.createElement(P,{name:"password",type:"password",placeholder:"Enter new password",value:c.values.password,onChange:c.handleChange,errorMessage:c.errors.password,disabled:r})),a.a.createElement(_n,{label:"Confirm Password"},a.a.createElement(P,{name:"confirmPassword",type:"password",placeholder:"Enter new password",value:c.values.confirmPassword,onChange:c.handleChange,errorMessage:c.errors.confirmPassword,disabled:r}))),a.a.createElement("footer",{className:"iap-users-form__footer"},a.a.createElement(N,{type:"submit",Icon:r?j:Sn,disabled:r||Object(En.hasError)(c.errors),error:!r&&!!n},"Save Changes"),a.a.createElement(N,{transparent:!0,onClick:i,disabled:r},"Cancel")))};sr.defaultProps={onCancel:function(){}};var ur=sr;n(563);function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var fr=function(e){var t=pr(ee()(),3),n=t[0],o=t[1],i=t[2],c=pr(Object(r.useState)(!1),2),l=c[0],s=c[1],u=pr(Object(r.useState)(0),2),p=u[0],f=u[1],m=function(){var e=document.documentElement.scrollTop;if(e>60){var t=n.current.getBoundingClientRect().x;f(t),s(!0)}e<60&&(s(!1),f("auto"))};Object(r.useEffect)((function(){return window.addEventListener("scroll",m),function(){return window.removeEventListener("scroll",m)}}),[]);var d=S()("iap-actions-btn",{"iap-actions-btn--stuck":l});return a.a.createElement("div",{ref:n,className:d,style:{left:p}},a.a.createElement(N,{Icon:e.loading?j:ne,disabled:e.loading,iconClassName:"iap-actions-btn__icon",onClick:i},e.text),o&&a.a.createElement("div",{className:"iap-actions-btn__actions"},e.actions.map((function(e){return a.a.createElement("button",{key:e.title,type:"button",className:"iap-actions-btn__action",onClick:e.onClick},e.title)}))))};fr.propTypes={actions:w.a.arrayOf(w.a.shape({title:w.a.string,onClick:w.a.func})).isRequired,loading:w.a.bool,text:w.a.string},fr.defaultProps={loading:!1,text:"Actions"};var mr=fr;function dr(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function hr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){dr(o,r,a,i,c,"next",e)}function c(e){dr(o,r,a,i,c,"throw",e)}i(void 0)}))}}var vr=function(e){var t=e.match,n=e.history,r=Object(c.c)(),o=t.params.userid,i=Object(c.d)((function(e){return e.selectedUser.user})),l=Object(c.d)((function(e){return e.selectedUser.error})),s=Vn(),u=s.progress,p=s.setProgress,f=tr(),m=f.notifySuccess,d=f.notifyFailure,h=function(){var e=hr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(70),e.next=3,r(en(o));case 3:p(100);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();a.a.useEffect((function(){h()}),[]);var v=function(){var e=hr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(70),e.prev=1,e.next=4,r(tn(o));case 4:m({title:"Deleted",text:"User has been deleted successfully"}),n.push("/management/users"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),d({title:"Something went wrong",text:"User could not be updated"});case 11:return e.prev=11,p(100),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=hr(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(70),e.prev=1,e.next=4,r($t(o,t));case 4:m({title:"Updated",text:"User has been updated successfully"}),n.push("/management/users"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),d({title:"Something went wrong",text:"User could not be updated"});case 11:return e.prev=11,p(100),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(t){return e.apply(this,arguments)}}(),E=[{title:"Delete User",onClick:v}];return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("div",null,a.a.createElement(Z.a,{to:"/management/users",className:"iap-management-section__back"},"←  Users")),a.a.createElement("div",{className:"iap-management-section__title"},"User Details",a.a.createElement(mr,{loading:!!u,actions:E})),a.a.createElement("p",{className:"iap-management-section__description"},a.a.createElement("span",{className:"iap-section-description__id"},"id: ",o))),a.a.createElement("main",null,a.a.createElement(ur,{user:i,error:l,loading:!!u,onCancel:function(){r(nn()),n.push("/management/users")},onSubmit:g})))},gr=function(){return a.a.createElement(s.a,null,a.a.createElement(u.a,{exact:!0,path:"/management/users",render:function(e){return a.a.createElement(gn,e)}}),a.a.createElement(u.a,{path:"/management/users/new",render:function(e){return a.a.createElement(ar,e)}}),a.a.createElement(u.a,{path:"/management/users/:userid",render:function(e){return a.a.createElement(vr,e)}}))};function Er(){return(Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var br=function(e){var t=Er({},e);return a.a.createElement("svg",Er({viewBox:"0 0 129 129"},t),a.a.createElement("g",null,a.a.createElement("path",{d:"m119.2,114.3h-109.4c-2.3,0-4.1,1.9-4.1,4.1s1.9,4.1 4.1,4.1h109.5c2.3,0 4.1-1.9 4.1-4.1s-1.9-4.1-4.2-4.1z"}),a.a.createElement("path",{d:"m5.7,78l-.1,19.5c0,1.1 0.4,2.2 1.2,3 0.8,0.8 1.8,1.2 2.9,1.2l19.4-.1c1.1,0 2.1-0.4 2.9-1.2l67-67c1.6-1.6 1.6-4.2 0-5.9l-19.2-19.4c-1.6-1.6-4.2-1.6-5.9-1.77636e-15l-13.4,13.5-53.6,53.5c-0.7,0.8-1.2,1.8-1.2,2.9zm71.2-61.1l13.5,13.5-7.6,7.6-13.5-13.5 7.6-7.6zm-62.9,62.9l49.4-49.4 13.5,13.5-49.4,49.3-13.6,.1 .1-13.5z"})))},yr=(n(565),function(e){return a.a.createElement("header",null,a.a.createElement("span",{className:"iap-section__title"},e.title),a.a.createElement("p",{className:"iap-section__description"},e.description))});yr.propTypes={title:w.a.string.isRequired,description:w.a.string.isRequired};var _r=yr,wr={TEST_CONNECTION_ATTEMPT:"TEST_CONNECTION_ATTEMPT",TEST_CONNECTION_SUCCESS:"TEST_CONNECTION_SUCCESS",TEST_CONNECTION_FAILURE:"TEST_CONNECTION_FAILURE",FETCH_DB_SETTINGS_ATTEMPT:"FETCH_DB_SETTINGS_ATTEMPT",FETCH_DB_SETTINGS_SUCCESS:"FETCH_DB_SETTINGS_SUCCESS",FETCH_DB_SETTINGS_FAILURE:"FETCH_DB_SETTINGS_FAILURE",POST_DB_SETTINGS_ATTEMPT:"POST_DB_SETTINGS_ATTEMPT",POST_DB_SETTINGS_SUCCESS:"POST_DB_SETTINGS_SUCCESS",POST_DB_SETTINGS_FAILURE:"POST_DB_SETTINGS_FAILURE",RESET_DB_SETTINGS_ERROR:"RESET_DB_SETTINGS_ERROR"};function xr(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Sr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){xr(o,r,a,i,c,"next",e)}function c(e){xr(o,r,a,i,c,"throw",e)}i(void 0)}))}}f()(wr.TEST_CONNECTION_ATTEMPT),f()(wr.TEST_CONNECTION_SUCCESS),f()(wr.TEST_CONNECTION_FAILURE);var Cr=f()(wr.FETCH_DB_SETTINGS_ATTEMPT),Tr=f()(wr.FETCH_DB_SETTINGS_SUCCESS),Or=f()(wr.FETCH_DB_SETTINGS_FAILURE),Pr=f()(wr.POST_DB_SETTINGS_ATTEMPT),kr=f()(wr.POST_DB_SETTINGS_SUCCESS),Ar=f()(wr.POST_DB_SETTINGS_FAILURE),Rr=function(e){return function(){var t=Sr(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Pr()),t.prev=1,t.next=4,a.database.postSettings(e);case 4:n(kr(e)),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),n(Ar(new Error(be(t.t0))));case 10:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r){return t.apply(this,arguments)}}()},Nr=f()(wr.RESET_DB_SETTINGS_ERROR),Ir=function(){return a.a.createElement("div",{className:"iap-section__info"},a.a.createElement("div",{className:"iap-section__field"},a.a.createElement("span",null,"Database Type"),a.a.createElement("div",{className:"iap-section__value--fake"})),a.a.createElement("div",{className:"iap-section__field"},a.a.createElement("span",null,"Database name"),a.a.createElement("div",{className:"iap-section__value--fake"})),a.a.createElement("div",{className:"iap-section__field"},a.a.createElement("span",null,"Endpoint"),a.a.createElement("div",{className:"iap-section__value--fake"})))},jr=(n(567),function(e){var t=e.label,n=e.value;return n?a.a.createElement("div",{className:"iap-section__field"},a.a.createElement("span",null,t),a.a.createElement("p",{className:"iap-section__value"},n)):null});jr.propTypes={label:w.a.string,value:w.a.string},jr.defaultProps={label:"",value:""};var zr=jr;function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fr=function(e){var t;return(t={},Mr(t,"mongodb","MongoDB"),Mr(t,"dynamodb","DynamoDB"),Mr(t,"boltdb","BoltDB"),t)[e]},Lr=function(e){var t=e.fetching,n=e.settings;if(t||!n)return a.a.createElement(Ir,null);var r=n.type;return a.a.createElement("div",{className:"iap-section__info"},a.a.createElement(zr,{label:"Database Type",value:Fr(n.type)}),"mongodb"===r&&a.a.createElement(zr,{label:"Database Name",value:n.name}),"dynamodb"===r&&a.a.createElement(zr,{label:"Region",value:n.region}),"boltdb"!==r&&a.a.createElement(zr,{label:"Endpoint",value:n.endpoint}),"boltdb"===r&&a.a.createElement(zr,{label:"Path",value:n.path}))};Lr.propTypes={fetching:w.a.bool,settings:w.a.shape({endpoint:w.a.string,name:w.a.string,type:w.a.string})},Lr.defaultProps={fetching:!1,settings:null};var Ur=Lr,Br={type:[Object(En.notEmpty)("Type should not be empty")],region:[Object(En.notEmpty)("Region should not be empty")],name:[Object(En.notEmpty)("Name should not be empty")],endpoint:[Object(En.notEmpty)("Endpoint should not be empty")],path:[Object(En.notEmpty)("Path should not be empty")]};function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Hr,Vr=function(e,t){var n=r.Children.toArray(t).find((function(t){return t.props.value===e}));return n?n.props.title:""},Gr=function(e){var t=e.children,n=e.value,o=e.disabled,i=e.placeholder,c=e.errorMessage,l=Dr(ee()(),4),s=l[0],u=l[1],p=l[2],f=l[3],m=Dr(Object(r.useState)(!1),2),d=m[0],h=m[1];return Object(r.useEffect)((function(){d&&h(!1),clearTimeout(Hr)}),[n]),a.a.createElement("div",{className:"iap-db-dropdown",ref:s},a.a.createElement(P,{placeholder:i,style:{caretColor:"transparent",cursor:"pointer"},value:Vr(n,e.children),disabled:o,onFocus:p,errorMessage:c,renderButton:function(){return d?a.a.createElement(j,{className:"iap-select-icon"}):a.a.createElement(ne,{className:"iap-select-icon",onClick:u?f:p})}}),u&&a.a.createElement("div",{className:"iap-db-dropdown__options"},r.Children.map(t,(function(t){var r={onClick:function(){f(),t.props.value!==n&&(e.onChange(t.props.value),Hr=setTimeout(h,70,!0))},active:n===t.props.value};return a.a.cloneElement(t,r)}))))};Gr.propTypes={disabled:w.a.bool,value:w.a.string.isRequired,onChange:w.a.func.isRequired,errorMessage:w.a.string,placeholder:w.a.string,children:w.a.node.isRequired},Gr.defaultProps={disabled:!1,placeholder:"Select",errorMessage:""};var Kr=Gr,Yr=function(e){var t=e.title,n=e.active,r=e.onClick,o=S()({"iap-db-dropdown__option":!0,"iap-db-dropdown__option--active":n});return a.a.createElement("button",{type:"button",className:o,onClick:r},t)};Yr.propTypes={title:w.a.string,active:w.a.bool,onClick:w.a.func},Yr.defaultProps={title:"",active:!1,onClick:function(){}};var qr=Yr;n(569);function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e){return(Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $r(e,t){return($r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ea=function(e){function t(e){var n,r,a,o=e.settings;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,(n=!(a=Jr(t).call(this))||"object"!==Wr(a)&&"function"!=typeof a?Qr(r):a).validate=En.applyRules(Br),n.state={settings:o,validation:{type:"",endpoint:"",name:"",region:"",path:""}},n.handleInput=n.handleInput.bind(Qr(n)),n.handleDBTypeChange=n.handleDBTypeChange.bind(Qr(n)),n.handleSubmit=n.handleSubmit.bind(Qr(n)),n.handleBlur=n.handleBlur.bind(Qr(n)),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$r(e,t)}(t,e),n=t,(r=[{key:"getFieldsToOmitDuringValidation",value:function(){switch(this.state.settings.type){case"dynamodb":return["name","path","endpoint"];case"mongodb":return["region","path"];case"boltdb":return["name","region","endpoint"];default:return[]}}},{key:"handleInput",value:function(e){var t=e.target,n=t.name,r=t.value,a=this.state.validation;a[n]&&(a=G()(a,Xr({},n,""))),this.setState((function(e){return{settings:G()(e.settings,Xr({},n,r)),validation:a}}))}},{key:"handleBlur",value:function(e){var t=e.target,n=t.name,r=t.value,a=this.validate(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xr(e,t,n[t])}))}return e}({},this.state.settings,Xr({},n,r)));this.setState((function(e){return{validation:G()(e.validation,Xr({},n,a))}}))}},{key:"handleDBTypeChange",value:function(e){this.setState((function(t){return{settings:G()(t.settings,{type:e}),validation:En.reset(t.validation)}}))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.validate("all",this.state.settings,{omit:this.getFieldsToOmitDuringValidation()});if(En.hasError(t))this.setState({validation:t});else{var n=this.state.settings;n=G()(n,{region:function(e){return"dynamodb"===n.type?e:""},name:function(e){return"mongodb"===n.type?e:""},path:function(e){return"boltdb"===n.type?e:""},endpoint:function(e){return"boltdb"!==n.type?e:""}}),this.props.onSubmit(n)}}},{key:"render",value:function(){var e=this.state,t=e.settings,n=e.validation,r=this.props,o=r.posting,i=r.error,c=t.type,l=t.name,s=t.region,u=t.endpoint,p=t.path;return a.a.createElement("div",{className:"iap-db-connection-section"},a.a.createElement("form",{className:"iap-db-form",onSubmit:this.handleSubmit},!!i&&a.a.createElement(H,{error:i}),a.a.createElement(_n,{label:"Database type"},a.a.createElement(Kr,{name:"type",value:c,disabled:o,onChange:this.handleDBTypeChange,placeholder:"Select Database Type"},a.a.createElement(qr,{value:"boltdb",title:"Bolt DB"}),a.a.createElement(qr,{value:"mongodb",title:"Mongo DB"}),a.a.createElement(qr,{value:"dynamodb",title:"Dynamo DB"}))),"dynamodb"===c&&a.a.createElement(_n,{label:"Region"},a.a.createElement(P,{name:"region",value:s,placeholder:"e.g. ap-northeast-3",onChange:this.handleInput,disabled:o,errorMessage:n.region,onBlur:this.handleBlur})),"mongodb"===c&&a.a.createElement(_n,{label:"Name"},a.a.createElement(P,{name:"name",value:l,autoComplete:"off",placeholder:"e.g. identifo",disabled:o,onChange:this.handleInput,errorMessage:n.name,onBlur:this.handleBlur})),"boltdb"===c&&a.a.createElement(_n,{label:"Path"},a.a.createElement(P,{name:"path",value:p,placeholder:"./db.db",onChange:this.handleInput,disabled:o,errorMessage:n.path,onBlur:this.handleBlur})),"boltdb"!==c&&a.a.createElement(_n,{label:"Endpoint"},a.a.createElement(P,{name:"endpoint",value:u,placeholder:"e.g. localhost:27017",disabled:o,onChange:this.handleInput,onBlur:this.handleBlur,errorMessage:n.endpoint})),a.a.createElement("footer",{className:"iap-db-form__footer"},a.a.createElement(N,{error:!o&&!!i,type:"submit",Icon:o?j:Sn,disabled:o||En.hasError(n)},"Save Changes"),a.a.createElement(N,{transparent:!0,disabled:o,onClick:this.props.onCancel},"Cancel"))))}}])&&Zr(n.prototype,r),o&&Zr(n,o),t}(r.Component);ea.propTypes={posting:w.a.bool.isRequired,settings:w.a.shape({type:w.a.string,endpoint:w.a.string,name:w.a.string,region:w.a.string}),onCancel:w.a.func,onSubmit:w.a.func.isRequired,error:w.a.instanceOf(Error)},ea.defaultProps={settings:{type:"",endpoint:"",name:"",region:""},onCancel:null,error:null};var ta=ea;function na(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ra(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var aa=function(e){var t=e.title,n=e.description,o=e.settings,i=e.progress,l=e.postSettings,s=Object(c.c)(),u=ra(Object(r.useState)(!1),2),p=u[0],f=u[1],m=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l(t);case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){na(o,r,a,i,c,"next",e)}function c(e){na(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return a.a.createElement("div",{className:"iap-settings-section"},a.a.createElement(_r,{title:t,description:n}),a.a.createElement("main",null,p&&a.a.createElement(ta,{posting:!!i,settings:o,onSubmit:m,onCancel:function(){s(Nr()),f(!1)}}),!p&&a.a.createElement(a.a.Fragment,null,a.a.createElement(Ur,{fetching:i,settings:o}),a.a.createElement(N,{disabled:i,Icon:i?j:br,onClick:function(){return f(!0)}},"Edit ".concat(t)))))};function oa(){return(oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ia=function(e){return a.a.createElement("svg",oa({viewBox:"0 -14 512 512"},e),a.a.createElement("path",{d:"m491.253906 0h-417.824218c-11.128907 0-20.234376 9.105469-20.234376 20.234375v63.070313h381.773438c11.128906 0 20.234375 9.105468 20.234375 20.234374v211.164063c28.730469 12.28125 52.648437 39.476563 55.847656 71.855469.28125-1.339844.433594-2.722656.433594-4.144532v-362.179687c0-11.128906-9.101563-20.234375-20.230469-20.234375zm0 0",fill:"#ddd"}),a.a.createElement("path",{d:"m438.054688 59.632812h-361.292969c-1.648438 0-2.980469-1.335937-2.980469-2.980468v-36.417969c0-11.128906 9.105469-20.234375 20.230469-20.234375h-20.582031c-11.128907 0-20.234376 9.105469-20.234376 20.234375v63.070313h381.773438c11.128906 0 20.234375 9.105468 20.234375 20.234374v211.164063c8.441406 3.609375 16.464844 8.515625 23.671875 14.453125v-228.707031c0-22.542969-18.277344-40.816407-40.820312-40.816407zm0 0",fill:"#c1c1c1"}),a.a.createElement("path",{d:"m336.308594 395.273438c0-48.371094 39.214844-87.585938 87.589844-87.585938 12.207031 0 23.832031 2.503906 34.390624 7.015625v-214.253906c0-11.128907-9.105468-20.234375-20.234374-20.234375h-417.820313c-11.128906.003906-20.234375 9.105468-20.234375 20.234375v362.179687c0 11.128906 9.105469 20.234375 20.234375 20.234375h403.660156c-48.371093 0-87.585937-39.214843-87.585937-87.589843zm0 0",fill:"#eee"}),a.a.createElement("path",{d:"m20.585938 462.628906v-362.179687c0-11.128907 9.101562-20.234375 20.230468-20.234375h-20.582031c-11.128906.003906-20.234375 9.105468-20.234375 20.234375v362.179687c0 11.128906 9.105469 20.234375 20.234375 20.234375h20.582031c-11.125 0-20.230468-9.105469-20.230468-20.234375zm0 0",fill:"#ddd"}),a.a.createElement("path",{d:"m491.253906 0h-417.824218c-11.128907 0-20.234376 9.105469-20.234376 20.234375v33.382813h458.289063v-33.382813c0-11.128906-9.105469-20.234375-20.230469-20.234375zm0 0",fill:"#3CA6F5"}),a.a.createElement("path",{d:"m106.816406 0h-33.386718c-11.128907 0-20.234376 9.105469-20.234376 20.234375v33.382813h53.621094zm0 0",fill:"#ed5454"}),a.a.createElement("path",{d:"m53.195312 53.617188h20.585938v-33.382813c0-11.128906 9.105469-20.234375 20.230469-20.234375h-20.582031c-11.128907 0-20.234376 9.105469-20.234376 20.234375zm0 0",fill:"#ea3f3f"}),a.a.createElement("g",{fill:"#ddd"},a.a.createElement("path",{d:"m389.921875 328.175781h-145.96875c-4.261719 0-7.71875-3.457031-7.71875-7.71875 0-4.265625 3.457031-7.71875 7.71875-7.71875h145.96875c4.265625 0 7.71875 3.453125 7.71875 7.71875 0 4.261719-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m354.875 362.773438h-110.921875c-4.261719 0-7.71875-3.457032-7.71875-7.71875 0-4.261719 3.457031-7.71875 7.71875-7.71875h110.921875c4.265625 0 7.71875 3.457031 7.71875 7.71875 0 4.261718-3.453125 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m344.269531 397.371094h-100.316406c-4.261719 0-7.71875-3.453125-7.71875-7.71875 0-4.261719 3.457031-7.71875 7.71875-7.71875h100.316406c4.265625 0 7.71875 3.457031 7.71875 7.71875 0 4.265625-3.453125 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m347.371094 431.972656h-103.417969c-4.261719 0-7.71875-3.457031-7.71875-7.71875 0-4.265625 3.457031-7.71875 7.71875-7.71875h103.417969c4.265625 0 7.722656 3.453125 7.722656 7.71875 0 4.261719-3.457031 7.71875-7.722656 7.71875zm0 0"}),a.a.createElement("path",{d:"m212.320312 328.175781h-165.578124c-4.265626 0-7.71875-3.457031-7.71875-7.71875 0-4.265625 3.453124-7.71875 7.71875-7.71875h165.578124c4.261719 0 7.71875 3.453125 7.71875 7.71875 0 4.261719-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m212.320312 362.773438h-165.578124c-4.265626 0-7.71875-3.457032-7.71875-7.71875 0-4.261719 3.453124-7.71875 7.71875-7.71875h165.578124c4.261719 0 7.71875 3.457031 7.71875 7.71875 0 4.261718-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m409.535156 293.574219h-165.582031c-4.261719 0-7.71875-3.453125-7.71875-7.71875 0-4.261719 3.457031-7.71875 7.71875-7.71875h165.582031c4.261719 0 7.71875 3.457031 7.71875 7.71875 0 4.265625-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m212.320312 293.574219h-165.578124c-4.265626 0-7.71875-3.453125-7.71875-7.71875 0-4.261719 3.453124-7.71875 7.71875-7.71875h165.578124c4.261719 0 7.71875 3.457031 7.71875 7.71875 0 4.265625-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m212.320312 431.972656h-165.578124c-4.265626 0-7.71875-3.457031-7.71875-7.71875 0-4.265625 3.453124-7.71875 7.71875-7.71875h165.578124c4.261719 0 7.71875 3.453125 7.71875 7.71875 0 4.261719-3.457031 7.71875-7.71875 7.71875zm0 0"}),a.a.createElement("path",{d:"m212.320312 397.371094h-165.578124c-4.265626 0-7.71875-3.453125-7.71875-7.71875 0-4.261719 3.453124-7.71875 7.71875-7.71875h165.578124c4.261719 0 7.71875 3.457031 7.71875 7.71875 0 4.265625-3.457031 7.71875-7.71875 7.71875zm0 0"})),a.a.createElement("path",{d:"m402.613281 178.445312h-348.953125c-3.820312 0-6.917968 3.097657-6.917968 6.917969v48.785157c0 3.820312 3.097656 6.917968 6.917968 6.917968h348.953125c3.824219 0 6.921875-3.097656 6.921875-6.917968v-48.785157c0-3.820312-3.097656-6.917969-6.921875-6.917969zm0 0",fill:"#3CA6F5"}),a.a.createElement("path",{d:"m67.324219 234.148438v-48.785157c0-3.820312 3.097656-6.917969 6.917969-6.917969h-20.582032c-3.820312 0-6.917968 3.097657-6.917968 6.917969v48.785157c0 3.820312 3.097656 6.917968 6.917968 6.917968h20.582032c-3.820313 0-6.917969-3.097656-6.917969-6.917968zm0 0",fill:"#2472b2"}),a.a.createElement("path",{d:"m423.894531 307.171875c-48.578125 0-88.101562 39.523437-88.101562 88.101563 0 48.582031 39.523437 88.105468 88.101562 88.105468 48.582031 0 88.105469-39.523437 88.105469-88.105468 0-48.578126-39.523438-88.101563-88.105469-88.101563zm0 0",fill:"#ed5454"}),a.a.createElement("path",{d:"m463.589844 411.410156-15.664063-15.664062c-1.125-1.125-1.125-2.945313 0-4.070313l15.664063-15.664062c6.25-6.246094 6.066406-16.492188-.542969-22.511719-6.195313-5.636719-15.839844-5.09375-21.761719.828125l-15.320312 15.324219c-1.144532 1.140625-2.992188 1.140625-4.136719 0l-15.320313-15.324219c-5.921874-5.917969-15.566406-6.464844-21.761718-.828125-6.609375 6.015625-6.792969 16.261719-.542969 22.511719l15.570313 15.570312c1.175781 1.175781 1.175781 3.085938 0 4.261719l-15.257813 15.257812c-5.921875 5.921876-6.46875 15.566407-.832031 21.761719 6.019531 6.613281 16.265625 6.792969 22.511718.542969l15.171876-15.171875c1.398437-1.398437 3.660156-1.398437 5.054687 0l14.863281 14.859375c5.921875 5.921875 15.566406 6.46875 21.761719.832031 6.609375-6.019531 6.792969-16.265625.542969-22.515625zm0 0",fill:"#eee"}),a.a.createElement("path",{d:"m356.378906 395.273438c0-45.09375 34.0625-82.367188 77.808594-87.480469-3.378906-.394531-6.808594-.621094-10.292969-.621094-48.578125 0-88.101562 39.523437-88.101562 88.101563 0 48.582031 39.523437 88.105468 88.101562 88.105468 3.484375 0 6.914063-.226562 10.292969-.621094-43.746094-5.117187-77.808594-42.386718-77.808594-87.484374zm0 0",fill:"#ea3f3f"}),a.a.createElement("path",{d:"m405.097656 411.101562 15.257813-15.257812c1.175781-1.179688 1.175781-3.085938 0-4.261719l-15.570313-15.570312c-6.25-6.25-6.066406-16.496094.546875-22.511719.042969-.039062.09375-.074219.136719-.113281-5.960938-5.015625-14.875-5.207031-20.722656.113281-6.609375 6.015625-6.792969 16.261719-.542969 22.511719l15.570313 15.570312c1.175781 1.175781 1.175781 3.082031 0 4.261719l-15.257813 15.257812c-5.921875 5.921876-6.464844 15.566407-.828125 21.761719 5.792969 6.367188 15.5 6.75 21.792969 1.191407-6.949219-6.160157-6.648438-16.6875-.382813-22.953126zm0 0",fill:"#ddd"}),a.a.createElement("path",{d:"m438.054688 80.21875h-417.820313c-11.128906 0-20.234375 9.101562-20.234375 20.230469v33.386719h458.289062v-33.386719c0-11.128907-9.105468-20.230469-20.234374-20.230469zm0 0",fill:"#3CA6F5"}),a.a.createElement("path",{d:"m53.617188 80.21875h-33.382813c-11.128906 0-20.234375 9.101562-20.234375 20.230469v33.386719h53.617188zm0 0",fill:"#d66363"}),a.a.createElement("path",{d:"m0 100.449219v33.386719h20.585938v-33.386719c0-11.128907 9.101562-20.234375 20.230468-20.234375h-20.582031c-2.78125 0-5.4375.570312-7.855469 1.597656-7.257812 3.082031-12.378906 10.292969-12.378906 18.636719zm0 0",fill:"#ea3f3f"}))};function ca(){return(ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var la=function(e){return a.a.createElement("svg",ca({viewBox:"0 0 76.398 76.398"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"M58.828,16.208l-3.686,4.735c7.944,6.182,11.908,16.191,10.345,26.123C63.121,62.112,48.954,72.432,33.908,70.06 C18.863,67.69,8.547,53.522,10.912,38.477c1.146-7.289,5.063-13.694,11.028-18.037c5.207-3.79,11.433-5.613,17.776-5.252 l-5.187,5.442l3.848,3.671l8.188-8.596l0.002,0.003l3.668-3.852L46.39,8.188l-0.002,0.001L37.795,0l-3.671,3.852l5.6,5.334 c-7.613-0.36-15.065,1.853-21.316,6.403c-7.26,5.286-12.027,13.083-13.423,21.956c-2.879,18.313,9.676,35.558,27.989,38.442 c1.763,0.277,3.514,0.411,5.245,0.411c16.254-0.001,30.591-11.85,33.195-28.4C73.317,35.911,68.494,23.73,58.828,16.208z"})))},sa=function(e){return a.a.createElement("div",{className:"iap-section-placeholder"},a.a.createElement("div",{className:"iap-section-placeholder__title"},"Database"),a.a.createElement(ia,{className:"iap-placeholder__fetch-failure-icon"}),a.a.createElement("p",{className:"iap-section-placeholder__msg"},"Could not load database settings"),a.a.createElement(N,{error:!0,Icon:e.fetching?j:la,onClick:e.onTryAgainClick,disabled:e.fetching},"Try again"))};sa.propTypes={fetching:w.a.bool,onTryAgainClick:w.a.func.isRequired},sa.defaultProps={fetching:!1};var ua=sa,pa=(n(571),a.a.forwardRef((function(e,t){var n=e.isActive,r=e.title,o=e.onClick,i=S()("iap-tabs-tab",{"iap-tabs-tab--active":n});return a.a.createElement("button",{className:i,onClick:o,ref:t},r)})));pa.propTypes={isActive:w.a.bool,title:w.a.string.isRequired,onClick:w.a.func},pa.defaultProps={onClick:function(){},isActive:!1};var fa=pa;function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function da(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var ha=function(e){var t=e.activeTabIndex,n=e.onChange,o=e.children,i=da(o).pop(),c=o.slice(0,-1);if(i.type===fa)throw Error("Last child should be tab content");var l=Object(r.useRef)([]),s=ma(Object(r.useState)([]),2),u=s[0],p=s[1];return Object(r.useEffect)((function(){l.current.length&&p(l.current.map((function(e){return(t=e.current)?t.offsetWidth:0;var t})))}),[l.current]),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"iap-tabs-tablist"},a.a.Children.map(c,(function(e,r){var o=a.a.createRef();return l.current.push(o),a.a.cloneElement(e,{ref:o,isActive:t===r,key:e.props.title,onClick:function(){return n(r)}})})),a.a.createElement("div",{className:"tab-underline",style:{width:u[t]||0,left:u.slice(0,t).reduce((function(e,t){return e+t}),0)}})),i)};ha.propTypes={activeTabIndex:w.a.number.isRequired,onChange:w.a.func.isRequired,children:w.a.node.isRequired};var va=ha;n(573);function ga(){return(ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ea(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ba(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ea(o,r,a,i,c,"next",e)}function c(e){Ea(o,r,a,i,c,"throw",e)}i(void 0)}))}}function ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _a=function(){var e=Object(c.c)(),t=ya(Object(r.useState)(0),2),n=t[0],o=t[1],i=Vn(),l=i.progress,s=i.setProgress,u=tr().notifySuccess,p=Object(c.d)((function(e){return e.database.settings.config})),f=Object(c.d)((function(e){return e.database.settings.error})),m=function(){var t=ba(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s(70),t.prev=1,t.next=4,e(function(){var e=Sr(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(Cr()),e.prev=1,e.next=4,r.database.fetchSettings();case 4:a=e.sent,t(Tr(a)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t(Or(new Error(be(e.t0))));case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n,r){return e.apply(this,arguments)}}());case 4:return t.prev=4,s(100),t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[1,,4,7]])})));return function(){return t.apply(this,arguments)}}();Object(r.useEffect)((function(){m()}),[]);var d=function(t){return function(){var n=ba(regeneratorRuntime.mark((function n(r){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s(70),a=G()(p,(c=r,(i=t)in(o={})?Object.defineProperty(o,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[i]=c,o)),n.prev=2,n.next=5,e(Rr(a));case 5:u({title:"Saved",text:"Storage settings have been successfully saved"});case 6:return n.prev=6,s(100),n.finish(6);case 9:case"end":return n.stop()}var o,i,c}),n,null,[[2,,6,9]])})));return function(e){return n.apply(this,arguments)}}()};if(f)return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement(ua,{fetching:l,onTryAgainClick:m}));var h,v=(h=n,[{title:"Application Storage",description:"Setup a connection to the database all the applications are stored in.",settings:p?p.app_storage:null,postSettings:d("app_storage")},{title:"User Storage",description:"Setup a connection to the database all the users are stored in.",settings:p?p.user_storage:null,postSettings:d("user_storage")},{title:"Token Storage",description:"Setup a connection to the database all the tokens are stored in.",settings:p?p.token_storage:null,postSettings:d("token_storage")},{title:"Verification Code Storage",description:"Setup a connection to the database all the verification codes are stored in.",settings:p?p.verification_code_storage:null,postSettings:d("verification_code_storage")},{title:"Token Blacklist Storage",description:"Setup a connection to the database all the blacklisted tokens are stored in.",settings:p?p.token_blacklist:null,postSettings:d("token_blacklist")}][h]);return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",{className:"iap-management-section__header"},a.a.createElement("p",{className:"iap-management-section__title"},"Storages")),a.a.createElement(va,{activeTabIndex:n,onChange:o},a.a.createElement(fa,{title:"Applications"}),a.a.createElement(fa,{title:"Users"}),a.a.createElement(fa,{title:"Tokens"}),a.a.createElement(fa,{title:"Verification Codes"}),a.a.createElement(fa,{title:"Blacklist"}),a.a.createElement(aa,ga({progress:!!l},v))))},wa=(n(575),{FETCH_APPLICATIONS_ATTEMPT:"FETCH_APPLICATIONS_ATTEMPT",FETCH_APPLICATIONS_SUCCESS:"FETCH_APPLICATIONS_SUCCESS",FETCH_APPLICATIONS_FAILURE:"FETCH_APPLICATIONS_FAILURE",POST_APPLICATION_ATTEMPT:"POST_APPLICATION_ATTEMPT",POST_APPLICATION_SUCCESS:"POST_APPLICATION_SUCCESS",POST_APPLICATION_FAILURE:"POST_APPLICATION_FAILURE",DELETE_APPLICATION_ATTEMPT:"DELETE_APPLICATION_ATTEMPT",DELETE_APPLICATION_SUCCESS:"DELETE_APPLICATION_SUCCESS",DELETE_APPLICATION_FAILURE:"DELETE_APPLICATION_FAILURE",ALTER_APPLICATION_ATTEMPT:"ALTER_APPLICATION_ATTEMPT",ALTER_APPLICATION_SUCCESS:"ALTER_APPLICATION_SUCCESS",ALTER_APPLICATION_FAILURE:"ALTER_APPLICATION_FAILURE",FETCH_APPLICATION_BY_ID_ATTEMPT:"FETCH_APPLICATION_BY_ID_ATTEMPT",FETCH_APPLICATION_BY_ID_SUCCESS:"FETCH_APPLICATION_BY_ID_SUCCESS",FETCH_APPLICATION_BY_ID_FAILURE:"FETCH_APPLICATION_BY_ID_FAILURE",RESET_APPLICATION_ERROR:"RESET_APPLICATION_ERROR"});function xa(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Sa(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){xa(o,r,a,i,c,"next",e)}function c(e){xa(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Ca=f()(wa.FETCH_APPLICATIONS_ATTEMPT),Ta=f()(wa.FETCH_APPLICATIONS_SUCCESS),Oa=f()(wa.FETCH_APPLICATIONS_FAILURE),Pa=f()(wa.POST_APPLICATION_ATTEMPT),ka=f()(wa.POST_APPLICATION_SUCCESS),Aa=f()(wa.POST_APPLICATION_FAILURE),Ra=f()(wa.DELETE_APPLICATION_ATTEMPT),Na=f()(wa.DELETE_APPLICATION_SUCCESS),Ia=f()(wa.DELETE_APPLICATION_FAILURE),ja=f()(wa.ALTER_APPLICATION_ATTEMPT),za=f()(wa.ALTER_APPLICATION_SUCCESS),Ma=f()(wa.ALTER_APPLICATION_FAILURE),Fa=f()(wa.FETCH_APPLICATION_BY_ID_ATTEMPT),La=f()(wa.FETCH_APPLICATION_BY_ID_SUCCESS),Ua=f()(wa.FETCH_APPLICATION_BY_ID_FAILURE),Ba=function(e){return function(){var t=Sa(regeneratorRuntime.mark((function t(n,r,a){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Fa()),t.prev=1,t.next=4,a.applications.fetchApplicationById(e);case 4:o=t.sent,n(La(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),n(Ua(be(t.t0)));case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n,r){return t.apply(this,arguments)}}()},Da=function(e){return function(){var t=Sa(regeneratorRuntime.mark((function t(n,r,a){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Pa()),t.prev=1,t.next=4,a.applications.postApplication(e);case 4:o=t.sent,n(ka(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),n(Aa(be(t.t0)));case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n,r){return t.apply(this,arguments)}}()},Ha=function(e){return function(){var t=Sa(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Ra()),t.prev=1,t.next=4,a.applications.deleteApplicationById(e);case 4:n(Na(e)),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),n(Ia(be(t.t0)));case 10:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r){return t.apply(this,arguments)}}()},Va=function(e,t){return function(){var n=Sa(regeneratorRuntime.mark((function n(r,a,o){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(ja()),n.prev=1,n.next=4,o.applications.alterApplication(e,t);case 4:i=n.sent,r(za(i)),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),r(Ma(be(n.t0)));case 11:case"end":return n.stop()}}),n,null,[[1,8]])})));return function(e,t,r){return n.apply(this,arguments)}}()},Ga=f()(wa.RESET_APPLICATION_ERROR);function Ka(){return(Ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ya=function(e){return a.a.createElement("svg",Ka({viewBox:"0 0 512 512"},e),a.a.createElement("circle",{fill:"#ddd",cx:"256",cy:"267",r:"245"}),a.a.createElement("path",{fill:"#3d3d3d",d:"M287.934,402.567c0-2.206,1.794-4,4-4h4.368c0.404,0,0.77-0.243,0.924-0.617 c0.155-0.374,0.069-0.804-0.217-1.09l-47.512-47.512c-2.632-2.632-4.082-6.148-4.082-9.899c0-3.751,1.45-7.267,4.082-9.899 l1.985-1.985c2.632-2.632,6.148-4.082,9.899-4.082c3.752,0,7.267,1.45,9.899,4.082l12.454,12.454 c0.191,0.191,0.447,0.293,0.707,0.293c0.129,0,0.259-0.024,0.383-0.076c0.374-0.154,0.617-0.52,0.617-0.924V237.743 c0-7.72,6.28-14,14-14h0.416c4.22,0,8,1.885,10.569,4.847V10c0-5.5-4.5-10-10-10H88.701c-5.5,0-10,4.5-10,10v389.454 c0,5.5,4.5,10,10,10h199.232v-6.887H287.934z"}),a.a.createElement("path",{fill:"#C3DDF4",d:"M245.415,339.449c0-3.751,1.45-7.267,4.082-9.899l1.985-1.985c2.632-2.632,6.148-4.082,9.899-4.082 c3.752,0,7.267,1.45,9.899,4.082l12.454,12.454c0.191,0.191,0.447,0.293,0.707,0.293c0.129,0,0.259-0.024,0.383-0.076 c0.374-0.154,0.617-0.52,0.617-0.924V237.743c0-6.662,4.682-12.242,10.925-13.648V43.151c0-2.902-2.375-5.277-5.277-5.277H98.039 c-2.902,0-5.276,2.375-5.276,5.277v296.905c0,2.902,2.374,5.275,5.276,5.275h148.672 C245.872,343.514,245.415,341.521,245.415,339.449z"}),a.a.createElement("path",{fill:"#AEC1ED",d:"M112.605,340.057V43.151c0-2.902,2.374-5.277,5.276-5.277H98.039c-2.902,0-5.276,2.375-5.276,5.277 v296.905c0,2.902,2.374,5.275,5.276,5.275h19.842C114.979,345.332,112.605,342.959,112.605,340.057z"}),a.a.createElement("g",null,a.a.createElement("circle",{fill:"#1A2B63",cx:"194.56",cy:"374.02",r:"18.561"}),a.a.createElement("path",{fill:"#1A2B63",d:"M234.873,26.342h-57.368c-4.142,0-7.5-3.357-7.5-7.5s3.358-7.5,7.5-7.5h57.368 c4.142,0,7.5,3.357,7.5,7.5S239.015,26.342,234.873,26.342z"}),a.a.createElement("circle",{fill:"#1A2B63",cx:"154.25",cy:"18.842",r:"8.436"})),a.a.createElement("path",{fill:"#FF9518",d:"M291.089,37.874H98.039c-2.902,0-5.276,2.375-5.276,5.277v23.42h203.604v-23.42 C296.366,40.249,293.991,37.874,291.089,37.874z"}),a.a.createElement("path",{fill:"#EF8318",d:"M117.881,37.874H98.039c-2.902,0-5.276,2.375-5.276,5.277v23.42h19.842v-23.42 C112.605,40.249,114.979,37.874,117.881,37.874z"}),a.a.createElement("path",{fill:"#445EA0",d:"M280.765,223.186c0,5.5-4.5,10-10,10h-152.4c-5.5,0-10-4.5-10-10v-48.594c0-5.5,4.5-10,10-10h152.4 c5.5,0,10,4.5,10,10V223.186z"}),a.a.createElement("path",{fill:"#EEF6FF",d:"M245.415,339.449c0-3.751,1.45-7.267,4.082-9.899l1.985-1.985c2.632-2.632,6.148-4.082,9.899-4.082 c3.752,0,7.267,1.45,9.899,4.082l12.454,12.454c0.191,0.191,0.447,0.293,0.707,0.293c0.129,0,0.259-0.024,0.383-0.076 c0.374-0.154,0.617-0.52,0.617-0.924v-90.711H92.763v91.456c0,2.902,2.374,5.275,5.276,5.275h148.672 C245.872,343.514,245.415,341.521,245.415,339.449z"}),a.a.createElement("path",{fill:"#D9EAFC",d:"M112.605,340.057v-91.456H92.763v91.456c0,2.902,2.374,5.275,5.276,5.275h19.842 C114.979,345.332,112.605,342.959,112.605,340.057z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#5DC1D8",d:"M210.444,276.808H130.68c-4.142,0-7.5-3.357-7.5-7.5s3.358-7.5,7.5-7.5h79.765 c4.142,0,7.5,3.357,7.5,7.5C217.944,273.45,214.586,276.808,210.444,276.808z"}),a.a.createElement("path",{fill:"#5DC1D8",d:"M210.444,301.673H130.68c-4.142,0-7.5-3.358-7.5-7.5c0-4.143,3.358-7.5,7.5-7.5h79.765 c4.142,0,7.5,3.357,7.5,7.5C217.944,298.315,214.586,301.673,210.444,301.673z"}),a.a.createElement("path",{fill:"#5DC1D8",d:"M170.721,326.537H130.68c-4.142,0-7.5-3.357-7.5-7.5s3.358-7.5,7.5-7.5h40.041 c4.142,0,7.5,3.357,7.5,7.5S174.863,326.537,170.721,326.537z"})),a.a.createElement("path",{fill:"#FF9518",d:"M248.856,319.558c-1.532,0-3.078-0.469-4.411-1.439c-3.348-2.439-4.084-7.131-1.645-10.479 l9.815-13.468l-9.813-13.467c-2.439-3.348-1.703-8.039,1.645-10.479c3.349-2.439,8.039-1.702,10.479,1.645l13.031,17.884 c1.918,2.633,1.918,6.202,0,8.834l-13.033,17.885C253.456,318.488,251.172,319.557,248.856,319.558z"}),a.a.createElement("path",{fill:"#EF8318",d:"M297.073,439.522v69.032c36.639-6.186,70.513-20.496,99.703-41.026v-28.006H297.073z"}),a.a.createElement("path",{fill:"#DB722C",d:"M297.073,439.522v69.032c6.712-1.133,13.328-2.545,19.843-4.212v-64.82H297.073z"}),a.a.createElement("path",{fill:"#FFE2B8",d:"M398.507,398.567v-103.93c0-8.25-6.75-15-15-15h-0.416c-6.12,0-11.407,3.719-13.733,9.004 c-2.326-5.285-7.613-9.004-13.733-9.004h-0.417c-6.12,0-11.407,3.719-13.733,9.004c-2.326-5.285-7.613-9.004-13.733-9.004h-0.416 c-5.182,0-9.77,2.665-12.467,6.69v-48.584c0-8.25-6.75-15-15-15h-0.416c-8.25,0-15,6.75-15,15v101.568l-12.454-12.454 c-5.833-5.833-15.379-5.833-21.213,0l-1.984,1.985c-5.834,5.833-5.834,15.38,0,21.213l48.512,48.512H398.507z"}),a.a.createElement("path",{fill:"#FFC987",d:"M317.145,398.567l-48.512-48.512c-5.834-5.833-5.834-15.38,0-21.213l1.984-1.985 c0.22-0.22,0.455-0.415,0.685-0.619c-5.873-5.19-14.915-4.994-20.528,0.619l-1.984,1.985c-5.834,5.833-5.834,15.38,0,21.213 l48.512,48.512H317.145z"}),a.a.createElement("path",{fill:"#FF9518",d:"M406.916,435.522c0,2.75-2.25,5-5,5H291.934c-2.75,0-5-2.25-5-5v-32.954c0-2.75,2.25-5,5-5h109.982 c2.75,0,5,2.25,5,5V435.522z"}),a.a.createElement("path",{fill:"#EF8318",d:"M306.776,435.522v-32.954c0-2.75,2.25-5,5-5h-19.843c-2.75,0-5,2.25-5,5v32.954c0,2.75,2.25,5,5,5 h19.843C309.026,440.522,306.776,438.272,306.776,435.522z"}),a.a.createElement("circle",{fill:"#DB722C",cx:"384.95",cy:"419.05",r:"9.294"}),a.a.createElement("path",{fill:"#FE3745",d:"M478.706,240.043c0,2.75-2.25,5-5,5H329.92c-2.75,0-5-2.25-5-5V136.306c0-2.75,2.25-5,5-5h143.786 c2.75,0,5,2.25,5,5V240.043z"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M376.698,165.29c0-5.5,3.897-7.75,8.66-5l39.635,22.883c4.763,2.75,4.763,7.25,0,10l-39.635,22.884 c-4.763,2.75-8.66,0.5-8.66-5V165.29z"}),a.a.createElement("path",{fill:"#FFAF10",d:"M466.672,78.199c-12.404,0-22.496-10.092-22.496-22.496c0-2.059,0.283-4.052,0.804-5.947H329.92 c-2.75,0-5,2.25-5,5v59.315c0,2.75,2.25,5,5,5h143.786c2.75,0,5-2.25,5-5V74.695C475.223,76.91,471.097,78.199,466.672,78.199z"}),a.a.createElement("path",{fill:"#B7092B",d:"M344.763,240.043V136.306c0-2.75,2.25-5,5-5H329.92c-2.75,0-5,2.25-5,5v103.737c0,2.75,2.25,5,5,5 h19.843C347.013,245.043,344.763,242.793,344.763,240.043z"}),a.a.createElement("path",{fill:"#EF9614",d:"M344.763,114.071V54.756c0-2.75,2.25-5,5-5H329.92c-2.75,0-5,2.25-5,5v59.315c0,2.75,2.25,5,5,5 h19.843C347.013,119.071,344.763,116.821,344.763,114.071z"}),a.a.createElement("circle",{fill:"#B7092B",cx:"466.67",cy:"55.703",r:"23.496"}),a.a.createElement("path",{fill:"#EEF6FF",d:"M467.385,68.534c-2.762,0-5-2.238-5-5V52.66c-2.06-0.618-3.561-2.529-3.561-4.79c0-2.762,2.238-5,5-5 h3.561c2.762,0,5,2.238,5,5v15.664C472.385,66.296,470.147,68.534,467.385,68.534z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#DB722C",d:"M420.718,80.223h-71.596c-4.143,0-7.5-3.358-7.5-7.5c0-4.143,3.357-7.5,7.5-7.5h71.596 c4.143,0,7.5,3.357,7.5,7.5C428.218,76.865,424.86,80.223,420.718,80.223z"}),a.a.createElement("path",{fill:"#DB722C",d:"M442.363,103.414h-93.241c-4.143,0-7.5-3.357-7.5-7.5s3.357-7.5,7.5-7.5h93.241 c4.143,0,7.5,3.357,7.5,7.5S446.506,103.414,442.363,103.414z"})),a.a.createElement("circle",{fill:"#EF8318",cx:"194.56",cy:"116",r:"37.33"}),a.a.createElement("circle",{fill:"#FF9518",cx:"194.56",cy:"116",r:"30"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M206.318,124.521h-6.663v-1.604c5.68-2.079,9.742-7.518,9.742-13.917 c0-8.191-6.642-14.833-14.833-14.833c-8.192,0-14.833,6.642-14.833,14.833c0,6.4,4.062,11.838,9.742,13.917v1.604h-6.663 c-2.661,0-4.837,2.178-4.837,4.839v11.633c4.753,3.161,10.455,5.007,16.591,5.007s11.839-1.846,16.591-5.007v-11.635 C211.156,126.698,208.979,124.521,206.318,124.521z"}),a.a.createElement("path",{fill:"#FF9518",d:"M161,213.389c0,2.75-2.25,5-5,5h-29c-2.75,0-5-2.25-5-5v-29c0-2.75,2.25-5,5-5h29c2.75,0,5,2.25,5,5 V213.389z"}),a.a.createElement("path",{fill:"#EF8318",d:"M134.509,213.389v-29c0-2.75,2.25-5,5-5H127c-2.75,0-5,2.25-5,5v29c0,2.75,2.25,5,5,5h12.509 C136.759,218.389,134.509,216.139,134.509,213.389z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#1A2B63",d:"M227.666,198.889c0-2.823,0.963-5.419,2.565-7.5h-53.565c-4.142,0-7.5,3.357-7.5,7.5 s3.358,7.5,7.5,7.5h53.565C228.63,204.308,227.666,201.712,227.666,198.889z"}),a.a.createElement("path",{fill:"#1A2B63",d:"M262,191.389h-12.232c1.602,2.081,2.565,4.677,2.565,7.5s-0.963,5.419-2.565,7.5H262 c4.143,0,7.5-3.357,7.5-7.5S266.143,191.389,262,191.389z"})),a.a.createElement("circle",{fill:"#FF9518",cx:"240",cy:"198.89",r:"13.333"}))};function qa(){return(qa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Wa=function(e){return a.a.createElement("svg",qa({viewBox:"0 0 512.001 512.001"},e),a.a.createElement("circle",{fill:"#ddd",cx:"261.81",cy:"256.001",r:"245"}),a.a.createElement("path",{fill:"#BBCAF0",d:"M505.249,132.459H266.025v92.558c0,2.75-2.25,5-5,5h-32.521v90.084c0,3.714,3.039,6.751,6.75,6.751 h269.995c3.713,0,6.751-3.038,6.751-6.751V139.209C512,135.496,508.962,132.459,505.249,132.459z"}),a.a.createElement("path",{fill:"#5DC1D8",d:"M248.347,320.101v-90.085h-19.842v90.085c0,3.714,3.039,6.751,6.75,6.751h19.842 C251.386,326.853,248.347,323.815,248.347,320.101z"}),a.a.createElement("path",{fill:"#445EA0",d:"M447.251,238.15c-2.393-2.838-6.308-2.838-8.701,0l-35.09,41.635c-2.394,2.838-6.309,2.838-8.701,0 l-66.237-78.579c-2.393-2.841-6.308-2.841-8.701,0l-91.316,108.331v10.564c0,3.714,3.039,6.751,6.75,6.751H505.25 c3.713,0,6.751-3.038,6.751-6.751v-5.138L447.251,238.15z"}),a.a.createElement("circle",{fill:"#FFFFFF",cx:"464.7",cy:"182.691",r:"25.312"}),a.a.createElement("path",{fill:"#D9EAFC",d:"M453.376,182.689c0-11.554,7.743-21.292,18.32-24.327c-2.222-0.637-4.565-0.986-6.992-0.986 c-13.978,0-25.31,11.332-25.31,25.313s11.332,25.313,25.31,25.313c2.427,0,4.771-0.349,6.992-0.986 C461.119,203.981,453.376,194.244,453.376,182.689z"}),a.a.createElement("path",{fill:"#FE3745",d:"M267.025,226.017c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V29.999c0-2.75,2.25-5,5-5h257.025 c2.75,0,5,2.25,5,5V226.017z"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M82.496,79.1c0-5.5,3.897-7.75,8.66-5l84.713,48.908c4.763,2.75,4.763,7.25,0,10l-84.713,48.909 c-4.763,2.75-8.66,0.5-8.66-5V79.1z"}),a.a.createElement("path",{fill:"#D9EAFC",d:"M102.338,80.556L91.156,74.1c-4.763-2.75-8.66-0.5-8.66,5v97.817c0,5.5,3.897,7.75,8.66,5 l11.182-6.456C102.338,175.461,102.338,80.556,102.338,80.556z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#B7092B",d:"M251.507,63.511c0,1.65-1.35,3-3,3h-20.999c-1.65,0-3-1.35-3-3V42.513c0-1.65,1.35-3,3-3h20.999 c1.65,0,3,1.35,3,3L251.507,63.511L251.507,63.511z"}),a.a.createElement("path",{fill:"#B7092B",d:"M251.507,101.009c0,1.65-1.35,3-3,3h-20.999c-1.65,0-3-1.35-3-3V80.011c0-1.65,1.35-3,3-3h20.999 c1.65,0,3,1.35,3,3L251.507,101.009L251.507,101.009z"}),a.a.createElement("path",{fill:"#B7092B",d:"M251.507,138.507c0,1.65-1.35,3-3,3h-20.999c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.999 c1.65,0,3,1.35,3,3L251.507,138.507L251.507,138.507z"}),a.a.createElement("path",{fill:"#B7092B",d:"M251.507,176.005c0,1.65-1.35,3-3,3h-20.999c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.999 c1.65,0,3,1.35,3,3L251.507,176.005L251.507,176.005z"}),a.a.createElement("path",{fill:"#B7092B",d:"M251.507,213.503c0,1.65-1.35,3-3,3h-20.999c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.999 c1.65,0,3,1.35,3,3L251.507,213.503L251.507,213.503z"}),a.a.createElement("path",{fill:"#B7092B",d:"M42.517,63.511c0,1.65-1.35,3-3,3H18.519c-1.65,0-3-1.35-3-3V42.513c0-1.65,1.35-3,3-3h20.998 c1.65,0,3,1.35,3,3V63.511z"}),a.a.createElement("path",{fill:"#B7092B",d:"M42.517,101.009c0,1.65-1.35,3-3,3H18.519c-1.65,0-3-1.35-3-3V80.011c0-1.65,1.35-3,3-3h20.998 c1.65,0,3,1.35,3,3V101.009z"}),a.a.createElement("path",{fill:"#B7092B",d:"M42.517,138.507c0,1.65-1.35,3-3,3H18.519c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.998 c1.65,0,3,1.35,3,3V138.507z"}),a.a.createElement("path",{dfill:"#B7092B;",d:"M42.517,176.005c0,1.65-1.35,3-3,3H18.519c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.998 c1.65,0,3,1.35,3,3V176.005z"}),a.a.createElement("path",{fill:"#B7092B",d:"M42.517,213.503c0,1.65-1.35,3-3,3H18.519c-1.65,0-3-1.35-3-3v-20.998c0-1.65,1.35-3,3-3h20.998 c1.65,0,3,1.35,3,3V213.503z"})),a.a.createElement("path",{fill:"#52BBEF",d:"M205.946,254.956H32.04c-2.75,0-5,2.25-5,5v66.246c6.924,23.19,17.188,44.936,30.237,64.685h63.079 l40.777,40.777c1.945,1.945,3.536,1.286,3.536-1.464v-39.313h41.278c2.75,0,5-2.25,5-5V259.956 C210.946,257.206,208.696,254.956,205.946,254.956z"}),a.a.createElement("path",{fill:"#1E99D6",d:"M46.882,259.956c0-2.75,2.25-5,5-5H32.04c-2.75,0-5,2.25-5,5v66.246 c4.963,16.623,11.651,32.499,19.842,47.434V259.956z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#FFFFFF",d:"M168.621,304.667H69.363c-4.142,0-7.5-3.358-7.5-7.5s3.358-7.5,7.5-7.5h99.258 c4.142,0,7.5,3.358,7.5,7.5C176.121,301.309,172.763,304.667,168.621,304.667z"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M168.621,330.779H69.363c-4.142,0-7.5-3.358-7.5-7.5s3.358-7.5,7.5-7.5h99.258 c4.142,0,7.5,3.358,7.5,7.5S172.763,330.779,168.621,330.779z"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M119.19,356.89H69.363c-4.142,0-7.5-3.358-7.5-7.5s3.358-7.5,7.5-7.5h49.827 c4.142,0,7.5,3.358,7.5,7.5S123.332,356.89,119.19,356.89z"})),a.a.createElement("path",{fill:"#EF8318",d:"M391.61,352.558H234.005c-2.75,0-5,2.25-5,5v119.313c0,2.75,2.25,5,5,5H356.88 c13.952-5.879,27.237-13.024,39.73-21.272v-103.04C396.61,354.808,394.36,352.558,391.61,352.558z"}),a.a.createElement("path",{fill:"#DB722C",d:"M248.847,476.87V357.558c0-2.75,2.25-5,5-5h-19.842c-2.75,0-5,2.25-5,5v119.313c0,2.75,2.25,5,5,5 h19.842C251.097,481.87,248.847,479.62,248.847,476.87z"}),a.a.createElement("path",{fill:"#FFFFFF",d:"M285.025,390.238c0-5.5,3.897-7.75,8.66-5l46.724,26.976c4.763,2.75,4.763,7.25,0,10l-46.724,26.976 c-4.763,2.75-8.66,0.5-8.66-5V390.238z"}))},Xa=function(e){var t=e.data,n=e.config,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=["ios","android"];return t.includes(e.toLowerCase())?Ya:Wa}(t.type);return a.a.createElement(ht,{key:t.id,className:"iap-application-row"},a.a.createElement("div",{style:{width:n.icon.width}},a.a.createElement("div",{className:"iap-application-row__icon-wrapper"},a.a.createElement(r,{className:"iap-application-row__icon"}))),a.a.createElement("div",{style:{width:n.type.width}},a.a.createElement("p",{className:"iap-application-row__type"},t.type),a.a.createElement("p",{className:"iap-application-row__name"},t.name)),a.a.createElement("div",{style:{width:n.clientId.width}},a.a.createElement("p",{className:"iap-application-row__clientid"},t.id)),a.a.createElement("div",{style:{width:n.tfaStatus.width}},a.a.createElement("p",{className:"iap-application-row__tfa-status"},t.tfa_status||"disabled")),a.a.createElement("div",{style:{width:n.settings.width}}))};Xa.propTypes={data:w.a.shape({id:w.a.string,clientId:w.a.string}).isRequired,config:w.a.shape({icon:w.a.object,type:w.a.object,clientId:w.a.object,settings:w.a.object}).isRequired};var Za=Xa,Ja=function(e){var t=e.config;return a.a.createElement(gt,null,Object.keys(t).map((function(e){return a.a.createElement("div",{key:e,style:{width:t[e].width}},t[e].title)})))};Ja.propTypes={config:w.a.shape().isRequired};var Qa=Ja,$a=function(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(ht,null,a.a.createElement("div",{className:"iap-apps-row__fake-icon"}),a.a.createElement("div",{className:"iap-apps-row__fake-type"}),a.a.createElement("div",{className:"iap-apps-row__fake-client-id"})),a.a.createElement(ht,null,a.a.createElement("div",{className:"iap-apps-row__fake-icon"}),a.a.createElement("div",{className:"iap-apps-row__fake-type"}),a.a.createElement("div",{className:"iap-apps-row__fake-client-id"})))},eo=(n(577),{icon:{title:"",width:"15%"},type:{title:"Application",width:"30%"},clientId:{title:"Client ID",width:"37%"},tfaStatus:{title:"TFA",width:"18%"},settings:{title:"",width:"10%"}}),to=function(e){return a.a.createElement(Z.a,{className:"rrdl",key:e.id,to:"/management/applications/".concat(e.id)},a.a.createElement(Za,{data:e,config:eo}))},no=function(e){var t=e.applications,n=e.loading;return a.a.createElement("div",{className:"iap-applications-list"},a.a.createElement(Qa,{config:eo}),a.a.createElement("main",null,n&&a.a.createElement($a,null),!n&&t.map(to),!t.length&&!n&&a.a.createElement(_t,{text:"No Applications Found"})))};no.propTypes={applications:w.a.arrayOf(w.a.shape()).isRequired,loading:w.a.bool},no.defaultProps={loading:!1};var ro=no;function ao(){return(ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oo=function(e){var t=ao({},e);return a.a.createElement("svg",ao({viewBox:"0 0 512 512"},t),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M477.858,8.533H34.142C15.317,8.533,0,23.851,0,42.675v281.591c0,4.71,3.823,8.533,8.533,8.533h494.933    c4.71,0,8.533-3.823,8.533-8.533V42.675C512,23.851,496.683,8.533,477.858,8.533z M494.933,315.733H17.067V42.675    c0-9.421,7.663-17.075,17.075-17.075h443.716c9.412,0,17.075,7.654,17.075,17.075V315.733z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M503.467,315.733H8.533c-4.71,0-8.533,3.823-8.533,8.533v42.658c0,18.825,15.317,34.142,34.142,34.142h443.716    c18.825,0,34.142-15.317,34.142-34.142v-42.658C512,319.556,508.177,315.733,503.467,315.733z M494.933,366.925    c0,9.421-7.663,17.075-17.075,17.075H34.142c-9.412,0-17.075-7.654-17.075-17.075V332.8h477.867V366.925z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M281.6,349.867h-51.2c-4.71,0-8.533,3.823-8.533,8.533s3.823,8.533,8.533,8.533h51.2c4.71,0,8.533-3.823,8.533-8.533    S286.31,349.867,281.6,349.867z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M469.333,42.667H42.667c-4.71,0-8.533,3.823-8.533,8.533v273.067c0,4.71,3.823,8.533,8.533,8.533h426.667    c4.71,0,8.533-3.823,8.533-8.533V51.2C477.867,46.49,474.044,42.667,469.333,42.667z M460.8,315.733H51.2v-256h409.6V315.733z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M366.933,452.267H145.067c-14.114,0-25.6,11.486-25.6,25.6s11.486,25.6,25.6,25.6h221.867c14.114,0,25.6-11.486,25.6-25.6    S381.047,452.267,366.933,452.267z M366.933,486.4H145.067c-4.71,0-8.533-3.831-8.533-8.533s3.823-8.533,8.533-8.533h221.867    c4.71,0,8.533,3.831,8.533,8.533S371.644,486.4,366.933,486.4z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M349.867,452.267c-28.314,0-42.667-20.096-42.667-59.733c0-4.71-3.823-8.533-8.533-8.533h-85.333    c-4.71,0-8.533,3.823-8.533,8.533c0,39.637-14.353,59.733-42.667,59.733c-4.71,0-8.533,3.823-8.533,8.533    c0,4.71,3.823,8.533,8.533,8.533h187.733c4.71,0,8.533-3.823,8.533-8.533C358.4,456.09,354.577,452.267,349.867,452.267z     M203.699,452.267c10.505-11.639,16.691-28.971,17.937-51.2h68.736c1.237,22.229,7.424,39.561,17.937,51.2H203.699z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M407.757,259.959l-20.599-20.599l11.46-11.46c2.125-2.125,2.978-5.214,2.244-8.124c-0.734-2.91-2.944-5.214-5.82-6.084    l-85.333-25.6c-3.012-0.905-6.263-0.077-8.482,2.142c-2.227,2.219-3.046,5.478-2.142,8.482l25.6,85.333    c0.862,2.884,3.174,5.094,6.084,5.828c2.901,0.717,5.999-0.12,8.124-2.244l12.066-12.075l20.599,20.608    c1.596,1.604,3.772,2.5,6.033,2.5s4.437-0.896,6.033-2.5l24.132-24.141C411.093,268.689,411.093,263.296,407.757,259.959z     M377.591,278.067l-18.756-18.765c-2.176-2.176-5.026-3.26-7.876-3.26c-2.859,0-5.709,1.092-7.876,3.251l-6.161,6.161    l-16.939-56.465l56.465,16.939l-6.605,6.605c-1.818,1.826-2.816,4.25-2.816,6.827c0,2.586,1.007,5.026,2.833,6.835l19.797,19.797    L377.591,278.067z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M358.4,76.8H119.467c-4.71,0-8.533,3.823-8.533,8.533V128c0,4.71,3.823,8.533,8.533,8.533H358.4    c4.71,0,8.533-3.823,8.533-8.533V85.333C366.933,80.623,363.11,76.8,358.4,76.8z M349.867,119.467H128v-25.6h221.867V119.467z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M221.867,170.667H153.6c-4.71,0-8.533,3.823-8.533,8.533v34.133c0,4.71,3.823,8.533,8.533,8.533h68.267    c4.71,0,8.533-3.823,8.533-8.533V179.2C230.4,174.49,226.577,170.667,221.867,170.667z M213.333,204.8h-51.2v-17.067h51.2V204.8z"}))),a.a.createElement("g",null,a.a.createElement("g",null,a.a.createElement("path",{d:"M358.4,76.8H119.467c-4.71,0-8.533,3.823-8.533,8.533v162.133c0,4.71,3.823,8.533,8.533,8.533h203.145    c2.705,0,5.239-1.271,6.844-3.439c1.613-2.167,2.108-4.966,1.331-7.552l-10.803-36.019l35.968,10.795    c2.586,0.777,5.385,0.282,7.543-1.331c2.167-1.604,3.439-4.147,3.439-6.844V85.333C366.933,80.623,363.11,76.8,358.4,76.8z     M349.867,200.141L309.7,188.092c-3.012-0.905-6.263-0.077-8.482,2.142c-2.227,2.227-3.046,5.478-2.142,8.491l12.066,40.209H128    V93.867h221.867V200.141z"}))))},io=function(e){return a.a.createElement("div",{className:"iap-section-placeholder"},a.a.createElement("h2",{className:"iap-section-placeholder__title"},"Applications"),a.a.createElement(oo,{className:"iap-section-placeholder__icon"}),a.a.createElement("p",{className:"iap-section-placeholder__msg"},"No applications have been added so far."),a.a.createElement(N,{Icon:st,onClick:e.onCreateApplicationClick},"Create application"))};io.propTypes={onCreateApplicationClick:w.a.func.isRequired};var co=io;function lo(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var so=function(e){var t=e.history,n=Object(c.c)(),r=Vn(),o=r.progress,i=r.setProgress,l=Object(c.d)((function(e){return e.applications.list})),s=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(70),e.next=3,n(function(){var e=Sa(regeneratorRuntime.mark((function e(t,n,r){var a,o,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(Ca()),e.prev=1,e.next=4,r.applications.fetchApplications();case 4:a=e.sent,o=a.apps,i=void 0===o?[]:o,c=a.total,t(Ta({apps:i,total:void 0===c?0:c})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t(Oa(be(e.t0)));case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:i(100);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){lo(o,r,a,i,c,"next",e)}function c(e){lo(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();a.a.useEffect((function(){s()}),[]);var u=function(){t.push("/management/applications/new")};return l.length||o?a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Applications",a.a.createElement(N,{Icon:st,onClick:u},"Create application")),a.a.createElement("p",{className:"iap-management-section__description"},"Setup an iOS, Android, Web, or Desktop application to use Identifo."),a.a.createElement(ro,{loading:!!o,applications:l})):a.a.createElement("section",{className:"iap-management-section"},a.a.createElement(co,{onCreateApplicationClick:u}))},uo={name:[Object(En.notEmpty)("Application name should not be empty")],type:[Object(En.notEmpty)("Application type should be selected")],redirectUrls:[function(e){return function(t){return t?Array.isArray(t)?t.some((function(t){return!!Object(En.urlFormat)(e)(t)}))?e:"":Object(En.urlFormat)(e)(t):""}}("Url format is invalid. Make sure you include scheme.")],tokenLifespan:[function(e){return function(t){return t?Number(t)?Number.isNaN(Number(t))?e:"":e:""}}("Token lifespan can only contain digits")]};function po(){return(po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var fo=function(e){return a.a.createElement("svg",po({viewBox:"0 0 59.2 59.2"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"M51.062,21.561c-5.759-5.759-13.416-8.931-21.561-8.931S13.7,15.801,7.941,21.561L0,29.501l8.138,8.138 c5.759,5.759,13.416,8.931,21.561,8.931s15.802-3.171,21.561-8.931l7.941-7.941L51.062,21.561z M49.845,36.225 c-5.381,5.381-12.536,8.345-20.146,8.345s-14.765-2.963-20.146-8.345l-6.724-6.724l6.527-6.527 c5.381-5.381,12.536-8.345,20.146-8.345s14.765,2.963,20.146,8.345l6.724,6.724L49.845,36.225z"}),a.a.createElement("path",{d:"M29.572,16.57c-7.168,0-13,5.832-13,13s5.832,13,13,13s13-5.832,13-13S36.741,16.57,29.572,16.57z M29.572,24.57 c-2.757,0-5,2.243-5,5c0,0.552-0.448,1-1,1s-1-0.448-1-1c0-3.86,3.14-7,7-7c0.552,0,1,0.448,1,1S30.125,24.57,29.572,24.57z"})))};function mo(){return(mo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ho=function(e){return a.a.createElement("svg",mo({viewBox:"0 0 59.2 59.2"},e),a.a.createElement("g",null,a.a.createElement("path",{d:"M51.062,21.841c-2.1-2.1-4.454-3.851-6.99-5.235l9.549-9.549c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0 L42.186,15.663c-3.93-1.8-8.233-2.753-12.685-2.753c-8.145,0-15.802,3.171-21.561,8.931L0,29.781l8.138,8.138 c2.023,2.023,4.284,3.719,6.714,5.078l-9.145,9.145c-0.391,0.391-0.391,1.023,0,1.414c0.195,0.195,0.451,0.293,0.707,0.293 s0.512-0.098,0.707-0.293l9.593-9.593c4.01,1.889,8.42,2.886,12.984,2.886c8.145,0,15.802-3.171,21.561-8.931l7.941-7.941 L51.062,21.841z M16.321,41.529c-2.461-1.312-4.741-2.996-6.769-5.024l-6.724-6.724l6.527-6.527 c5.381-5.381,12.536-8.345,20.146-8.345c3.903,0,7.683,0.784,11.169,2.27L16.321,41.529z M49.845,36.505 c-5.381,5.381-12.536,8.345-20.146,8.345c-4.015,0-7.9-0.833-11.468-2.402l24.361-24.361c2.57,1.333,4.951,3.062,7.056,5.168 l6.724,6.724L49.845,36.505z"}),a.a.createElement("path",{d:"M29.572,16.85c-7.168,0-13,5.832-13,13c0,2.543,0.745,4.91,2.012,6.916l17.904-17.904 C34.482,17.595,32.115,16.85,29.572,16.85z"}),a.a.createElement("path",{d:"M22.459,40.718c2.046,1.343,4.488,2.131,7.113,2.131c7.168,0,13-5.832,13-13c0-2.625-0.788-5.067-2.131-7.113 L22.459,40.718z"})))};function vo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var go=function(e){var t=e.value,n=e.onChange,o=e.label,i=void 0===o?"Client Secret":o,c=vo(Object(r.useState)(!1),2),l=c[0],s=c[1],u={className:"iap-apps-form__reveal-secret-btn",style:{cursor:"pointer"},onClick:function(){return s(!l)}},p=l?fo:ho;return a.a.createElement(_n,{label:i,Icon:a.a.createElement(p,u)},a.a.createElement("div",{className:"iap-apps-form__secret-field"},a.a.createElement("span",{className:"iap-apps-form__secret-value"},l?t:"•".repeat(2*t.length)),a.a.createElement(N,{disabled:!l,onClick:function(){return n(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24;return he.a.generate(e,{charset:"hex"})}())}},"Generate")))};go.propTypes={value:w.a.string.isRequired,onChange:w.a.func.isRequired};var Eo=go;n(579);function bo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function yo(){return(yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _o=function(e){e.styles;var t=bo(e,["styles"]);return a.a.createElement("svg",yo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 212.982 212.982"},t),a.a.createElement("path",{d:"M131.804 106.491l75.936-75.936c6.99-6.99 6.99-18.323 0-25.312-6.99-6.99-18.322-6.99-25.312 0L106.491 81.18 30.554 5.242c-6.99-6.99-18.322-6.99-25.312 0-6.989 6.99-6.989 18.323 0 25.312l75.937 75.936-75.937 75.937c-6.989 6.99-6.989 18.323 0 25.312 6.99 6.99 18.322 6.99 25.312 0l75.937-75.937 75.937 75.937c6.989 6.99 18.322 6.99 25.312 0 6.99-6.99 6.99-18.322 0-25.312l-75.936-75.936z",fillRule:"evenodd",clipRule:"evenodd"}))},wo=function(e){var t=e.onDeleteClick,n=e.children;return a.a.createElement("li",{className:"value-tag"},n,a.a.createElement("button",{type:"button",onClick:t,className:"value-tag__delete"},a.a.createElement(_o,{className:"value-tag__delete-icon"})))};function xo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var So=function(e){var t=e.values,n=e.onChange,o=xo(Object(r.useState)(""),2),i=o[0],c=o[1],l=Object(r.useRef)(null),s=function(){i.trim()&&(t.includes(i.trim())||n(t.concat(i)),c(""))};return a.a.createElement("div",null,a.a.createElement(P,{value:i,onChange:function(e){return c(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&(s(),e.preventDefault())},onBlur:function(){i.trim()&&s()},placeholder:e.placeholder,autoComplete:"off",ref:l,errorMessage:e.errorMessage,renderButton:function(){return a.a.createElement("button",{type:"button",className:"multiple-input__add-btn",onClick:function(){return l.current.focus()}},a.a.createElement(st,{className:"multiple-input__add-btn-icon"}))},style:{paddingRight:"50px"}}),a.a.createElement("ul",{className:"multiple-input__value-tags"},t.map((function(e){return a.a.createElement(wo,{key:e,onDeleteClick:function(){return r=e,void n(t.filter((function(e){return e!==r})));var r}},e)}))))};So.defaultProps={values:[],onChange:function(){}};var Co=So;function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Po=function(e){return function(t){return e(t.target.value)}},ko=En.applyRules(uo),Ao=function(e){var t=e.loading,n=e.error,o=e.excludeFields,i=e.onSubmit,c=e.onCancel,l=e.application||{},s=Oo(Object(r.useState)(l.redirect_url||[]),2),u=s[0],p=s[1],f=Oo(Object(r.useState)(l.offline||!1),2),m=f[0],d=f[1],h=Oo(Object(r.useState)(l.type||"web"),2),v=h[0],g=h[1],E=Oo(Object(r.useState)(l.name||""),2),b=E[0],y=E[1],_=Oo(Object(r.useState)(l.description||""),2),w=_[0],x=_[1],S=Oo(Object(r.useState)(l.secret||""),2),C=S[0],T=S[1],O=Oo(Object(r.useState)(!l.registration_forbidden||!1),2),k=O[0],A=O[1],R=Oo(Object(r.useState)(l.anonymous_registration_allowed||!1),2),I=R[0],z=R[1],M=Oo(Object(r.useState)(l.tfa_status||"disabled"),2),F=M[0],L=M[1],U=Oo(Object(r.useState)(l.active||!1),2),B=U[0],D=U[1],V=Oo(Object(r.useState)(l.debug_tfa_code||""),2),K=V[0],Y=V[1],q=Oo(Object(r.useState)(l.scopes||[]),2),W=q[0],X=q[1],Z=Oo(Object(r.useState)({type:"",name:"",redirectUrls:""}),2),J=Z[0],Q=Z[1];Object(r.useEffect)((function(){l&&(l.redirect_urls&&p(l.redirect_urls||[]),l.offline&&d(l.offline),l.type&&g(l.type),l.name&&y(l.name),l.description&&x(l.description),l.secret&&T(l.secret),l.tfa_status&&L(l.tfa_status),l.active&&D(l.active),l.debug_tfa_code&&Y(l.debug_tfa_code),l.scopes&&X(l.scopes),A(!l.registration_forbidden),z(l.anonymous_registration_allowed))}),[e.application]);var $=function(e){return o.includes(e)},ee=function(e,t,n){e in J&&Q(G()(J,To({},e,""))),n(t)},te=function(e,t){var n=ko(e,To({},e,t));Q(G()(J,To({},e,n)))};return a.a.createElement("form",{className:"iap-apps-form",onSubmit:function(e){e.preventDefault();var t=ko("all",{name:b,type:v,redirectUrls:u});En.hasError(t)?Q(t):i({offline:m,type:v,name:b,scopes:W,secret:C,active:B,description:w,tfa_status:F,redirect_urls:u,registration_forbidden:!k,anonymous_registration_allowed:I,debug_tfa_code:K||void 0})}},!!n&&a.a.createElement(H,{error:n}),!$("name")&&a.a.createElement(_n,{label:"Name"},a.a.createElement(P,{value:b,autoComplete:"off",placeholder:"Enter name",onChange:Po((function(e){return ee("name",e,y)})),onBlur:Po((function(e){return te("name",e)})),errorMessage:J.name,disabled:t})),!$("type")&&a.a.createElement(_n,{label:"Type"},a.a.createElement(Kr,{name:"type",value:v,disabled:t,onChange:g,placeholder:"Select Application Type",errorMessage:J.type},a.a.createElement(qr,{value:"web",title:"Single Page Application (Web)"}),a.a.createElement(qr,{value:"android",title:"Android Client (Mobile)"}),a.a.createElement(qr,{value:"ios",title:"iOS Client (Mobile)"}),a.a.createElement(qr,{value:"desktop",title:"Desktop Client (Desktop)"}))),!$("description")&&a.a.createElement(_n,{label:"Description"},a.a.createElement(P,{value:w,autoComplete:"off",placeholder:"Enter Description",onChange:Po((function(e){return ee("description",e,x)})),onBlur:Po((function(e){return te("description",e)})),disabled:t})),!$("scopes")&&a.a.createElement(_n,{label:"Scopes"},a.a.createElement(Co,{values:W,placeholder:"Hit Enter to add scope",onChange:X})),!$("tfaStatus")&&a.a.createElement(_n,{label:"2FA Status"},a.a.createElement(Kr,{value:F,disabled:t,onChange:L,placeholder:"Select TFA Status"},a.a.createElement(qr,{value:"disabled",title:"Disabled"}),a.a.createElement(qr,{value:"mandatory",title:"Mandatory"}),a.a.createElement(qr,{value:"optional",title:"Optional"}))),!$("secret")&&a.a.createElement(Eo,{value:C,onChange:T}),!$("redirectUrl")&&a.a.createElement(_n,{label:"Redirect URLs"},a.a.createElement(Co,{values:u,placeholder:"Hit Enter to add url",onChange:function(e){return ee("redirectUrls",e,p)},errorMessage:J.redirectUrls})),!$("debugTfaCode")&&a.a.createElement(_n,{label:"Debug TFA Code"},a.a.createElement(P,{value:K,autoComplete:"off",placeholder:"Debug TFA Code",onChange:Po((function(e){return ee("debugTfaCode",e,Y)})),onBlur:Po((function(e){return te("debugTfaCode",e)})),disabled:t})),a.a.createElement("div",null,!$("allowRegistration")&&a.a.createElement(On,{label:"Allow Registration",value:!!k,onChange:A}),!$("allowAnonymousRegistration")&&a.a.createElement(On,{label:"Allow Anonymous Registration",value:!!I,onChange:z}),!$("offline")&&a.a.createElement(On,{label:"Allow Offline",value:!!m,onChange:d}),!$("active")&&a.a.createElement(On,{label:"Active",value:!!B,onChange:D})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:t?j:Sn,disabled:t||En.hasError(J),error:!t&&!!n},"Save Changes"),a.a.createElement(N,{transparent:!0,disabled:t,onClick:c},"Cancel")))};Ao.defaultProps={excludeFields:[]};var Ro=Ao;function No(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var Io=function(e){var t=e.history,n=Object(c.c)(),r=Vn(),o=r.progress,i=r.setProgress,l=tr(),s=l.notifySuccess,u=l.notifyFailure,p=Object(c.d)((function(e){return e.selectedApplication.error})),f=Object(c.d)((function(e){return e.selectedApplication.application}));a.a.useEffect((function(){f&&f.id&&t.push("/management/applications/".concat(f.id))}),[f]);var m=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(70),e.prev=1,e.next=4,n(Da(t));case 4:s({title:"Created",text:"Application has been created successfully"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),u({title:"Error",text:"Application could not be created"});case 10:return e.prev=10,i(100),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,7,10,13]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){No(o,r,a,i,c,"next",e)}function c(e){No(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("div",null,a.a.createElement(Z.a,{to:"/management/applications",className:"iap-management-section__back"},"←  Applications")),a.a.createElement("p",{className:"iap-management-section__title"},"Create Application"),a.a.createElement("p",{className:"iap-management-section__description"},"Configure allowed callback URLs and Secrets for your application.")),a.a.createElement("main",null,a.a.createElement(Ro,{error:p,loading:!!o,excludeFields:["secret","active","tfaStatus","redirectUrl","allowRegistration","debugTfaCode"],onCancel:function(){n(Ga()),t.push("/management/applications")},onSubmit:m})))},jo=n(75),zo=(n(228),{lineNumbers:!0,preserveScrollPosition:!0,viewportMargin:1/0}),Mo=function(e){return a.a.createElement(jo.UnControlled,{className:"casbin-code-editor",value:e.value,onBeforeChange:function(t,n,r){return e.onChange(r)},options:zo})};function Fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Lo=function(e){var t=e.loading,n=e.onSubmit,o=e.onCancel,i=e.application||{},c=Fo(Object(r.useState)(i.authorization_way||""),2),l=c[0],s=c[1],u=Fo(Object(r.useState)(i.authorization_model||""),2),p=u[0],f=u[1],m=Fo(Object(r.useState)(i.authorization_policy||""),2),d=m[0],h=m[1],v=Fo(Object(r.useState)(i.new_user_default_role||""),2),g=v[0],E=v[1],b=Fo(Object(r.useState)(i.roles_whitelist||[]),2),y=b[0],_=b[1],w=Fo(Object(r.useState)(i.roles_blacklist||[]),2),x=w[0],S=w[1];Object(r.useEffect)((function(){s(i.authorization_way||""),f(i.authorization_model||""),h(i.authorization_policy||""),E(i.new_user_default_role||""),_(i.roles_whitelist||[]),S(i.roles_blacklist||[])}),[e.application]);var C;return a.a.createElement("form",{className:"iap-apps-form",onSubmit:function(e){e.preventDefault(),n(G()(i,{authorization_way:l,authorization_model:p,authorization_policy:d,new_user_default_role:g,roles_whitelist:y}))}},a.a.createElement(_n,{label:"Authorization Way"},a.a.createElement(Kr,{value:l,disabled:t,onChange:s,placeholder:"Select Authorization Way"},a.a.createElement(qr,{value:"no_authorization",title:"No Authorization"}),a.a.createElement(qr,{value:"internal",title:"Internal"}),a.a.createElement(qr,{value:"whitelist",title:"Whitelist"}),a.a.createElement(qr,{value:"blacklist",title:"Blacklist"}),a.a.createElement(qr,{value:"external",title:"External"}))),"internal"===l&&a.a.createElement(_n,{label:"Casbin Model"},a.a.createElement(Mo,{value:p,onChange:f})),"internal"===l&&a.a.createElement(_n,{label:"Casbin Policy"},a.a.createElement(Mo,{value:d,onChange:h})),"whitelist"===l&&a.a.createElement(_n,{label:"Roles Whitelist"},a.a.createElement(Co,{values:y,placeholder:"Hit Enter to add role",onChange:_})),"blacklist"===l&&a.a.createElement(_n,{label:"Roles Blacklist"},a.a.createElement(Co,{values:x,placeholder:"Hit Enter to add role",onChange:S})),a.a.createElement(_n,{label:"New User Default Role"},a.a.createElement(P,{value:g,autoComplete:"off",placeholder:"User role",onChange:(C=E,function(e){return C(e.target.value)})})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",disabled:t,Icon:t?j:Sn},"Save Changes"),a.a.createElement(N,{transparent:!0,disabled:t,onClick:o},"Cancel")))};function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bo(e,t,n[t])}))}return e}function Bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ho=function(e){var t=e.application,n=e.loading,o=e.onCancel,i=e.onSubmit,c={tokenLifespan:t.token_lifespan||"",refreshTokenLifespan:t.refresh_token_lifespan||"",inviteTokenLifespan:t.invite_token_lifespan||"",tokenPayload:t.token_payload||[],tokenPayloadService:t.token_payload_service||"none",tokenPayloadServiceHttpSetting:t.token_payload_service_http_settings||{url:"",secret:""}},l=Do(Object(r.useState)({url:""}),2),s=l[0],u=l[1],p=Y(c,null,(function(e){"http"!=e.tokenPayloadService||function(e){try{new URL(e)}catch(e){return!1}return!0}(e.tokenPayloadServiceHttpSetting.url)?i(Uo({},t,{token_lifespan:Number(e.tokenLifespan)||void 0,refresh_token_lifespan:Number(e.refreshTokenLifespan)||void 0,invite_token_lifespan:Number(e.inviteTokenLifespan)||void 0,token_payload:e.tokenPayload,token_payload_service:e.tokenPayloadService||"none",token_payload_service_http_settings:e.tokenPayloadServiceHttpSetting||{}})):u(Uo({},s,{url:"Invalid URL for service, service URL is required for http service"}))}));return a.a.useEffect((function(){t&&p.setValues({tokenLifespan:t.token_lifespan,refreshTokenLifespan:t.refresh_token_lifespan,inviteTokenLifespan:t.invite_token_lifespan,tokenPayload:t.token_payload,tokenPayloadService:t.token_payload_service,tokenPayloadServiceHttpSetting:t.token_payload_service_http_settings})}),[t]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:p.handleSubmit},a.a.createElement(_n,{label:"Access Token Lifespan"},a.a.createElement(P,{name:"tokenLifespan",value:p.values.tokenLifespan,autoComplete:"off",placeholder:"Lifespan in seconds",onChange:p.handleChange,disabled:n})),a.a.createElement(_n,{label:"Refresh Token Lifespan"},a.a.createElement(P,{name:"refreshTokenLifespan",value:p.values.refreshTokenLifespan,autoComplete:"off",placeholder:"Lifespan in seconds",onChange:p.handleChange,disabled:n})),a.a.createElement(_n,{label:"Invite Token Lifespan"},a.a.createElement(P,{name:"inviteTokenLifespan",value:p.values.inviteTokenLifespan,autoComplete:"off",placeholder:"Lifespan in seconds",onChange:p.handleChange,disabled:n})),a.a.createElement(_n,{label:"Token Payload"},a.a.createElement(Co,{values:p.values.tokenPayload,autoComplete:"off",placeholder:"Token payload",onChange:function(e){return p.setValue("tokenPayload",e)},disabled:n})),a.a.createElement(_n,{label:"Token Payload service"},a.a.createElement(Kr,{name:"tokenPayloadService",value:p.values.tokenPayloadService,disabled:n,onChange:function(e){return p.setValue("tokenPayloadService",e)},placeholder:"Select Token Payload Service"},a.a.createElement(qr,{value:"none",title:"None"}),a.a.createElement(qr,{value:"http",title:"External HTTP service"}))),"http"===p.values.tokenPayloadService&&a.a.createElement(_n,{label:"URL"},a.a.createElement(P,{value:p.values.tokenPayloadServiceHttpSetting.url||"",autoComplete:"off",placeholder:"Service URL",disabled:n,errorMessage:s.url,onValue:function(e){p.setValue("tokenPayloadServiceHttpSetting",Uo({},p.values.tokenPayloadServiceHttpSetting,{url:e})),u(Uo({},s,{url:""}))}})),"http"===p.values.tokenPayloadService&&a.a.createElement(Eo,{label:"Signature secret",value:p.values.tokenPayloadServiceHttpSetting.secret||"",onChange:function(e){return p.setValue("tokenPayloadServiceHttpSetting",Uo({},p.values.tokenPayloadServiceHttpSetting,{secret:e}))}}),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",disabled:n,Icon:n?j:Sn},"Save Changes"),a.a.createElement(N,{transparent:!0,disabled:n,onClick:o},"Cancel")))};function Vo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Go(){return(Go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ko=function(e){e.styles;var t=Vo(e,["styles"]);return a.a.createElement("svg",Go({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490.667 490.667"},t),a.a.createElement("path",{d:"M416 0H74.667C33.493 0 0 33.493 0 74.667v234.667C0 350.507 33.493 384 74.667 384h230.251l103.531 103.552a10.748 10.748 0 007.552 3.115c1.365 0 2.752-.277 4.075-.811a10.667 10.667 0 006.592-9.856v-96.747c36.139-5.205 64-36.373 64-73.92V74.667C490.667 33.493 457.173 0 416 0zm53.333 309.333c0 29.419-23.936 53.333-53.333 53.333-5.888 0-10.667 4.779-10.667 10.667v80.917l-88.448-88.469a10.744 10.744 0 00-7.552-3.115H74.667c-29.397 0-53.333-23.915-53.333-53.333V74.667c0-29.419 23.936-53.333 53.333-53.333H416c29.397 0 53.333 23.915 53.333 53.333v234.666z"}),a.a.createElement("path",{d:"M245.333 256c-17.643 0-32 14.357-32 32s14.357 32 32 32 32-14.357 32-32-14.357-32-32-32zm0 42.667c-5.888 0-10.667-4.8-10.667-10.667s4.779-10.667 10.667-10.667S256 282.133 256 288s-4.779 10.667-10.667 10.667zM279.424 74.197A32.097 32.097 0 00256 64h-21.333a32.052 32.052 0 00-23.403 10.197c-6.037 6.464-9.131 15.232-8.512 24.235l9.024 105.109c1.237 17.451 15.915 31.125 33.557 31.125 17.493 0 32.171-13.675 33.387-30.955l9.195-105.429a32.046 32.046 0 00-8.491-24.085zm-12.757 22.4l-9.216 105.451c-.448 6.336-5.781 11.285-12.288 11.285-6.357 0-11.669-4.949-12.139-11.456l-9.003-105.109c-.213-3.008.789-5.867 2.837-8.043 2.048-2.176 4.821-3.392 7.808-3.392H256c2.987 0 5.76 1.216 7.808 3.392s3.051 5.035 2.859 7.872z"}))};function Yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var qo=function(e){return function(t){return e(t.target.value)}},Wo=function(e){var t=e.loading,n=e.onSubmit,o=e.onCancel,i=e.application||{},c=i.apple_info,l=void 0===c?{client_id:"",client_secret:""}:c,s=Yo(Object(r.useState)(l.client_id),2),u=s[0],p=s[1],f=Yo(Object(r.useState)(l.client_secret),2),m=f[0],d=f[1];Object(r.useEffect)((function(){var e=i.apple_info;e&&(e.client_id&&p(e.client_id),e.client_secret&&d(e.client_secret))}),[e.application]);return a.a.createElement("form",{className:"iap-apps-form",onSubmit:function(e){e.preventDefault(),n(G()(i,{apple_info:{client_id:u,client_secret:m}}))}},a.a.createElement("div",{className:"iap-apps-form__note"},a.a.createElement(Ko,{className:"iap-apps-form__note-icon"}),a.a.createElement("p",null,"Note that these settings take effect only when federated login is enabled in",a.a.createElement(Z.a,{className:"iap-apps-form__note-link",to:"/management/settings"},"Login Types"),"settings.")),a.a.createElement(_n,{label:"Apple Client Id"},a.a.createElement(P,{value:u,autoComplete:"off",placeholder:"Enter Client Id",onChange:qo(p)})),a.a.createElement(_n,{label:"Apple Client Secret"},a.a.createElement(P,{value:m,autoComplete:"off",placeholder:"Enter Client Secret",onChange:qo(d)})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",disabled:t,Icon:t?j:Sn},"Save Changes"),a.a.createElement(N,{transparent:!0,disabled:t,onClick:o},"Cancel")))};function Xo(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Xo(o,r,a,i,c,"next",e)}function c(e){Xo(o,r,a,i,c,"throw",e)}i(void 0)}))}}function Jo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Qo=function(e){var t=e.match,n=e.history,r=Object(c.c)(),o=Vn(),i=o.progress,l=o.setProgress,s=tr(),u=s.notifySuccess,p=s.notifyFailure,f=t.params.appid,m=Object(c.d)((function(e){return e.selectedApplication.application})),d=Object(c.d)((function(e){return e.selectedApplication.error})),h=Jo(a.a.useState(0),2),v=h[0],g=h[1],E=function(){var e=Zo(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(70),e.next=3,r(Ba(f));case 3:l(100);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();a.a.useEffect((function(){E()}),[]);var b=function(){var e=Zo(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(70),e.prev=1,e.next=4,r(Va(f,t));case 4:u({title:"Updated",text:"Application has been updated successfully"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),p({title:"Something went wrong",text:"Application could not be updated"});case 10:return e.prev=10,l(100),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,7,10,13]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){r(Ga()),n.push("/management/applications")},_=function(){var e=Zo(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(70),e.prev=1,e.next=4,r(Ha(f));case 4:u({title:"Deleted",text:"Application has been deleted successfully"}),n.push("/management/applications"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),p({title:"Something went wrong",text:"Application could not be deleted"});case 11:return e.prev=11,l(100),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),w=a.a.useMemo((function(){return[{title:"Delete Application",onClick:_}]}),[f,_]);return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("div",null,a.a.createElement(Z.a,{to:"/management/applications",className:"iap-management-section__back"},"←  Applications")),a.a.createElement("div",{className:"iap-management-section__title"},"Application Details",a.a.createElement(mr,{loading:!!i,actions:w})),a.a.createElement("p",{className:"iap-management-section__description"},a.a.createElement("span",{className:"iap-section-description__id"},"Client ID: ",f))),a.a.createElement("main",null,a.a.createElement("div",{className:"iap-management-section__tabs"},a.a.createElement(va,{activeTabIndex:v,onChange:g},a.a.createElement(fa,{title:"General"}),a.a.createElement(fa,{title:"Authorization"}),a.a.createElement(fa,{title:"Tokens"}),a.a.createElement(fa,{title:"Federated Login"}),a.a.createElement(a.a.Fragment,null,0===v&&a.a.createElement(Ro,{error:d,loading:!!i,application:m,onCancel:y,onSubmit:b}),1===v&&a.a.createElement(Lo,{loading:!!i,application:m,onCancel:y,onSubmit:b}),2===v&&a.a.createElement(Ho,{loading:!!i,application:m,onCancel:y,onSubmit:b}),3===v&&a.a.createElement(Wo,{loading:!!i,application:m,onCancel:y,onSubmit:b}))))))},$o=function(){return a.a.createElement(s.a,null,a.a.createElement(u.a,{exact:!0,path:"/management/applications/",render:function(e){return a.a.createElement(so,e)}}),a.a.createElement(u.a,{path:"/management/applications/new",render:function(e){return a.a.createElement(Io,e)}}),a.a.createElement(u.a,{path:"/management/applications/:appid",render:function(e){return a.a.createElement(Qo,e)}}))},ei=(n(582),function(e){return function(t){return t?Number(t)?Number.isNaN(Number(t))?e:"":e:""}}),ti={email:[Object(En.notEmpty)("Email should not be empty"),Object(En.emailFormat)("Email format is invalid")],password:[Object(En.notEmpty)("Password should not be empty")],confirmPassword:[Object(En.notEmpty)("You should confirm password"),Object(En.matches)("password","Passwords do not match")]},ni={sessionDuration:[Object(En.notEmpty)("You have to specify session duration (in seconds)"),ei("Duration should be specified in seconds")],address:[Object(En.notEmpty)("You have to specify address")],password:[Object(En.notEmpty)("You have to specify password")],db:[Object(En.notEmpty)("You have to specify db of type int"),ei("Db should be of type int")],region:[Object(En.notEmpty)("You have to specify region")]},ri=function(e){var t=Object(En.applyRules)(ti)("all",e,{omit:!e.password&&!e.confirmPassword?["password","confirmPassword"]:[]});return Object(En.hasError)(t)?t:{}},ai=function(e){var t=Object(En.applyRules)(ni)("all",e,{omit:{memory:["address","password","db","region","endpoint"],redis:["region","endpoint"],dynamodb:["address","password","db"]}[e.type]});return Object(En.hasError)(t)?t:{}},oi=function(e){var t=e.loading,n=e.settings,r=e.error,o=e.onSubmit,i=Y({type:"",sessionDuration:"",address:"",password:"",db:"",region:"",endpoint:""},ai,(function(e){o(G()(e,{sessionDuration:function(e){return Number(e)||300},db:function(e){return Number(e)||void 0}}))}));return a.a.useEffect((function(){n&&i.setValues(G()(n,{sessionDuration:function(e){return void 0===e?"":e.toString()},db:function(e){return void 0===e?"":e.toString()}}))}),[n]),a.a.createElement("form",{className:"iap-settings-form",onSubmit:i.handleSubmit},!!r&&a.a.createElement(H,{error:r}),a.a.createElement(_n,{label:"Storage Type"},a.a.createElement(Kr,{value:i.values.type,disabled:t,onChange:function(e){return i.setValue("type",e)},placeholder:"Select Storage Type",errorMessage:i.errors.type},a.a.createElement(qr,{value:"memory",title:"Memory"}),a.a.createElement(qr,{value:"redis",title:"Redis"}),a.a.createElement(qr,{value:"dynamodb",title:"DynamoDB"}))),a.a.createElement(_n,{label:"Session Duration"},a.a.createElement(P,{name:"sessionDuration",value:i.values.sessionDuration,placeholder:"Specify session duration in seconds",onChange:i.handleChange,disabled:t,errorMessage:i.errors.sessionDuration})),"redis"===i.values.type&&a.a.createElement(a.a.Fragment,null,a.a.createElement(_n,{label:"Address"},a.a.createElement(P,{name:"address",value:i.values.address,placeholder:"Specify address",onChange:i.handleChange,disabled:t,errorMessage:i.errors.address})),a.a.createElement(_n,{label:"Password"},a.a.createElement(P,{name:"password",value:i.values.password,disabled:t,placeholder:"Specify password",onChange:i.handleChange,errorMessage:i.errors.password})),a.a.createElement(_n,{label:"DB"},a.a.createElement(P,{name:"db",value:i.values.db,disabled:t,placeholder:"Specify DB",onChange:i.handleChange,errorMessage:i.errors.db}))),"dynamodb"===i.values.type&&a.a.createElement(a.a.Fragment,null,a.a.createElement(_n,{label:"Region"},a.a.createElement(P,{name:"region",value:i.values.region,placeholder:"Specify region",disabled:t,onChange:i.handleChange,errorMessage:i.errors.region})),a.a.createElement(_n,{label:"Endpoint",subtext:"Can be figured out automatically from the region"},a.a.createElement(P,{name:"endpoint",value:i.values.endpoint,placeholder:"Specify endpoint",disabled:t,onChange:i.handleChange,errorMessage:i.errors.endpoint}))),a.a.createElement("footer",{className:"iap-settings-form__footer"},a.a.createElement(N,{type:"submit",error:!t&&r,disabled:t||!i.values.type,Icon:t?j:Sn},"Save Changes")))};function ii(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ci(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ii(o,r,a,i,c,"next",e)}function c(e){ii(o,r,a,i,c,"throw",e)}i(void 0)}))}}var li=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateLoginSettings(e);case 2:n({type:"RECEIVE_LOGIN_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},si=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateExternalServicesSettings(e);case 2:n({type:"RECEIVE_EXTERNAL_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},ui=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateSessionStorageSettings(e);case 2:n({type:"RECEIVE_SESSION_STORAGE_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},pi=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateStaticFilesSettings(e);case 2:n({type:"RECEIVE_STATIC_FILES_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},fi=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateGeneralSettings(e);case 2:n({type:"RECEIVE_GENERAL_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},mi=function(e){return function(){var t=ci(regeneratorRuntime.mark((function t(n,r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.settings.updateConfigurationStorageSettings(e);case 2:n({type:"RECEIVE_CONFIGURATION_STORAGE_SETTINGS",payload:e}),n({type:"SETTINGS_CHANGED"});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},di=function(e,t){return function(){var n=ci(regeneratorRuntime.mark((function n(r,a,o){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.settings.uploadJWTKeys(e,t);case 2:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}()};function hi(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function vi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){hi(o,r,a,i,c,"next",e)}function c(e){hi(o,r,a,i,c,"throw",e)}i(void 0)}))}}var gi=function(e){var t=e.error,n=Object(c.c)(),r=tr().notifySuccess,o=Vn(),i=o.progress,l=o.setProgress,s=Object(c.d)((function(e){return e.settings.sessionStorage})),u=function(){var e=vi(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(70),e.next=3,n(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchSessionStorageSettings();case 2:a=e.sent,t({type:"RECEIVE_SESSION_STORAGE_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:l(100);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();a.a.useEffect((function(){u()}),[]);var p=function(){var e=vi(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(70),e.next=3,n(ui(t));case 3:l(100),r({title:"Updated",text:"Settings have been updated successfully"});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(oi,{error:t,loading:!!i,settings:s,onSubmit:p})},Ei=function(e){var t=e.onSubmit,n=e.error,r=e.loading,o=e.settings,i={email:o?o.email:"",password:"",confirmPassword:"",editPassword:!1},c=Y(i,ri,(function(e){var n=e.email,r=e.password,a=e.editPassword;t(G()(o,{email:n,password:a?r:void 0}))}));return a.a.useEffect((function(){o&&c.setValues({email:o.email||"",password:"",confirmPassword:"",editPassword:c.values.editPassword||!1})}),[o]),a.a.createElement("form",{className:"iap-settings-form",onSubmit:c.handleSubmit},!!n&&a.a.createElement(H,{error:n}),a.a.createElement(_n,{label:"Email"},a.a.createElement(P,{name:"email",value:c.values.email,placeholder:"Enter your email",onChange:c.handleChange,onBlur:c.handleBlur,errorMessage:c.errors.email,disabled:r})),a.a.createElement(On,{label:"Edit password",value:c.values.editPassword,onChange:function(e){c.setErrors({password:"",confirmPassword:""}),c.setValues(G()(c.values,{editPassword:e,password:"",confirmPassword:""}))}}),c.values.editPassword&&a.a.createElement("div",{className:"iap-settings-form__password-fields"},a.a.createElement(_n,{label:"Password"},a.a.createElement(P,{type:"password",name:"password",value:c.values.password,placeholder:"Enter your password",onChange:c.handleChange,onBlur:c.handleBlur,errorMessage:c.errors.password})),a.a.createElement(_n,{label:"Confirm Password"},a.a.createElement(P,{type:"password",name:"confirmPassword",value:c.values.confirmPassword,placeholder:"Confirm your password",onChange:c.handleChange,onBlur:c.handleBlur,errorMessage:c.errors.confirmPassword}))),a.a.createElement("footer",{className:"iap-settings-form__footer"},a.a.createElement(N,{type:"submit",error:!r&&!!n,disabled:r||Object(En.hasError)(c.errors),Icon:r?j:Sn},"Save Changes")))},bi=function(e){return a.a.createElement("div",{className:"iap-section-placeholder"},a.a.createElement("div",{className:"iap-section-placeholder__title"},"Account"),a.a.createElement(ia,{className:"iap-placeholder__fetch-failure-icon"}),a.a.createElement("p",{className:"iap-section-placeholder__msg"},"Could not load account settings"),a.a.createElement(N,{error:!0,Icon:e.fetching?j:la,onClick:e.onTryAgainClick,disabled:e.fetching},"Try again"))};bi.propTypes={fetching:w.a.bool,onTryAgainClick:w.a.func.isRequired},bi.defaultProps={fetching:!1};var yi=bi;function _i(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function wi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){_i(o,r,a,i,c,"next",e)}function c(e){_i(o,r,a,i,c,"throw",e)}i(void 0)}))}}var xi=function(){var e=Object(c.c)(),t=Vn(),n=t.progress,r=t.setProgress,o=tr(),i=o.notifySuccess,l=o.notifyFailure,s=Object(c.d)((function(e){return e.account.error})),u=Object(c.d)((function(e){return e.account.settings})),p=function(){var t=wi(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(70),t.next=3,e(ke());case 3:r(100);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();a.a.useEffect((function(){p()}),[]);var f=function(){var t=wi(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(70),t.prev=1,t.next=4,e(Ae(u));case 4:i({title:"Saved",text:"Account settings have been successfully saved"}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),l({title:"Error",text:"Account settings could not be saved"});case 10:return t.prev=10,r(100),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,7,10,13]])})));return function(){return t.apply(this,arguments)}}();return s?a.a.createElement(yi,{fetching:!!n,onTryAgainClick:p}):a.a.createElement(Ei,{error:s,loading:!!n,settings:u,onSubmit:f})};function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ci=function(){var e=Si(Object(r.useState)(0),2),t=e[0],n=e[1];return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Account Settings"),a.a.createElement(va,{activeTabIndex:t,onChange:n},a.a.createElement(fa,{title:"Admin Account"}),a.a.createElement(fa,{title:"Session Storage"}),a.a.createElement(a.a.Fragment,null,0===t&&a.a.createElement(xi,null),1===t&&a.a.createElement(gi,null))))},Ti=(n(584),function(e){var t=e.error,n=e.settings,r=e.loading,o=e.onSubmit,i={host:n?n.host:"",issuer:n?n.issuer:"",algorithm:n?n.algorithm:""},c=Y(i,null,(function(e){o(G()(n,e))}));return a.a.useEffect((function(){n&&c.setValues({host:n.host,issuer:n.issuer,algorithm:n.algorithm})}),[n]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:c.handleSubmit},!!t&&a.a.createElement(H,{error:t}),a.a.createElement(_n,{label:"Host"},a.a.createElement(P,{name:"host",value:c.values.host,autoComplete:"off",placeholder:"Enter host url",onChange:c.handleChange,disabled:r})),a.a.createElement(_n,{label:"Issuer"},a.a.createElement(P,{name:"issuer",value:c.values.issuer,autoComplete:"off",placeholder:"Enter issuer url",onChange:c.handleChange,disabled:r})),a.a.createElement(_n,{label:"Algorithm"},a.a.createElement(Kr,{value:c.values.algorithm,disabled:r,onChange:function(e){return c.handleChange(Ee("algorithm",e))},placeholder:"Select Algorithm"},a.a.createElement(qr,{value:"auto",title:"Auto"}),a.a.createElement(qr,{value:"rs256",title:"rs256"}),a.a.createElement(qr,{value:"es256",title:"es256"}))),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:r?j:Sn,disabled:r,error:!r&&!!t},"Save Changes")))});function Oi(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Pi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Oi(o,r,a,i,c,"next",e)}function c(e){Oi(o,r,a,i,c,"throw",e)}i(void 0)}))}}var ki=function(){var e=Object(c.c)(),t=Object(c.d)((function(e){return e.settings.general})),n=Vn(),o=n.progress,i=n.setProgress,l=tr().notifySuccess;Object(r.useEffect)((function(){(function(){var t=Pi(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(70),t.next=3,e(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchGeneralSettings();case 2:a=e.sent,t({type:"RECEIVE_GENERAL_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:i(100);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}})()()}),[]);var s=function(){var t=Pi(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(70),t.next=3,e(fi(n));case 3:i(100),l({title:"Updated",text:"Server settings have been updated successfully"});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return a.a.createElement(Ti,{loading:!!o,settings:t,onSubmit:s})};n(586);function Ai(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ri(){return(Ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ni=function(e){e.styles;var t=Ai(e,["styles"]);return a.a.createElement("svg",Ri({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 486.3 486.3"},t),a.a.createElement("path",{d:"M395.5 135.8c-5.2-30.9-20.5-59.1-43.9-80.5-26-23.8-59.8-36.9-95-36.9-27.2 0-53.7 7.8-76.4 22.5-18.9 12.2-34.6 28.7-45.7 48.1-4.8-.9-9.8-1.4-14.8-1.4-42.5 0-77.1 34.6-77.1 77.1 0 5.5.6 10.8 1.6 16C16.7 200.7 0 232.9 0 267.2c0 27.7 10.3 54.6 29.1 75.9 19.3 21.8 44.8 34.7 72 36.2h86.8c7.5 0 13.5-6 13.5-13.5s-6-13.5-13.5-13.5h-85.6C61.4 349.8 27 310.9 27 267.1c0-28.3 15.2-54.7 39.7-69 5.7-3.3 8.1-10.2 5.9-16.4-2-5.4-3-11.1-3-17.2 0-27.6 22.5-50.1 50.1-50.1 5.9 0 11.7 1 17.1 3 6.6 2.4 13.9-.6 16.9-6.9 18.7-39.7 59.1-65.3 103-65.3 59 0 107.7 44.2 113.3 102.8.6 6.1 5.2 11 11.2 12 44.5 7.6 78.1 48.7 78.1 95.6 0 49.7-39.1 92.9-87.3 96.6h-73.7c-7.5 0-13.5 6-13.5 13.5s6 13.5 13.5 13.5h75.2c30.5-2.2 59-16.2 80.2-39.6 21.1-23.2 32.6-53 32.6-84-.1-56.1-38.4-106-90.8-119.8z"}),a.a.createElement("path",{d:"M324.2 280c5.3-5.3 5.3-13.8 0-19.1l-71.5-71.5c-2.5-2.5-6-4-9.5-4s-7 1.4-9.5 4l-71.5 71.5c-5.3 5.3-5.3 13.8 0 19.1 2.6 2.6 6.1 4 9.5 4s6.9-1.3 9.5-4l48.5-48.5v222.9c0 7.5 6 13.5 13.5 13.5s13.5-6 13.5-13.5V231.5l48.5 48.5c5.2 5.3 13.7 5.3 19 0z"}))};function Ii(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ji(){return(ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var zi=function(e){e.styles;var t=Ii(e,["styles"]);return a.a.createElement("svg",ji({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),a.a.createElement("path",{d:"M468.907 214.604c-11.423 0-20.682 9.26-20.682 20.682v20.831c-.031 54.338-21.221 105.412-59.666 143.812-38.417 38.372-89.467 59.5-143.761 59.5h-.12C132.506 459.365 41.3 368.056 41.364 255.883c.031-54.337 21.221-105.411 59.667-143.813 38.417-38.372 89.468-59.5 143.761-59.5h.12c28.672.016 56.49 5.942 82.68 17.611 10.436 4.65 22.659-.041 27.309-10.474 4.648-10.433-.04-22.659-10.474-27.309-31.516-14.043-64.989-21.173-99.492-21.192h-.144c-65.329 0-126.767 25.428-172.993 71.6C25.536 129.014.038 190.473 0 255.861c-.037 65.386 25.389 126.874 71.599 173.136 46.21 46.262 107.668 71.76 173.055 71.798h.144c65.329 0 126.767-25.427 172.993-71.6 46.262-46.209 71.76-107.668 71.798-173.066v-20.842c0-11.423-9.259-20.683-20.682-20.683z"}),a.a.createElement("path",{d:"M505.942 39.803c-8.077-8.076-21.172-8.076-29.249 0L244.794 271.701l-52.609-52.609c-8.076-8.077-21.172-8.077-29.248 0-8.077 8.077-8.077 21.172 0 29.249l67.234 67.234a20.616 20.616 0 0014.625 6.058 20.618 20.618 0 0014.625-6.058L505.942 69.052c8.077-8.077 8.077-21.172 0-29.249z"}))};function Mi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Fi=function(e){var t=e.filename,n=e.isUploaded,r=e.onClick,o=e.onReset,i=Mi(a.a.useState(!1),2),c=i[0],l=i[1],s=S()("file-input__upload",{"file-input__upload--success":n}),u=n?zi:Ni;return a.a.createElement("div",{className:"file-input__upload-wrapper"},a.a.createElement("button",{type:"button",className:s,onClick:n?function(){return l(!c)}:r},a.a.createElement(u,{className:"file-input__upload-icon"})),c&&a.a.createElement("div",{className:"upload-prompt"},a.a.createElement("p",{className:"upload-prompt__filename"},t),a.a.createElement("button",{type:"button",className:"upload-prompt__another",onClick:function(){o(),l(!1)}},"Reset")))};function Li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ui=function(e){var t=Object(r.useRef)(null),n=Li(Object(r.useState)(e.file||null),2),o=n[0],i=n[1];Object(r.useEffect)((function(){e.onFile(o)}),[o]);return a.a.createElement("div",{className:"file-input"},a.a.createElement(P,{placeholder:e.placeholder,value:e.path,onValue:e.disablePathInput?void 0:e.onPath,style:{caretColor:e.disablePathInput?"transparent":"unset"},disabled:e.disabled,errorMessage:e.errorMessage}),a.a.createElement(Fi,{isUploaded:!!o,filename:o?o.name:"",onClick:function(){return t.current.click()},onReset:function(){i(null),t.current.value=""}}),a.a.createElement("input",{type:"file",ref:t,style:{display:"none"},onChange:function(e){return i(e.target.files[0])}}))};Ui.defaultProps={placeholder:"Select File"};var Bi,Di=Ui,Hi="file",Vi="s3",Gi=function(e){var t={};return e.privateKeyFile&&!e.publicKeyFile&&(t.publicKeyFile="Both keys are required"),e.publicKeyFile&&!e.privateKeyFile&&(t.privateKeyFile="Both keys are required"),t},Ki=function(e){var t=e.error,n=e.loading,r=e.onSubmit,o=e.settings?e.settings.keyStorage:null,i={storageType:o?o.type:"",publicKeyPath:o?o.publicKey:"",privateKeyPath:o?o.privateKey:"",region:o?o.region:"",bucket:o?o.bucket:"",publicKeyFile:null,privateKeyFile:null},c=Y(i,Gi,(function(t){r(G()(e.settings,{keyStorage:{type:t.storageType,publicKey:t.publicKeyPath,privateKey:t.privateKeyPath,region:t.region,bucket:t.bucket},publicKey:t.publicKeyFile,privateKey:t.privateKeyFile}))}));return a.a.useEffect((function(){o&&c.setValues(G()(c.values,{storageType:o.type,publicKeyPath:o.publicKey,privateKeyPath:o.privateKey,region:o.region,bucket:o.bucket}))}),[o]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:c.handleSubmit},!!t&&a.a.createElement(H,{error:t}),a.a.createElement(_n,{label:"Storage Type"},a.a.createElement(Kr,{value:c.values.storageType,disabled:n,onChange:function(e){return c.setValue("storageType",e)},placeholder:"Select storage type"},a.a.createElement(qr,{value:Hi,title:"File"}),a.a.createElement(qr,{value:Vi,title:"S3"}))),c.values.storageType===Vi&&a.a.createElement(_n,{label:"Region"},a.a.createElement(P,{name:"region",value:c.values.region,autoComplete:"off",placeholder:"Enter s3 region",onChange:c.handleChange,disabled:n})),c.values.storageType===Vi&&a.a.createElement(_n,{label:"Bucket",subtext:"Can be overriden by IDENTIFO_JWT_KEYS_BUCKET env variable"},a.a.createElement(P,{name:"bucket",value:c.values.bucket,autoComplete:"off",placeholder:"Enter s3 bucket",onChange:c.handleChange,disabled:n})),a.a.createElement(_n,{label:"Public Key",subtext:c.values.publicKeyFile?c.values.publicKeyFile.name:"No file selected"},a.a.createElement(Di,{path:c.values.publicKeyPath,placeholder:"Specify path to folder",onFile:function(e){return c.setValue("publicKeyFile",e)},onPath:function(e){return c.handleChange(Ee("publicKeyPath",e))},errorMessage:c.errors.publicKeyFile,disabled:n})),a.a.createElement(_n,{label:"Private Key",subtext:c.values.privateKeyFile?c.values.privateKeyFile.name:"No file selected"},a.a.createElement(Di,{path:c.values.privateKeyPath,placeholder:"Specify path to folder",onFile:function(e){return c.setValue("privateKeyFile",e)},onPath:function(e){return c.handleChange(Ee("privateKeyPath",e))},errorMessage:c.errors.privateKeyFile,disabled:n})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:n?j:Sn,disabled:n,error:!n&&!!t},"Save Changes")))};function Yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wi="file",Xi="s3",Zi="etcd",Ji=(qi(Bi={},Wi,"Must be a filename (e.g, server-config.yaml)"),qi(Bi,Zi,"Must be a key name (e.g, identifo/server-settings)"),qi(Bi,Xi,"Must be a name of an object in the bucket (e.g, server-config.yaml)"),Bi),Qi=function(e){var t=e.loading,n=e.error,o=e.settings,i=e.onSubmit,c=Yi(Object(r.useState)(o?o.type:""),2),l=c[0],s=c[1],u=Yi(Object(r.useState)(o?o.settingsKey:""),2),p=u[0],f=u[1],m=Yi(Object(r.useState)(o?o.endpoints:[]),2),d=m[0],h=m[1],v=Yi(Object(r.useState)(o?o.region:""),2),g=v[0],E=v[1],b=Yi(Object(r.useState)(o?o.bucket:""),2),y=b[0],_=b[1];Object(r.useEffect)((function(){o&&(s(o.type||""),f(o.settingsKey||""),h(o.endpoints||[]),E(o.region||""),_(o.bucket||""))}),[o]);return a.a.createElement("form",{className:"iap-apps-form",onSubmit:function(e){e.preventDefault(),i(G()(o,{type:l,settingsKey:p,endpoints:d,region:g,bucket:y}))}},!!n&&a.a.createElement(H,{error:n}),a.a.createElement(_n,{label:"Storage Type"},a.a.createElement(Kr,{value:l,disabled:t,onChange:s,placeholder:"Select storage type"},a.a.createElement(qr,{value:Wi,title:"File"}),a.a.createElement(qr,{value:Zi,title:"Etcd"}),a.a.createElement(qr,{value:Xi,title:"S3"}))),a.a.createElement(_n,{label:"Settings Key",subtext:Ji[l]},a.a.createElement(P,{value:p,autoComplete:"off",placeholder:"Enter settings key",onChange:function(e){return f(e.target.value)},disabled:t})),l===Zi&&a.a.createElement(_n,{label:"Etcd Endpoints"},a.a.createElement(Co,{values:d,placeholder:"Hit Enter to add endpoint",onChange:h})),l===Xi&&a.a.createElement(_n,{label:"Region"},a.a.createElement(P,{value:g,autoComplete:"off",placeholder:"Enter s3 region",onValue:E,disabled:t})),l===Xi&&a.a.createElement(_n,{label:"Bucket",subtext:"Can be overriden by IDENTIFO_JWT_KEYS_BUCKET env variable"},a.a.createElement(P,{value:y,autoComplete:"off",placeholder:"Enter s3 bucket",onValue:_,disabled:t})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:t?j:Sn,disabled:t,error:!t&&!!n},"Save Changes")))};Qi.defaultProps={settings:{},loading:!1,error:null,onSubmit:function(){return null}};var $i=Qi;function ec(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function tc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ec(o,r,a,i,c,"next",e)}function c(e){ec(o,r,a,i,c,"throw",e)}i(void 0)}))}}function nc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var rc=function(){var e=nc(Object(r.useState)(0),2),t=e[0],n=e[1],o=Object(c.c)(),i=Object(c.d)((function(e){return e.settings.configurationStorage})),l=tr().notifySuccess,s=Vn(),u=s.progress,p=s.setProgress;Object(r.useEffect)((function(){(function(){var e=tc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(70),e.next=3,o(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchConfigurationStorageSettings();case 2:a=e.sent,t({type:"RECEIVE_CONFIGURATION_STORAGE_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:p(100);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var f=function(){var e=tc(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(70),e.next=3,o(mi(t));case 3:if(n=t.privateKey,r=t.publicKey,!n||!r){e.next=7;break}return e.next=7,o(di(r,n));case 7:p(100),l({title:"Updated",text:"Server settings have been updated successfully"});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Server Settings"),a.a.createElement(va,{activeTabIndex:t,onChange:n},a.a.createElement(fa,{title:"General"}),a.a.createElement(fa,{title:"Token Settings"}),a.a.createElement(fa,{title:"Configuration Storage"}),a.a.createElement(a.a.Fragment,null,0===t&&a.a.createElement(ki,null),1===t&&a.a.createElement(Ki,{loading:!!u,settings:i,onSubmit:f}),2===t&&a.a.createElement($i,{loading:!!u,settings:i,onSubmit:f}))))},ac=function(e){var t=e.loading,n=e.settings,r=e.onSubmit,o={type:n?n.type:"",domain:n?n.domain:"",privateKey:n?n.privateKey:"",publicKey:n?n.publicKey:"",sender:n?n.sender:"",region:n?n.region:""},i=Y(o,null,(function(e){r(G()(n,e))}));return a.a.useEffect((function(){n&&i.setValues(n)}),[n]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:i.handleSubmit},a.a.createElement(_n,{label:"Mail Service"},a.a.createElement(Kr,{value:i.values.type,disabled:t,onChange:function(e){return i.setValue("type",e)},placeholder:"Select Supported Service"},a.a.createElement(qr,{value:"mailgun",title:"Mailgun"}),a.a.createElement(qr,{value:"aws ses",title:"Amazon SES"}),a.a.createElement(qr,{value:"mock",title:"Mock"}))),a.a.createElement(_n,{label:"Sender",subtext:'If can be overriden by "MAILGUN_SENDER" or "AWS_SES_SENDER" env vars.'},a.a.createElement(P,{name:"sender",value:i.values.sender,autoComplete:"off",placeholder:"Specify Sender",onChange:i.handleChange,disabled:t})),"mailgun"===i.values.type&&a.a.createElement(_n,{label:"Domain",subtext:"Can be overriden by MAILGUN_DOMAIN env var"},a.a.createElement(P,{name:"domain",value:i.values.domain,autoComplete:"off",placeholder:"Specify Mailgun domain",onChange:i.handleChange,disabled:t})),"mailgun"===i.values.type&&a.a.createElement(_n,{label:"Public Key",subtext:"Can be overriden by MAILGUN_PUBLIC_KEY env var"},a.a.createElement(P,{name:"publicKey",value:i.values.publicKey,autoComplete:"off",placeholder:"Specify Mailgun public key",onChange:i.handleChange,disabled:t})),"mailgun"===i.values.type&&a.a.createElement(_n,{label:"Private Key",subtext:"Can be overriden by MAILGUN_PRIVATE_KEY env var"},a.a.createElement(P,{name:"privateKey",value:i.values.privateKey,autoComplete:"off",placeholder:"Specify Mailgun private key",onChange:i.handleChange,disabled:t})),"aws ses"===i.values.type&&a.a.createElement(_n,{label:"Region",subtext:"Can be overriden by AWS_SES_REGION env var"},a.a.createElement(P,{name:"region",value:i.values.region,autoComplete:"off",placeholder:"Specify Region",onChange:i.handleChange,disabled:t})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",disabled:t,Icon:t?j:Sn},"Save Changes")))},oc={type:[Object(En.notEmpty)("You should select sms service")],accountSid:[Object(En.notEmpty)("Account SID cannot be empty")],authToken:[Object(En.notEmpty)("Token cannot be empty")],serviceSid:[Object(En.notEmpty)("Service SID cannot be empty")]},ic=Object(En.applyRules)(oc),cc=function(e){var t=ic("all",e,{omit:"mock"===e.type?["accountSid","authToken","serviceSid"]:[]});return Object(En.hasError)(t)?t:{}},lc=function(e){var t=e.settings,n=e.loading,r=e.onSubmit,o={type:t?t.type:"",accountSid:t?t.accoundSid:"",authToken:t?t.authToken:"",serviceSid:t?t.serviceSid:"",apiKey:t?t.apiKey:"",apiSecret:t?t.apiSecret:""},i=Y(o,cc,(function(e){r(G()(t,e))}));return a.a.useEffect((function(){t&&i.setValues(t)}),[t]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:i.handleSubmit},a.a.createElement(_n,{label:"SMS Service"},a.a.createElement(Kr,{value:i.values.type,disabled:n,onChange:function(e){return i.setValue("type",e)},placeholder:"Select Service",errorMessage:i.errors.type},a.a.createElement(qr,{value:"twilio",title:"Twilio"}),a.a.createElement(qr,{value:"nexmo",title:"Nexmo"}),a.a.createElement(qr,{value:"mock",title:"Mock"}))),"nexmo"===i.values.type&&a.a.createElement(a.a.Fragment,null,a.a.createElement(_n,{label:"Api Key"},a.a.createElement(P,{name:"apiKey",value:i.values.apiKey,autoComplete:"off",placeholder:"Specify Nexmo api key",onChange:i.handleChange,onBlur:i.handleBlur,disabled:n,errorMessage:i.errors.authKey})),a.a.createElement(_n,{label:"Api Secret"},a.a.createElement(P,{name:"apiSecret",value:i.values.apiSecret,autoComplete:"off",placeholder:"Specify Nexmo api secret",onChange:i.handleChange,onBlur:i.handleBlur,disabled:n,errorMessage:i.errors.apiSecret}))),"twilio"===i.values.type&&a.a.createElement(a.a.Fragment,null,a.a.createElement(_n,{label:"Auth Token"},a.a.createElement(P,{name:"authToken",value:i.values.authToken,autoComplete:"off",placeholder:"Specify Twilio Auth Token",onChange:i.handleChange,onBlur:i.handleBlur,disabled:n,errorMessage:i.errors.authToken})),a.a.createElement(_n,{label:"Account SID"},a.a.createElement(P,{name:"accountSid",value:i.values.accountSid,autoComplete:"off",placeholder:"Specify Twilio Account SID",onChange:i.handleChange,onBlur:i.handleBlur,disabled:n,errorMessage:i.errors.accountSid})),a.a.createElement(_n,{label:"Service SID"},a.a.createElement(P,{name:"serviceSid",value:i.values.serviceSid,autoComplete:"off",placeholder:"Specify Twilio Service SID",onChange:i.handleChange,onBlur:i.handleBlur,disabled:n,errorMessage:i.errors.serviceSid}))),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",disabled:n,Icon:n?j:Sn},"Save Changes")))};function sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function pc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var fc=function(){var e=pc(Object(r.useState)(0),2),t=e[0],n=e[1],o=Object(c.c)(),i=Object(c.d)((function(e){return e.settings.externalServices})),l=Vn(),s=l.progress,u=l.setProgress,p=tr().notifySuccess;Object(r.useEffect)((function(){i||(u(70),o(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchExternalServicesSettings();case 2:a=e.sent,t({type:"RECEIVE_EXTERNAL_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()))}),[]),Object(r.useEffect)((function(){i&&s&&u(100)}),[i]);var f=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(70),r=G()(i,sc({},t,n)),e.next=4,o(si(r));case 4:p({title:"Updated",text:"Settings have been updated successfully"}),u(100);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){uc(o,r,a,i,c,"next",e)}function c(e){uc(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e,n){return t.apply(this,arguments)}}();return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("p",{className:"iap-management-section__title"},"External Services"),a.a.createElement("p",{className:"iap-management-section__description"},"Configure external Email ans SMS service integrations")),a.a.createElement("main",{className:"iap-settings-section"},a.a.createElement("div",{className:"iap-management-section__tabs"},a.a.createElement(va,{activeTabIndex:t,onChange:n},a.a.createElement(fa,{title:"Email Service"}),a.a.createElement(fa,{title:"SMS Service"}),a.a.createElement(a.a.Fragment,null,0===t&&a.a.createElement(ac,{loading:!!s,settings:i?i.emailService:null,onSubmit:function(e){return f("emailService",e)}}),1===t&&a.a.createElement(lc,{loading:!!s,settings:i?i.smsService:null,onSubmit:function(e){return f("smsService",e)}}))))))};n(588);function mc(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function dc(){return(dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var hc=function(e){e.styles;var t=mc(e,["styles"]);return a.a.createElement("svg",dc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),a.a.createElement("path",{d:"M511.999 255.999c0 17.606-1.776 34.805-5.172 51.419a253.305 253.305 0 01-11.922 40.751v.01c-10.574 27.418-25.757 52.537-44.565 74.459a258.138 258.138 0 01-19.592 20.428 257.338 257.338 0 01-15.13 13.082c-43.771 34.952-99.255 55.85-159.618 55.85S140.152 491.1 96.382 456.148a258.498 258.498 0 01-34.722-33.51C23.217 377.866.001 319.634.001 255.999c0-7.92.355-15.757 1.066-23.5 2.57-28.212 9.707-55.108 20.689-79.935a256.08 256.08 0 0139.905-63.206C108.606 34.659 178.259 0 256 0s147.393 34.659 194.34 89.359a256.25 256.25 0 0130.856 44.795c4.671 8.6 8.85 17.492 12.518 26.645 11.797 29.435 18.285 61.565 18.285 95.2z",fill:"#468cbe"}),a.a.createElement("path",{d:"M450.336 24.87v397.77c-46.947 54.7-116.6 89.359-194.34 89.359S108.603 477.34 61.656 422.64V24.87C61.656 11.14 72.784.001 86.525.001h338.943c13.73 0 24.868 11.139 24.868 24.869z",fill:"#5c5e70"}),a.a.createElement("path",{d:"M430.748 85.462v357.605a260.64 260.64 0 01-20.135 16.98c-42.956 32.601-96.527 51.952-154.613 51.952s-111.658-19.351-154.613-51.952a260.416 260.416 0 01-20.135-16.98V85.462c0-8.192 6.635-14.827 14.827-14.827h319.843c.899 0 1.776.084 2.623.24 6.936 1.233 12.203 7.294 12.203 14.587z",fill:"#ddd"}),a.a.createElement("path",{d:"M321.821 45.555h-131.65c-6.059 0-10.97-4.912-10.97-10.97 0-6.059 4.912-10.97 10.97-10.97h131.651c6.059 0 10.97 4.912 10.97 10.97 0 6.058-4.912 10.97-10.971 10.97z",fill:"#494b5b"}),a.a.createElement("circle",{cx:"255.999",cy:"288.329",r:"114.207",fill:"#ffb398"}),a.a.createElement("path",{d:"M341.897 363.541c-20.919 23.889-51.648 38.967-85.898 38.967s-64.979-15.078-85.898-38.967c21.194-22.991 51.549-37.445 85.274-37.619.225.025.424.025.649.025.2 0 .424 0 .624-.025 33.726.175 64.055 14.628 85.249 37.619z",fill:"#ff6469"}),a.a.createElement("path",{d:"M256.024 228.896c30.938 0 56.017 25.079 56.017 56.017 0 30.667-24.635 55.54-55.165 55.982h-1.738c-30.53-.443-55.131-25.351-55.131-55.982 0-30.939 25.079-56.017 56.017-56.017z",fill:"#f2f2f2"}))};function vc(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function gc(){return(gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ec=function(e){e.styles;var t=vc(e,["styles"]);return a.a.createElement("svg",gc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 472 472"},t),a.a.createElement("path",{fill:"#9c9da5",d:"M132 40h208v352H132z"}),a.a.createElement("path",{d:"M116 168H20c-8.837 0-16-7.163-16-16V56c0-8.837 7.163-16 16-16h96c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16z",fill:"#ddd"}),a.a.createElement("path",{d:"M284 216h-96c-8.837 0-16-7.163-16-16v-96c0-8.837 7.163-16 16-16h96c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16zM36 83.2l2.791 1.881a54.45 54.45 0 0030.44 9.319V86c0-7.732 6.199-14 13.846-14s13.846 6.268 13.846 14L108 94.4l-11.077 11.2c0 12.371-9.919 22.4-22.154 22.4H36l11.077-11.2C39.984 109.629 36 99.902 36 89.761V83.2z",fill:"#468cbe"}),a.a.createElement("g",{fill:"#ddd"},a.a.createElement("path",{d:"M260 128v-16h-24c-4.422 0-8 3.582-8 8v24h-16v16h16v32h16v-32h16v-16h-16v-16h16zM404 96c-17.673 0-32-14.327-32-32h-32v48c0 8.836 7.164 16 16 16h96c8.836 0 16-7.164 16-16V64h-32c0 17.673-14.327 32-32 32z"})),a.a.createElement("path",{d:"M452 0h-96c-8.836 0-16 7.163-16 16v48h32c0-17.673 14.327-32 32-32s32 14.327 32 32h32V16c0-8.837-7.164-16-16-16z",fill:"#ff6469"}),a.a.createElement("g",{fill:"#e7f6fe"},a.a.createElement("circle",{cx:"404",cy:"64",r:"32"}),a.a.createElement("path",{d:"M228 320h16v16h-16z"})),a.a.createElement("path",{d:"M164 432c22.091 0 40-17.909 40-40v-8c0-35.346-28.654-64-64-64h24c22.091 0 40-17.909 40-40h-80c-8.836 0-16 7.163-16 16v176h128v-40h-72z",fill:"#ffb398"}),a.a.createElement("path",{d:"M204 392c0 22.091-17.909 40-40 40h72v40h48v-40h16v-40h-96z",fill:"#fe946f"}),a.a.createElement("g",{fill:"#ffb398"},a.a.createElement("path",{d:"M364 312h-52c-11.046 0-20-8.954-20-20s8.954-20 20-20h52c11.046 0 20 8.954 20 20s-8.954 20-20 20zM364 352h-52c-11.046 0-20-8.954-20-20s8.954-20 20-20h52c11.046 0 20 8.954 20 20s-8.954 20-20 20zM352 392h-52c-11.046 0-20-8.954-20-20s8.954-20 20-20h52c11.046 0 20 8.954 20 20s-8.954 20-20 20zM328 432h-52c-11.046 0-20-8.954-20-20s8.954-20 20-20h52c11.046 0 20 8.954 20 20s-8.954 20-20 20z"})))};function bc(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function yc(){return(yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _c=function(e){e.styles;var t=bc(e,["styles"]);return a.a.createElement("svg",yc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 505 505"},t),a.a.createElement("circle",{cx:"252.5",cy:"252.5",r:"252.5",fill:"#eee"}),a.a.createElement("path",{d:"M198.9 204.1v-60c0-29.8 24.3-54.1 54.1-54.1s54.1 24.3 54.1 54.1v60h24v-60c0-43-35-78-78-78s-78 35-78 78v60h23.8z",fill:"#ffb398"}),a.a.createElement("path",{d:"M347 198.1H158c-7.1 0-12.8 5.4-12.8 12.1v170.2c0 6.7 5.7 12.1 12.8 12.1h189c7.1 0 12.8-5.4 12.8-12.1V210.2c.1-6.7-5.7-12.1-12.8-12.1z",fill:"#468cbe"}),a.a.createElement("path",{fill:"#edf2f2",d:"M164.9 266h175.3v58.7H164.9z"}),a.a.createElement("g",{fill:"#395767"},a.a.createElement("path",{d:"M213 295.4l-7.4 1 5.3 5.7-4.9 3.4-3.7-6.8-3.7 6.8-4.9-3.4 5.3-5.7-7.4-1 1.9-5.4 6.8 2.9-1.2-7.7h6.3l-1.2 7.7 6.7-2.9 2.1 5.4zM238.1 295.4l-7.4 1 5.3 5.7-4.9 3.4-3.7-6.8-3.7 6.8-4.9-3.4 5.3-5.7-7.4-1 1.9-5.4 6.8 2.9-1.2-7.7h6.3l-1.2 7.7 6.7-2.9 2.1 5.4zM263.2 295.4l-7.4 1 5.3 5.7-4.9 3.4-3.7-6.8-3.7 6.8-4.9-3.4 5.3-5.7-7.4-1 1.9-5.4 6.8 2.9-1.2-7.7h6.3l-1.2 7.7 6.7-2.9 2.1 5.4zM288.2 295.4l-7.4 1 5.3 5.7-4.9 3.4-3.7-6.8-3.7 6.8-4.9-3.4 5.3-5.7-7.4-1 1.9-5.4 6.8 2.9-1.2-7.7h6.3l-1.2 7.7 6.7-2.9 2.1 5.4zM313.3 295.4l-7.4 1 5.3 5.7-4.9 3.4-3.7-6.8-3.7 6.8-4.9-3.4 5.3-5.7-7.4-1 1.9-5.4 6.8 2.9-1.2-7.7h6.3l-1.2 7.7 6.7-2.9 2.1 5.4z"})))},wc={icon:{title:"",width:"13%"},type:{title:"Login With",width:"62%"},enabled:{title:"Enabled",width:"25%"}},xc=function(e){var t=e.types,n=e.onChange;return a.a.createElement("div",{className:"login-types-table"},a.a.createElement(gt,null,Object.keys(wc).map((function(e){return a.a.createElement("div",{key:e,style:{width:wc[e].width}},wc[e].title)}))),a.a.createElement(ht,{className:"login-types-row"},a.a.createElement("div",{style:{width:wc.icon.width}},a.a.createElement("div",{className:"login-types-row__icon"},a.a.createElement(_c,{className:"login-type-icon"}))),a.a.createElement("div",{style:{width:wc.type.width}},a.a.createElement("p",{className:"login-types-row__type"},"Username and Password")),a.a.createElement("div",{style:{width:wc.enabled.width}},a.a.createElement("div",{className:"login-types-row__enabled"},a.a.createElement(On,{value:t.username,onChange:function(e){return n("username",e)}})))),a.a.createElement(ht,{className:"login-types-row"},a.a.createElement("div",{style:{width:wc.icon.width}},a.a.createElement("div",{className:"login-types-row__icon"},a.a.createElement(hc,{className:"login-type-icon"}))),a.a.createElement("div",{style:{width:wc.type.width}},a.a.createElement("p",{className:"login-types-row__type"},"Phone Number")),a.a.createElement("div",{style:{width:wc.width}},a.a.createElement("div",{className:"login-types-row__enabled"},a.a.createElement(On,{value:t.phone,onChange:function(e){return n("phone",e)}})))),a.a.createElement(ht,{className:"login-types-row"},a.a.createElement("div",{style:{width:wc.icon.width}},a.a.createElement("div",{className:"login-types-row__icon"},a.a.createElement(Ec,{className:"login-type-icon"}))),a.a.createElement("div",{style:{width:wc.type.width}},a.a.createElement("p",{className:"login-types-row__type"},"Federated Identity")),a.a.createElement("div",{style:{width:wc.enabled.width}},a.a.createElement("div",{className:"login-types-row__enabled"},a.a.createElement(On,{value:t.federated,onChange:function(e){return n("federated",e)}})))))};function Sc(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var Cc=function(){var e=Object(c.c)(),t=Object(c.d)((function(e){return e.settings.login})),n=Vn().setProgress,o=function(){var t,r=(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(70),t.next=3,e(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchLoginSettings();case 2:a=e.sent,t({type:"RECEIVE_LOGIN_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:n(100);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(e){Sc(o,r,a,i,c,"next",e)}function c(e){Sc(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(){return r.apply(this,arguments)}}();Object(r.useEffect)((function(){o()}),[]);return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Login Types"),a.a.createElement("p",{className:"iap-management-section__description"},"These settings allow to turn off undesirable login endpoints."),a.a.createElement("div",{className:"iap-settings-section"},a.a.createElement("div",{className:"section-field"},a.a.createElement(_n,{label:"2FA Type"},a.a.createElement(Kr,{value:t.tfaType,onChange:function(n){var r=G()(t,{tfaType:n});e(li(r))},placeholder:"Select 2FA Type"},a.a.createElement(qr,{value:"app",title:"App"}),a.a.createElement(qr,{value:"sms",title:"SMS"}),a.a.createElement(qr,{value:"email",title:"Email"})))),a.a.createElement(xc,{types:t.loginWith,onChange:function(n,r){var a=G()(t,"loginWith.".concat(n),r);e(li(a))}})))},Tc=function(){return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Multi-Factor Authentication"))},Oc=(n(590),Object(r.createContext)()),Pc=function(){return Object(r.useContext)(Oc)};function kc(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ac(){return(Ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Rc=function(e){e.styles;var t=kc(e,["styles"]);return a.a.createElement("svg",Ac({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},t),a.a.createElement("path",{d:"M45 25H20a1 1 0 100 2h25a1 1 0 100-2zM20 19h10a1 1 0 100-2H20a1 1 0 100 2zM45 33H20a1 1 0 100 2h25a1 1 0 100-2zM45 41H20a1 1 0 100 2h25a1 1 0 100-2zM45 49H20a1 1 0 100 2h25a1 1 0 100-2z"}),a.a.createElement("path",{d:"M49 14.586V0H6v55h5v5h43V19.586l-5-5zm-9-6.172l9 9L50.586 19H40V8.414zM8 53V2h39v10.586L39.414 5H11v48H8zm5 5V7h25v14h14v37H13z"}))},Nc=function(e){var t=e.languages,n=e.selected,r=e.onChange,o=t.findIndex((function(e){return e===n}));return a.a.createElement("div",{className:"template-lang-selector"},t.map((function(e){var t=S()("template-lang-selector__btn",{"template-lang-selector__btn--active":e===n});return a.a.createElement("button",{key:e,type:"button",className:t,onClick:function(){return r(e)}},e)})),a.a.createElement("div",{className:"template-lang-selector__indicator",style:{top:45*o}}))},Ic=function(e){return e.visible?a.a.createElement("div",{className:"file-changes-indicator-container"},a.a.createElement("div",{className:"file-changes-indicator"}),a.a.createElement("div",{className:"file-changes-tooltip"},"Unsaved changes")):null};Ic.defaultProps={visible:!1};var jc,zc=Ic,Mc=function(e){var t=e.onCode,n=a.a.useRef(null);return a.a.createElement(a.a.Fragment,null,a.a.createElement("button",{className:"template-editor__upload-code",onClick:function(){return n.current.click()}},a.a.createElement(Ni,{className:"template-editor__upload-icon"}),"Upload source code"),a.a.createElement("input",{type:"file",onChange:function(e){var n=e.target.files[0],r=new FileReader;r.onload=function(){return t(r.result)},r.readAsText(n)},ref:n,style:{display:"none"}}))},Fc=function(e){var t=e.visible,n=e.onDiscard,r=e.onCancel;return t?a.a.createElement("div",{className:"editor-changes-warning"},a.a.createElement("div",null,"You have unsaved changes. Discard them?"),a.a.createElement("div",{className:"editor-changes-warning__btns"},a.a.createElement("button",{className:"editor-changes-warning__btn",onClick:r},"Cancel"),a.a.createElement("button",{className:"editor-changes-warning__btn editor-changes-warning__btn--dimmed",onClick:n},"Discard"))):null};n(592),n(594),n(229),n(153);function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bc=(Uc(jc={},"html","htmlmixed"),Uc(jc,"css","css"),Uc(jc,"js","javascript"),jc),Dc=null,Hc=function(e){var t=e.name,n=e.extension,o=e.source,i=e.progress,c=(e.onChange,Lc(Object(r.useState)(o||""),2)),l=c[0],s=c[1],u=Lc(Object(r.useState)(!1),2),p=u[0],f=u[1],m=Lc(Object(r.useState)(!1),2),d=m[0],h=m[1];Object(r.useEffect)((function(){o&&s(o)}),[o]),Object(r.useEffect)((function(){f(l!==o)}),[l]);return a.a.createElement(a.a.Fragment,null,a.a.createElement("header",{className:"template-editor-header"},a.a.createElement("div",{className:"template-editor__filename"},a.a.createElement(Rc,{className:"template-editor__file-icon"}),function(e,t){return e?t?"".concat(e,".").concat(t):e:""}(t,n),a.a.createElement(zc,{visible:p})),a.a.createElement(Mc,{onCode:s})),a.a.createElement("div",{className:"template-editor",onClick:function(){Dc&&Dc.display.input.focus()}},a.a.createElement(jo.Controlled,{className:"template-editor-inner",editorDidMount:function(e){return Dc=e},value:i?"":l,options:{lineNumbers:!0,theme:"eclipse",mode:Bc[n]},onBeforeChange:function(e,t,n){return s(n)}}),a.a.createElement("div",{className:"template-editor__numpad-area"}),a.a.createElement(Nc,{languages:["html","css","js"],selected:n,onChange:function(t){p?h(!0):e.onExtensionChange(t)}}),a.a.createElement(Fc,{visible:d,onDiscard:null,onCancel:function(){return h(!1)}})),a.a.createElement("footer",{className:"template-editor-footer"},a.a.createElement(N,{Icon:i?j:Sn,onClick:function(){},disabled:i},"Submit Template")))};function Vc(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Gc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Kc="invite-email",Yc="welcome-email",qc="reset-email",Wc="verify-email",Xc="tfa-email",Zc="login",Jc="registration",Qc="forgot-password",$c=function(){var e=Pc(),t=Vn(),n=t.progress,o=t.setProgress,i=Gc(Object(r.useState)(Kc),2),c=i[0],l=i[1],s=Gc(Object(r.useState)("html"),2),u=s[0],p=s[1],f=Gc(Object(r.useState)(""),2),m=f[0],d=f[1],h=function(){var t,n=(t=regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o(80),t.prev=1,t.next=4,e.static.fetchStaticFile(c,u);case 4:n=t.sent,d(n),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(1);case 10:return t.prev=10,o(100),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,8,10,13]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(e){Vc(o,r,a,i,c,"next",e)}function c(e){Vc(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(){return n.apply(this,arguments)}}();return Object(r.useEffect)((function(){h()}),[c,u]),a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("h1",{className:"iap-management-section__title"},"Hosted Pages",a.a.createElement(Kr,{value:c,onChange:l},a.a.createElement(qr,{value:Kc,title:"Invitation Email"}),a.a.createElement(qr,{value:Yc,title:"Welcome Email"}),a.a.createElement(qr,{value:qc,title:"Reset Password Email"}),a.a.createElement(qr,{value:Wc,title:"Verify Email"}),a.a.createElement(qr,{value:Xc,title:"2FA Email"}),a.a.createElement(qr,{value:Zc,title:"Login page"}),a.a.createElement(qr,{value:Jc,title:"Registration page"}),a.a.createElement(qr,{value:Qc,title:"Forgot password page"}))),a.a.createElement("p",{className:"iap-management-section__description"},"Customize hosted pages by editing the source code via web editor."),a.a.createElement("main",{className:"hosted-pages-main"},a.a.createElement(Hc,{name:c,extension:u,source:m,progress:!!n,onExtensionChange:p})))},el=(n(596),function(e){return a.a.createElement("div",{className:"iap-404-screen"},a.a.createElement("p",{className:"iap-404-screen__title"},"404"),a.a.createElement("p",{className:"iap-404-screen__subtitle"},"Page not found"),a.a.createElement(ia,{className:"iap-404-screen__icon"}),a.a.createElement(N,{onClick:function(){return e.history.push("/management")}},"←   Go to Home page"))});el.propTypes={history:w.a.shape({push:w.a.func}).isRequired};var tl=Object(le.a)(el),nl=function(){return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("div",{className:"iap-section-placeholder"},a.a.createElement(tl,null)))},rl=(n(598),function(e){var t=e.loading,n=e.error,r=e.settings,o=e.onSubmit,i={type:r.type||"local",serverConfigPath:r.serverConfigPath||"",region:r.region||"",folder:r.folder||"",bucket:r.bucket||"",endpoint:r.endpoint||""},c=Y(i,null,(function(e){o(G()(r,e))}));return a.a.useEffect((function(){r&&c.setValues(r)}),[r]),a.a.createElement("form",{className:"iap-apps-form",onSubmit:c.handleSubmit},a.a.createElement(_n,{label:"Storage Type"},a.a.createElement(Kr,{value:c.values.type||"",onChange:function(e){return c.setValue("type",e)},placeholder:"Select storage type"},a.a.createElement(qr,{value:"local",title:"Local"}),a.a.createElement(qr,{value:"s3",title:"S3"}),a.a.createElement(qr,{value:"dynamodb",title:"DynamoDB"}))),a.a.createElement(_n,{label:"Server Config Path"},a.a.createElement(P,{name:"serverConfigPath",value:c.values.serverConfigPath,autoComplete:"off",placeholder:"Specify path to server config",onChange:c.handleChange,disabled:t})),("local"===c.values.type||"s3"===c.values.type)&&a.a.createElement(_n,{label:"Folder"},a.a.createElement(P,{name:"folder",value:c.values.folder,autoComplete:"off",placeholder:"Specify folder",onChange:c.handleChange,disabled:t})),("s3"===c.values.type||"dynamodb"===c.values.type)&&a.a.createElement(_n,{label:"Region"},a.a.createElement(P,{name:"region",value:c.values.region,autoComplete:"off",placeholder:"Specify region",onChange:c.handleChange,disabled:t})),"dynamodb"===c.values.type&&a.a.createElement(_n,{label:"Endpoint",subtext:"Can be omitted if region is set"},a.a.createElement(P,{name:"endpoint",value:c.values.endpoint,autoComplete:"off",placeholder:"Specify db endpoint",onChange:c.handleChange,disabled:t})),"s3"===c.values.type&&a.a.createElement(_n,{label:"Bucket"},a.a.createElement(P,{name:"bucket",value:c.values.bucket,autoComplete:"off",placeholder:"Specify s3 bucket",onChange:c.handleChange,disabled:t})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:t?j:Sn,disabled:t,error:!t&&!!n},"Save Changes")))});function al(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){al(o,r,a,i,c,"next",e)}function c(e){al(o,r,a,i,c,"throw",e)}i(void 0)}))}}var il=function(){var e=Object(c.c)(),t=Vn(),n=t.progress,r=t.setProgress,o=tr().notifySuccess,i=Object(c.d)((function(e){return e.settings.staticFiles})),l=function(){var t=ol(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(70),t.next=3,e(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.fetchStaticFilesSettings();case 2:a=e.sent,t({type:"RECEIVE_STATIC_FILES_SETTINGS",payload:a});case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}());case 3:r(100);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();a.a.useEffect((function(){l()}),[]);var s=function(){var t=ol(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(70),t.next=3,e(pi(n));case 3:r(100),o({title:"Updated",text:"Settings have been updated successfully"});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("p",{className:"iap-management-section__title"},"Static Files"),a.a.createElement("p",{className:"iap-management-section__description"},"These settings allow to specify paths to various static files directories."),a.a.createElement(rl,{settings:i||{},loading:!!n,onSubmit:s}))};n(600);function cl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ll(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){cl(o,r,a,i,c,"next",e)}function c(e){cl(o,r,a,i,c,"throw",e)}i(void 0)}))}}function sl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ul=null,pl=function(){var e=Pc(),t=Vn(),n=t.progress,o=t.setProgress,i=tr(),c=i.notifySuccess,l=i.notifyFailure,s=sl(Object(r.useState)("{\n\t\n}"),2),u=s[0],p=s[1],f=Object(r.useRef)(null),m=function(){var t=ll(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o(70),t.prev=1,t.next=4,e.apple.fetchAppSiteAssociationFileContents();case 4:n=t.sent,p(n);case 6:return t.prev=6,o(100),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})));return function(){return t.apply(this,arguments)}}();Object(r.useEffect)((function(){m()}),[]);var d=function(){var t=ll(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o(70),t.prev=1,t.next=4,e.apple.uploadAppSiteAssociationFileContents(u);case 4:c({title:"Uploaded",text:"File has been uploaded."}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),l({title:"Something went wrong",text:"File could not be uploaded."});case 10:return t.prev=10,o(100),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,7,10,13]])})));return function(){return t.apply(this,arguments)}}();return a.a.createElement("div",{className:"app-site-association-form"},a.a.createElement("header",{className:"template-editor-header"},a.a.createElement("p",{className:"template-editor__filename"},a.a.createElement(Rc,{className:"template-editor__file-icon"}),"apple-app-site-association"),a.a.createElement("button",{className:"template-editor__upload-code",onClick:function(){return f.current.click()}},a.a.createElement(Ni,{className:"template-editor__upload-icon"}),"Upload source code"),a.a.createElement("input",{type:"file",onChange:function(e){var t=e.target.files[0],n=new FileReader;n.onload=function(){return p(n.result)},n.readAsText(t)},ref:f,style:{display:"none"}})),a.a.createElement("div",{className:"template-editor",onClick:function(){ul&&ul.display.input.focus()}},a.a.createElement(jo.Controlled,{editorDidMount:function(e){return ul=e},value:u,options:{lineNumbers:!0,theme:"eclipse",mode:"javascript",tabSize:4},onBeforeChange:function(e,t,n){return p(n)},className:"template-editor-inner"}),a.a.createElement("div",{className:"template-editor__numpad-area"})),a.a.createElement("footer",{className:"template-editor-footer"},a.a.createElement(N,{Icon:n?j:Sn,onClick:d,disabled:!!n},"Upload")))};function fl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var dl=function(){var e=ml(Object(r.useState)(null),2),t=e[0],n=e[1],o=Vn(),i=o.progress,c=o.setProgress,l=tr(),s=l.notifySuccess,u=l.notifyFailure,p=Pc(),f=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),t){e.next=3;break}return e.abrupt("return");case 3:return c(70),e.prev=4,e.next=7,p.apple.uploadDevDomainAssociationFile(t);case 7:s({title:"Success",text:"File has been uploaded."}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),u({title:"Something went wrong",text:"File could not be uploaded."});case 13:return e.prev=13,c(100),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[4,10,13,16]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){fl(o,r,a,i,c,"next",e)}function c(e){fl(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}();return a.a.createElement("form",{className:"domain-association-form",onSubmit:f},a.a.createElement(_n,{label:"Developer Domain Association File",subtext:t?t.name:"No file selected"},a.a.createElement(Di,{disablePathInput:!0,path:"/.well-known/apple-developer-domain-association.txt",onFile:n})),a.a.createElement("footer",{className:"iap-apps-form__footer"},a.a.createElement(N,{type:"submit",Icon:i?j:Sn,disabled:!t},"Upload")))};function hl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var vl=function(){var e=hl(Object(r.useState)(0),2),t=e[0],n=e[1];return a.a.createElement("section",{className:"iap-management-section"},a.a.createElement("header",null,a.a.createElement("p",{className:"iap-management-section__title"},"Apple Integration"),a.a.createElement("p",{className:"iap-management-section__description"},"Sign In with Apple configuration for users to sign in using their Apple ID")),a.a.createElement("main",{className:"iap-settings-section"},a.a.createElement(va,{activeTabIndex:t,onChange:n},a.a.createElement(fa,{title:"App Site Association"}),a.a.createElement(fa,{title:"Developer Domain Association"}),a.a.createElement(a.a.Fragment,null,0===t&&a.a.createElement(pl,null),1===t&&a.a.createElement(dl,null)))))},gl=(n(602),function(){var e=Object(c.c)(),t=Vn({local:!0}),n=t.progress,r=t.setProgress;if(!Object(c.d)((function(e){return e.settings.changed})))return null;return a.a.createElement("div",{className:"popup"},!!n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:"popup-text"},"Restarting the server"),a.a.createElement(j,{className:"popup-loading"})),!n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:"popup-text"},"In order for the changes to take effect, please restart the server."),a.a.createElement("button",{className:"popup-btn",onClick:function(){r(70),e(function(){var e=ci(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.settings.requestServerRestart();case 2:return e.next=4,ge(1e3);case 4:t(y());case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}())}},"Restart")))}),El=(n(604),function(){return a.a.createElement("div",{className:"iap-management-layout"},a.a.createElement(Dn,null,a.a.createElement(er,null,a.a.createElement(Ie,null),a.a.createElement("div",{className:"iap-management-content"},a.a.createElement(Q,null,a.a.createElement(ct,null),a.a.createElement(s.a,null,a.a.createElement(u.a,{exact:!0,path:"/management",component:rc}),a.a.createElement(u.a,{path:"/management/users",component:gr}),a.a.createElement(u.a,{path:"/management/database",component:_a}),a.a.createElement(u.a,{path:"/management/applications",component:$o}),a.a.createElement(u.a,{path:"/management/email_integration",component:fc}),a.a.createElement(u.a,{path:"/management/account",component:Ci}),a.a.createElement(u.a,{path:"/management/settings",component:Cc}),a.a.createElement(u.a,{path:"/management/multi-factor_auth",component:Tc}),a.a.createElement(u.a,{path:"/management/static",component:il}),a.a.createElement(u.a,{path:"/management/hosted_pages",component:$c}),a.a.createElement(u.a,{path:"/management/apple",component:vl}),a.a.createElement(u.a,{component:nl})))),a.a.createElement(gl,null))))}),bl=(n(606),function(){return a.a.createElement("div",null,a.a.createElement(Ie,null),a.a.createElement("div",{className:"iap-management-content"},a.a.createElement(Q,null,a.a.createElement("div",{className:"iap-global-not-found-screen"},a.a.createElement(tl,null)))))}),yl=n(640);function _l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var wl=function(e,t,n){var r=function(r){var o=r.location,i=_l(r,["location"]),l=Object(c.d)((function(e){return e.auth.authenticated}));if(e!==l){if(!0===e){var s={pathname:n,state:{path:o.pathname}};return a.a.createElement(yl.a,{to:s})}var u=(o.state||{}).path;return a.a.createElement(yl.a,{to:u||n})}return a.a.createElement(t,i)};return r.propTypes={location:w.a.shape({pathname:w.a.string,state:w.a.object}).isRequired},Object(le.a)(r)},xl=(n(608),function(e){var t=e.store,n=e.services;return a.a.createElement(c.a,{store:t},a.a.createElement(Oc.Provider,{value:n},a.a.createElement(l.a,{basename:"/adminpanel/"},a.a.createElement(s.a,null,a.a.createElement(u.a,{exact:!0,path:"/",component:wl(!1,X,"/management")}),a.a.createElement(u.a,{path:"/management/:section?",component:wl(!0,El,"/")}),a.a.createElement(u.a,{component:bl})))))}),Sl=n(54),Cl=n.n(Sl);function Tl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Tl(o,r,a,i,c,"next",e)}function c(e){Tl(o,r,a,i,c,"throw",e)}i(void 0)}))}}Cl.a.defaults.withCredentials=!0;var Pl,kl=function(){var e=[],t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},n=function(){var e=Ol(regeneratorRuntime.mark((function e(n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(r);case 2:return a=e.sent,e.abrupt("return",Cl.a.get(n,a));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),r=function(){var e=Ol(regeneratorRuntime.mark((function e(n,r,a){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(a);case 2:return o=e.sent,e.abrupt("return",Cl.a.post(n,r,o));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),a=function(){var e=Ol(regeneratorRuntime.mark((function e(n,r,a){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(a);case 2:return o=e.sent,e.abrupt("return",Cl.a.put(n,r,o));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),o=function(){var e=Ol(regeneratorRuntime.mark((function e(n,r,a){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(a);case 2:return o=e.sent,e.abrupt("return",Cl.a.patch(n,r,o));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),i=function(){var e=Ol(regeneratorRuntime.mark((function e(n,r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(r);case 2:return a=e.sent,e.abrupt("return",Cl.a.delete(n,a));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return Object.freeze({get:n,post:r,put:a,delete:i,patch:o,addMiddleware:function(t){e.push(t)},addResponseInterceptor:function(e,t){Cl.a.interceptors.response.use(e,t)}})},Al=(Pl={BASE_URL:"/adminpanel/",ASSETS_PATH:"/adminpanel/"}.API_URL?{BASE_URL:"/adminpanel/",ASSETS_PATH:"/adminpanel/"}.API_URL:window.location.origin,{API_URL:{BASE_URL:"/adminpanel/",ASSETS_PATH:"/adminpanel/"}.API_URL_SUFFIX?"".concat(Pl).concat({BASE_URL:"/adminpanel/",ASSETS_PATH:"/adminpanel/"}.API_URL_SUFFIX):Pl});function Rl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var Nl=function(e){var t=e.httpClient,n=Al.API_URL,r=function(){var e,r=(e=regeneratorRuntime.mark((function e(r,a){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(n,"/admin/login"),e.prev=1,e.next=4,t.post(o,{email:r,password:a});case 4:return i=e.sent,e.abrupt("return",i.data);case 8:throw e.prev=8,e.t0=e.catch(1),be(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Rl(o,r,a,i,c,"next",e)}function c(e){Rl(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e,t){return r.apply(this,arguments)}}();return Object.freeze({login:r,logout:function(){var e="".concat(n,"/admin/logout");return t.post(e)},checkAuthState:function(){var e="".concat(n,"/admin/me");return new Promise((function(n){t.get(e).then((function(){return ge(500)})).then((function(){return n(!0)})).catch((function(){return n(!1)}))}))}})};function Il(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function jl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Il(o,r,a,i,c,"next",e)}function c(e){Il(o,r,a,i,c,"throw",e)}i(void 0)}))}}var zl=function(e){var t=e.httpClient,n=Al.API_URL,r=function(){var e=jl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/storage/test"),e.next=3,t.post(a,r);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=jl(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",o.storage);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=jl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/storage"),e.next=3,t.put(a,r);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({testConnection:r,fetchSettings:a,postSettings:o})};function Ml(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Fl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ml(o,r,a,i,c,"next",e)}function c(e){Ml(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Ll=function(e){var t=e.httpClient,n=Al.API_URL,r=function(){var e=Fl(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/account"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=Fl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/account"),o=t.patch(a,Mn(r,"snake")),i=o.data,e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchSettings:r,postSettings:a})},Ul=n(241);function Bl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Dl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Bl(o,r,a,i,c,"next",e)}function c(e){Bl(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Hl=function(e){var t=e.httpClient,n=Al.API_URL,r=function(){var e=Dl(regeneratorRuntime.mark((function e(){var r,a,o,i,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>0&&void 0!==l[0]?l[0]:{},a=r.search,o=Object(Ul.format)({pathname:"".concat(n,"/admin/users"),query:{search:a}}),e.next=5,t.get(o);case 5:return i=e.sent,c=i.data,e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=Dl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/users"),e.next=3,t.post(a,r);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=Dl(regeneratorRuntime.mark((function e(r,a){var o,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(n,"/admin/users/").concat(r),e.next=3,t.put(o,a);case 3:return i=e.sent,c=i.data,e.abrupt("return",c);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),i=function(){var e=Dl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/users/").concat(r),e.next=3,t.get(a);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=Dl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/users/").concat(r),e.next=3,t.delete(a);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchUsers:r,postUser:a,alterUser:o,fetchUserById:i,deleteUserById:c})};function Vl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Gl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Vl(o,r,a,i,c,"next",e)}function c(e){Vl(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Kl=function(e){var t=e.httpClient,n=Al.API_URL,r=function(){var e=Gl(regeneratorRuntime.mark((function e(){var r,a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/apps"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,i=void 0===o?[]:o,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=Gl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/apps/").concat(r),e.next=3,t.get(a);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=Gl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/apps"),e.next=3,t.post(a,r);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=Gl(regeneratorRuntime.mark((function e(r,a){var o,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(n,"/admin/apps/").concat(r),e.next=3,t.put(o,a);case 3:return i=e.sent,c=i.data,e.abrupt("return",c);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=function(){var e=Gl(regeneratorRuntime.mark((function e(r){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/apps/").concat(r),e.next=3,t.delete(a);case 3:return o=e.sent,i=o.data,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchApplications:r,fetchApplicationById:a,postApplication:o,alterApplication:i,deleteApplicationById:c})};function Yl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ql(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Yl(o,r,a,i,c,"next",e)}function c(e){Yl(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Wl=function(e){var t=e.httpClient,n=Al.API_URL;return{fetchLoginSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/login"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateLoginSettings:function(e){var r="".concat(n,"/admin/settings/login");return t.put(r,Mn(e,"snake"))},fetchExternalServicesSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/services"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateExternalServicesSettings:function(){var e=ql(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/services"),e.abrupt("return",t.put(a,Mn(r,"snake")));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchSessionStorageSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/storage/session"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateSessionStorageSettings:function(){var e=ql(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/storage/session"),e.abrupt("return",t.put(a,Mn(r,"snake")));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchStaticFilesSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/static"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateStaticFilesSettings:function(){var e=ql(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/static"),e.abrupt("return",t.put(a,Mn(r,"snake")));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchGeneralSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/general"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateGeneralSettings:function(){var e=ql(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/general"),e.abrupt("return",t.put(a,Mn(r,"snake")));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchConfigurationStorageSettings:function(){var e=ql(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/settings/storage/configuration"),e.next=3,t.get(r);case 3:return a=e.sent,o=a.data,e.abrupt("return",Mn(o,"camel"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateConfigurationStorageSettings:function(){var e=ql(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(n,"/admin/settings/storage/configuration"),e.abrupt("return",t.put(a,Mn(r,"snake")));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uploadJWTKeys:function(){var e=ql(regeneratorRuntime.mark((function e(r,a){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(n,"/admin/static/uploads/keys"),(i=new FormData).append("keys",r,"public.pem"),i.append("keys",a,"private.pem"),e.abrupt("return",t.post(o,i));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),requestServerRestart:function(){var e=ql(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(n,"/admin/restart"),e.next=3,t.post(r);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}};function Xl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}var Zl=function(e){var t=e.httpClient;return{fetchAppSiteAssociationFileContents:function(){var e,n=(e=regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(window.location.origin,"/.well-known/apple-app-site-association"),e.next=3,t.get(n);case 3:return r=e.sent,a=r.data,o=new FileReader,e.abrupt("return",new Promise((function(e){o.onload=function(){e(o.result)},o.readAsText(a)})));case 7:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Xl(o,r,a,i,c,"next",e)}function c(e){Xl(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(){return n.apply(this,arguments)}}(),uploadAppSiteAssociationFileContents:function(e){var n="".concat(Al.API_URL,"/admin/static/template?name=apple-app-site-association"),r={contents:e};return t.post(n,r)},uploadDevDomainAssociationFile:function(e){var n=new FormData,r="".concat(Al.API_URL,"/admin/static/uploads/apple-domain-association");return n.append("file",e),t.post(r,n)}}};function Jl(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Ql(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Jl(o,r,a,i,c,"next",e)}function c(e){Jl(o,r,a,i,c,"throw",e)}i(void 0)}))}}var $l=function(e){var t=e.httpClient,n=Al.API_URL;return{fetchStaticFile:function(){var e=Ql(regeneratorRuntime.mark((function e(r){var a,o,i,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c.length>1&&void 0!==c[1]?c[1]:"html",o="".concat(n,"/admin/static/template?name=").concat(r,"&ext=").concat(a),e.next=4,t.get(o);case 4:return i=e.sent,e.abrupt("return",i.data.contents);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),updateStaticFile:function(){var e=Ql(regeneratorRuntime.mark((function e(r,a,o){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="".concat(n,"/admin/static/template?name=").concat(r,"&ext=").concat(a),e.next=3,t.put(i,{contents:o});case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()}};function es(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ts(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){es(o,r,a,i,c,"next",e)}function c(e){es(o,r,a,i,c,"throw",e)}i(void 0)}))}}var ns=function(){var e=function(){var e=ts(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:if("email"!==t||"password"!==n){e.next=5;break}return localStorage.setItem("auth_storage_key","helloworld"),e.abrupt("return");case 5:throw new Error("Email or password is incorrect");case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),t=function(){var e=ts(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.removeItem("auth_storage_key");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){var e=ts(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(500);case 2:return e.abrupt("return",!!localStorage.getItem("auth_storage_key"));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object.freeze({login:e,logout:t,checkAuthState:n})};function rs(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function as(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){rs(o,r,a,i,c,"next",e)}function c(e){rs(o,r,a,i,c,"throw",e)}i(void 0)}))}}var os={storage:{app_storage:{type:"boltdb",name:"apps",endpoint:"localhost:27017",region:"us-west-2",path:"./db.db"},user_storage:{type:"boltdb",name:"users",endpoint:"localhost:27017",region:"us-west-2",path:"./db.db"},token_storage:{type:"boltdb",name:"tokens",endpoint:"localhost:27017",region:"us-west-2",path:"./db.db"},verification_code_storage:{type:"boltdb",name:"verification_codes",endpoint:"localhost:27017",region:"us-west-2",path:"./db.db"},token_blacklist:{type:"boltdb",name:"blacklist",endpoint:"localhost:27017",region:"us-west-2",path:"./db.db"}}},is=function(){var e=function(){var e=as(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:if("mongodb"!==t.type){e.next=4;break}return e.abrupt("return",{result:"ok"});case 4:throw new Error("Unable to connect to specified endpoint");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t=function(){var e=as(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:return e.abrupt("return",os.storage);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){var e=as(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:os.storage=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({testConnection:e,fetchSettings:t,postSettings:n})};function cs(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ls(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){cs(o,r,a,i,c,"next",e)}function c(e){cs(o,r,a,i,c,"throw",e)}i(void 0)}))}}var ss={settings:{email:"john@doe.com",loginEnvName:"IDENTIFO_ADMIN_LOGIN",passwordEnvName:"IDENTIFO_ADMIN_PASSWORD"}},us=function(){var e=function(){var e=ls(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:return e.abrupt("return",ss.settings);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=ls(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(1e3);case 2:if("trigger@error.com"!==t.email){e.next=4;break}throw new Error("Email is already in use");case 4:ss.settings=t;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchSettings:e,postSettings:t})};function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fs(e,t,n[t])}))}return e}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ms(o,r,a,i,c,"next",e)}function c(e){ms(o,r,a,i,c,"throw",e)}i(void 0)}))}}var hs={users:[{id:"507f1f77bcf86cd799439011",username:"dprovodnikov",email:"@madappgang.com",latest_login_time:Date.now()/1e3,num_of_logins:0,tfa_info:{is_enabled:!0},access_role:"",active:!1,phone:"+380993233430"},{id:"507f1f77bcf86cd799439012",tfa_info:{is_enabled:!1},active:!0,username:"test3@madappgang.com",email:"test3@madappgang.com",phone:"+380993233430"},{id:"507f1f77bcf86cd799439013",tfa_info:{is_enabled:!1},active:!0,username:"",phone:"+380993233430"}]},vs=function(){var e=function(){var e=ds(regeneratorRuntime.mark((function e(){var t,n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},!(n=t.search)){e.next=6;break}return e.next=5,ge(300);case 5:return e.abrupt("return",hs.users.filter((function(e){return e.name.toLowerCase().includes(n.toLowerCase())||e.email.toLowerCase().includes(n.toLowerCase())})));case 6:return e.next=8,ge(600);case 8:return e.abrupt("return",{users:hs.users,total:hs.users.length});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=ds(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(600);case 2:if("Trigger Error"!==t.name){e.next=4;break}throw new Error("This name is already taken.");case 4:return n=ps({},t,{id:Date.now().toString(),num_of_logins:0,latest_login_time:void 0,password:void 0}),hs.users.push(n),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n=function(){var e=ds(regeneratorRuntime.mark((function e(t){var n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.next=3,ge(600);case 3:if("Trigger Error"!==n.name){e.next=5;break}throw new Error("This name is already taken");case 5:return hs.users=hs.users.map((function(e){return e.id===t?ps({},e,n):e})),e.abrupt("return",hs.users.find((function(e){return e.id===t})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r=function(){var e=ds(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=hs.users.find((function(e){return e.id===t}))){e.next=3;break}return e.abrupt("return",Promise.reject(new Error("User is not found")));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=ds(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(600);case 2:hs.users=hs.users.filter((function(e){return e.id!==t}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchUsers:e,postUser:t,alterUser:n,fetchUserById:r,deleteUserById:a})};function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Es(e,t,n[t])}))}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function ys(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){bs(o,r,a,i,c,"next",e)}function c(e){bs(o,r,a,i,c,"throw",e)}i(void 0)}))}}var _s={applications:[{id:"5d08ee44e89bde6d23cdf031",active:!1,name:"foo",description:"",offline:!1,type:"web",redirect_urls:["https://hlsaf.com"],registration_forbidden:!1,tfa_status:"disabled",authorization_way:"whitelist",new_user_default_role:"",secret:"E0y2kZGoXXAuhwbwo7kyrdtR",roles_whitelist:[],roles_blacklist:[],debug_tfa_code:void 0,token_lifespan:void 0,invite_token_lifespan:void 0,refresh_token_lifespan:void 0,scopes:[],apple_info:{client_id:"",client_secret:""},token_payload:["Hello","world!"]}]},ws=function(){var e=function(){var e=ys(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(450);case 2:return e.abrupt("return",{apps:_s.applications,total:_s.applications.length});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=ys(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=_s.applications.find((function(e){return e.id===t})))){e.next=3;break}return e.abrupt("return",gs({},n));case 3:throw new Error("Application not found");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n=function(){var e=ys(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(550);case 2:if("Trigger Error"!==t.name){e.next=4;break}throw new Error("Application with this name already exists.");case 4:return n=gs({id:Date.now().toString()},t,{clientId:he.a.generate(32)}),_s.applications.push(n),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r=function(){var e=ys(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(550);case 2:if("Trigger Error"!==n.name){e.next=4;break}throw new Error("Application with this name already exists.");case 4:if(_s.applications=_s.applications.map((function(e){return e.id===t?gs({},e,n):e})),!(r=_s.applications.find((function(e){return e.id===t})))){e.next=8;break}return e.abrupt("return",r);case 8:throw new Error("Cound not alter application");case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a=function(){var e=ys(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(500);case 2:return _s.applications=_s.applications.filter((function(e){return e.id!==t})),e.abrupt("return",{result:"ok"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object.freeze({fetchApplications:e,fetchApplicationById:t,postApplication:n,alterApplication:r,deleteApplicationById:a})};function xs(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Ss(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){xs(o,r,a,i,c,"next",e)}function c(e){xs(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Cs={general:{host:"http://localhost:8081",issuer:"http://localhost:8081",algorithm:"auto"},login:{loginWith:{username:!0,phone:!1,federated:!1},tfaType:"app"},externalServices:{emailService:{type:"mailgun",domain:"example.com",privateKey:"PRIVATE",publicKey:"PUBLIC",sender:"",region:""},smsService:{type:"twilio",accountSid:"asid",authToken:"token",serviceSid:"ssid"}},sessionStorage:{type:"memory",sessionDuration:300,address:"",password:"",db:"",region:"",endpoint:""},staticFilesStorage:{type:"local",serverConfigPath:"server-config.yaml",region:"",bucket:"",endpoint:"",folder:""},configurationStorage:{type:"file",settingsKey:"server-config.yaml",endpoints:[],region:"",bucket:"bucket",keyStorage:{type:"file",privateKey:"jwt/private.pem",publicKey:"jwt/public.pem",region:"",bucket:"jwt bucket"}}},Ts=function(){return{fetchLoginSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.login);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateLoginSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Cs.login=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchExternalServicesSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.externalServices);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateExternalServicesSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Cs.externalServices=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchSessionStorageSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.sessionStorage);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateSessionStorageSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Cs.sessionStorage=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchStaticFilesSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.staticFiles);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateStaticFilesSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Cs.staticFiles=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchGeneralSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.general);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateGeneralSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Cs.general=t;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchConfigurationStorageSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Cs.configurationStorage);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),updateConfigurationStorageSettings:function(){var e=Ss(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(Mn(t,"snake")),e.next=3,ge(400);case 3:Cs.configurationStorage=t;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uploadJWTKeys:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),requestServerRestart:function(){var e=Ss(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(100);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}};function Os(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Ps(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Os(o,r,a,i,c,"next",e)}function c(e){Os(o,r,a,i,c,"throw",e)}i(void 0)}))}}var ks=function(){return{uploadDevDomainAssociationFile:function(){var e=Ps(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),uploadAppSiteAssociationFileContents:function(){var e=Ps(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fetchAppSiteAssociationFileContents:function(){var e=Ps(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return","{\n\t\n\t\n}");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}};function As(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function Rs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){As(o,r,a,i,c,"next",e)}function c(e){As(o,r,a,i,c,"throw",e)}i(void 0)}))}}var Ns={invite:{html:"<div>invitation email markup</div>",css:".invite { display: flex; }",js:"function (a, b) { return a + b; }"},welcome:{html:"<div>welcome email markup</div>",css:".invite { display: flex; }",js:"function (a, b) { return a + b; }"},reset:{html:"<div>reset password markup</div>",css:".invite { display: flex; }",js:"function (a, b) { return a + b; }"},verify:{html:"<div>verify email markup</div>",css:".invite { display: flex; }",js:"function (a, b) { return a + b; }"},tfa:{html:"<div>2fa email markup</div>",css:".invite { display: flex; }",js:"function (a, b) { return a + b; }"}},Is=function(){return{fetchStaticFile:function(){var e=Rs(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:return e.abrupt("return",Ns[t][n]);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),updateStaticFile:function(){var e=Rs(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(400);case 2:Ns[t][n]=r;case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()}},js=kl(),zs=Nl({httpClient:js}),Ms=zl({httpClient:js}),Fs=Ll({httpClient:js}),Ls=Hl({httpClient:js}),Us=Kl({httpClient:js}),Bs=Wl({httpClient:js}),Ds=Zl({httpClient:js}),Hs=$l({httpClient:js}),Vs="true"==={BASE_URL:"/adminpanel/",ASSETS_PATH:"/adminpanel/"}.MOCK_API,Gs={http:js,auth:Vs?ns():zs,database:Vs?is():Ms,account:Vs?us():Fs,users:Vs?vs():Ls,applications:Vs?ws():Us,settings:Vs?Ts():Bs,apple:Vs?ks():Ds,static:Vs?Is():Hs},Ks=n(49),Ys={authenticated:!1,inProgress:!1,error:null},qs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ys,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case m.LOGIN_ATTEMPT:return G()(e,"inProgress",!0);case m.AUTH_STATE_CHANGE:return G()(e,{inProgress:!1,authenticated:r});case m.LOGIN_FAILURE:return G()(e,{inProgress:!1,error:r});case m.LOGOUT_ATTEMPT:return G()(e,{inProgress:!0,error:null});default:return e}},Ws={config:null,fetching:!1,posting:!1,error:null,changed:!1},Xs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ws,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case wr.FETCH_DB_SETTINGS_ATTEMPT:return G()(e,"fetching",!0);case wr.FETCH_DB_SETTINGS_SUCCESS:return G()(e,{fetching:!1,config:r,error:null});case wr.POST_DB_SETTINGS_ATTEMPT:return G()(e,"posting",!0);case wr.POST_DB_SETTINGS_SUCCESS:return G()(e,{error:null,posting:!1,config:r});case wr.POST_DB_SETTINGS_FAILURE:case wr.FETCH_DB_SETTINGS_FAILURE:return G()(e,{posting:!1,fetching:!1,error:r});case wr.RESET_DB_SETTINGS_ERROR:return G()(e,"error",null);default:return e}},Zs={checking:!1,state:"connection_test_required"},Js=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zs,t=arguments.length>1?arguments[1]:void 0,n=t.type;switch(n){case wr.TEST_CONNECTION_ATTEMPT:return G()(e,"checking",!0);case wr.TEST_CONNECTION_SUCCESS:return G()(e,{checking:!1,state:"connection_established"});case wr.TEST_CONNECTION_FAILURE:return G()(e,{checking:!1,state:"connection_failed"});case wr.FETCH_DB_SETTINGS_ATTEMPT:case wr.POST_DB_SETTINGS_SUCCESS:return G()(e,"state","connection_test_required");default:return e}},Qs=Object(Ks.c)({settings:Xs,connection:Js}),$s={fetching:!1,posting:!1,settings:null,error:null},eu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$s,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case ye.FETCH_ACCOUNT_SETTINGS_ATTEMPT:return G()(e,"fetching",!0);case ye.FETCH_ACCOUNT_SETTINGS_SUCCESS:return G()(e,{fetching:!1,settings:r,error:null});case ye.FETCH_ACCOUNT_SETTINGS_FAILURE:return G()(e,{fetching:!1,error:r});case ye.POST_ACCOUNT_SETTINGS_ATTEMPT:return G()(e,"posting",!0);case ye.POST_ACCOUNT_SETTINGS_SUCCESS:return G()(e,{posting:!1,settings:r,error:null});case ye.POST_ACCOUNT_SETTINGS_FAILURE:return G()(e,{posting:!1,error:r});case ye.RESET_ACCOUNT_ERROR:return G()(e,"error",null);default:return e}},tu={list:[],error:null,fetching:!1,total:0},nu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case jt.FETCH_USERS_ATTEMPT:return G()(e,{fetching:!0});case jt.FETCH_USERS_SUCCESS:return G()(e,{fetching:!1,list:r.users,total:r.total});case jt.FETCH_USERS_FAILURE:return G()(e,{fetching:!1,error:r});default:return e}},ru={user:null,error:null,fetching:!1,saving:!1},au=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ru,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case jt.FETCH_USER_BY_ID_ATTEMPT:return G()(e,{fetching:!0,user:null,error:null});case jt.FETCH_USER_BY_ID_SUCCESS:return G()(e,{fetching:!1,user:r});case jt.FETCH_USER_BY_ID_FAILURE:return G()(e,{fetching:!1,error:r});case jt.POST_USER_ATTEMPT:return G()(e,{saving:!0});case jt.POST_USER_SUCCESS:return G()(e,{error:null,saving:!1,user:r});case jt.POST_USER_FAILURE:return G()(e,{saving:!1,error:r});case jt.ALTER_USER_ATTEMPT:return G()(e,{saving:!0});case jt.ALTER_USER_SUCCESS:return G()(e,{saving:!1,user:r,error:null});case jt.ALTER_USER_FAILURE:return G()(e,{saving:!1,error:r});case jt.DELETE_USER_BY_ID_ATTEMPT:return G()(e,"saving",!0);case jt.DELETE_USER_BY_ID_SUCCESS:return G()(e,{saving:!1,user:null});case jt.DELETE_USER_BY_ID_FAILURE:return G()(e,{saving:!1,error:r});case jt.RESET_USER_ERROR:return G()(e,"error",null);default:return e}},ou={fetching:!1,list:[],error:null,total:0},iu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ou,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case wa.FETCH_APPLICATIONS_ATTEMPT:return G()(e,{fetching:!0});case wa.FETCH_APPLICATIONS_SUCCESS:return G()(e,{fetching:!1,list:r.apps,total:r.total});case wa.FETCH_APPLICATIONS_FAILURE:return G()(e,{fetching:!1,error:r});case wa.DELETE_APPLICATION_SUCCESS:return G()(e,{list:function(e){return e.filter((function(e){return e.id!==r}))}});default:return e}},cu={fetching:!1,saving:!1,application:null,error:null},lu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case wa.POST_APPLICATION_ATTEMPT:return G()(e,{saving:!0,application:null});case wa.POST_APPLICATION_SUCCESS:return G()(e,{error:null,saving:!1,application:r});case wa.DELETE_APPLICATION_SUCCESS:return G()(e,{saving:!1,application:null});case wa.FETCH_APPLICATION_BY_ID_ATTEMPT:return G()(e,{fetching:!0,error:null,application:null});case wa.FETCH_APPLICATION_BY_ID_SUCCESS:return G()(e,{fetching:!1,application:r});case wa.FETCH_APPLICATION_BY_ID_FAILURE:return G()(e,{fetching:!1,error:r});case wa.ALTER_APPLICATION_ATTEMPT:case wa.DELETE_APPLICATION_ATTEMPT:return G()(e,{saving:!0});case wa.ALTER_APPLICATION_SUCCESS:return G()(e,{error:null,saving:!1,application:r});case wa.POST_APPLICATION_FAILURE:case wa.ALTER_APPLICATION_FAILURE:case wa.DELETE_APPLICATION_FAILURE:return G()(e,{saving:!1,error:r});case wa.RESET_APPLICATION_ERROR:return G()(e,"error",null);default:return e}},su={login:{loginWith:{username:!1,federated:!1,phone:!1},tfaType:"app"},configurationStorage:null,externalServices:null,sessionStorage:null,staticFiles:null,general:null,changed:!1},uu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:su,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"RECEIVE_LOGIN_SETTINGS":return G()(e,"login",r);case"RECEIVE_EXTERNAL_SETTINGS":return G()(e,"externalServices",r);case"RECEIVE_SESSION_STORAGE_SETTINGS":return G()(e,"sessionStorage",r);case"RECEIVE_STATIC_FILES_SETTINGS":return G()(e,"staticFiles",r);case"RECEIVE_GENERAL_SETTINGS":return G()(e,"general",r);case"RECEIVE_CONFIGURATION_STORAGE_SETTINGS":return G()(e,"configurationStorage",r);case"SETTINGS_CHANGED":return G()(e,"changed",!0);case m.LOGOUT_ATTEMPT:return G()(e,"changed",!1);default:return e}},pu=n(242),fu=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=r.concat(a);return i.length>=t.length?t.apply(void 0,cn(i)):e.apply(void 0,[t].concat(cn(i)))}}((function(e,t){var n=Object(Ks.a)(pu.a.withExtraArgument(t));return Object(Ks.d)(e,n)}),Object(Ks.c)({auth:qs,database:Qs,account:eu,users:nu,selectedUser:au,applications:iu,selectedApplication:lu,settings:uu}))(Gs),mu=a.a.createElement(xl,{store:fu,services:Gs});i.a.render(mu,document.getElementById("root"))}});