@os-team/profile 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +12 -28
  2. package/dist/cjs/components/profile/ProfileButton.js +1 -2
  3. package/dist/cjs/components/profile/ProfileButton.js.map +1 -1
  4. package/dist/cjs/components/profile/ProfileConfigContext.js +3 -5
  5. package/dist/cjs/components/profile/ProfileConfigContext.js.map +1 -1
  6. package/dist/cjs/components/profile/ProfileContext.js +3 -5
  7. package/dist/cjs/components/profile/ProfileContext.js.map +1 -1
  8. package/dist/cjs/components/profile/ProfileDrawer.js +2 -3
  9. package/dist/cjs/components/profile/ProfileDrawer.js.map +1 -1
  10. package/dist/cjs/components/profile/ProfileDrawerContent.js +3 -4
  11. package/dist/cjs/components/profile/ProfileDrawerContent.js.map +1 -1
  12. package/dist/cjs/components/profile/ProfileNavigationItem.js +1 -2
  13. package/dist/cjs/components/profile/ProfileNavigationItem.js.map +1 -1
  14. package/dist/cjs/components/profile/ProfileUpdateNameModal.js +3 -4
  15. package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
  16. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +4 -5
  17. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  18. package/dist/cjs/components/profile/ProtectedWrapper.js +4 -9
  19. package/dist/cjs/components/profile/ProtectedWrapper.js.map +1 -1
  20. package/dist/cjs/components/profile/UserAvatar.js +2 -3
  21. package/dist/cjs/components/profile/UserAvatar.js.map +1 -1
  22. package/dist/cjs/components/profile/UserAvatarAddon.js +1 -2
  23. package/dist/cjs/components/profile/UserAvatarAddon.js.map +1 -1
  24. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +1 -2
  25. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
  26. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +1 -2
  27. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
  28. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +1 -2
  29. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
  30. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +1 -2
  31. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
  32. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +5 -12
  33. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  34. package/dist/cjs/components/session/SessionDrawer.js +2 -3
  35. package/dist/cjs/components/session/SessionDrawer.js.map +1 -1
  36. package/dist/cjs/components/session/SessionDrawerContent.js +2 -3
  37. package/dist/cjs/components/session/SessionDrawerContent.js.map +1 -1
  38. package/dist/cjs/components/session/SessionList.js +6 -10
  39. package/dist/cjs/components/session/SessionList.js.map +1 -1
  40. package/dist/cjs/components/session/SessionListItem.js +7 -12
  41. package/dist/cjs/components/session/SessionListItem.js.map +1 -1
  42. package/dist/cjs/components/session/SessionListSkeleton.js +1 -2
  43. package/dist/cjs/components/session/SessionListSkeleton.js.map +1 -1
  44. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -2
  45. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
  46. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +1 -2
  47. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
  48. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +1 -2
  49. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
  50. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js +1 -2
  51. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
  52. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -2
  53. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
  54. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js +1 -2
  55. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
  56. package/dist/cjs/components/session/formatDate.js +1 -2
  57. package/dist/cjs/components/session/formatDate.js.map +1 -1
  58. package/dist/cjs/components/session/getLastSeen.js +1 -2
  59. package/dist/cjs/components/session/getLastSeen.js.map +1 -1
  60. package/dist/cjs/components/shared/ButtonUpdate.js +1 -2
  61. package/dist/cjs/components/shared/ButtonUpdate.js.map +1 -1
  62. package/dist/cjs/components/shared/ErrorResult.js +1 -2
  63. package/dist/cjs/components/shared/ErrorResult.js.map +1 -1
  64. package/dist/cjs/components/shared/FormError.js +1 -2
  65. package/dist/cjs/components/shared/FormError.js.map +1 -1
  66. package/dist/cjs/components/shared/MainLoader.js +1 -2
  67. package/dist/cjs/components/shared/MainLoader.js.map +1 -1
  68. package/dist/cjs/components/shared/icons/AndroidIcon.js +1 -2
  69. package/dist/cjs/components/shared/icons/AndroidIcon.js.map +1 -1
  70. package/dist/cjs/components/shared/icons/AppleIcon.js +1 -2
  71. package/dist/cjs/components/shared/icons/AppleIcon.js.map +1 -1
  72. package/dist/cjs/components/shared/icons/BrowserIcon.js +1 -2
  73. package/dist/cjs/components/shared/icons/BrowserIcon.js.map +1 -1
  74. package/dist/cjs/components/shared/icons/ProfileIcon.js +1 -2
  75. package/dist/cjs/components/shared/icons/ProfileIcon.js.map +1 -1
  76. package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js +1 -2
  77. package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
  78. package/dist/cjs/index.js +1 -1
  79. package/dist/cjs/utils/getErrorMessage.js +2 -3
  80. package/dist/cjs/utils/getErrorMessage.js.map +1 -1
  81. package/dist/cjs/utils/getUserFullName.js +1 -2
  82. package/dist/cjs/utils/getUserFullName.js.map +1 -1
  83. package/dist/cjs/utils/handleFormErrors.js +3 -5
  84. package/dist/cjs/utils/handleFormErrors.js.map +1 -1
  85. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +1 -1
  86. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  87. package/dist/esm/components/profile/ProtectedWrapper.js +2 -6
  88. package/dist/esm/components/profile/ProtectedWrapper.js.map +1 -1
  89. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +4 -10
  90. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  91. package/dist/types/src/lib/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -1
  92. package/dist/types/src/lib/components/profile/ProtectedWrapper.d.ts.map +1 -1
  93. package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +0 -1
  94. package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -1
  95. package/package.json +30 -30
  96. package/dist/cjs/components/profile/SetFirstPassword.js +0 -88
  97. package/dist/cjs/components/profile/SetFirstPassword.js.map +0 -1
  98. package/dist/cjs/components/profile/__generated__/SetFirstPasswordMutation.graphql.js +0 -90
  99. package/dist/cjs/components/profile/__generated__/SetFirstPasswordMutation.graphql.js.map +0 -1
  100. package/dist/esm/components/profile/SetFirstPassword.js +0 -73
  101. package/dist/esm/components/profile/SetFirstPassword.js.map +0 -1
  102. package/dist/esm/components/profile/__generated__/SetFirstPasswordMutation.graphql.js +0 -83
  103. package/dist/esm/components/profile/__generated__/SetFirstPasswordMutation.graphql.js.map +0 -1
  104. package/dist/types/src/lib/components/profile/SetFirstPassword.d.ts +0 -4
  105. package/dist/types/src/lib/components/profile/SetFirstPassword.d.ts.map +0 -1
  106. package/dist/types/src/lib/components/profile/__generated__/SetFirstPasswordMutation.graphql.d.ts +0 -19
  107. package/dist/types/src/lib/components/profile/__generated__/SetFirstPasswordMutation.graphql.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"formatDate.js","names":["formatDate","timestamp","t","lng","date","Date","day","getDate","month","returnObjects","getMonth","year","getFullYear","isPrevYear","concat","_default","exports","default"],"sources":["../../../../src/lib/components/session/formatDate.ts"],"sourcesContent":["import { TFunction } from 'i18next';\n\nconst formatDate = (\n timestamp: number,\n t: TFunction<['profile'], undefined>,\n lng: string\n): string => {\n const date = new Date(timestamp);\n\n const day = date.getDate();\n const month = t('profile:sessions.monthAbbreviations', {\n returnObjects: true,\n })[date.getMonth()];\n const year = date.getFullYear();\n const isPrevYear = year < new Date().getFullYear();\n\n if (lng === 'ru') return `${day} ${month}${isPrevYear ? ` ${year}` : ''}`;\n return `${month} ${day}${isPrevYear ? `, ${year}` : ''}`;\n};\n\nexport default formatDate;\n"],"mappings":";;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CACdC,SAAiB,EACjBC,CAAoC,EACpCC,GAAW,EACA;EACX,IAAMC,IAAI,GAAG,IAAIC,IAAI,CAACJ,SAAS,CAAC;EAEhC,IAAMK,GAAG,GAAGF,IAAI,CAACG,OAAO,CAAC,CAAC;EAC1B,IAAMC,KAAK,GAAGN,CAAC,CAAC,qCAAqC,EAAE;IACrDO,aAAa,EAAE;EACjB,CAAC,CAAC,CAACL,IAAI,CAACM,QAAQ,CAAC,CAAC,CAAC;EACnB,IAAMC,IAAI,GAAGP,IAAI,CAACQ,WAAW,CAAC,CAAC;EAC/B,IAAMC,UAAU,GAAGF,IAAI,GAAG,IAAIN,IAAI,CAAC,CAAC,CAACO,WAAW,CAAC,CAAC;EAElD,IAAIT,GAAG,KAAK,IAAI,EAAE,UAAAW,MAAA,CAAUR,GAAG,OAAAQ,MAAA,CAAIN,KAAK,EAAAM,MAAA,CAAGD,UAAU,OAAAC,MAAA,CAAOH,IAAI,IAAK,EAAE;EACvE,UAAAG,MAAA,CAAUN,KAAK,OAAAM,MAAA,CAAIR,GAAG,EAAAQ,MAAA,CAAGD,UAAU,QAAAC,MAAA,CAAQH,IAAI,IAAK,EAAE;AACxD,CAAC;AAAC,IAAAI,QAAA,GAEaf,UAAU;AAAAgB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"formatDate.js","names":["formatDate","timestamp","t","lng","date","Date","day","getDate","month","returnObjects","getMonth","year","getFullYear","isPrevYear","concat","_default","exports","default"],"sources":["../../../../src/lib/components/session/formatDate.ts"],"sourcesContent":["import { TFunction } from 'i18next';\n\nconst formatDate = (\n timestamp: number,\n t: TFunction<['profile'], undefined>,\n lng: string\n): string => {\n const date = new Date(timestamp);\n\n const day = date.getDate();\n const month = t('profile:sessions.monthAbbreviations', {\n returnObjects: true,\n })[date.getMonth()];\n const year = date.getFullYear();\n const isPrevYear = year < new Date().getFullYear();\n\n if (lng === 'ru') return `${day} ${month}${isPrevYear ? ` ${year}` : ''}`;\n return `${month} ${day}${isPrevYear ? `, ${year}` : ''}`;\n};\n\nexport default formatDate;\n"],"mappings":";;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CACdC,SAAiB,EACjBC,CAAoC,EACpCC,GAAW,EACA;EACX,IAAMC,IAAI,GAAG,IAAIC,IAAI,CAACJ,SAAS,CAAC;EAEhC,IAAMK,GAAG,GAAGF,IAAI,CAACG,OAAO,CAAC,CAAC;EAC1B,IAAMC,KAAK,GAAGN,CAAC,CAAC,qCAAqC,EAAE;IACrDO,aAAa,EAAE;EACjB,CAAC,CAAC,CAACL,IAAI,CAACM,QAAQ,CAAC,CAAC,CAAC;EACnB,IAAMC,IAAI,GAAGP,IAAI,CAACQ,WAAW,CAAC,CAAC;EAC/B,IAAMC,UAAU,GAAGF,IAAI,GAAG,IAAIN,IAAI,CAAC,CAAC,CAACO,WAAW,CAAC,CAAC;EAElD,IAAIT,GAAG,KAAK,IAAI,EAAE,UAAAW,MAAA,CAAUR,GAAG,OAAAQ,MAAA,CAAIN,KAAK,EAAAM,MAAA,CAAGD,UAAU,OAAAC,MAAA,CAAOH,IAAI,IAAK,EAAE;EACvE,UAAAG,MAAA,CAAUN,KAAK,OAAAM,MAAA,CAAIR,GAAG,EAAAQ,MAAA,CAAGD,UAAU,QAAAC,MAAA,CAAQH,IAAI,IAAK,EAAE;AACxD,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEajB,UAAU"}
@@ -16,6 +16,5 @@ var getLastSeen = function getLastSeen(lastSeenAt) {
16
16
  if (hours < 24) return [hours, 'hours'];
17
17
  return null;
18
18
  };
19
- var _default = getLastSeen;
20
- exports.default = _default;
19
+ var _default = exports.default = getLastSeen;
21
20
  //# sourceMappingURL=getLastSeen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLastSeen.js","names":["getLastSeen","lastSeenAt","date","Date","milliseconds","now","getTime","seconds","Math","floor","minutes","hours","_default","exports","default"],"sources":["../../../../src/lib/components/session/getLastSeen.ts"],"sourcesContent":["const getLastSeen = (\n lastSeenAt: number\n): [number, 'hours' | 'minutes' | 'seconds'] | null => {\n const date = new Date(lastSeenAt);\n const milliseconds = Date.now() - date.getTime();\n if (milliseconds <= 1000) return [1, 'seconds'];\n\n const seconds = Math.floor(milliseconds / 1000);\n if (seconds < 60) return [seconds, 'seconds'];\n\n const minutes = Math.floor(seconds / 60);\n if (minutes < 60) return [minutes, 'minutes'];\n\n const hours = Math.floor(minutes / 60);\n if (hours < 24) return [hours, 'hours'];\n\n return null;\n};\n\nexport default getLastSeen;\n"],"mappings":";;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CACfC,UAAkB,EACmC;EACrD,IAAMC,IAAI,GAAG,IAAIC,IAAI,CAACF,UAAU,CAAC;EACjC,IAAMG,YAAY,GAAGD,IAAI,CAACE,GAAG,CAAC,CAAC,GAAGH,IAAI,CAACI,OAAO,CAAC,CAAC;EAChD,IAAIF,YAAY,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC;EAE/C,IAAMG,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACL,YAAY,GAAG,IAAI,CAAC;EAC/C,IAAIG,OAAO,GAAG,EAAE,EAAE,OAAO,CAACA,OAAO,EAAE,SAAS,CAAC;EAE7C,IAAMG,OAAO,GAAGF,IAAI,CAACC,KAAK,CAACF,OAAO,GAAG,EAAE,CAAC;EACxC,IAAIG,OAAO,GAAG,EAAE,EAAE,OAAO,CAACA,OAAO,EAAE,SAAS,CAAC;EAE7C,IAAMC,KAAK,GAAGH,IAAI,CAACC,KAAK,CAACC,OAAO,GAAG,EAAE,CAAC;EACtC,IAAIC,KAAK,GAAG,EAAE,EAAE,OAAO,CAACA,KAAK,EAAE,OAAO,CAAC;EAEvC,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAEaZ,WAAW;AAAAa,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"getLastSeen.js","names":["getLastSeen","lastSeenAt","date","Date","milliseconds","now","getTime","seconds","Math","floor","minutes","hours","_default","exports","default"],"sources":["../../../../src/lib/components/session/getLastSeen.ts"],"sourcesContent":["const getLastSeen = (\n lastSeenAt: number\n): [number, 'hours' | 'minutes' | 'seconds'] | null => {\n const date = new Date(lastSeenAt);\n const milliseconds = Date.now() - date.getTime();\n if (milliseconds <= 1000) return [1, 'seconds'];\n\n const seconds = Math.floor(milliseconds / 1000);\n if (seconds < 60) return [seconds, 'seconds'];\n\n const minutes = Math.floor(seconds / 60);\n if (minutes < 60) return [minutes, 'minutes'];\n\n const hours = Math.floor(minutes / 60);\n if (hours < 24) return [hours, 'hours'];\n\n return null;\n};\n\nexport default getLastSeen;\n"],"mappings":";;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CACfC,UAAkB,EACmC;EACrD,IAAMC,IAAI,GAAG,IAAIC,IAAI,CAACF,UAAU,CAAC;EACjC,IAAMG,YAAY,GAAGD,IAAI,CAACE,GAAG,CAAC,CAAC,GAAGH,IAAI,CAACI,OAAO,CAAC,CAAC;EAChD,IAAIF,YAAY,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC;EAE/C,IAAMG,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACL,YAAY,GAAG,IAAI,CAAC;EAC/C,IAAIG,OAAO,GAAG,EAAE,EAAE,OAAO,CAACA,OAAO,EAAE,SAAS,CAAC;EAE7C,IAAMG,OAAO,GAAGF,IAAI,CAACC,KAAK,CAACF,OAAO,GAAG,EAAE,CAAC;EACxC,IAAIG,OAAO,GAAG,EAAE,EAAE,OAAO,CAACA,OAAO,EAAE,SAAS,CAAC;EAE7C,IAAMC,KAAK,GAAGH,IAAI,CAACC,KAAK,CAACC,OAAO,GAAG,EAAE,CAAC;EACtC,IAAIC,KAAK,GAAG,EAAE,EAAE,OAAO,CAACA,KAAK,EAAE,OAAO,CAAC;EAEvC,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEad,WAAW"}
@@ -13,6 +13,5 @@ var ButtonUpdate = function ButtonUpdate(props) {
13
13
  t = _useTranslation.t;
14
14
  return /*#__PURE__*/_react.default.createElement(_core.Button, props, t('profile:update'));
15
15
  };
16
- var _default = ButtonUpdate;
17
- exports.default = _default;
16
+ var _default = exports.default = ButtonUpdate;
18
17
  //# sourceMappingURL=ButtonUpdate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonUpdate.js","names":["_react","_interopRequireDefault","require","_core","_reactI18next","obj","__esModule","default","ButtonUpdate","props","_useTranslation","useTranslation","t","createElement","Button","_default","exports"],"sources":["../../../../src/lib/components/shared/ButtonUpdate.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, ButtonProps } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\n\nconst ButtonUpdate: React.FC<ButtonProps> = (props) => {\n const { t } = useTranslation(['profile']);\n return <Button {...props}>{t('profile:update')}</Button>;\n};\n\nexport default ButtonUpdate;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE/C,IAAMG,YAAmC,GAAG,SAAtCA,YAAmCA,CAAIC,KAAK,EAAK;EACrD,IAAAC,eAAA,GAAc,IAAAC,4BAAc,EAAC,CAAC,SAAS,CAAC,CAAC;IAAjCC,CAAC,GAAAF,eAAA,CAADE,CAAC;EACT,oBAAOZ,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,KAAA,CAAAW,MAAM,EAAKL,KAAK,EAAGG,CAAC,CAAC,gBAAgB,CAAU,CAAC;AAC1D,CAAC;AAAC,IAAAG,QAAA,GAEaP,YAAY;AAAAQ,OAAA,CAAAT,OAAA,GAAAQ,QAAA"}
1
+ {"version":3,"file":"ButtonUpdate.js","names":["_react","_interopRequireDefault","require","_core","_reactI18next","obj","__esModule","default","ButtonUpdate","props","_useTranslation","useTranslation","t","createElement","Button","_default","exports"],"sources":["../../../../src/lib/components/shared/ButtonUpdate.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, ButtonProps } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\n\nconst ButtonUpdate: React.FC<ButtonProps> = (props) => {\n const { t } = useTranslation(['profile']);\n return <Button {...props}>{t('profile:update')}</Button>;\n};\n\nexport default ButtonUpdate;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE/C,IAAMG,YAAmC,GAAG,SAAtCA,YAAmCA,CAAIC,KAAK,EAAK;EACrD,IAAAC,eAAA,GAAc,IAAAC,4BAAc,EAAC,CAAC,SAAS,CAAC,CAAC;IAAjCC,CAAC,GAAAF,eAAA,CAADE,CAAC;EACT,oBAAOZ,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,KAAA,CAAAW,MAAM,EAAKL,KAAK,EAAGG,CAAC,CAAC,gBAAgB,CAAU,CAAC;AAC1D,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAT,OAAA,GAEaC,YAAY"}
@@ -24,6 +24,5 @@ var ErrorResult = function ErrorResult(_ref) {
24
24
  icon: /*#__PURE__*/_react.default.createElement(_icons.CloseCircle, null)
25
25
  });
26
26
  };
27
- var _default = ErrorResult;
28
- exports.default = _default;
27
+ var _default = exports.default = ErrorResult;
29
28
  //# sourceMappingURL=ErrorResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorResult.js","names":["_react","_interopRequireDefault","require","_icons","_core","_reactI18next","_styled","_getErrorMessage","_templateObject","obj","__esModule","default","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","StyledResult","styled","Result","ErrorResult","_ref","error","_useTranslation","useTranslation","t","createElement","title","description","getErrorMessage","icon","CloseCircle","_default","exports"],"sources":["../../../../src/lib/components/shared/ErrorResult.tsx"],"sourcesContent":["import React from 'react';\nimport { CloseCircle } from '@os-design/icons';\nimport { Result } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport styled from '@emotion/styled';\nimport getErrorMessage from '../../utils/getErrorMessage';\n\ninterface ErrorResultProps {\n error: Error;\n}\n\nconst StyledResult = styled(Result)`\n margin: 0 1em;\n`;\n\nconst ErrorResult: React.FC<ErrorResultProps> = ({ error }) => {\n const { t } = useTranslation(['common']);\n\n return (\n <StyledResult\n title={t('common:errorTitle')}\n description={getErrorMessage(error)}\n icon={<Clo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;AAEN,CAAC;AAAC,IAAAC,QAAA,GAEaZ,WAAW;AAAAa,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"ErrorResult.js","names":["_react","_interopRequireDefault","require","_icons","_core","_reactI18next","_styled","_getErrorMessage","_templateObject","obj","__esModule","default","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","StyledResult","styled","Result","ErrorResult","_ref","error","_useTranslation","useTranslation","t","createElement","title","description","getErrorMessage","icon","CloseCircle","_default","exports"],"sources":["../../../../src/lib/components/shared/ErrorResult.tsx"],"sourcesContent":["import React from 'react';\nimport { CloseCircle } from '@os-design/icons';\nimport { Result } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport styled from '@emotion/styled';\nimport getErrorMessage from '../../utils/getErrorMessage';\n\ninterface ErrorResultProps {\n error: Error;\n}\n\nconst StyledResult = styled(Result)`\n margin: 0 1em;\n`;\n\nconst ErrorResult: React.FC<ErrorResultProps> = ({ error }) => {\n const { t } = useTranslation(['common']);\n\n return (\n <StyledResult\n title={t('common:errorTitle')}\n description={getErrorMessage(error)}\n icon={<CloseCircle />}\n />\n );\n};\n\nexport default ErrorResult;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,gBAAA,GAAAN,sBAAA,CAAAC,OAAA;AAA0D,IAAAM,eAAA;AAAA,SAAAP,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,uBAAAC,OAAA,EAAAC,GAAA,SAAAA,GAAA,IAAAA,GAAA,GAAAD,OAAA,CAAAE,KAAA,cAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,OAAA,IAAAC,GAAA,IAAAK,KAAA,EAAAH,MAAA,CAAAC,MAAA,CAAAH,GAAA;AAM1D,IAAMM,YAAY,GAAG,IAAAC,eAAM,EAACC,YAAM,CAAC,CAAAd,eAAA,KAAAA,eAAA,GAAAI,sBAAA,4BAElC;AAED,IAAMW,WAAuC,GAAG,SAA1CA,WAAuCA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EACtD,IAAAC,eAAA,GAAc,IAAAC,4BAAc,EAAC,CAAC,QAAQ,CAAC,CAAC;IAAhCC,CAAC,GAAAF,eAAA,CAADE,CAAC;EAET,oBACE5B,MAAA,CAAAW,OAAA,CAAAkB,aAAA,CAACT,YAAY;IACXU,KAAK,EAAEF,CAAC,CAAC,mBAAmB,CAAE;IAC9BG,WAAW,EAAE,IAAAC,wBAAe,EAACP,KAAK,CAAE;IACpCQ,IAAI,eAAEjC,MAAA,CAAAW,OAAA,CAAAkB,aAAA,CAAC1B,MAAA,CAAA+B,WAAW,MAAE;EAAE,CACvB,CAAC;AAEN,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEaY,WAAW"}
@@ -16,6 +16,5 @@ var FormError = function FormError() {
16
16
  type: "error"
17
17
  }, error) : null;
18
18
  };
19
- var _default = FormError;
20
- exports.default = _default;
19
+ var _default = exports.default = FormError;
21
20
  //# sourceMappingURL=FormError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormError.js","names":["_core","require","_form","_react","_interopRequireDefault","obj","__esModule","default","FormError","_useExistingForm","useExistingForm","useError","error","createElement","Alert","type","_default","exports"],"sources":["../../../../src/lib/components/shared/FormError.tsx"],"sourcesContent":["import { Alert } from '@os-design/core';\nimport { useExistingForm } from '@os-design/form';\nimport React from 'react';\n\nconst FormError: React.FC = () => {\n const { useError } = useExistingForm();\n const error = useError('_error');\n return error ? <Alert type='error'>{error}</Alert> : null;\n};\n\nexport default FormError;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA0B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE1B,IAAMG,SAAmB,GAAG,SAAtBA,SAAmBA,CAAA,EAAS;EAChC,IAAAC,gBAAA,GAAqB,IAAAC,qBAAe,EAAC,CAAC;IAA9BC,QAAQ,GAAAF,gBAAA,CAARE,QAAQ;EAChB,IAAMC,KAAK,GAAGD,QAAQ,CAAC,QAAQ,CAAC;EAChC,OAAOC,KAAK,gBAAGT,MAAA,CAAAI,OAAA,CAAAM,aAAA,CAACb,KAAA,CAAAc,KAAK;IAACC,IAAI,EAAC;EAAO,GAAEH,KAAa,CAAC,GAAG,IAAI;AAC3D,CAAC;AAAC,IAAAI,QAAA,GAEaR,SAAS;AAAAS,OAAA,CAAAV,OAAA,GAAAS,QAAA"}
1
+ {"version":3,"file":"FormError.js","names":["_core","require","_form","_react","_interopRequireDefault","obj","__esModule","default","FormError","_useExistingForm","useExistingForm","useError","error","createElement","Alert","type","_default","exports"],"sources":["../../../../src/lib/components/shared/FormError.tsx"],"sourcesContent":["import { Alert } from '@os-design/core';\nimport { useExistingForm } from '@os-design/form';\nimport React from 'react';\n\nconst FormError: React.FC = () => {\n const { useError } = useExistingForm();\n const error = useError('_error');\n return error ? <Alert type='error'>{error}</Alert> : null;\n};\n\nexport default FormError;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA0B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE1B,IAAMG,SAAmB,GAAG,SAAtBA,SAAmBA,CAAA,EAAS;EAChC,IAAAC,gBAAA,GAAqB,IAAAC,qBAAe,EAAC,CAAC;IAA9BC,QAAQ,GAAAF,gBAAA,CAARE,QAAQ;EAChB,IAAMC,KAAK,GAAGD,QAAQ,CAAC,QAAQ,CAAC;EAChC,OAAOC,KAAK,gBAAGT,MAAA,CAAAI,OAAA,CAAAM,aAAA,CAACb,KAAA,CAAAc,KAAK;IAACC,IAAI,EAAC;EAAO,GAAEH,KAAa,CAAC,GAAG,IAAI;AAC3D,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAV,OAAA,GAEaC,SAAS"}
@@ -17,6 +17,5 @@ var Container = _styled.default.div(_templateObject || (_templateObject = _tagge
17
17
  var MainLoader = function MainLoader() {
18
18
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_icons.Loading, null));
19
19
  };
20
- var _default = MainLoader;
21
- exports.default = _default;
20
+ var _default = exports.default = MainLoader;
22
21
  //# sourceMappingURL=MainLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainLoader.js","names":["_react","_interopRequireDefault","require","_styled","_icons","_theming","_templateObject","obj","__esModule","default","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","Container","styled","div","p","clr","theme","colorPrimary","MainLoader","createElement","Loading","_default","exports"],"sources":["../../../../src/lib/components/shared/MainLoader.tsx"],"sourcesContent":["import React from 'react';\nimport styled from '@emotion/styled';\nimport { Loading } from '@os-design/icons';\nimport { clr } from '@os-design/theming';\n\nconst Container = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: calc(var(--vh, 1vh) * 100);\n font-size: 2em;\n color: ${(p) => clr(p.theme.colorPrimary)};\n`;\n\nconst MainLoader: React.FC = () => (\n <Container>\n <Loading />\n </Container>\n);\n\nexport default MainLoader;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAAyC,IAAAI,eAAA;AAAA,SAAAL,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,uBAAAC,OAAA,EAAAC,GAAA,SAAAA,GAAA,IAAAA,GAAA,GAAAD,OAAA,CAAAE,KAAA,cAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,OAAA,IAAAC,GAAA,IAAAK,KAAA,EAAAH,MAAA,CAAAC,MAAA,CAAAH,GAAA;AAEzC,IAAMM,SAAS,GAAGC,eAAM,CAACC,GAAG,CAAAd,eAAA,KAAAA,eAAA,GAAAI,sBAAA,6JAOjB,UAACW,CAAC;EAAA,OAAK,IAAAC,YAAG,EAACD,CAAC,CAACE,KAAK,CAACC,YAAY,CAAC;AAAA,EAC1C;AAED,IAAMC,UAAoB,GAAG,SAAvBA,UAAoBA,CAAA;EAAA,oBACxBzB,MAAA,CAAAS,OAAA,CAAAiB,aAAA,CAACR,SAAS,qBACRlB,MAAA,CAAAS,OAAA,CAAAiB,aAAA,CAACtB,MAAA,CAAAuB,OAAO,MAAE,CACD,CAAC;AAAA,CACb;AAAC,IAAAC,QAAA,GAEaH,UAAU;AAAAI,OAAA,CAAApB,OAAA,GAAAmB,QAAA"}
1
+ {"version":3,"file":"MainLoader.js","names":["_react","_interopRequireDefault","require","_styled","_icons","_theming","_templateObject","obj","__esModule","default","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","Container","styled","div","p","clr","theme","colorPrimary","MainLoader","createElement","Loading","_default","exports"],"sources":["../../../../src/lib/components/shared/MainLoader.tsx"],"sourcesContent":["import React from 'react';\nimport styled from '@emotion/styled';\nimport { Loading } from '@os-design/icons';\nimport { clr } from '@os-design/theming';\n\nconst Container = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: calc(var(--vh, 1vh) * 100);\n font-size: 2em;\n color: ${(p) => clr(p.theme.colorPrimary)};\n`;\n\nconst MainLoader: React.FC = () => (\n <Container>\n <Loading />\n </Container>\n);\n\nexport default MainLoader;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAAyC,IAAAI,eAAA;AAAA,SAAAL,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,uBAAAC,OAAA,EAAAC,GAAA,SAAAA,GAAA,IAAAA,GAAA,GAAAD,OAAA,CAAAE,KAAA,cAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,OAAA,IAAAC,GAAA,IAAAK,KAAA,EAAAH,MAAA,CAAAC,MAAA,CAAAH,GAAA;AAEzC,IAAMM,SAAS,GAAGC,eAAM,CAACC,GAAG,CAAAd,eAAA,KAAAA,eAAA,GAAAI,sBAAA,6JAOjB,UAACW,CAAC;EAAA,OAAK,IAAAC,YAAG,EAACD,CAAC,CAACE,KAAK,CAACC,YAAY,CAAC;AAAA,EAC1C;AAED,IAAMC,UAAoB,GAAG,SAAvBA,UAAoBA,CAAA;EAAA,oBACxBzB,MAAA,CAAAS,OAAA,CAAAiB,aAAA,CAACR,SAAS,qBACRlB,MAAA,CAAAS,OAAA,CAAAiB,aAAA,CAACtB,MAAA,CAAAuB,OAAO,MAAE,CACD,CAAC;AAAA,CACb;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAApB,OAAA,GAEagB,UAAU"}
@@ -16,6 +16,5 @@ var AndroidIcon = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
16
16
  }));
17
17
  });
18
18
  AndroidIcon.displayName = 'AndroidIcon';
19
- var _default = AndroidIcon;
20
- exports.default = _default;
19
+ var _default = exports.default = AndroidIcon;
21
20
  //# sourceMappingURL=AndroidIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AndroidIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AndroidIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AndroidIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AndroidIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4c-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8c-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6c-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24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C,IAAAC,QAAA,GAEzBT,WAAW;AAAAU,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"AndroidIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AndroidIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AndroidIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AndroidIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4c-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8c-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6c-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 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ardRef(function (props, ref) {
16
16
  }));
17
17
  });
18
18
  AppleIcon.displayName = 'AppleIcon';
19
- var _default = AppleIcon;
20
- exports.default = _default;
19
+ var _default = exports.default = AppleIcon;
21
20
  //# sourceMappingURL=AppleIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppleIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AppleIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AppleIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AppleIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5c-34.9-50-87.7-77.5-157.3-82.8c-65.9-5.2-138 38.4-164.4 38.4c-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8c23.8 68.2 109.6 235.3 199.1 232.6c46.8-1.1 79.9-33.2 140.8-33.2c59.1 0 89.7 33.2 141.9 33.2c90.3-1.3 167.9-153.2 190.5-221.6c-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7c-44.8 2.6-96.6 30.5-126.1 64.8c-32.5 36.8-51.6 82.3-47.5 133.6c48.4 3.7 92.6-21.2 129-63.7z' />\n </Icon>\n));\n\nAppleIcon.displayName = 'AppleIcon';\n\nexport default AppleIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACtEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAse,CAAE,CAC5e,CAAC;AAAA,CACR,CAAC;AAEFP,SAAS,CAACQ,WAAW,GAAG,WAAW;AAAC,IAAAC,QAAA,GAErBT,SAAS;AAAAU,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"AppleIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AppleIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AppleIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AppleIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5c-34.9-50-87.7-77.5-157.3-82.8c-65.9-5.2-138 38.4-164.4 38.4c-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8c23.8 68.2 109.6 235.3 199.1 232.6c46.8-1.1 79.9-33.2 140.8-33.2c59.1 0 89.7 33.2 141.9 33.2c90.3-1.3 167.9-153.2 190.5-221.6c-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7c-44.8 2.6-96.6 30.5-126.1 64.8c-32.5 36.8-51.6 82.3-47.5 133.6c48.4 3.7 92.6-21.2 129-63.7z' />\n </Icon>\n));\n\nAppleIcon.displayName = 'AppleIcon';\n\nexport default AppleIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACtEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAse,CAAE,CAC5e,CAAC;AAAA,CACR,CAAC;AAEFP,SAAS,CAACQ,WAAW,GAAG,WAAW;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAErBe,SAAS"}
@@ -16,6 +16,5 @@ var BrowserIcon = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
16
16
  }));
17
17
  });
18
18
  BrowserIcon.displayName = 'BrowserIcon';
19
- var _default = BrowserIcon;
20
- exports.default = _default;
19
+ var _default = exports.default = BrowserIcon;
21
20
  //# sourceMappingURL=BrowserIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","BrowserIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/BrowserIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst BrowserIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512S589.5 371.8 512 371.8S371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2c180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7C653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z' />\n </Icon>\n));\n\nBrowserIcon.displayName = 'BrowserIcon';\n\nexport default BrowserIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAwgB,CAAE,CAC9gB,CAAC;AAAA,CACR,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAEzBT,WAAW;AAAAU,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"BrowserIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","BrowserIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/BrowserIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst BrowserIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512S589.5 371.8 512 371.8S371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2c180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7C653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z' />\n </Icon>\n));\n\nBrowserIcon.displayName = 'BrowserIcon';\n\nexport default BrowserIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAwgB,CAAE,CAC9gB,CAAC;AAAA,CACR,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEzBe,WAAW"}
@@ -16,6 +16,5 @@ var ProfileIcon = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
16
16
  }));
17
17
  });
18
18
  ProfileIcon.displayName = 'ProfileIcon';
19
- var _default = ProfileIcon;
20
- exports.default = _default;
19
+ var _default = exports.default = ProfileIcon;
21
20
  //# sourceMappingURL=ProfileIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ProfileIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/ProfileIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst ProfileIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52s51.7-23.3 51.7-52s-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5c-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5c42.7 26.5 71.8 72.8 74.6 126.1c.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z' />\n </Icon>\n));\n\nProfileIcon.displayName = 'ProfileIcon';\n\nexport default ProfileIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAA8sB,CAAE,CACptB,CAAC;AAAA,CACR,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAEzBT,WAAW;AAAAU,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"ProfileIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ProfileIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/ProfileIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst ProfileIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52s51.7-23.3 51.7-52s-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5c-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5c42.7 26.5 71.8 72.8 74.6 126.1c.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z' />\n </Icon>\n));\n\nProfileIcon.displayName = 'ProfileIcon';\n\nexport default ProfileIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAA8sB,CAAE,CACptB,CAAC;AAAA,CACR,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEzBe,WAAW"}
@@ -16,6 +16,5 @@ var UnknownDeviceIcon = /*#__PURE__*/_react.default.forwardRef(function (props,
16
16
  }));
17
17
  });
18
18
  UnknownDeviceIcon.displayName = 'UnknownDeviceIcon';
19
- var _default = UnknownDeviceIcon;
20
- exports.default = _default;
19
+ var _default = exports.default = UnknownDeviceIcon;
21
20
  //# sourceMappingURL=UnknownDeviceIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnknownDeviceIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","UnknownDeviceIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/UnknownDeviceIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst UnknownDeviceIcon = React.forwardRef<SVGSVGElement, IconProps>(\n (props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7c-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2c-27.2 31.7-65.6 54.4-108.1 64c-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9c58.4-13.2 111.4-44.7 149.3-88.7c19.1-22.3 34-47.1 44.3-74c10.7-27.9 16.1-57.2 16.1-87c0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56s56-25.1 56-56s-25.1-56-56-56z' />\n </Icon>\n )\n);\n\nUnknownDeviceIcon.displayName = 'UnknownDeviceIcon';\n\nexport default UnknownDeviceIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,iBAAiB,gBAAGC,cAAK,CAACC,UAAU,CACxC,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACTzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAioB,CAAE,CACvoB,CAAC;AAAA,CAEX,CAAC;AAEDP,iBAAiB,CAACQ,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAErCT,iBAAiB;AAAAU,OAAA,CAAAzB,OAAA,GAAAwB,QAAA"}
1
+ {"version":3,"file":"UnknownDeviceIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","UnknownDeviceIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/UnknownDeviceIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst UnknownDeviceIcon = React.forwardRef<SVGSVGElement, IconProps>(\n (props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7c-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2c-27.2 31.7-65.6 54.4-108.1 64c-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9c58.4-13.2 111.4-44.7 149.3-88.7c19.1-22.3 34-47.1 44.3-74c10.7-27.9 16.1-57.2 16.1-87c0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56s56-25.1 56-56s-25.1-56-56-56z' />\n </Icon>\n )\n);\n\nUnknownDeviceIcon.displayName = 'UnknownDeviceIcon';\n\nexport default UnknownDeviceIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,IAAMQ,iBAAiB,gBAAGC,cAAK,CAACC,UAAU,CACxC,UAACC,KAAK,EAAEC,GAAG;EAAA,oBACTzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;IAAEC,GAAG,EAAEA;EAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;IAAME,CAAC,EAAC;EAAioB,CAAE,CACvoB,CAAC;AAAA,CAEX,CAAC;AAEDP,iBAAiB,CAACQ,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAErCe,iBAAiB"}
package/dist/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
7
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
8
  /* eslint-disable @typescript-eslint/no-explicit-any */
9
9
 
10
10
  var isObject = function isObject(value) {
@@ -38,6 +38,5 @@ var getErrorMessage = function getErrorMessage(error) {
38
38
  }
39
39
  return firstConstraint.message;
40
40
  };
41
- var _default = getErrorMessage;
42
- exports.default = _default;
41
+ var _default = exports.default = getErrorMessage;
43
42
  //# sourceMappingURL=getErrorMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorMessage.js","names":["isObject","value","_typeof","Array","isArray","DEFAULT_MESSAGE","getErrorMessage","error","source","_error$message","message","errors","length","firstError","extensions","constraints","constraintKeys","Object","keys","firstKey","firstConstraint","_default","exports","default"],"sources":["../../../src/lib/utils/getErrorMessage.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst isObject = (value: any) =>\n typeof value === 'object' && !Array.isArray(value) && value !== null;\n\nconst DEFAULT_MESSAGE = 'Error';\n\nconst getErrorMessage = (error: any) => {\n if (!isObject(error)) return DEFAULT_MESSAGE;\n\n const { source } = error;\n let { message = DEFAULT_MESSAGE } = error;\n if (\n !isObject(source) ||\n !Array.isArray(source.errors) ||\n source.errors.length === 0\n ) {\n return message;\n }\n\n const firstError = source.errors[0];\n if (!isObject(firstError)) {\n return message;\n }\n\n message = firstError.message || message;\n if (\n !isObject(firstError.extensions) ||\n !isObject(firstError.extensions.constraints)\n ) {\n return message;\n }\n\n const constraintKeys = Object.keys(firstError.extensions.constraints);\n if (constraintKeys.length === 0) {\n return message;\n }\n\n const firstKey = constraintKeys[0];\n const firstConstraint = firstError.extensions.constraints[firstKey];\n if (\n !isObject(firstConstraint) ||\n typeof firstConstraint.message !== 'string'\n ) {\n return message;\n }\n\n return firstConstraint.message;\n};\n\nexport default getErrorMessage;\n"],"mappings":";;;;;;;AAAA;;AAEA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,KAAU;EAAA,OAC1BC,OAAA,CAAOD,KAAK,MAAK,QAAQ,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,IAAIA,KAAK,KAAK,IAAI;AAAA;AAEtE,IAAMI,eAAe,GAAG,OAAO;AAE/B,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,KAAU,EAAK;EACtC,IAAI,CAACP,QAAQ,CAACO,KAAK,CAAC,EAAE,OAAOF,eAAe;EAE5C,IAAQG,MAAM,GAAKD,KAAK,CAAhBC,MAAM;EACd,IAAAC,cAAA,GAAoCF,KAAK,CAAnCG,OAAO;IAAPA,OAAO,GAAAD,cAAA,cAAGJ,eAAe,GAAAI,cAAA;EAC/B,IACE,CAACT,QAAQ,CAACQ,MAAM,CAAC,IACjB,CAACL,KAAK,CAACC,OAAO,CAACI,MAAM,CAACG,MAAM,CAAC,IAC7BH,MAAM,CAACG,MAAM,CAACC,MAAM,KAAK,CAAC,EAC1B;IACA,OAAOF,OAAO;EAChB;EAEA,IAAMG,UAAU,GAAGL,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC;EACnC,IAAI,CAACX,QAAQ,CAACa,UAAU,CAAC,EAAE;IACzB,OAAOH,OAAO;EAChB;EAEAA,OAAO,GAAGG,UAAU,CAACH,OAAO,IAAIA,OAAO;EACvC,IACE,CAACV,QAAQ,CAACa,UAAU,CAACC,UAAU,CAAC,IAChC,CAACd,QAAQ,CAACa,UAAU,CAACC,UAAU,CAACC,WAAW,CAAC,EAC5C;IACA,OAAOL,OAAO;EAChB;EAEA,IAAMM,cAAc,GAAGC,MAAM,CAACC,IAAI,CAACL,UAAU,CAACC,UAAU,CAACC,WAAW,CAAC;EACrE,IAAIC,cAAc,CAACJ,MAAM,KAAK,CAAC,EAAE;IAC/B,OAAOF,OAAO;EAChB;EAEA,IAAMS,QAAQ,GAAGH,cAAc,CAAC,CAAC,CAAC;EAClC,IAAMI,eAAe,GAAGP,UAAU,CAACC,UAAU,CAACC,WAAW,CAACI,QAAQ,CAAC;EACnE,IACE,CAACnB,QAAQ,CAACoB,eAAe,CAAC,IAC1B,OAAOA,eAAe,CAACV,OAAO,KAAK,QAAQ,EAC3C;IACA,OAAOA,OAAO;EAChB;EAEA,OAAOU,eAAe,CAACV,OAAO;AAChC,CAAC;AAAC,IAAAW,QAAA,GAEaf,eAAe;AAAAgB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"getErrorMessage.js","names":["isObject","value","_typeof","Array","isArray","DEFAULT_MESSAGE","getErrorMessage","error","source","_error$message","message","errors","length","firstError","extensions","constraints","constraintKeys","Object","keys","firstKey","firstConstraint","_default","exports","default"],"sources":["../../../src/lib/utils/getErrorMessage.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst isObject = (value: any) =>\n typeof value === 'object' && !Array.isArray(value) && value !== null;\n\nconst DEFAULT_MESSAGE = 'Error';\n\nconst getErrorMessage = (error: any) => {\n if (!isObject(error)) return DEFAULT_MESSAGE;\n\n const { source } = error;\n let { message = DEFAULT_MESSAGE } = error;\n if (\n !isObject(source) ||\n !Array.isArray(source.errors) ||\n source.errors.length === 0\n ) {\n return message;\n }\n\n const firstError = source.errors[0];\n if (!isObject(firstError)) {\n return message;\n }\n\n message = firstError.message || message;\n if (\n !isObject(firstError.extensions) ||\n !isObject(firstError.extensions.constraints)\n ) {\n return message;\n }\n\n const constraintKeys = Object.keys(firstError.extensions.constraints);\n if (constraintKeys.length === 0) {\n return message;\n }\n\n const firstKey = constraintKeys[0];\n const firstConstraint = firstError.extensions.constraints[firstKey];\n if (\n !isObject(firstConstraint) ||\n typeof firstConstraint.message !== 'string'\n ) {\n return message;\n }\n\n return firstConstraint.message;\n};\n\nexport default getErrorMessage;\n"],"mappings":";;;;;;;AAAA;;AAEA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,KAAU;EAAA,OAC1BC,OAAA,CAAOD,KAAK,MAAK,QAAQ,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,IAAIA,KAAK,KAAK,IAAI;AAAA;AAEtE,IAAMI,eAAe,GAAG,OAAO;AAE/B,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,KAAU,EAAK;EACtC,IAAI,CAACP,QAAQ,CAACO,KAAK,CAAC,EAAE,OAAOF,eAAe;EAE5C,IAAQG,MAAM,GAAKD,KAAK,CAAhBC,MAAM;EACd,IAAAC,cAAA,GAAoCF,KAAK,CAAnCG,OAAO;IAAPA,OAAO,GAAAD,cAAA,cAAGJ,eAAe,GAAAI,cAAA;EAC/B,IACE,CAACT,QAAQ,CAACQ,MAAM,CAAC,IACjB,CAACL,KAAK,CAACC,OAAO,CAACI,MAAM,CAACG,MAAM,CAAC,IAC7BH,MAAM,CAACG,MAAM,CAACC,MAAM,KAAK,CAAC,EAC1B;IACA,OAAOF,OAAO;EAChB;EAEA,IAAMG,UAAU,GAAGL,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC;EACnC,IAAI,CAACX,QAAQ,CAACa,UAAU,CAAC,EAAE;IACzB,OAAOH,OAAO;EAChB;EAEAA,OAAO,GAAGG,UAAU,CAACH,OAAO,IAAIA,OAAO;EACvC,IACE,CAACV,QAAQ,CAACa,UAAU,CAACC,UAAU,CAAC,IAChC,CAACd,QAAQ,CAACa,UAAU,CAACC,UAAU,CAACC,WAAW,CAAC,EAC5C;IACA,OAAOL,OAAO;EAChB;EAEA,IAAMM,cAAc,GAAGC,MAAM,CAACC,IAAI,CAACL,UAAU,CAACC,UAAU,CAACC,WAAW,CAAC;EACrE,IAAIC,cAAc,CAACJ,MAAM,KAAK,CAAC,EAAE;IAC/B,OAAOF,OAAO;EAChB;EAEA,IAAMS,QAAQ,GAAGH,cAAc,CAAC,CAAC,CAAC;EAClC,IAAMI,eAAe,GAAGP,UAAU,CAACC,UAAU,CAACC,WAAW,CAACI,QAAQ,CAAC;EACnE,IACE,CAACnB,QAAQ,CAACoB,eAAe,CAAC,IAC1B,OAAOA,eAAe,CAACV,OAAO,KAAK,QAAQ,EAC3C;IACA,OAAOA,OAAO;EAChB;EAEA,OAAOU,eAAe,CAACV,OAAO;AAChC,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEajB,eAAe"}
@@ -13,6 +13,5 @@ var getUserFullName = function getUserFullName(_ref) {
13
13
  if (lastName) parts.push(lastName);
14
14
  return parts.length > 0 ? parts.join(' ') : email;
15
15
  };
16
- var _default = getUserFullName;
17
- exports.default = _default;
16
+ var _default = exports.default = getUserFullName;
18
17
  //# sourceMappingURL=getUserFullName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserFullName.js","names":["getUserFullName","_ref","email","firstName","lastName","parts","push","length","join","_default","exports","default"],"sources":["../../../src/lib/utils/getUserFullName.ts"],"sourcesContent":["export interface User {\n email: string;\n firstName: string | null;\n lastName: string | null;\n}\n\nconst getUserFullName = ({ email, firstName, lastName }: User): string => {\n const parts: string[] = [];\n if (firstName) parts.push(firstName);\n if (lastName) parts.push(lastName);\n return parts.length > 0 ? parts.join(' ') : email;\n};\n\nexport default getUserFullName;\n"],"mappings":";;;;;;AAMA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;EACnD,IAAMC,KAAe,GAAG,EAAE;EAC1B,IAAIF,SAAS,EAAEE,KAAK,CAACC,IAAI,CAACH,SAAS,CAAC;EACpC,IAAIC,QAAQ,EAAEC,KAAK,CAACC,IAAI,CAACF,QAAQ,CAAC;EAClC,OAAOC,KAAK,CAACE,MAAM,GAAG,CAAC,GAAGF,KAAK,CAACG,IAAI,CAAC,GAAG,CAAC,GAAGN,KAAK;AACnD,CAAC;AAAC,IAAAO,QAAA,GAEaT,eAAe;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"getUserFullName.js","names":["getUserFullName","_ref","email","firstName","lastName","parts","push","length","join","_default","exports","default"],"sources":["../../../src/lib/utils/getUserFullName.ts"],"sourcesContent":["export interface User {\n email: string;\n firstName: string | null;\n lastName: string | null;\n}\n\nconst getUserFullName = ({ email, firstName, lastName }: User): string => {\n const parts: string[] = [];\n if (firstName) parts.push(firstName);\n if (lastName) parts.push(lastName);\n return parts.length > 0 ? parts.join(' ') : email;\n};\n\nexport default getUserFullName;\n"],"mappings":";;;;;;AAMA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;EACnD,IAAMC,KAAe,GAAG,EAAE;EAC1B,IAAIF,SAAS,EAAEE,KAAK,CAACC,IAAI,CAACH,SAAS,CAAC;EACpC,IAAIC,QAAQ,EAAEC,KAAK,CAACC,IAAI,CAACF,QAAQ,CAAC;EAClC,OAAOC,KAAK,CAACE,MAAM,GAAG,CAAC,GAAGF,KAAK,CAACG,IAAI,CAAC,GAAG,CAAC,GAAGN,KAAK;AACnD,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,eAAe"}
@@ -8,12 +8,12 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
8
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  /* eslint-disable @typescript-eslint/no-explicit-any */
14
14
 
15
15
  var NO_CONSTRAINTS = {};
16
- var getErrorConstraints = function getErrorConstraints(error) {
16
+ var getErrorConstraints = exports.getErrorConstraints = function getErrorConstraints(error) {
17
17
  var e = error;
18
18
  if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
19
19
  return NO_CONSTRAINTS;
@@ -23,7 +23,6 @@ var getErrorConstraints = function getErrorConstraints(error) {
23
23
  }
24
24
  return e.source.errors[0].extensions.constraints;
25
25
  };
26
- exports.getErrorConstraints = getErrorConstraints;
27
26
  var handleFormErrors = function handleFormErrors(form, error) {
28
27
  var e = error;
29
28
  if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
@@ -42,6 +41,5 @@ var handleFormErrors = function handleFormErrors(form, error) {
42
41
  form.errors.set('_error', e.source.errors[0].message);
43
42
  }
44
43
  };
45
- var _default = handleFormErrors;
46
- exports.default = _default;
44
+ var _default = exports.default = handleFormErrors;
47
45
  //# sourceMappingURL=handleFormErrors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleFormErrors.js","names":["NO_CONSTRAINTS","getErrorConstraints","error","e","source","Array","isArray","errors","length","extensions","code","constraints","exports","handleFormErrors","form","set","message","Object","entries","forEach","_ref","_ref2","_slicedToArray","fieldName","_default","default"],"sources":["../../../src/lib/utils/handleFormErrors.ts"],"sourcesContent":["import { Form } from '@os-design/form';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface Constraint {\n name: string;\n message: string;\n}\n\nconst NO_CONSTRAINTS = {};\n\nexport const getErrorConstraints = (\n error: Error\n): Record<string, Constraint> => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n return NO_CONSTRAINTS;\n }\n if (e.source.errors[0].extensions.code !== 'BAD_ARGUMENTS') {\n return NO_CONSTRAINTS;\n }\n\n return e.source.errors[0].extensions.constraints;\n};\n\nconst handleFormErrors = (form: Form<any>, error: Error): void => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n form.errors.set('_error', e.message);\n return;\n }\n\n if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {\n const constraints = getErrorConstraints(error);\n Object.entries(constraints).forEach(([fieldName, { message }]) => {\n form.errors.set(fieldName, message);\n });\n } else {\n form.errors.set('_error', e.source.errors[0].message);\n }\n};\n\nexport default handleFormErrors;\n"],"mappings":";;;;;;;;;;;;AAEA;;AAOA,IAAMA,cAAc,GAAG,CAAC,CAAC;AAElB,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAC9BC,KAAY,EACmB;EAC/B,IAAMC,CAAC,GAAGD,KAAY;EAEtB,IACE,CAACC,CAAC,CAACC,MAAM,IACT,CAACC,KAAK,CAACC,OAAO,CAACH,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,IAC/BJ,CAAC,CAACC,MAAM,CAACG,MAAM,CAACC,MAAM,KAAK,CAAC,IAC5B,CAACL,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACE,UAAU,IAC9B,CAACN,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACE,UAAU,CAACC,IAAI,EACnC;IACA,OAAOV,cAAc;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AO,CAAC;IACrC,CAAC,CAAC;EACJ,CAAC,MAAM;IACLF,IAAI,CAACP,MAAM,CAACQ,GAAG,CAAC,QAAQ,EAAEZ,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACS,OAAO,CAAC;EACvD;AACF,CAAC;AAAC,IAAAQ,QAAA,GAEaX,gBAAgB;AAAAD,OAAA,CAAAa,OAAA,GAAAD,QAAA"}
1
+ {"version":3,"file":"handleFormErrors.js","names":["NO_CONSTRAINTS","getErrorConstraints","exports","error","e","source","Array","isArray","errors","length","extensions","code","constraints","handleFormErrors","form","set","message","Object","entries","forEach","_ref","_ref2","_slicedToArray","fieldName","_default","default"],"sources":["../../../src/lib/utils/handleFormErrors.ts"],"sourcesContent":["import { Form } from '@os-design/form';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface Constraint {\n name: string;\n message: string;\n}\n\nconst NO_CONSTRAINTS = {};\n\nexport const getErrorConstraints = (\n error: Error\n): Record<string, Constraint> => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n return NO_CONSTRAINTS;\n }\n if (e.source.errors[0].extensions.code !== 'BAD_ARGUMENTS') {\n return NO_CONSTRAINTS;\n }\n\n return e.source.errors[0].extensions.constraints;\n};\n\nconst handleFormErrors = (form: Form<any>, error: Error): void => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n form.errors.set('_error', e.message);\n return;\n }\n\n if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {\n const constraints = getErrorConstraints(error);\n Object.entries(constraints).forEach(([fieldName, { message }]) => {\n form.errors.set(fieldName, message);\n });\n } else {\n form.errors.set('_error', e.source.errors[0].message);\n }\n};\n\nexport default handleFormErrors;\n"],"m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CAACN,MAAM,CAACO,GAAG,CAAC,QAAQ,EAAEX,CAAC,CAACY,OAAO,CAAC;IACpC;EACF;EAEA,IAAIZ,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACE,UAAU,CAACC,IAAI,KAAK,eAAe,EAAE;IAC1D,IAAMC,WAAW,GAAGX,mBAAmB,CAACE,KAAK,CAAC;IAC9Cc,MAAM,CAACC,OAAO,CAACN,WAAW,CAAC,CAACO,OAAO,CAAC,UAAAC,IAAA,EAA8B;MAAA,IAAAC,KAAA,GAAAC,cAAA,CAAAF,IAAA;QAA5BG,SAAS,GAAAF,KAAA;QAAIL,OAAO,GAAAK,KAAA,IAAPL,OAAO;MACxDF,IAAI,CAACN,MAAM,CAACO,GAAG,CAACQ,SAAS,EAAEP,OAAO,CAAC;IACrC,CAAC,CAAC;EACJ,CAAC,MAAM;IACLF,IAAI,CAACN,MAAM,CAACO,GAAG,CAAC,QAAQ,EAAEX,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACQ,OAAO,CAAC;EACvD;AACF,CAAC;AAAC,IAAAQ,QAAA,GAAAtB,OAAA,CAAAuB,OAAA,GAEaZ,gBAAgB"}
@@ -68,7 +68,7 @@ const ProfileUpdatePasswordModal = ({
68
68
  }, /*#__PURE__*/React.createElement(InputPassword, _extends({
69
69
  placeholder: t('profile:updatePasswordModal.newPassword.placeholder'),
70
70
  showStrengthMeter: true,
71
- strengthNames: t('profile:passwordStrengthNames', {
71
+ strengthNames: t('profile:updatePasswordModal.passwordStrengthNames', {
72
72
  returnObjects: true
73
73
  })
74
74
  }, props)))
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileUpdatePasswordModal.js","names":["Form","FormItem","InputPassword","message","Modal","FormProvider","useForm","React","useCallback","useEffect","useTranslation","useMutation","handleFormErrors","FormError","ProfileUpdatePasswordModal","visibility","onClose","t","form","Field","currentPassword","password","commit","loading","_ProfileUpdatePasswordModalMutation","require","hash","console","error","reset","onSubmit","variables","input","values","getAll","onError","onCompleted","success","createElement","title","visible","okText","okLoading","onOk","name","render","props","label","_extends","placeholder","showStrengthMeter","strengthNames","returnObjects"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"sourcesContent":["import { Form, FormItem, InputPassword, message, Modal } from '@os-design/core';\nimport { FormProvider, useForm } from '@os-design/form';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport React, { useCallback, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-relay/hooks';\nimport handleFormErrors from '../../utils/handleFormErrors';\nimport FormError from '../shared/FormError';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordFormData {\n currentPassword: string;\n password: string;\n}\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation(['profile']);\n\n const { form, Field } = useForm<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdatePasswordModalMutation>(\n graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `\n );\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) form.reset();\n }, [form, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: form.values.getAll(),\n },\n onError: (error) => handleFormErrors(form, error),\n onCompleted: () => {\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, form, onClose, t]);\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormProvider form={form}>\n <Form>\n <Field\n name='currentPassword'\n render={(props, { error }) => (\n <FormItem\n label={t('profile:updatePasswordModal.currentPassword.label')}\n error={error}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.currentPassword.placeholder'\n )}\n {...props}\n />\n </FormItem>\n )}\n />\n\n <Field\n name='password'\n render={(props, { error }) => (\n <FormItem\n label={t('profile:updatePasswordModal.newPassword.label')}\n error={error}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.newPassword.placeholder'\n )}\n showStrengthMeter\n strengthNames={t('profile:passwordStrengthNames', {\n returnObjects: true,\n })}\n {...props}\n />\n </FormItem>\n )}\n />\n\n <FormError />\n </Form>\n </FormProvider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,OAAO,EAAEC,KAAK,QAAQ,iBAAiB;AAC/E,SAASC,YAAY,EAAEC,OAAO,QAAQ,iBAAiB;AAEvD,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AACrD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,OAAOC,SAAS,MAAM,qBAAqB;AAa3C,MAAMC,0BAAqE,GAAGA,CAAC;EAC7EC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAGP,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;EAEzC,MAAM;IAAEQ,IAAI;IAAEC;EAAM,CAAC,GAAGb,OAAO,CAAgC;IAC7Dc,eAAe,EAAE,EAAE;IACnBC,QAAQ,EAAE;EACZ,CAAC,CAAC;EAEF,MAAM,CAACC,MAAM,EAAEC,OAAO,CAAC,GAAGZ,WAAW,CAAAa,mCAAA,cAAAA,mCAAA,IAAAA,mCAAA,GAAAC,OAAA,gEAAAD,mCAAA,CAAAE,IAAA,IAA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AK,EAAE9B,CAAC,CAAC,mDAAmD,CAAE;MAC9DW,KAAK,EAAEA;IAAM,gBAEbrB,KAAA,CAAA+B,aAAA,CAACpC,aAAa,EAAA8C,QAAA;MACZC,WAAW,EAAEhC,CAAC,CACZ,yDACF;IAAE,GACE6B,KAAK,CACV,CACO;EACV,CACH,CAAC,eAEFvC,KAAA,CAAA+B,aAAA,CAACnB,KAAK;IACJyB,IAAI,EAAC,UAAU;IACfC,MAAM,EAAEA,CAACC,KAAK,EAAE;MAAElB;IAAM,CAAC,kBACvBrB,KAAA,CAAA+B,aAAA,CAACrC,QAAQ;MACP8C,KAAK,EAAE9B,CAAC,CAAC,+CAA+C,CAAE;MAC1DW,KAAK,EAAEA;IAAM,gBAEbrB,KAAA,CAAA+B,aAAA,CAACpC,aAAa,EAAA8C,QAAA;MACZC,WAAW,EAAEhC,CAAC,CACZ,qDACF,CAAE;MACFiC,iBAAiB;MACjBC,aAAa,EAAElC,CAAC,CAAC,+BAA+B,EAAE;QAChDmC,aAAa,EAAE;MACjB,CAAC;IAAE,GACCN,KAAK,CACV,CACO;EACV,CACH,CAAC,eAEFvC,KAAA,CAAA+B,aAAA,CAACzB,SAAS,MAAE,CACR,CACM,CACT,CAAC;AAEZ,CAAC;AAED,eAAeC,0BAA0B"}
1
+ {"version":3,"file":"ProfileUpdatePasswordModal.js","names":["Form","FormItem","InputPassword","message","Modal","FormProvider","useForm","React","useCallback","useEffect","useTranslation","useMutation","handleFormErrors","FormError","ProfileUpdatePasswordModal","visibility","onClose","t","form","Field","currentPassword","password","commit","loading","_ProfileUpdatePasswordModalMutation","require","hash","console","error","reset","onSubmit","variables","input","values","getAll","onError","onCompleted","success","createElement","title","visible","okText","okLoading","onOk","name","render","props","label","_extends","placeholder","showStrengthMeter","strengthNames","returnObjects"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"sourcesContent":["import { Form, FormItem, InputPassword, message, Modal } from '@os-design/core';\nimport { FormProvider, useForm } from '@os-design/form';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport React, { useCallback, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-relay/hooks';\nimport handleFormErrors from '../../utils/handleFormErrors';\nimport FormError from '../shared/FormError';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordFormData {\n currentPassword: string;\n password: string;\n}\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation(['profile']);\n\n const { form, Field } = useForm<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdatePasswordModalMutation>(\n graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `\n );\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) form.reset();\n }, [form, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: form.values.getAll(),\n },\n onError: (error) => handleFormErrors(form, error),\n onCompleted: () => {\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, form, onClose, t]);\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormProvider form={form}>\n <Form>\n <Field\n name='currentPassword'\n render={(props, { error }) => (\n <FormItem\n label={t('profile:updatePasswordModal.currentPassword.label')}\n error={error}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.currentPassword.placeholder'\n )}\n {...props}\n />\n </FormItem>\n )}\n />\n\n <Field\n name='password'\n render={(props, { error }) => (\n <FormItem\n label={t('profile:updatePasswordModal.newPassword.label')}\n error={error}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.newPassword.placeholder'\n )}\n showStrengthMeter\n strengthNames={t(\n 'profile:updatePasswordModal.passwordStrengthNames',\n { returnObjects: true }\n )}\n {...props}\n />\n </FormItem>\n )}\n />\n\n <FormError />\n </Form>\n </FormProvider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,OAAO,EAAEC,KAAK,QAAQ,iBAAiB;AAC/E,SAASC,YAAY,EAAEC,OAAO,QAAQ,iBAAiB;AAEvD,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AACrD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,OAAOC,SAAS,MAAM,qBAAqB;AAa3C,MAAMC,0BAAqE,GAAGA,CAAC;EAC7EC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAGP,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;EAEzC,MAAM;IAAEQ,IAAI;IAAEC;EAAM,CAAC,GAAGb,OAAO,CAAgC;IAC7Dc,eAAe,EAAE,EAAE;IACnBC,QAAQ,EAAE;EACZ,CAAC,CAAC;EAEF,MAAM,CAACC,MAAM,EAAEC,OAAO,CAAC,GAAGZ,WAAW,CAAAa,mCAAA,cAAAA,mCAAA,IAAAA,mCAAA,GAAAC,OAAA,gEAAAD,mCAAA,CAAAE,IAAA,IAAAF,mCAAA,CAAAE,IAAA,2CAAAC,OAAA,CAAAC,KAAA,sKAAAJ,mCAAA,CAUrC,CAAC;;EAED;EACAf,SAAS,CAAC,MAAM;IACd,IAAIM,UAAU,EAAEG,IAAI,CAACW,KAAK,CAAC,CAAC;EAC9B,CAAC,EAAE,CAACX,IAAI,EAAEH,UAAU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FvC,KAAA,CAAA+B,aAAA,CAACnB,KAAK;IACJyB,IAAI,EAAC,UAAU;IACfC,MAAM,EAAEA,CAACC,KAAK,EAAE;MAAElB;IAAM,CAAC,kBACvBrB,KAAA,CAAA+B,aAAA,CAACrC,QAAQ;MACP8C,KAAK,EAAE9B,CAAC,CAAC,+CAA+C,CAAE;MAC1DW,KAAK,EAAEA;IAAM,gBAEbrB,KAAA,CAAA+B,aAAA,CAACpC,aAAa,EAAA8C,QAAA;MACZC,WAAW,EAAEhC,CAAC,CACZ,qDACF,CAAE;MACFiC,iBAAiB;MACjBC,aAAa,EAAElC,CAAC,CACd,mDAAmD,EACnD;QAAEmC,aAAa,EAAE;MAAK,CACxB;IAAE,GACEN,KAAK,CACV,CACO;EACV,CACH,CAAC,eAEFvC,KAAA,CAAA+B,aAAA,CAACzB,SAAS,MAAE,CACR,CACM,CACT,CAAC;AAEZ,CAAC;AAED,eAAeC,0BAA0B"}
@@ -1,16 +1,15 @@
1
1
  var _ProtectedWrapperQuery;
2
- import { ErrorBoundary } from '@os-design/utils';
3
2
  import React, { useMemo } from 'react';
4
3
  import { useLazyLoadQuery } from 'react-relay/hooks';
4
+ import { ErrorBoundary } from '@os-design/utils';
5
5
  import ProfileConfigContext from './ProfileConfigContext';
6
6
  import ProfileContext from './ProfileContext';
7
- import SetFirstPassword from './SetFirstPassword';
8
7
  const ProtectedWrapperLoader = ({
9
8
  children
10
9
  }) => {
11
10
  const {
12
11
  profile
13
- } = useLazyLoadQuery(_ProtectedWrapperQuery !== void 0 ? _ProtectedWrapperQuery : (_ProtectedWrapperQuery = require("./__generated__/ProtectedWrapperQuery.graphql"), _ProtectedWrapperQuery.hash && _ProtectedWrapperQuery.hash !== "8207c248e1e225472f5f4bb3ad6fa4db" && console.error("The definition of 'ProtectedWrapperQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProtectedWrapperQuery), {}, {
12
+ } = useLazyLoadQuery(_ProtectedWrapperQuery !== void 0 ? _ProtectedWrapperQuery : (_ProtectedWrapperQuery = require("./__generated__/ProtectedWrapperQuery.graphql"), _ProtectedWrapperQuery.hash && _ProtectedWrapperQuery.hash !== "903b234e48f53b4a44dc0b4974ebc521" && console.error("The definition of 'ProtectedWrapperQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProtectedWrapperQuery), {}, {
14
13
  fetchPolicy: 'store-or-network'
15
14
  });
16
15
  const profileContext = useMemo(() => ({
@@ -20,9 +19,6 @@ const ProtectedWrapperLoader = ({
20
19
  lastName: profile.lastName || undefined,
21
20
  avatar: profile.avatar || undefined
22
21
  }), [profile.avatar, profile.email, profile.firstName, profile.id, profile.lastName]);
23
- if (!profile.hasPassword) {
24
- return /*#__PURE__*/React.createElement(SetFirstPassword, null);
25
- }
26
22
  return /*#__PURE__*/React.createElement(ProfileContext.Provider, {
27
23
  value: profileContext
28
24
  }, children);
@@ -1 +1 @@
1
- {"version":3,"file":"ProtectedWrapper.js","names":["ErrorBoundary","React","useMemo","useLazyLoadQuery","ProfileConfigContext","ProfileContext","SetFirstPassword","ProtectedWrapperLoader","children","profile","_ProtectedWrapperQuery","require","hash","console","error","fetchPolicy","profileContext","id","email","firstName","undefined","lastName","avatar","hasPassword","createElement","Provider","value","ProtectedWrapper","bucketId","profileConfigContext","fallback","window","location","href"],"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"sourcesContent":["import { ErrorBoundary } from '@os-design/utils';\nimport graphql from 'babel-plugin-relay/macro';\nimport React, { useMemo } from 'react';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport SetFirstPassword from './SetFirstPassword';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\ninterface ProtectedWrapperLoaderProps {\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapperLoader: React.FC<ProtectedWrapperLoaderProps> = ({\n children,\n}) => {\n const { profile } = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n hasPassword\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n\n const profileContext = useMemo(\n () => ({\n id: profile.id,\n email: profile.email,\n firstName: profile.firstName || undefined,\n lastName: profile.lastName || undefined,\n avatar: profile.avatar || undefined,\n }),\n [\n profile.avatar,\n profile.email,\n profile.firstName,\n profile.id,\n profile.lastName,\n ]\n );\n\n if (!profile.hasPassword) {\n return <SetFirstPassword />;\n }\n\n return (\n <ProfileContext.Provider value={profileContext}>\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => {\n const profileConfigContext = useMemo(() => ({ bucketId }), [bucketId]);\n\n return (\n <ProfileConfigContext.Provider value={profileConfigContext}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n );\n};\n\nexport default ProtectedWrapper;\n"],"mappings":";AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAEhD,OAAOC,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,OAAOC,oBAAoB,MAAM,wBAAwB;AACzD,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,gBAAgB,MAAM,oBAAoB;AAOjD,MAAMC,sBAA6D,GAAGA,CAAC;EACrEC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAQ,CAAC,GAAGN,gBAAgB,CAAAO,sBAAA,cAAAA,sBAAA,IAAAA,sBAAA,GAAAC,OAAA,mDAAAD,sBAAA,CAAAE,IAAA,IAAAF,sBAAA,CAAAE,IAAA,2CAAAC,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sBAAsB,QAAEC,QAAiC,CAC7C,CACc,CAAC;AAEpC,CAAC;AAED,eAAemB,gBAAgB"}
1
+ {"version":3,"file":"ProtectedWrapper.js","names":["React","useMemo","useLazyLoadQuery","ErrorBoundary","ProfileConfigContext","ProfileContext","ProtectedWrapperLoader","children","profile","_ProtectedWrapperQuery","require","hash","console","error","fetchPolicy","profileContext","id","email","firstName","undefined","lastName","avatar","createElement","Provider","value","ProtectedWrapper","bucketId","profileConfigContext","fallback","window","location","href"],"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport { ErrorBoundary } from '@os-design/utils';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\ninterface ProtectedWrapperLoaderProps {\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapperLoader: React.FC<ProtectedWrapperLoaderProps> = ({\n children,\n}) => {\n const { profile } = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n\n const profileContext = useMemo(\n () => ({\n id: profile.id,\n email: profile.email,\n firstName: profile.firstName || undefined,\n lastName: profile.lastName || undefined,\n avatar: profile.avatar || undefined,\n }),\n [\n profile.avatar,\n profile.email,\n profile.firstName,\n profile.id,\n profile.lastName,\n ]\n );\n\n return (\n <ProfileContext.Provider value={profileContext}>\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => {\n const profileConfigContext = useMemo(() => ({ bucketId }), [bucketId]);\n\n return (\n <ProfileConfigContext.Provider value={profileConfigContext}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n );\n};\n\nexport default ProtectedWrapper;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAEtC,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SAASC,aAAa,QAAQ,kBAAkB;AAChD,OAAOC,oBAAoB,MAAM,wBAAwB;AACzD,OAAOC,cAAc,MAAM,kBAAkB;AAO7C,MAAMC,sBAA6D,GAAGA,CAAC;EACrEC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAQ,CAAC,GAAGN,gBAAgB,CAAAO,sBAAA,cAAAA,sBAAA,IAAAA,sBAAA,GAAAC,OAAA,mDAAAD,sBAAA,CAAAE,IAAA,IAAAF,sBAAA,CAAAE,IAAA,2CAAAC,OAAA,CAAAC,KAAA,yJAAAJ,sBAAA,GAYlC,CAAC,CAAC,EACF;IAAEK,WAAW,EAAE;EAAmB,CACpC,CAAC;EAED,MAAMC,cAAc,GAAGd,OAAO,CAC5B,OAAO;IACLe,EAAE,EAAER,OAAO,CAACQ,EAAE;IACdC,KAAK,EAAET,OAAO,CAACS,KAAK;IACpBC,SAAS,EAAEV,OAAO,CAACU,SAAS,IAAIC,SAAS;IACzCC,QAAQ,EAAEZ,OAAO,CAACY,QAAQ,IAAID,SAAS;IACvCE,MAAM,EAAEb,OAAO,CAACa,MAAM,IAAIF;EAC5B,CAAC,CAAC,EACF,CACEX,OAAO,CAACa,MAAM,EACdb,OAAO,CAACS,KAAK,EACbT,OAAO,CAACU,SAAS,EACjBV,OAAO,CAACQ,EAAE,EACVR,OAAO,CAACY,QAAQ,CAEpB,CAAC;EAED,oBACEpB,KAAA,CAAAsB,aAAA,CAACjB,cAAc,CAACkB,QAAQ;IAACC,KAAK,EAAET;EAAe,GAC5CR,QACsB,CAAC;AAE9B,CAAC;AAOD,MAAMkB,gBAAiD,GAAGA,CAAC;EACzDC,QAAQ;EACRnB;AACF,CAAC,KAAK;EACJ,MAAMoB,oBAAoB,GAAG1B,OAAO,CAAC,OAAO;IAAEyB;EAAS,CAAC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEtE,oBACE1B,KAAA,CAAAsB,aAAA,CAAClB,oBAAoB,CAACmB,QAAQ;IAACC,KAAK,EAAEG;EAAqB,gBACzD3B,KAAA,CAAAsB,aAAA,CAACnB,aAAa;IACZyB,QAAQ,EAAEA,CAAA,KAAM;MACdC,MAAM,CAACC,QAAQ,CAACC,IAAI,GAAG,QAAQ;MAC/B,OAAO,IAAI;IACb;EAAE,gBAEF/B,KAAA,CAAAsB,aAAA,CAAChB,sBAAsB,QAAEC,QAAiC,CAC7C,CACc,CAAC;AAEpC,CAAC;AAED,eAAekB,gBAAgB"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<c5d827b88445eb5271d5a60231e7c386>>
2
+ * @generated SignedSource<<c1bbe3a7739ce21cdcc0dc5de42901d2>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -46,12 +46,6 @@ const node = function () {
46
46
  "kind": "ScalarField",
47
47
  "name": "avatar",
48
48
  "storageKey": null
49
- }, {
50
- "alias": null,
51
- "args": null,
52
- "kind": "ScalarField",
53
- "name": "hasPassword",
54
- "storageKey": null
55
49
  }],
56
50
  "storageKey": null
57
51
  }];
@@ -74,15 +68,15 @@ const node = function () {
74
68
  },
75
69
 
76
70
  "params": {
77
- "cacheID": "ca731635e8b4e4adaf87227472517278",
71
+ "cacheID": "c77ada94a5456167ef4c0c17a1fd7cd7",
78
72
  "id": null,
79
73
  "metadata": {},
80
74
  "name": "ProtectedWrapperQuery",
81
75
  "operationKind": "query",
82
- "text": "query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n hasPassword\n }\n}\n"
76
+ "text": "query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n}\n"
83
77
  }
84
78
  };
85
79
  }();
86
- node.hash = "8207c248e1e225472f5f4bb3ad6fa4db";
80
+ node.hash = "903b234e48f53b4a44dc0b4974ebc521";
87
81
  export default node;
88
82
  //# sourceMappingURL=ProtectedWrapperQuery.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProtectedWrapperQuery.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<c5d827b88445eb5271d5a60231e7c386>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Query } from 'relay-runtime';\nexport type ProtectedWrapperQuery$variables = {};\nexport type ProtectedWrapperQuery$data = {\n readonly profile: {\n readonly avatar: string | null;\n readonly email: string;\n readonly firstName: string | null;\n readonly hasPassword: boolean;\n readonly id: string;\n readonly lastName: string | null;\n };\n};\nexport type ProtectedWrapperQuery = {\n response: ProtectedWrapperQuery$data;\n variables: ProtectedWrapperQuery$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"profile\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"email\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"hasPassword\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Query\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"ca731635e8b4e4adaf87227472517278\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProtectedWrapperQuery\",\n \"operationKind\": \"query\",\n \"text\": \"query ProtectedWrapperQuery {\\n profile {\\n id\\n email\\n firstName\\n lastName\\n avatar\\n hasPassword\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"8207c248e1e225472f5f4bb3ad6fa4db\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAmBA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,MAAM;IACtB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE,CACZ;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,IAAI;MACZ,YAAY,EAAE;IAChB,CAAC,EACD;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,OAAO;MACf,YAAY,EAA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apperQuery.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<c1bbe3a7739ce21cdcc0dc5de42901d2>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Query } from 'relay-runtime';\nexport type ProtectedWrapperQuery$variables = {};\nexport type ProtectedWrapperQuery$data = {\n readonly profile: {\n readonly avatar: string | null;\n readonly email: string;\n readonly firstName: string | null;\n readonly id: string;\n readonly lastName: string | null;\n };\n};\nexport type ProtectedWrapperQuery = {\n response: ProtectedWrapperQuery$data;\n variables: ProtectedWrapperQuery$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"profile\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"email\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Query\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"c77ada94a5456167ef4c0c17a1fd7cd7\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProtectedWrapperQuery\",\n \"operationKind\": \"query\",\n \"text\": \"query ProtectedWrapperQuery {\\n profile {\\n id\\n email\\n firstName\\n lastName\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"903b234e48f53b4a44dc0b4974ebc521\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAkBA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,MAAM;IACtB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE,CACZ;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,IAAI;MACZ,YAAY,EAAE;IAChB,CAAC,EACD;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,OAAO;MACf,YAAY,EAAE;IAChB,CAAC,EACD;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,WAAW;MACnB,YAAY,EAAE;IAChB,CAAC,EACD;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,UAAU;MAClB,YAAY,EAAE;IAChB,CAAC,EACD;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,QAAQ;MAChB,YAAY,EAAE;IAChB,CAAC,CACF;IACD,YAAY,EAAE;EAChB,CAAC,CACF;EACD,OAAO;IACL,UAAU,EAAE;MACV,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,UAAU;MAClB,UAAU,EAAE,IAAI;MAChB,MAAM,EAAE,uBAAuB;MAC/B,YAAY,EAAGA,EAAE,UAAU;MAC3B,MAAM,EAAE,OAAO;MACf,aAAa,EAAE;IACjB,CAAC;IACD,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE;MACX,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,WAAW;MACnB,MAAM,EAAE,uBAAuB;MAC/B,YAAY,EAAGA,EAAE;IACnB,CAAC;;IACD,QAAQ,EAAE;MACR,SAAS,EAAE,kCAAkC;MAC7C,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,CAAC,CAAC;MACd,MAAM,EAAE,uBAAuB;MAC/B,eAAe,EAAE,OAAO;MACxB,MAAM,EAAE;IACV;EACF,CAAC;AACD,CAAC,CAAE,CAAC;AAEHD,IAAI,CAASE,IAAI,GAAG,kCAAkC;AAEvD,eAAeF,IAAI"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileUpdatePasswordModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAYtD,UAAU,+BAA+B;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CA+FzE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"ProfileUpdatePasswordModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAYtD,UAAU,+BAA+B;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CAgGzE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProtectedWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA2DvC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkBrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ProtectedWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAuDvC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkBrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -5,7 +5,6 @@ export type ProtectedWrapperQuery$data = {
5
5
  readonly avatar: string | null;
6
6
  readonly email: string;
7
7
  readonly firstName: string | null;
8
- readonly hasPassword: boolean;
9
8
  readonly id: string;
10
9
  readonly lastName: string | null;
11
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProtectedWrapperQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,MAAM,MAAM,+BAA+B,GAAG,EAAE,CAAC;AACjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,0BAA0B,CAAC;IACrC,SAAS,EAAE,+BAA+B,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eAkFR,CAAC;AAIL,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"ProtectedWrapperQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,MAAM,MAAM,+BAA+B,GAAG,EAAE,CAAC;AACjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,0BAA0B,CAAC;IACrC,SAAS,EAAE,+BAA+B,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA2ER,CAAC;AAIL,eAAe,IAAI,CAAC"}