@mjhls/mjh-framework 1.0.984 → 1.0.985-article-abstract-v1

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 (346) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +22 -21
  4. package/dist/cjs/AD300x250x600.js +22 -21
  5. package/dist/cjs/AD728x90.js +25 -24
  6. package/dist/cjs/ADFloatingFooter.js +21 -20
  7. package/dist/cjs/ADFooter.js +4 -4
  8. package/dist/cjs/ADGutter.js +21 -20
  9. package/dist/cjs/{ADInfeed-b54f0bda.js → ADInfeed-81006615.js} +4 -4
  10. package/dist/cjs/ADSkyscraper.js +21 -20
  11. package/dist/cjs/ADSponsoredResources.js +21 -20
  12. package/dist/cjs/ADWebcast.js +21 -20
  13. package/dist/cjs/ADWelcome.js +18 -17
  14. package/dist/cjs/{ADlgInfeed-4f0850ec.js → ADlgInfeed-0db07099.js} +4 -4
  15. package/dist/cjs/AccordionPanel.js +6 -6
  16. package/dist/cjs/AdSlot.js +20 -19
  17. package/dist/cjs/AdSlotsProvider.js +12 -11
  18. package/dist/cjs/AlgoliaSearch.js +14294 -31
  19. package/dist/cjs/AlphabeticList.js +8 -8
  20. package/dist/cjs/ArticleCarousel.js +13 -13
  21. package/dist/cjs/ArticleProgramLandingPage.js +50 -50
  22. package/dist/cjs/ArticleSeriesLandingPage.js +30 -29
  23. package/dist/cjs/ArticleSeriesListing.js +31 -30
  24. package/dist/cjs/Auth.js +482 -346
  25. package/dist/cjs/AuthWrapper.js +1767 -14
  26. package/dist/cjs/{AuthorComponent-17e1c62b.js → AuthorComponent-39b37d84.js} +1 -1
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-9ebd251f.js} +34 -34
  29. package/dist/cjs/Breadcrumbs.js +6 -6
  30. package/dist/cjs/CMEDeck.js +23 -22
  31. package/dist/cjs/Column2.js +14 -14
  32. package/dist/cjs/Column3.js +31 -30
  33. package/dist/cjs/ConferenceArticleCard.js +25 -25
  34. package/dist/cjs/ContentCardPaginated.js +37 -37
  35. package/dist/cjs/DeckContent.js +40 -39
  36. package/dist/cjs/DeckQueue.js +30 -29
  37. package/dist/cjs/DeckQueuePaginated.js +33 -33
  38. package/dist/cjs/{Dfp-bcaa7e3f.js → Dfp-9be904d5.js} +13 -12
  39. package/dist/cjs/EventsDeck.js +43 -43
  40. package/dist/cjs/ExternalResources.js +47 -47
  41. package/dist/cjs/Feature.js +7 -7
  42. package/dist/cjs/ForbesHero.js +10 -10
  43. package/dist/cjs/GridContent.js +46 -45
  44. package/dist/cjs/GridContentPaginated.js +47 -47
  45. package/dist/cjs/GridHero.js +11 -11
  46. package/dist/cjs/GroupDeck.js +12 -12
  47. package/dist/cjs/HamMagazine.js +36 -36
  48. package/dist/cjs/HealthCareProfessionalModal.js +3 -3
  49. package/dist/cjs/Hero.js +7 -7
  50. package/dist/cjs/HighlightenVideo.js +2 -2
  51. package/dist/cjs/HorizontalArticleListing.js +48 -48
  52. package/dist/cjs/HorizontalHero.js +8 -8
  53. package/dist/cjs/ImageSlider-6c00b878.js +2813 -0
  54. package/dist/cjs/IssueContentDeck.js +11 -11
  55. package/dist/cjs/IssueDeck.js +14 -14
  56. package/dist/cjs/IssueLanding.js +85 -85
  57. package/dist/cjs/KMTracker.js +15 -15
  58. package/dist/cjs/LeftNav.js +20 -19
  59. package/dist/cjs/MasterDeck.js +39 -38
  60. package/dist/cjs/MasterDeckPaginated.js +41 -41
  61. package/dist/cjs/{MediaSeriesCard-408eaac7.js → MediaSeriesCard-84fa20f4.js} +1003 -800
  62. package/dist/cjs/MediaSeriesLanding.js +57 -56
  63. package/dist/cjs/MediaSeriesLandingPaginated.js +62 -62
  64. package/dist/cjs/NavDvm.js +11 -11
  65. package/dist/cjs/NavMagazine.js +39 -39
  66. package/dist/cjs/NavNative.js +39 -39
  67. package/dist/cjs/OncliveHero.js +7 -7
  68. package/dist/cjs/OncliveLargeHero.js +11 -11
  69. package/dist/cjs/PageFilter.js +4 -4
  70. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  71. package/dist/cjs/PartnerDetailListing.js +63 -62
  72. package/dist/cjs/PartnerDetailListingPaginated.js +62 -62
  73. package/dist/cjs/PdfDownload.js +2 -2
  74. package/dist/cjs/PixelTracking.js +7 -7
  75. package/dist/cjs/PopUpModal.js +4 -4
  76. package/dist/cjs/PtceDeck.js +10 -10
  77. package/dist/cjs/PubSection.js +33 -32
  78. package/dist/cjs/PubToc.js +6 -6
  79. package/dist/cjs/PublicationDeck.js +11 -11
  80. package/dist/cjs/{PublicationFeature-6f89fb97.js → PublicationFeature-5ccf9b13.js} +2 -2
  81. package/dist/cjs/PublicationLanding.js +58 -54
  82. package/dist/cjs/QueueDeckExpanded.js +36 -35
  83. package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
  84. package/dist/cjs/RecentNews.js +4 -4
  85. package/dist/cjs/RelatedContent.js +38 -38
  86. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  87. package/dist/cjs/Schema.js +10 -10
  88. package/dist/cjs/Search.js +6 -6
  89. package/dist/cjs/Segment.js +4 -4
  90. package/dist/cjs/SeriesListingDeck.js +18 -17
  91. package/dist/cjs/{SeriesSlider-08699353.js → SeriesSlider-74546d19.js} +14 -14
  92. package/dist/cjs/SetCookie.js +1 -1
  93. package/dist/cjs/SideFooter.js +15 -15
  94. package/dist/cjs/{SocialSearchComponent-af6ddcc0.js → SocialSearchComponent-b7faaedc.js} +11 -11
  95. package/dist/cjs/TaxonomyCard.js +12 -12
  96. package/dist/cjs/TaxonomyDescription.js +46 -46
  97. package/dist/cjs/TemplateNormal.js +46 -45
  98. package/dist/cjs/ThumbnailCard.js +10 -10
  99. package/dist/cjs/Ustream.js +21 -21
  100. package/dist/cjs/VerticalHero.js +6 -6
  101. package/dist/cjs/VideoProgramLandingPage.js +52 -52
  102. package/dist/cjs/VideoSeriesCard.js +14 -14
  103. package/dist/cjs/VideoSeriesFilter.js +7 -7
  104. package/dist/cjs/VideoSeriesLandingPage.js +36 -35
  105. package/dist/cjs/VideoSeriesListing.js +31 -30
  106. package/dist/cjs/View.js +138 -120
  107. package/dist/cjs/YahooHero.js +13 -13
  108. package/dist/cjs/YoutubeGroup.js +21 -21
  109. package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
  110. package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
  111. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  112. package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
  113. package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
  114. package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
  115. package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
  116. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  117. package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
  118. package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
  119. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  120. package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
  121. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  122. package/dist/cjs/events-1b438fe7.js +469 -0
  123. package/dist/cjs/{extends-7df78678.js → extends-7c86182f.js} +8 -7
  124. package/dist/cjs/faundadb.js +5 -5
  125. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  126. package/dist/cjs/getPtceActivities.js +4 -4
  127. package/dist/cjs/getRelatedArticle.js +132 -68
  128. package/dist/cjs/getRootDocGroup.js +4 -4
  129. package/dist/cjs/getSerializers.js +46 -46
  130. package/dist/cjs/{getTargeting-1359b868.js → getTargeting-dab97fe1.js} +11 -11
  131. package/dist/cjs/getTargeting.js +6 -6
  132. package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
  133. package/dist/cjs/index-50be6759.js +105 -0
  134. package/dist/cjs/{index-7deba8d6.js → index-7f3d9184.js} +414 -164
  135. package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
  136. package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
  137. package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
  138. package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
  139. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
  140. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
  141. package/dist/cjs/{index.esm-f93506ac.js → index.esm-d51c9ac6.js} +1 -1
  142. package/dist/cjs/{index.esm-48e0f0d8.js → index.esm-d81454e7.js} +1 -1
  143. package/dist/cjs/index.js +147 -146
  144. package/dist/cjs/{inherits-420ee86f.js → inherits-de66ea16.js} +21 -18
  145. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  146. package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
  147. package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
  148. package/dist/cjs/main-f1c77adb.js +973 -0
  149. package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
  150. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
  151. package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
  152. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  153. package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
  154. package/dist/cjs/timeDifferenceCalc.js +1 -1
  155. package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
  156. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  157. package/dist/cjs/typeof-1358762e.js +33 -0
  158. package/dist/cjs/{typeof-ec08d471.js → typeof-567e31ff.js} +34 -34
  159. package/dist/cjs/urlFor.js +4 -4
  160. package/dist/cjs/{urlForFile-ad96158c.js → urlForFile-29d3815a.js} +1 -1
  161. package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
  162. package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
  163. package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
  164. package/dist/esm/AD.js +7 -7
  165. package/dist/esm/AD300x250.js +25 -24
  166. package/dist/esm/AD300x250x600.js +25 -24
  167. package/dist/esm/AD728x90.js +28 -27
  168. package/dist/esm/ADFloatingFooter.js +27 -26
  169. package/dist/esm/ADFooter.js +9 -9
  170. package/dist/esm/ADGutter.js +27 -26
  171. package/dist/esm/{ADInfeed-310d113c.js → ADInfeed-6d1fc6bf.js} +9 -9
  172. package/dist/esm/ADSkyscraper.js +27 -26
  173. package/dist/esm/ADSponsoredResources.js +27 -26
  174. package/dist/esm/ADWebcast.js +27 -26
  175. package/dist/esm/ADWelcome.js +28 -27
  176. package/dist/esm/{ADlgInfeed-eeaa14e2.js → ADlgInfeed-dc36c928.js} +8 -8
  177. package/dist/esm/AccordionPanel.js +22 -22
  178. package/dist/esm/AdSlot.js +23 -22
  179. package/dist/esm/AdSlotsProvider.js +13 -12
  180. package/dist/esm/AlgoliaSearch.js +14318 -55
  181. package/dist/esm/AlphabeticList.js +20 -20
  182. package/dist/esm/ArticleCarousel.js +16 -16
  183. package/dist/esm/ArticleProgramLandingPage.js +56 -56
  184. package/dist/esm/ArticleSeriesLandingPage.js +36 -35
  185. package/dist/esm/ArticleSeriesListing.js +55 -54
  186. package/dist/esm/Auth.js +553 -417
  187. package/dist/esm/AuthWrapper.js +1781 -27
  188. package/dist/esm/{AuthorComponent-b0a47123.js → AuthorComponent-11adff02.js} +11 -11
  189. package/dist/esm/Beam.js +6 -6
  190. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-1e73bd2c.js} +35 -35
  191. package/dist/esm/Breadcrumbs.js +15 -15
  192. package/dist/esm/CMEDeck.js +78 -77
  193. package/dist/esm/Column1.js +5 -5
  194. package/dist/esm/Column2.js +25 -25
  195. package/dist/esm/Column3.js +50 -49
  196. package/dist/esm/ConferenceArticleCard.js +38 -38
  197. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  198. package/dist/esm/ContentCardPaginated.js +72 -72
  199. package/dist/esm/DeckContent.js +85 -84
  200. package/dist/esm/DeckQueue.js +71 -70
  201. package/dist/esm/DeckQueuePaginated.js +63 -63
  202. package/dist/esm/{Dfp-e151d2de.js → Dfp-102f0beb.js} +21 -20
  203. package/dist/esm/EventsDeck.js +103 -103
  204. package/dist/esm/ExternalResources.js +73 -73
  205. package/dist/esm/Feature.js +21 -21
  206. package/dist/esm/ForbesHero.js +33 -33
  207. package/dist/esm/GridContent.js +146 -145
  208. package/dist/esm/GridContentPaginated.js +134 -134
  209. package/dist/esm/GridHero.js +35 -35
  210. package/dist/esm/GroupDeck.js +45 -45
  211. package/dist/esm/HamMagazine.js +113 -113
  212. package/dist/esm/Header.js +8 -8
  213. package/dist/esm/HealthCareProfessionalModal.js +13 -13
  214. package/dist/esm/Hero.js +13 -13
  215. package/dist/esm/HighlightenVideo.js +14 -14
  216. package/dist/esm/HorizontalArticleListing.js +70 -70
  217. package/dist/esm/HorizontalHero.js +26 -26
  218. package/dist/esm/ImageSlider-f84174cb.js +2804 -0
  219. package/dist/esm/IssueContentDeck.js +48 -48
  220. package/dist/esm/IssueDeck.js +45 -45
  221. package/dist/esm/IssueLanding.js +93 -93
  222. package/dist/esm/KMTracker.js +15 -15
  223. package/dist/esm/LeftNav.js +33 -32
  224. package/dist/esm/MasterDeck.js +72 -71
  225. package/dist/esm/MasterDeckPaginated.js +63 -63
  226. package/dist/esm/{MediaSeriesCard-ae83cba2.js → MediaSeriesCard-22059712.js} +1003 -800
  227. package/dist/esm/MediaSeriesLanding.js +82 -81
  228. package/dist/esm/MediaSeriesLandingPaginated.js +85 -85
  229. package/dist/esm/NavDvm.js +54 -54
  230. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  231. package/dist/esm/NavMagazine.js +121 -121
  232. package/dist/esm/NavNative.js +110 -110
  233. package/dist/esm/OncliveHero.js +19 -19
  234. package/dist/esm/OncliveLargeHero.js +58 -58
  235. package/dist/esm/PageFilter.js +10 -10
  236. package/dist/esm/Pagination-dc30727b.js +90 -0
  237. package/dist/esm/PartnerDetailListing.js +98 -97
  238. package/dist/esm/PartnerDetailListingPaginated.js +93 -93
  239. package/dist/esm/PdfDownload.js +7 -7
  240. package/dist/esm/PixelTracking.js +16 -16
  241. package/dist/esm/PopUpModal.js +12 -12
  242. package/dist/esm/PtceDeck.js +23 -23
  243. package/dist/esm/PubSection.js +38 -37
  244. package/dist/esm/PubToc.js +10 -10
  245. package/dist/esm/PublicationDeck.js +42 -42
  246. package/dist/esm/{PublicationFeature-0379cc20.js → PublicationFeature-d88e76b9.js} +23 -23
  247. package/dist/esm/PublicationLanding.js +105 -101
  248. package/dist/esm/QueueDeckExpanded.js +274 -273
  249. package/dist/esm/QueueDeckExpandedPaginated.js +253 -253
  250. package/dist/esm/RecentNews.js +20 -20
  251. package/dist/esm/RelatedContent.js +51 -51
  252. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  253. package/dist/esm/RolesDeck.js +13 -13
  254. package/dist/esm/Schema.js +12 -12
  255. package/dist/esm/Search.js +10 -10
  256. package/dist/esm/Segment.js +4 -4
  257. package/dist/esm/SeriesListingDeck.js +31 -30
  258. package/dist/esm/{SeriesSlider-b364d074.js → SeriesSlider-e495571f.js} +35 -35
  259. package/dist/esm/SetCookie.js +1 -1
  260. package/dist/esm/SideFooter.js +32 -32
  261. package/dist/esm/SocialIcons.js +7 -7
  262. package/dist/esm/{SocialSearchComponent-77a22145.js → SocialSearchComponent-4b56cd8c.js} +33 -33
  263. package/dist/esm/SocialShare.js +25 -25
  264. package/dist/esm/TaxonomyCard.js +44 -44
  265. package/dist/esm/TaxonomyDescription.js +50 -50
  266. package/dist/esm/TemplateNormal.js +66 -65
  267. package/dist/esm/ThumbnailCard.js +17 -17
  268. package/dist/esm/Ustream.js +29 -29
  269. package/dist/esm/VerticalHero.js +17 -17
  270. package/dist/esm/VideoProgramLandingPage.js +64 -64
  271. package/dist/esm/VideoSeriesCard.js +26 -26
  272. package/dist/esm/VideoSeriesFilter.js +13 -13
  273. package/dist/esm/VideoSeriesLandingPage.js +41 -40
  274. package/dist/esm/VideoSeriesListing.js +71 -70
  275. package/dist/esm/View.js +342 -323
  276. package/dist/esm/YahooHero.js +33 -33
  277. package/dist/esm/YoutubeGroup.js +52 -52
  278. package/dist/esm/{_is-array-31d40a83.js → _is-array-8d21b9e3.js} +6 -6
  279. package/dist/esm/{_iter-detect-72edfd60.js → _iter-detect-98db3b07.js} +7 -7
  280. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  281. package/dist/esm/{_object-sap-4201ccf6.js → _object-sap-7cee6f84.js} +1 -1
  282. package/dist/esm/{_object-to-array-fa0feeff.js → _object-to-array-2300e51b.js} +2 -2
  283. package/dist/esm/{asyncToGenerator-9c835201.js → asyncToGenerator-958ef5fc.js} +30 -30
  284. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
  285. package/dist/esm/{core.get-iterator-method-8c71f470.js → core.get-iterator-method-ea258bb1.js} +36 -36
  286. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  287. package/dist/esm/define-property-5f1bda73.js +18 -0
  288. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  289. package/dist/esm/{defineProperty-3518b6fe.js → defineProperty-8c30428f.js} +1 -1
  290. package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
  291. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  292. package/dist/esm/events-6c3a7a63.js +467 -0
  293. package/dist/esm/{extends-7fbbe94e.js → extends-6d8e3924.js} +8 -8
  294. package/dist/esm/faundadb.js +5 -5
  295. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  296. package/dist/esm/getPtceActivities.js +4 -4
  297. package/dist/esm/getRelatedArticle.js +133 -69
  298. package/dist/esm/getRootDocGroup.js +4 -4
  299. package/dist/esm/getSerializers.js +46 -46
  300. package/dist/esm/{getTargeting-260246fb.js → getTargeting-04d979c9.js} +11 -11
  301. package/dist/esm/getTargeting.js +6 -6
  302. package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
  303. package/dist/esm/{index-620826cb.js → index-1df13f26.js} +825 -574
  304. package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
  305. package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
  306. package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
  307. package/dist/esm/index-98ca9cec.js +100 -0
  308. package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
  309. package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
  310. package/dist/esm/{index.esm-d1125763.js → index.esm-1bd8a0a8.js} +1 -1
  311. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
  312. package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
  313. package/dist/esm/{index.esm-55f22b35.js → index.esm-eb1e8e80.js} +1 -1
  314. package/dist/esm/index.js +173 -172
  315. package/dist/esm/{inherits-d26c739e.js → inherits-a6ba2ec4.js} +19 -19
  316. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  317. package/dist/esm/keys-31dcdb31.js +23 -0
  318. package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
  319. package/dist/esm/main-1894c974.js +961 -0
  320. package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
  321. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
  322. package/dist/esm/{slicedToArray-99bcfd93.js → slicedToArray-6ebcbfea.js} +12 -12
  323. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  324. package/dist/esm/stringify-2b084bee.js +15 -0
  325. package/dist/esm/timeDifferenceCalc.js +1 -1
  326. package/dist/esm/{toConsumableArray-47a5394a.js → toConsumableArray-f7074d7c.js} +7 -7
  327. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  328. package/dist/esm/typeof-2f07d0e8.js +30 -0
  329. package/dist/esm/{typeof-d92ed6e0.js → typeof-e9fc0c5d.js} +34 -34
  330. package/dist/esm/urlFor.js +4 -4
  331. package/dist/esm/{urlForFile-0fc42ed8.js → urlForFile-b69adffc.js} +1 -1
  332. package/dist/esm/{ustream-api-cbba615a.js → ustream-api-d3714624.js} +4 -4
  333. package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
  334. package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
  335. package/dist/esm/{web.dom.iterable-406140e0.js → web.dom.iterable-ab4dea5c.js} +2 -2
  336. package/package.json +115 -115
  337. package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
  338. package/dist/cjs/Pagination-7624a3bd.js +0 -90
  339. package/dist/cjs/main-7b5e57b0.js +0 -898
  340. package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
  341. package/dist/esm/Pagination-1e09918f.js +0 -82
  342. package/dist/esm/define-property-a8a00786.js +0 -18
  343. package/dist/esm/keys-5e9bd229.js +0 -23
  344. package/dist/esm/main-43ca42fe.js +0 -886
  345. package/dist/esm/stringify-0c65d837.js +0 -15
  346. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
@@ -1,13 +1,1767 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-8c71f470.js';
3
- import './web.dom.iterable-406140e0.js';
4
- import React, { useState, useEffect } from 'react';
5
- import { _ as _slicedToArray } from './slicedToArray-99bcfd93.js';
1
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
2
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
+ import { a as _typeof_1 } from './typeof-2f07d0e8.js';
4
+ import { d as defineProperty, b as asyncToGenerator } from './defineProperty-23a8f8cd.js';
5
+ import React__default, { useState, useEffect } from 'react';
6
6
  import { Form } from 'react-bootstrap';
7
7
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
8
- import nextAuth from 'next-auth/client';
8
+ import './web.dom.iterable-ab4dea5c.js';
9
+ import './core.get-iterator-method-ea258bb1.js';
9
10
 
10
- var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
11
+ var interopRequireDefault = createCommonjsModule(function (module) {
12
+ function _interopRequireDefault(obj) {
13
+ return obj && obj.__esModule ? obj : {
14
+ "default": obj
15
+ };
16
+ }
17
+
18
+ module.exports = _interopRequireDefault;
19
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
20
+ });
21
+
22
+ unwrapExports(interopRequireDefault);
23
+
24
+ var runtime_1 = createCommonjsModule(function (module) {
25
+ /**
26
+ * Copyright (c) 2014-present, Facebook, Inc.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */
31
+
32
+ var runtime = (function (exports) {
33
+
34
+ var Op = Object.prototype;
35
+ var hasOwn = Op.hasOwnProperty;
36
+ var undefined$1; // More compressible than void 0.
37
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
38
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
39
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
40
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
41
+
42
+ function define(obj, key, value) {
43
+ Object.defineProperty(obj, key, {
44
+ value: value,
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true
48
+ });
49
+ return obj[key];
50
+ }
51
+ try {
52
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
53
+ define({}, "");
54
+ } catch (err) {
55
+ define = function(obj, key, value) {
56
+ return obj[key] = value;
57
+ };
58
+ }
59
+
60
+ function wrap(innerFn, outerFn, self, tryLocsList) {
61
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
62
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
63
+ var generator = Object.create(protoGenerator.prototype);
64
+ var context = new Context(tryLocsList || []);
65
+
66
+ // The ._invoke method unifies the implementations of the .next,
67
+ // .throw, and .return methods.
68
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
69
+
70
+ return generator;
71
+ }
72
+ exports.wrap = wrap;
73
+
74
+ // Try/catch helper to minimize deoptimizations. Returns a completion
75
+ // record like context.tryEntries[i].completion. This interface could
76
+ // have been (and was previously) designed to take a closure to be
77
+ // invoked without arguments, but in all the cases we care about we
78
+ // already have an existing method we want to call, so there's no need
79
+ // to create a new function object. We can even get away with assuming
80
+ // the method takes exactly one argument, since that happens to be true
81
+ // in every case, so we don't have to touch the arguments object. The
82
+ // only additional allocation required is the completion record, which
83
+ // has a stable shape and so hopefully should be cheap to allocate.
84
+ function tryCatch(fn, obj, arg) {
85
+ try {
86
+ return { type: "normal", arg: fn.call(obj, arg) };
87
+ } catch (err) {
88
+ return { type: "throw", arg: err };
89
+ }
90
+ }
91
+
92
+ var GenStateSuspendedStart = "suspendedStart";
93
+ var GenStateSuspendedYield = "suspendedYield";
94
+ var GenStateExecuting = "executing";
95
+ var GenStateCompleted = "completed";
96
+
97
+ // Returning this object from the innerFn has the same effect as
98
+ // breaking out of the dispatch switch statement.
99
+ var ContinueSentinel = {};
100
+
101
+ // Dummy constructor functions that we use as the .constructor and
102
+ // .constructor.prototype properties for functions that return Generator
103
+ // objects. For full spec compliance, you may wish to configure your
104
+ // minifier not to mangle the names of these two functions.
105
+ function Generator() {}
106
+ function GeneratorFunction() {}
107
+ function GeneratorFunctionPrototype() {}
108
+
109
+ // This is a polyfill for %IteratorPrototype% for environments that
110
+ // don't natively support it.
111
+ var IteratorPrototype = {};
112
+ IteratorPrototype[iteratorSymbol] = function () {
113
+ return this;
114
+ };
115
+
116
+ var getProto = Object.getPrototypeOf;
117
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
118
+ if (NativeIteratorPrototype &&
119
+ NativeIteratorPrototype !== Op &&
120
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
121
+ // This environment has a native %IteratorPrototype%; use it instead
122
+ // of the polyfill.
123
+ IteratorPrototype = NativeIteratorPrototype;
124
+ }
125
+
126
+ var Gp = GeneratorFunctionPrototype.prototype =
127
+ Generator.prototype = Object.create(IteratorPrototype);
128
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
129
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
130
+ GeneratorFunction.displayName = define(
131
+ GeneratorFunctionPrototype,
132
+ toStringTagSymbol,
133
+ "GeneratorFunction"
134
+ );
135
+
136
+ // Helper for defining the .next, .throw, and .return methods of the
137
+ // Iterator interface in terms of a single ._invoke method.
138
+ function defineIteratorMethods(prototype) {
139
+ ["next", "throw", "return"].forEach(function(method) {
140
+ define(prototype, method, function(arg) {
141
+ return this._invoke(method, arg);
142
+ });
143
+ });
144
+ }
145
+
146
+ exports.isGeneratorFunction = function(genFun) {
147
+ var ctor = typeof genFun === "function" && genFun.constructor;
148
+ return ctor
149
+ ? ctor === GeneratorFunction ||
150
+ // For the native GeneratorFunction constructor, the best we can
151
+ // do is to check its .name property.
152
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
153
+ : false;
154
+ };
155
+
156
+ exports.mark = function(genFun) {
157
+ if (Object.setPrototypeOf) {
158
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
159
+ } else {
160
+ genFun.__proto__ = GeneratorFunctionPrototype;
161
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
162
+ }
163
+ genFun.prototype = Object.create(Gp);
164
+ return genFun;
165
+ };
166
+
167
+ // Within the body of any async function, `await x` is transformed to
168
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
169
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
170
+ // meant to be awaited.
171
+ exports.awrap = function(arg) {
172
+ return { __await: arg };
173
+ };
174
+
175
+ function AsyncIterator(generator, PromiseImpl) {
176
+ function invoke(method, arg, resolve, reject) {
177
+ var record = tryCatch(generator[method], generator, arg);
178
+ if (record.type === "throw") {
179
+ reject(record.arg);
180
+ } else {
181
+ var result = record.arg;
182
+ var value = result.value;
183
+ if (value &&
184
+ typeof value === "object" &&
185
+ hasOwn.call(value, "__await")) {
186
+ return PromiseImpl.resolve(value.__await).then(function(value) {
187
+ invoke("next", value, resolve, reject);
188
+ }, function(err) {
189
+ invoke("throw", err, resolve, reject);
190
+ });
191
+ }
192
+
193
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
194
+ // When a yielded Promise is resolved, its final value becomes
195
+ // the .value of the Promise<{value,done}> result for the
196
+ // current iteration.
197
+ result.value = unwrapped;
198
+ resolve(result);
199
+ }, function(error) {
200
+ // If a rejected Promise was yielded, throw the rejection back
201
+ // into the async generator function so it can be handled there.
202
+ return invoke("throw", error, resolve, reject);
203
+ });
204
+ }
205
+ }
206
+
207
+ var previousPromise;
208
+
209
+ function enqueue(method, arg) {
210
+ function callInvokeWithMethodAndArg() {
211
+ return new PromiseImpl(function(resolve, reject) {
212
+ invoke(method, arg, resolve, reject);
213
+ });
214
+ }
215
+
216
+ return previousPromise =
217
+ // If enqueue has been called before, then we want to wait until
218
+ // all previous Promises have been resolved before calling invoke,
219
+ // so that results are always delivered in the correct order. If
220
+ // enqueue has not been called before, then it is important to
221
+ // call invoke immediately, without waiting on a callback to fire,
222
+ // so that the async generator function has the opportunity to do
223
+ // any necessary setup in a predictable way. This predictability
224
+ // is why the Promise constructor synchronously invokes its
225
+ // executor callback, and why async functions synchronously
226
+ // execute code before the first await. Since we implement simple
227
+ // async functions in terms of async generators, it is especially
228
+ // important to get this right, even though it requires care.
229
+ previousPromise ? previousPromise.then(
230
+ callInvokeWithMethodAndArg,
231
+ // Avoid propagating failures to Promises returned by later
232
+ // invocations of the iterator.
233
+ callInvokeWithMethodAndArg
234
+ ) : callInvokeWithMethodAndArg();
235
+ }
236
+
237
+ // Define the unified helper method that is used to implement .next,
238
+ // .throw, and .return (see defineIteratorMethods).
239
+ this._invoke = enqueue;
240
+ }
241
+
242
+ defineIteratorMethods(AsyncIterator.prototype);
243
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
244
+ return this;
245
+ };
246
+ exports.AsyncIterator = AsyncIterator;
247
+
248
+ // Note that simple async functions are implemented on top of
249
+ // AsyncIterator objects; they just return a Promise for the value of
250
+ // the final result produced by the iterator.
251
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
252
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
253
+
254
+ var iter = new AsyncIterator(
255
+ wrap(innerFn, outerFn, self, tryLocsList),
256
+ PromiseImpl
257
+ );
258
+
259
+ return exports.isGeneratorFunction(outerFn)
260
+ ? iter // If outerFn is a generator, return the full iterator.
261
+ : iter.next().then(function(result) {
262
+ return result.done ? result.value : iter.next();
263
+ });
264
+ };
265
+
266
+ function makeInvokeMethod(innerFn, self, context) {
267
+ var state = GenStateSuspendedStart;
268
+
269
+ return function invoke(method, arg) {
270
+ if (state === GenStateExecuting) {
271
+ throw new Error("Generator is already running");
272
+ }
273
+
274
+ if (state === GenStateCompleted) {
275
+ if (method === "throw") {
276
+ throw arg;
277
+ }
278
+
279
+ // Be forgiving, per 25.3.3.3.3 of the spec:
280
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
281
+ return doneResult();
282
+ }
283
+
284
+ context.method = method;
285
+ context.arg = arg;
286
+
287
+ while (true) {
288
+ var delegate = context.delegate;
289
+ if (delegate) {
290
+ var delegateResult = maybeInvokeDelegate(delegate, context);
291
+ if (delegateResult) {
292
+ if (delegateResult === ContinueSentinel) continue;
293
+ return delegateResult;
294
+ }
295
+ }
296
+
297
+ if (context.method === "next") {
298
+ // Setting context._sent for legacy support of Babel's
299
+ // function.sent implementation.
300
+ context.sent = context._sent = context.arg;
301
+
302
+ } else if (context.method === "throw") {
303
+ if (state === GenStateSuspendedStart) {
304
+ state = GenStateCompleted;
305
+ throw context.arg;
306
+ }
307
+
308
+ context.dispatchException(context.arg);
309
+
310
+ } else if (context.method === "return") {
311
+ context.abrupt("return", context.arg);
312
+ }
313
+
314
+ state = GenStateExecuting;
315
+
316
+ var record = tryCatch(innerFn, self, context);
317
+ if (record.type === "normal") {
318
+ // If an exception is thrown from innerFn, we leave state ===
319
+ // GenStateExecuting and loop back for another invocation.
320
+ state = context.done
321
+ ? GenStateCompleted
322
+ : GenStateSuspendedYield;
323
+
324
+ if (record.arg === ContinueSentinel) {
325
+ continue;
326
+ }
327
+
328
+ return {
329
+ value: record.arg,
330
+ done: context.done
331
+ };
332
+
333
+ } else if (record.type === "throw") {
334
+ state = GenStateCompleted;
335
+ // Dispatch the exception by looping back around to the
336
+ // context.dispatchException(context.arg) call above.
337
+ context.method = "throw";
338
+ context.arg = record.arg;
339
+ }
340
+ }
341
+ };
342
+ }
343
+
344
+ // Call delegate.iterator[context.method](context.arg) and handle the
345
+ // result, either by returning a { value, done } result from the
346
+ // delegate iterator, or by modifying context.method and context.arg,
347
+ // setting context.delegate to null, and returning the ContinueSentinel.
348
+ function maybeInvokeDelegate(delegate, context) {
349
+ var method = delegate.iterator[context.method];
350
+ if (method === undefined$1) {
351
+ // A .throw or .return when the delegate iterator has no .throw
352
+ // method always terminates the yield* loop.
353
+ context.delegate = null;
354
+
355
+ if (context.method === "throw") {
356
+ // Note: ["return"] must be used for ES3 parsing compatibility.
357
+ if (delegate.iterator["return"]) {
358
+ // If the delegate iterator has a return method, give it a
359
+ // chance to clean up.
360
+ context.method = "return";
361
+ context.arg = undefined$1;
362
+ maybeInvokeDelegate(delegate, context);
363
+
364
+ if (context.method === "throw") {
365
+ // If maybeInvokeDelegate(context) changed context.method from
366
+ // "return" to "throw", let that override the TypeError below.
367
+ return ContinueSentinel;
368
+ }
369
+ }
370
+
371
+ context.method = "throw";
372
+ context.arg = new TypeError(
373
+ "The iterator does not provide a 'throw' method");
374
+ }
375
+
376
+ return ContinueSentinel;
377
+ }
378
+
379
+ var record = tryCatch(method, delegate.iterator, context.arg);
380
+
381
+ if (record.type === "throw") {
382
+ context.method = "throw";
383
+ context.arg = record.arg;
384
+ context.delegate = null;
385
+ return ContinueSentinel;
386
+ }
387
+
388
+ var info = record.arg;
389
+
390
+ if (! info) {
391
+ context.method = "throw";
392
+ context.arg = new TypeError("iterator result is not an object");
393
+ context.delegate = null;
394
+ return ContinueSentinel;
395
+ }
396
+
397
+ if (info.done) {
398
+ // Assign the result of the finished delegate to the temporary
399
+ // variable specified by delegate.resultName (see delegateYield).
400
+ context[delegate.resultName] = info.value;
401
+
402
+ // Resume execution at the desired location (see delegateYield).
403
+ context.next = delegate.nextLoc;
404
+
405
+ // If context.method was "throw" but the delegate handled the
406
+ // exception, let the outer generator proceed normally. If
407
+ // context.method was "next", forget context.arg since it has been
408
+ // "consumed" by the delegate iterator. If context.method was
409
+ // "return", allow the original .return call to continue in the
410
+ // outer generator.
411
+ if (context.method !== "return") {
412
+ context.method = "next";
413
+ context.arg = undefined$1;
414
+ }
415
+
416
+ } else {
417
+ // Re-yield the result returned by the delegate method.
418
+ return info;
419
+ }
420
+
421
+ // The delegate iterator is finished, so forget it and continue with
422
+ // the outer generator.
423
+ context.delegate = null;
424
+ return ContinueSentinel;
425
+ }
426
+
427
+ // Define Generator.prototype.{next,throw,return} in terms of the
428
+ // unified ._invoke helper method.
429
+ defineIteratorMethods(Gp);
430
+
431
+ define(Gp, toStringTagSymbol, "Generator");
432
+
433
+ // A Generator should always return itself as the iterator object when the
434
+ // @@iterator function is called on it. Some browsers' implementations of the
435
+ // iterator prototype chain incorrectly implement this, causing the Generator
436
+ // object to not be returned from this call. This ensures that doesn't happen.
437
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
438
+ Gp[iteratorSymbol] = function() {
439
+ return this;
440
+ };
441
+
442
+ Gp.toString = function() {
443
+ return "[object Generator]";
444
+ };
445
+
446
+ function pushTryEntry(locs) {
447
+ var entry = { tryLoc: locs[0] };
448
+
449
+ if (1 in locs) {
450
+ entry.catchLoc = locs[1];
451
+ }
452
+
453
+ if (2 in locs) {
454
+ entry.finallyLoc = locs[2];
455
+ entry.afterLoc = locs[3];
456
+ }
457
+
458
+ this.tryEntries.push(entry);
459
+ }
460
+
461
+ function resetTryEntry(entry) {
462
+ var record = entry.completion || {};
463
+ record.type = "normal";
464
+ delete record.arg;
465
+ entry.completion = record;
466
+ }
467
+
468
+ function Context(tryLocsList) {
469
+ // The root entry object (effectively a try statement without a catch
470
+ // or a finally block) gives us a place to store values thrown from
471
+ // locations where there is no enclosing try statement.
472
+ this.tryEntries = [{ tryLoc: "root" }];
473
+ tryLocsList.forEach(pushTryEntry, this);
474
+ this.reset(true);
475
+ }
476
+
477
+ exports.keys = function(object) {
478
+ var keys = [];
479
+ for (var key in object) {
480
+ keys.push(key);
481
+ }
482
+ keys.reverse();
483
+
484
+ // Rather than returning an object with a next method, we keep
485
+ // things simple and return the next function itself.
486
+ return function next() {
487
+ while (keys.length) {
488
+ var key = keys.pop();
489
+ if (key in object) {
490
+ next.value = key;
491
+ next.done = false;
492
+ return next;
493
+ }
494
+ }
495
+
496
+ // To avoid creating an additional object, we just hang the .value
497
+ // and .done properties off the next function object itself. This
498
+ // also ensures that the minifier will not anonymize the function.
499
+ next.done = true;
500
+ return next;
501
+ };
502
+ };
503
+
504
+ function values(iterable) {
505
+ if (iterable) {
506
+ var iteratorMethod = iterable[iteratorSymbol];
507
+ if (iteratorMethod) {
508
+ return iteratorMethod.call(iterable);
509
+ }
510
+
511
+ if (typeof iterable.next === "function") {
512
+ return iterable;
513
+ }
514
+
515
+ if (!isNaN(iterable.length)) {
516
+ var i = -1, next = function next() {
517
+ while (++i < iterable.length) {
518
+ if (hasOwn.call(iterable, i)) {
519
+ next.value = iterable[i];
520
+ next.done = false;
521
+ return next;
522
+ }
523
+ }
524
+
525
+ next.value = undefined$1;
526
+ next.done = true;
527
+
528
+ return next;
529
+ };
530
+
531
+ return next.next = next;
532
+ }
533
+ }
534
+
535
+ // Return an iterator with no values.
536
+ return { next: doneResult };
537
+ }
538
+ exports.values = values;
539
+
540
+ function doneResult() {
541
+ return { value: undefined$1, done: true };
542
+ }
543
+
544
+ Context.prototype = {
545
+ constructor: Context,
546
+
547
+ reset: function(skipTempReset) {
548
+ this.prev = 0;
549
+ this.next = 0;
550
+ // Resetting context._sent for legacy support of Babel's
551
+ // function.sent implementation.
552
+ this.sent = this._sent = undefined$1;
553
+ this.done = false;
554
+ this.delegate = null;
555
+
556
+ this.method = "next";
557
+ this.arg = undefined$1;
558
+
559
+ this.tryEntries.forEach(resetTryEntry);
560
+
561
+ if (!skipTempReset) {
562
+ for (var name in this) {
563
+ // Not sure about the optimal order of these conditions:
564
+ if (name.charAt(0) === "t" &&
565
+ hasOwn.call(this, name) &&
566
+ !isNaN(+name.slice(1))) {
567
+ this[name] = undefined$1;
568
+ }
569
+ }
570
+ }
571
+ },
572
+
573
+ stop: function() {
574
+ this.done = true;
575
+
576
+ var rootEntry = this.tryEntries[0];
577
+ var rootRecord = rootEntry.completion;
578
+ if (rootRecord.type === "throw") {
579
+ throw rootRecord.arg;
580
+ }
581
+
582
+ return this.rval;
583
+ },
584
+
585
+ dispatchException: function(exception) {
586
+ if (this.done) {
587
+ throw exception;
588
+ }
589
+
590
+ var context = this;
591
+ function handle(loc, caught) {
592
+ record.type = "throw";
593
+ record.arg = exception;
594
+ context.next = loc;
595
+
596
+ if (caught) {
597
+ // If the dispatched exception was caught by a catch block,
598
+ // then let that catch block handle the exception normally.
599
+ context.method = "next";
600
+ context.arg = undefined$1;
601
+ }
602
+
603
+ return !! caught;
604
+ }
605
+
606
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
607
+ var entry = this.tryEntries[i];
608
+ var record = entry.completion;
609
+
610
+ if (entry.tryLoc === "root") {
611
+ // Exception thrown outside of any try block that could handle
612
+ // it, so set the completion value of the entire function to
613
+ // throw the exception.
614
+ return handle("end");
615
+ }
616
+
617
+ if (entry.tryLoc <= this.prev) {
618
+ var hasCatch = hasOwn.call(entry, "catchLoc");
619
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
620
+
621
+ if (hasCatch && hasFinally) {
622
+ if (this.prev < entry.catchLoc) {
623
+ return handle(entry.catchLoc, true);
624
+ } else if (this.prev < entry.finallyLoc) {
625
+ return handle(entry.finallyLoc);
626
+ }
627
+
628
+ } else if (hasCatch) {
629
+ if (this.prev < entry.catchLoc) {
630
+ return handle(entry.catchLoc, true);
631
+ }
632
+
633
+ } else if (hasFinally) {
634
+ if (this.prev < entry.finallyLoc) {
635
+ return handle(entry.finallyLoc);
636
+ }
637
+
638
+ } else {
639
+ throw new Error("try statement without catch or finally");
640
+ }
641
+ }
642
+ }
643
+ },
644
+
645
+ abrupt: function(type, arg) {
646
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
647
+ var entry = this.tryEntries[i];
648
+ if (entry.tryLoc <= this.prev &&
649
+ hasOwn.call(entry, "finallyLoc") &&
650
+ this.prev < entry.finallyLoc) {
651
+ var finallyEntry = entry;
652
+ break;
653
+ }
654
+ }
655
+
656
+ if (finallyEntry &&
657
+ (type === "break" ||
658
+ type === "continue") &&
659
+ finallyEntry.tryLoc <= arg &&
660
+ arg <= finallyEntry.finallyLoc) {
661
+ // Ignore the finally entry if control is not jumping to a
662
+ // location outside the try/catch block.
663
+ finallyEntry = null;
664
+ }
665
+
666
+ var record = finallyEntry ? finallyEntry.completion : {};
667
+ record.type = type;
668
+ record.arg = arg;
669
+
670
+ if (finallyEntry) {
671
+ this.method = "next";
672
+ this.next = finallyEntry.finallyLoc;
673
+ return ContinueSentinel;
674
+ }
675
+
676
+ return this.complete(record);
677
+ },
678
+
679
+ complete: function(record, afterLoc) {
680
+ if (record.type === "throw") {
681
+ throw record.arg;
682
+ }
683
+
684
+ if (record.type === "break" ||
685
+ record.type === "continue") {
686
+ this.next = record.arg;
687
+ } else if (record.type === "return") {
688
+ this.rval = this.arg = record.arg;
689
+ this.method = "return";
690
+ this.next = "end";
691
+ } else if (record.type === "normal" && afterLoc) {
692
+ this.next = afterLoc;
693
+ }
694
+
695
+ return ContinueSentinel;
696
+ },
697
+
698
+ finish: function(finallyLoc) {
699
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
700
+ var entry = this.tryEntries[i];
701
+ if (entry.finallyLoc === finallyLoc) {
702
+ this.complete(entry.completion, entry.afterLoc);
703
+ resetTryEntry(entry);
704
+ return ContinueSentinel;
705
+ }
706
+ }
707
+ },
708
+
709
+ "catch": function(tryLoc) {
710
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
711
+ var entry = this.tryEntries[i];
712
+ if (entry.tryLoc === tryLoc) {
713
+ var record = entry.completion;
714
+ if (record.type === "throw") {
715
+ var thrown = record.arg;
716
+ resetTryEntry(entry);
717
+ }
718
+ return thrown;
719
+ }
720
+ }
721
+
722
+ // The context.catch method must only be called with a location
723
+ // argument that corresponds to a known catch block.
724
+ throw new Error("illegal catch attempt");
725
+ },
726
+
727
+ delegateYield: function(iterable, resultName, nextLoc) {
728
+ this.delegate = {
729
+ iterator: values(iterable),
730
+ resultName: resultName,
731
+ nextLoc: nextLoc
732
+ };
733
+
734
+ if (this.method === "next") {
735
+ // Deliberately forget the last sent value so that we don't
736
+ // accidentally pass it on to the delegate.
737
+ this.arg = undefined$1;
738
+ }
739
+
740
+ return ContinueSentinel;
741
+ }
742
+ };
743
+
744
+ // Regardless of whether this script is executing as a CommonJS module
745
+ // or not, return the runtime object so that we can declare the variable
746
+ // regeneratorRuntime in the outer scope, which allows this module to be
747
+ // injected easily by `bin/regenerator --include-runtime script.js`.
748
+ return exports;
749
+
750
+ }(
751
+ // If this script is executing as a CommonJS module, use module.exports
752
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
753
+ // object. Either way, the resulting object will be used to initialize
754
+ // the regeneratorRuntime variable at the top of this file.
755
+ module.exports
756
+ ));
757
+
758
+ try {
759
+ regeneratorRuntime = runtime;
760
+ } catch (accidentalStrictMode) {
761
+ // This module should not be running in strict mode, so the above
762
+ // assignment should always work unless something is misconfigured. Just
763
+ // in case runtime.js accidentally runs in strict mode, we can escape
764
+ // strict mode using a global Function call. This could conceivably fail
765
+ // if a Content Security Policy forbids using Function, but in that case
766
+ // the proper solution is to fix the accidental strict mode problem. If
767
+ // you've misconfigured your bundler to force strict mode and applied a
768
+ // CSP to forbid Function, and you're not willing to fix either of those
769
+ // problems, please detail your unique predicament in a GitHub issue.
770
+ Function("r", "regeneratorRuntime = r")(runtime);
771
+ }
772
+ });
773
+
774
+ var regenerator = runtime_1;
775
+
776
+ var arrayWithHoles = createCommonjsModule(function (module) {
777
+ function _arrayWithHoles(arr) {
778
+ if (Array.isArray(arr)) return arr;
779
+ }
780
+
781
+ module.exports = _arrayWithHoles;
782
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
783
+ });
784
+
785
+ unwrapExports(arrayWithHoles);
786
+
787
+ var iterableToArrayLimit = createCommonjsModule(function (module) {
788
+ function _iterableToArrayLimit(arr, i) {
789
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
790
+
791
+ if (_i == null) return;
792
+ var _arr = [];
793
+ var _n = true;
794
+ var _d = false;
795
+
796
+ var _s, _e;
797
+
798
+ try {
799
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
800
+ _arr.push(_s.value);
801
+
802
+ if (i && _arr.length === i) break;
803
+ }
804
+ } catch (err) {
805
+ _d = true;
806
+ _e = err;
807
+ } finally {
808
+ try {
809
+ if (!_n && _i["return"] != null) _i["return"]();
810
+ } finally {
811
+ if (_d) throw _e;
812
+ }
813
+ }
814
+
815
+ return _arr;
816
+ }
817
+
818
+ module.exports = _iterableToArrayLimit;
819
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
820
+ });
821
+
822
+ unwrapExports(iterableToArrayLimit);
823
+
824
+ var arrayLikeToArray = createCommonjsModule(function (module) {
825
+ function _arrayLikeToArray(arr, len) {
826
+ if (len == null || len > arr.length) len = arr.length;
827
+
828
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
829
+ arr2[i] = arr[i];
830
+ }
831
+
832
+ return arr2;
833
+ }
834
+
835
+ module.exports = _arrayLikeToArray;
836
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
837
+ });
838
+
839
+ unwrapExports(arrayLikeToArray);
840
+
841
+ var unsupportedIterableToArray = createCommonjsModule(function (module) {
842
+ function _unsupportedIterableToArray(o, minLen) {
843
+ if (!o) return;
844
+ if (typeof o === "string") return arrayLikeToArray(o, minLen);
845
+ var n = Object.prototype.toString.call(o).slice(8, -1);
846
+ if (n === "Object" && o.constructor) n = o.constructor.name;
847
+ if (n === "Map" || n === "Set") return Array.from(o);
848
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
849
+ }
850
+
851
+ module.exports = _unsupportedIterableToArray;
852
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
853
+ });
854
+
855
+ unwrapExports(unsupportedIterableToArray);
856
+
857
+ var nonIterableRest = createCommonjsModule(function (module) {
858
+ function _nonIterableRest() {
859
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
860
+ }
861
+
862
+ module.exports = _nonIterableRest;
863
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
864
+ });
865
+
866
+ unwrapExports(nonIterableRest);
867
+
868
+ var slicedToArray = createCommonjsModule(function (module) {
869
+ function _slicedToArray(arr, i) {
870
+ return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
871
+ }
872
+
873
+ module.exports = _slicedToArray;
874
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
875
+ });
876
+
877
+ unwrapExports(slicedToArray);
878
+
879
+ var logger = createCommonjsModule(function (module, exports) {
880
+
881
+ Object.defineProperty(exports, "__esModule", {
882
+ value: true
883
+ });
884
+ exports.setLogger = setLogger;
885
+ exports.proxyLogger = proxyLogger;
886
+ exports.default = void 0;
887
+ const _logger = {
888
+ error(code, ...message) {
889
+ console.error(`[next-auth][error][${code.toLowerCase()}]`, `\nhttps://next-auth.js.org/errors#${code.toLowerCase()}`, ...message);
890
+ },
891
+
892
+ warn(code, ...message) {
893
+ console.warn(`[next-auth][warn][${code.toLowerCase()}]`, `\nhttps://next-auth.js.org/warnings#${code.toLowerCase()}`, ...message);
894
+ },
895
+
896
+ debug(code, ...message) {
897
+ var _process, _process$env;
898
+
899
+ if (!((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env._NEXTAUTH_DEBUG)) return;
900
+ console.log(`[next-auth][debug][${code.toLowerCase()}]`, ...message);
901
+ }
902
+
903
+ };
904
+
905
+ function setLogger(newLogger = {}) {
906
+ if (newLogger.error) _logger.error = newLogger.error;
907
+ if (newLogger.warn) _logger.warn = newLogger.warn;
908
+ if (newLogger.debug) _logger.debug = newLogger.debug;
909
+ }
910
+
911
+ var _default = _logger;
912
+ exports.default = _default;
913
+
914
+ function proxyLogger(logger = _logger, basePath) {
915
+ try {
916
+ if (typeof window === "undefined") {
917
+ return logger;
918
+ }
919
+
920
+ const clientLogger = {};
921
+
922
+ for (const level in logger) {
923
+ clientLogger[level] = (code, ...message) => {
924
+ _logger[level](code, ...message);
925
+
926
+ const url = `${basePath}/_log`;
927
+ const body = new URLSearchParams({
928
+ level,
929
+ code,
930
+ message: JSON.stringify(message.map(m => {
931
+ if (m instanceof Error) {
932
+ return {
933
+ name: m.name,
934
+ message: m.message,
935
+ stack: m.stack
936
+ };
937
+ }
938
+
939
+ return m;
940
+ }))
941
+ });
942
+
943
+ if (navigator.sendBeacon) {
944
+ return navigator.sendBeacon(url, body);
945
+ }
946
+
947
+ return fetch(url, {
948
+ method: "POST",
949
+ headers: {
950
+ "Content-Type": "application/json"
951
+ },
952
+ body
953
+ });
954
+ };
955
+ }
956
+
957
+ return clientLogger;
958
+ } catch (_unused) {
959
+ return _logger;
960
+ }
961
+ }
962
+ });
963
+
964
+ unwrapExports(logger);
965
+ logger.setLogger;
966
+ logger.proxyLogger;
967
+
968
+ var parseUrl_1 = createCommonjsModule(function (module, exports) {
969
+
970
+ Object.defineProperty(exports, "__esModule", {
971
+ value: true
972
+ });
973
+ exports.default = parseUrl;
974
+
975
+ function parseUrl(url) {
976
+ const defaultHost = 'http://localhost:3000';
977
+ const defaultPath = '/api/auth';
978
+
979
+ if (!url) {
980
+ url = `${defaultHost}${defaultPath}`;
981
+ }
982
+
983
+ const protocol = url.startsWith('http:') ? 'http' : 'https';
984
+ url = url.replace(/^https?:\/\//, '').replace(/\/$/, '');
985
+ const [_host, ..._path] = url.split('/');
986
+ const baseUrl = _host ? `${protocol}://${_host}` : defaultHost;
987
+ const basePath = _path.length > 0 ? `/${_path.join('/')}` : defaultPath;
988
+ return {
989
+ baseUrl,
990
+ basePath
991
+ };
992
+ }
993
+ });
994
+
995
+ unwrapExports(parseUrl_1);
996
+
997
+ var client$1 = createCommonjsModule(function (module, exports) {
998
+
999
+
1000
+
1001
+
1002
+
1003
+ Object.defineProperty(exports, "__esModule", {
1004
+ value: true
1005
+ });
1006
+ exports.useSession = useSession;
1007
+ exports.session = exports.getSession = getSession;
1008
+ exports.csrfToken = exports.getCsrfToken = getCsrfToken;
1009
+ exports.providers = exports.getProviders = getProviders;
1010
+ exports.signin = exports.signIn = signIn;
1011
+ exports.signout = exports.signOut = signOut;
1012
+ exports.options = exports.setOptions = setOptions;
1013
+ exports.Provider = Provider;
1014
+ exports.default = void 0;
1015
+
1016
+ var _regenerator = interopRequireDefault(regenerator);
1017
+
1018
+ var _defineProperty2 = interopRequireDefault(defineProperty);
1019
+
1020
+ var _asyncToGenerator2 = interopRequireDefault(asyncToGenerator);
1021
+
1022
+ var _slicedToArray2 = interopRequireDefault(slicedToArray);
1023
+
1024
+
1025
+
1026
+ var _logger2 = _interopRequireWildcard(logger);
1027
+
1028
+ var _parseUrl = interopRequireDefault(parseUrl_1);
1029
+
1030
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
1031
+
1032
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof_1(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1033
+
1034
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1035
+
1036
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1037
+
1038
+ var __NEXTAUTH = {
1039
+ baseUrl: (0, _parseUrl.default)(process.env.NEXTAUTH_URL || process.env.VERCEL_URL).baseUrl,
1040
+ basePath: (0, _parseUrl.default)(process.env.NEXTAUTH_URL).basePath,
1041
+ baseUrlServer: (0, _parseUrl.default)(process.env.NEXTAUTH_URL_INTERNAL || process.env.NEXTAUTH_URL || process.env.VERCEL_URL).baseUrl,
1042
+ basePathServer: (0, _parseUrl.default)(process.env.NEXTAUTH_URL_INTERNAL || process.env.NEXTAUTH_URL).basePath,
1043
+ keepAlive: 0,
1044
+ clientMaxAge: 0,
1045
+ _clientLastSync: 0,
1046
+ _clientSyncTimer: null,
1047
+ _eventListenersAdded: false,
1048
+ _clientSession: undefined,
1049
+ _getSession: function _getSession() {}
1050
+ };
1051
+ var logger$1 = (0, _logger2.proxyLogger)(_logger2.default, __NEXTAUTH.basePath);
1052
+ var broadcast = BroadcastChannel();
1053
+
1054
+ if (typeof window !== "undefined" && !__NEXTAUTH._eventListenersAdded) {
1055
+ __NEXTAUTH._eventListenersAdded = true;
1056
+ broadcast.receive(function () {
1057
+ return __NEXTAUTH._getSession({
1058
+ event: "storage"
1059
+ });
1060
+ });
1061
+ document.addEventListener("visibilitychange", function () {
1062
+ !document.hidden && __NEXTAUTH._getSession({
1063
+ event: "visibilitychange"
1064
+ });
1065
+ }, false);
1066
+ }
1067
+
1068
+ var SessionContext = (0, React__default.createContext)();
1069
+
1070
+ function useSession(session) {
1071
+ var context = (0, React__default.useContext)(SessionContext);
1072
+ if (context) return context;
1073
+ return _useSessionHook(session);
1074
+ }
1075
+
1076
+ function _useSessionHook(session) {
1077
+ var _useState = (0, React__default.useState)(session),
1078
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1079
+ data = _useState2[0],
1080
+ setData = _useState2[1];
1081
+
1082
+ var _useState3 = (0, React__default.useState)(!data),
1083
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
1084
+ loading = _useState4[0],
1085
+ setLoading = _useState4[1];
1086
+
1087
+ (0, React__default.useEffect)(function () {
1088
+ __NEXTAUTH._getSession = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee() {
1089
+ var _ref2,
1090
+ _ref2$event,
1091
+ event,
1092
+ triggredByEvent,
1093
+ triggeredByStorageEvent,
1094
+ clientMaxAge,
1095
+ clientLastSync,
1096
+ currentTime,
1097
+ clientSession,
1098
+ newClientSessionData,
1099
+ _args = arguments;
1100
+
1101
+ return _regenerator.default.wrap(function _callee$(_context) {
1102
+ while (1) {
1103
+ switch (_context.prev = _context.next) {
1104
+ case 0:
1105
+ _ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$event = _ref2.event, event = _ref2$event === void 0 ? null : _ref2$event;
1106
+ _context.prev = 1;
1107
+ triggredByEvent = event !== null;
1108
+ triggeredByStorageEvent = event === "storage";
1109
+ clientMaxAge = __NEXTAUTH.clientMaxAge;
1110
+ clientLastSync = parseInt(__NEXTAUTH._clientLastSync);
1111
+ currentTime = _now();
1112
+ clientSession = __NEXTAUTH._clientSession;
1113
+
1114
+ if (!(!triggeredByStorageEvent && clientSession !== undefined)) {
1115
+ _context.next = 19;
1116
+ break;
1117
+ }
1118
+
1119
+ if (!(clientMaxAge === 0 && triggredByEvent !== true)) {
1120
+ _context.next = 13;
1121
+ break;
1122
+ }
1123
+
1124
+ return _context.abrupt("return");
1125
+
1126
+ case 13:
1127
+ if (!(clientMaxAge > 0 && clientSession === null)) {
1128
+ _context.next = 17;
1129
+ break;
1130
+ }
1131
+
1132
+ return _context.abrupt("return");
1133
+
1134
+ case 17:
1135
+ if (!(clientMaxAge > 0 && currentTime < clientLastSync + clientMaxAge)) {
1136
+ _context.next = 19;
1137
+ break;
1138
+ }
1139
+
1140
+ return _context.abrupt("return");
1141
+
1142
+ case 19:
1143
+ if (clientSession === undefined) {
1144
+ __NEXTAUTH._clientSession = null;
1145
+ }
1146
+
1147
+ __NEXTAUTH._clientLastSync = _now();
1148
+ _context.next = 23;
1149
+ return getSession({
1150
+ triggerEvent: !triggeredByStorageEvent
1151
+ });
1152
+
1153
+ case 23:
1154
+ newClientSessionData = _context.sent;
1155
+ __NEXTAUTH._clientSession = newClientSessionData;
1156
+ setData(newClientSessionData);
1157
+ setLoading(false);
1158
+ _context.next = 33;
1159
+ break;
1160
+
1161
+ case 29:
1162
+ _context.prev = 29;
1163
+ _context.t0 = _context["catch"](1);
1164
+ logger$1.error("CLIENT_USE_SESSION_ERROR", _context.t0);
1165
+ setLoading(false);
1166
+
1167
+ case 33:
1168
+ case "end":
1169
+ return _context.stop();
1170
+ }
1171
+ }
1172
+ }, _callee, null, [[1, 29]]);
1173
+ }));
1174
+
1175
+ __NEXTAUTH._getSession();
1176
+ });
1177
+ return [data, loading];
1178
+ }
1179
+
1180
+ function getSession(_x) {
1181
+ return _getSession2.apply(this, arguments);
1182
+ }
1183
+
1184
+ function _getSession2() {
1185
+ _getSession2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(ctx) {
1186
+ var _ctx$triggerEvent;
1187
+
1188
+ var session;
1189
+ return _regenerator.default.wrap(function _callee4$(_context4) {
1190
+ while (1) {
1191
+ switch (_context4.prev = _context4.next) {
1192
+ case 0:
1193
+ _context4.next = 2;
1194
+ return _fetchData("session", ctx);
1195
+
1196
+ case 2:
1197
+ session = _context4.sent;
1198
+
1199
+ if ((_ctx$triggerEvent = ctx === null || ctx === void 0 ? void 0 : ctx.triggerEvent) !== null && _ctx$triggerEvent !== void 0 ? _ctx$triggerEvent : true) {
1200
+ broadcast.post({
1201
+ event: "session",
1202
+ data: {
1203
+ trigger: "getSession"
1204
+ }
1205
+ });
1206
+ }
1207
+
1208
+ return _context4.abrupt("return", session);
1209
+
1210
+ case 5:
1211
+ case "end":
1212
+ return _context4.stop();
1213
+ }
1214
+ }
1215
+ }, _callee4);
1216
+ }));
1217
+ return _getSession2.apply(this, arguments);
1218
+ }
1219
+
1220
+ function getCsrfToken(_x2) {
1221
+ return _getCsrfToken.apply(this, arguments);
1222
+ }
1223
+
1224
+ function _getCsrfToken() {
1225
+ _getCsrfToken = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5(ctx) {
1226
+ var _yield$_fetchData;
1227
+
1228
+ return _regenerator.default.wrap(function _callee5$(_context5) {
1229
+ while (1) {
1230
+ switch (_context5.prev = _context5.next) {
1231
+ case 0:
1232
+ _context5.next = 2;
1233
+ return _fetchData("csrf", ctx);
1234
+
1235
+ case 2:
1236
+ _context5.t1 = _yield$_fetchData = _context5.sent;
1237
+ _context5.t0 = _context5.t1 === null;
1238
+
1239
+ if (_context5.t0) {
1240
+ _context5.next = 6;
1241
+ break;
1242
+ }
1243
+
1244
+ _context5.t0 = _yield$_fetchData === void 0;
1245
+
1246
+ case 6:
1247
+ if (!_context5.t0) {
1248
+ _context5.next = 10;
1249
+ break;
1250
+ }
1251
+
1252
+ _context5.t2 = void 0;
1253
+ _context5.next = 11;
1254
+ break;
1255
+
1256
+ case 10:
1257
+ _context5.t2 = _yield$_fetchData.csrfToken;
1258
+
1259
+ case 11:
1260
+ return _context5.abrupt("return", _context5.t2);
1261
+
1262
+ case 12:
1263
+ case "end":
1264
+ return _context5.stop();
1265
+ }
1266
+ }
1267
+ }, _callee5);
1268
+ }));
1269
+ return _getCsrfToken.apply(this, arguments);
1270
+ }
1271
+
1272
+ function getProviders() {
1273
+ return _getProviders.apply(this, arguments);
1274
+ }
1275
+
1276
+ function _getProviders() {
1277
+ _getProviders = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee6() {
1278
+ return _regenerator.default.wrap(function _callee6$(_context6) {
1279
+ while (1) {
1280
+ switch (_context6.prev = _context6.next) {
1281
+ case 0:
1282
+ _context6.next = 2;
1283
+ return _fetchData("providers");
1284
+
1285
+ case 2:
1286
+ return _context6.abrupt("return", _context6.sent);
1287
+
1288
+ case 3:
1289
+ case "end":
1290
+ return _context6.stop();
1291
+ }
1292
+ }
1293
+ }, _callee6);
1294
+ }));
1295
+ return _getProviders.apply(this, arguments);
1296
+ }
1297
+
1298
+ function signIn(_x3) {
1299
+ return _signIn.apply(this, arguments);
1300
+ }
1301
+
1302
+ function _signIn() {
1303
+ _signIn = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee7(provider) {
1304
+ var options,
1305
+ authorizationParams,
1306
+ _options$callbackUrl,
1307
+ callbackUrl,
1308
+ _options$redirect,
1309
+ redirect,
1310
+ baseUrl,
1311
+ providers,
1312
+ isCredentials,
1313
+ isEmail,
1314
+ isSupportingReturn,
1315
+ signInUrl,
1316
+ _signInUrl,
1317
+ res,
1318
+ data,
1319
+ _data$url,
1320
+ url,
1321
+ error,
1322
+ _args7 = arguments;
1323
+
1324
+ return _regenerator.default.wrap(function _callee7$(_context7) {
1325
+ while (1) {
1326
+ switch (_context7.prev = _context7.next) {
1327
+ case 0:
1328
+ options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
1329
+ authorizationParams = _args7.length > 2 && _args7[2] !== undefined ? _args7[2] : {};
1330
+ _options$callbackUrl = options.callbackUrl, callbackUrl = _options$callbackUrl === void 0 ? window.location.href : _options$callbackUrl, _options$redirect = options.redirect, redirect = _options$redirect === void 0 ? true : _options$redirect;
1331
+ baseUrl = _apiBaseUrl();
1332
+ _context7.next = 6;
1333
+ return getProviders();
1334
+
1335
+ case 6:
1336
+ providers = _context7.sent;
1337
+
1338
+ if (providers) {
1339
+ _context7.next = 9;
1340
+ break;
1341
+ }
1342
+
1343
+ return _context7.abrupt("return", window.location.replace("".concat(baseUrl, "/error")));
1344
+
1345
+ case 9:
1346
+ if (provider in providers) {
1347
+ _context7.next = 11;
1348
+ break;
1349
+ }
1350
+
1351
+ return _context7.abrupt("return", window.location.replace("".concat(baseUrl, "/signin?callbackUrl=").concat(encodeURIComponent(callbackUrl))));
1352
+
1353
+ case 11:
1354
+ isCredentials = providers[provider].type === "credentials";
1355
+ isEmail = providers[provider].type === "email";
1356
+ isSupportingReturn = isCredentials || isEmail;
1357
+ signInUrl = isCredentials ? "".concat(baseUrl, "/callback/").concat(provider) : "".concat(baseUrl, "/signin/").concat(provider);
1358
+ _signInUrl = "".concat(signInUrl, "?").concat(new URLSearchParams(authorizationParams));
1359
+ _context7.t0 = fetch;
1360
+ _context7.t1 = _signInUrl;
1361
+ _context7.t2 = {
1362
+ "Content-Type": "application/x-www-form-urlencoded"
1363
+ };
1364
+ _context7.t3 = URLSearchParams;
1365
+ _context7.t4 = _objectSpread;
1366
+ _context7.t5 = _objectSpread({}, options);
1367
+ _context7.t6 = {};
1368
+ _context7.next = 25;
1369
+ return getCsrfToken();
1370
+
1371
+ case 25:
1372
+ _context7.t7 = _context7.sent;
1373
+ _context7.t8 = callbackUrl;
1374
+ _context7.t9 = {
1375
+ csrfToken: _context7.t7,
1376
+ callbackUrl: _context7.t8,
1377
+ json: true
1378
+ };
1379
+ _context7.t10 = (0, _context7.t4)(_context7.t5, _context7.t6, _context7.t9);
1380
+ _context7.t11 = new _context7.t3(_context7.t10);
1381
+ _context7.t12 = {
1382
+ method: "post",
1383
+ headers: _context7.t2,
1384
+ body: _context7.t11
1385
+ };
1386
+ _context7.next = 33;
1387
+ return (0, _context7.t0)(_context7.t1, _context7.t12);
1388
+
1389
+ case 33:
1390
+ res = _context7.sent;
1391
+ _context7.next = 36;
1392
+ return res.json();
1393
+
1394
+ case 36:
1395
+ data = _context7.sent;
1396
+
1397
+ if (!(redirect || !isSupportingReturn)) {
1398
+ _context7.next = 42;
1399
+ break;
1400
+ }
1401
+
1402
+ url = (_data$url = data.url) !== null && _data$url !== void 0 ? _data$url : callbackUrl;
1403
+ window.location.replace(url);
1404
+ if (url.includes("#")) window.location.reload();
1405
+ return _context7.abrupt("return");
1406
+
1407
+ case 42:
1408
+ error = new URL(data.url).searchParams.get("error");
1409
+
1410
+ if (!res.ok) {
1411
+ _context7.next = 46;
1412
+ break;
1413
+ }
1414
+
1415
+ _context7.next = 46;
1416
+ return __NEXTAUTH._getSession({
1417
+ event: "storage"
1418
+ });
1419
+
1420
+ case 46:
1421
+ return _context7.abrupt("return", {
1422
+ error: error,
1423
+ status: res.status,
1424
+ ok: res.ok,
1425
+ url: error ? null : data.url
1426
+ });
1427
+
1428
+ case 47:
1429
+ case "end":
1430
+ return _context7.stop();
1431
+ }
1432
+ }
1433
+ }, _callee7);
1434
+ }));
1435
+ return _signIn.apply(this, arguments);
1436
+ }
1437
+
1438
+ function signOut() {
1439
+ return _signOut.apply(this, arguments);
1440
+ }
1441
+
1442
+ function _signOut() {
1443
+ _signOut = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee8() {
1444
+ var options,
1445
+ _options$callbackUrl2,
1446
+ callbackUrl,
1447
+ _options$redirect2,
1448
+ redirect,
1449
+ baseUrl,
1450
+ fetchOptions,
1451
+ res,
1452
+ data,
1453
+ _data$url2,
1454
+ url,
1455
+ _args8 = arguments;
1456
+
1457
+ return _regenerator.default.wrap(function _callee8$(_context8) {
1458
+ while (1) {
1459
+ switch (_context8.prev = _context8.next) {
1460
+ case 0:
1461
+ options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
1462
+ _options$callbackUrl2 = options.callbackUrl, callbackUrl = _options$callbackUrl2 === void 0 ? window.location.href : _options$callbackUrl2, _options$redirect2 = options.redirect, redirect = _options$redirect2 === void 0 ? true : _options$redirect2;
1463
+ baseUrl = _apiBaseUrl();
1464
+ _context8.t0 = {
1465
+ "Content-Type": "application/x-www-form-urlencoded"
1466
+ };
1467
+ _context8.t1 = URLSearchParams;
1468
+ _context8.next = 7;
1469
+ return getCsrfToken();
1470
+
1471
+ case 7:
1472
+ _context8.t2 = _context8.sent;
1473
+ _context8.t3 = callbackUrl;
1474
+ _context8.t4 = {
1475
+ csrfToken: _context8.t2,
1476
+ callbackUrl: _context8.t3,
1477
+ json: true
1478
+ };
1479
+ _context8.t5 = new _context8.t1(_context8.t4);
1480
+ fetchOptions = {
1481
+ method: "post",
1482
+ headers: _context8.t0,
1483
+ body: _context8.t5
1484
+ };
1485
+ _context8.next = 14;
1486
+ return fetch("".concat(baseUrl, "/signout"), fetchOptions);
1487
+
1488
+ case 14:
1489
+ res = _context8.sent;
1490
+ _context8.next = 17;
1491
+ return res.json();
1492
+
1493
+ case 17:
1494
+ data = _context8.sent;
1495
+ broadcast.post({
1496
+ event: "session",
1497
+ data: {
1498
+ trigger: "signout"
1499
+ }
1500
+ });
1501
+
1502
+ if (!redirect) {
1503
+ _context8.next = 24;
1504
+ break;
1505
+ }
1506
+
1507
+ url = (_data$url2 = data.url) !== null && _data$url2 !== void 0 ? _data$url2 : callbackUrl;
1508
+ window.location.replace(url);
1509
+ if (url.includes("#")) window.location.reload();
1510
+ return _context8.abrupt("return");
1511
+
1512
+ case 24:
1513
+ _context8.next = 26;
1514
+ return __NEXTAUTH._getSession({
1515
+ event: "storage"
1516
+ });
1517
+
1518
+ case 26:
1519
+ return _context8.abrupt("return", data);
1520
+
1521
+ case 27:
1522
+ case "end":
1523
+ return _context8.stop();
1524
+ }
1525
+ }
1526
+ }, _callee8);
1527
+ }));
1528
+ return _signOut.apply(this, arguments);
1529
+ }
1530
+
1531
+ function setOptions() {
1532
+ var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1533
+ baseUrl = _ref3.baseUrl,
1534
+ basePath = _ref3.basePath,
1535
+ clientMaxAge = _ref3.clientMaxAge,
1536
+ keepAlive = _ref3.keepAlive;
1537
+
1538
+ if (baseUrl) __NEXTAUTH.baseUrl = baseUrl;
1539
+ if (basePath) __NEXTAUTH.basePath = basePath;
1540
+ if (clientMaxAge) __NEXTAUTH.clientMaxAge = clientMaxAge;
1541
+
1542
+ if (keepAlive) {
1543
+ __NEXTAUTH.keepAlive = keepAlive;
1544
+ if (typeof window === "undefined") return;
1545
+
1546
+ if (__NEXTAUTH._clientSyncTimer !== null) {
1547
+ clearTimeout(__NEXTAUTH._clientSyncTimer);
1548
+ }
1549
+
1550
+ __NEXTAUTH._clientSyncTimer = setTimeout((0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2() {
1551
+ return _regenerator.default.wrap(function _callee2$(_context2) {
1552
+ while (1) {
1553
+ switch (_context2.prev = _context2.next) {
1554
+ case 0:
1555
+ if (__NEXTAUTH._clientSession) {
1556
+ _context2.next = 2;
1557
+ break;
1558
+ }
1559
+
1560
+ return _context2.abrupt("return");
1561
+
1562
+ case 2:
1563
+ _context2.next = 4;
1564
+ return __NEXTAUTH._getSession({
1565
+ event: "timer"
1566
+ });
1567
+
1568
+ case 4:
1569
+ case "end":
1570
+ return _context2.stop();
1571
+ }
1572
+ }
1573
+ }, _callee2);
1574
+ })), keepAlive * 1000);
1575
+ }
1576
+ }
1577
+
1578
+ function Provider(_ref5) {
1579
+ var children = _ref5.children,
1580
+ session = _ref5.session,
1581
+ options = _ref5.options;
1582
+ setOptions(options);
1583
+ return (0, React__default.createElement)(SessionContext.Provider, {
1584
+ value: useSession(session)
1585
+ }, children);
1586
+ }
1587
+
1588
+ function _fetchData(_x4) {
1589
+ return _fetchData2.apply(this, arguments);
1590
+ }
1591
+
1592
+ function _fetchData2() {
1593
+ _fetchData2 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee9(path) {
1594
+ var _ref7,
1595
+ ctx,
1596
+ _ref7$req,
1597
+ req,
1598
+ baseUrl,
1599
+ options,
1600
+ res,
1601
+ data,
1602
+ _args9 = arguments;
1603
+
1604
+ return _regenerator.default.wrap(function _callee9$(_context9) {
1605
+ while (1) {
1606
+ switch (_context9.prev = _context9.next) {
1607
+ case 0:
1608
+ _ref7 = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {}, ctx = _ref7.ctx, _ref7$req = _ref7.req, req = _ref7$req === void 0 ? ctx === null || ctx === void 0 ? void 0 : ctx.req : _ref7$req;
1609
+ _context9.prev = 1;
1610
+ _context9.next = 4;
1611
+ return _apiBaseUrl();
1612
+
1613
+ case 4:
1614
+ baseUrl = _context9.sent;
1615
+ options = req ? {
1616
+ headers: {
1617
+ cookie: req.headers.cookie
1618
+ }
1619
+ } : {};
1620
+ _context9.next = 8;
1621
+ return fetch("".concat(baseUrl, "/").concat(path), options);
1622
+
1623
+ case 8:
1624
+ res = _context9.sent;
1625
+ _context9.next = 11;
1626
+ return res.json();
1627
+
1628
+ case 11:
1629
+ data = _context9.sent;
1630
+
1631
+ if (res.ok) {
1632
+ _context9.next = 14;
1633
+ break;
1634
+ }
1635
+
1636
+ throw data;
1637
+
1638
+ case 14:
1639
+ return _context9.abrupt("return", Object.keys(data).length > 0 ? data : null);
1640
+
1641
+ case 17:
1642
+ _context9.prev = 17;
1643
+ _context9.t0 = _context9["catch"](1);
1644
+ logger$1.error("CLIENT_FETCH_ERROR", path, _context9.t0);
1645
+ return _context9.abrupt("return", null);
1646
+
1647
+ case 21:
1648
+ case "end":
1649
+ return _context9.stop();
1650
+ }
1651
+ }
1652
+ }, _callee9, null, [[1, 17]]);
1653
+ }));
1654
+ return _fetchData2.apply(this, arguments);
1655
+ }
1656
+
1657
+ function _apiBaseUrl() {
1658
+ if (typeof window === "undefined") {
1659
+ if (!process.env.NEXTAUTH_URL) {
1660
+ logger$1.warn("NEXTAUTH_URL", "NEXTAUTH_URL environment variable not set");
1661
+ }
1662
+
1663
+ return "".concat(__NEXTAUTH.baseUrlServer).concat(__NEXTAUTH.basePathServer);
1664
+ }
1665
+
1666
+ return __NEXTAUTH.basePath;
1667
+ }
1668
+
1669
+ function _now() {
1670
+ return Math.floor(Date.now() / 1000);
1671
+ }
1672
+
1673
+ function BroadcastChannel() {
1674
+ var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "nextauth.message";
1675
+ return {
1676
+ receive: function receive(onReceive) {
1677
+ if (typeof window === "undefined") return;
1678
+ window.addEventListener("storage", function () {
1679
+ var _ref6 = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee3(event) {
1680
+ var message;
1681
+ return _regenerator.default.wrap(function _callee3$(_context3) {
1682
+ while (1) {
1683
+ switch (_context3.prev = _context3.next) {
1684
+ case 0:
1685
+ if (!(event.key !== name)) {
1686
+ _context3.next = 2;
1687
+ break;
1688
+ }
1689
+
1690
+ return _context3.abrupt("return");
1691
+
1692
+ case 2:
1693
+ message = JSON.parse(event.newValue);
1694
+
1695
+ if (!((message === null || message === void 0 ? void 0 : message.event) !== "session" || !(message !== null && message !== void 0 && message.data))) {
1696
+ _context3.next = 5;
1697
+ break;
1698
+ }
1699
+
1700
+ return _context3.abrupt("return");
1701
+
1702
+ case 5:
1703
+ onReceive(message);
1704
+
1705
+ case 6:
1706
+ case "end":
1707
+ return _context3.stop();
1708
+ }
1709
+ }
1710
+ }, _callee3);
1711
+ }));
1712
+
1713
+ return function (_x5) {
1714
+ return _ref6.apply(this, arguments);
1715
+ };
1716
+ }());
1717
+ },
1718
+ post: function post(message) {
1719
+ if (typeof localStorage === "undefined") return;
1720
+ localStorage.setItem(name, JSON.stringify(_objectSpread(_objectSpread({}, message), {}, {
1721
+ timestamp: _now()
1722
+ })));
1723
+ }
1724
+ };
1725
+ }
1726
+
1727
+ var _default = {
1728
+ getSession: getSession,
1729
+ getCsrfToken: getCsrfToken,
1730
+ getProviders: getProviders,
1731
+ useSession: useSession,
1732
+ signIn: signIn,
1733
+ signOut: signOut,
1734
+ Provider: Provider,
1735
+ setOptions: setOptions,
1736
+ options: setOptions,
1737
+ session: getSession,
1738
+ providers: getProviders,
1739
+ csrfToken: getCsrfToken,
1740
+ signin: signIn,
1741
+ signout: signOut
1742
+ };
1743
+ exports.default = _default;
1744
+ });
1745
+
1746
+ unwrapExports(client$1);
1747
+ client$1.useSession;
1748
+ client$1.session;
1749
+ client$1.getSession;
1750
+ client$1.csrfToken;
1751
+ client$1.getCsrfToken;
1752
+ client$1.providers;
1753
+ client$1.getProviders;
1754
+ client$1.signin;
1755
+ client$1.signIn;
1756
+ client$1.signout;
1757
+ client$1.signOut;
1758
+ client$1.options;
1759
+ client$1.setOptions;
1760
+ client$1.Provider;
1761
+
1762
+ var client = client$1.default;
1763
+
1764
+ var css = ".AuthWrapper-module_loginBox__3l-BE {\r\n margin-bottom: 2rem;\r\n width: 350px;\r\n max-width: 90vw;\r\n margin-left: auto;\r\n margin-right: auto;\r\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\r\n background: #fff;\r\n z-index: 1;\r\n}\r\n.AuthWrapper-module_loginBox_title__12rGD {\r\n margin-bottom: 2rem;\r\n text-align: center;\r\n}\r\n.AuthWrapper-module_bar__1dafn {\r\n background: #eee;\r\n margin-left: unset;\r\n margin-right: unset;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\r\n float: left;\r\n border-right: 1rem solid #fff;\r\n background: rgb(245, 245, 245);\r\n height: 10rem;\r\n width: 25%;\r\n margin-left: auto;\r\n margin-right: auto;\r\n margin-bottom: 2rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\r\n width: 97%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\r\n width: 96%;\r\n height: 1.5rem;\r\n margin-bottom: 1.5rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\r\n width: 72%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\r\n width: 88%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n\r\n.AuthWrapper-module_iframe__2wDJW {\r\n margin-top: -3rem;\r\n border: none;\r\n width: 100%;\r\n height: 1900px;\r\n}";
11
1765
  var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
12
1766
  styleInject(css);
13
1767
 
@@ -17,7 +1771,7 @@ var AuthWrapper = function AuthWrapper(_ref) {
17
1771
  _ref$formUrl = _ref.formUrl,
18
1772
  formUrl = _ref$formUrl === undefined ? '' : _ref$formUrl;
19
1773
 
20
- var _nextAuth$useSession = nextAuth.useSession(),
1774
+ var _nextAuth$useSession = client.useSession(),
21
1775
  _nextAuth$useSession2 = _slicedToArray(_nextAuth$useSession, 2),
22
1776
  session = _nextAuth$useSession2[0],
23
1777
  loading = _nextAuth$useSession2[1];
@@ -47,7 +1801,7 @@ var AuthWrapper = function AuthWrapper(_ref) {
47
1801
  }, []);
48
1802
 
49
1803
  if (session || !needAuth) {
50
- return React.createElement(
1804
+ return React__default.createElement(
51
1805
  'div',
52
1806
  null,
53
1807
  children
@@ -55,55 +1809,55 @@ var AuthWrapper = function AuthWrapper(_ref) {
55
1809
  }
56
1810
 
57
1811
  if (!loading) {
58
- return React.createElement(
1812
+ return React__default.createElement(
59
1813
  'div',
60
1814
  { style: { position: 'relative', minHeight: '300px', paddingTop: '2rem' } },
61
- callbackUrl && React.createElement(
1815
+ callbackUrl && React__default.createElement(
62
1816
  'div',
63
1817
  null,
64
- !showForm && React.createElement(
1818
+ !showForm && React__default.createElement(
65
1819
  'div',
66
1820
  { className: styles.loginBox },
67
- React.createElement(
1821
+ React__default.createElement(
68
1822
  'div',
69
1823
  { className: styles.loginBox_title },
70
- React.createElement(
1824
+ React__default.createElement(
71
1825
  'b',
72
1826
  null,
73
1827
  'Please log in to view this content.'
74
1828
  )
75
1829
  ),
76
- React.createElement(
1830
+ React__default.createElement(
77
1831
  Form,
78
1832
  { onSubmit: function onSubmit(e) {
79
1833
  return e.preventDefault();
80
1834
  } },
81
- React.createElement(
1835
+ React__default.createElement(
82
1836
  Form.Group,
83
1837
  { controlId: 'email' },
84
- React.createElement(Form.Control, { type: 'email', onChange: function onChange(e) {
1838
+ React__default.createElement(Form.Control, { type: 'email', onChange: function onChange(e) {
85
1839
  return setEmail(e.target.value);
86
1840
  }, placeholder: 'Email' })
87
1841
  ),
88
- React.createElement(
1842
+ React__default.createElement(
89
1843
  Form.Group,
90
1844
  { controlId: 'password' },
91
- React.createElement(Form.Control, { type: 'password', onChange: function onChange(e) {
1845
+ React__default.createElement(Form.Control, { type: 'password', onChange: function onChange(e) {
92
1846
  return setPassword(e.target.value);
93
1847
  }, placeholder: 'Password' })
94
1848
  ),
95
- React.createElement(
1849
+ React__default.createElement(
96
1850
  'button',
97
1851
  { className: 'btn btn-primary btn-block', onClick: function onClick() {
98
- return nextAuth.signIn('credentials', { email: email, password: password, callbackUrl: callbackUrl });
1852
+ return client.signIn('credentials', { email: email, password: password, callbackUrl: callbackUrl });
99
1853
  } },
100
1854
  'Sign in'
101
1855
  )
102
1856
  ),
103
- React.createElement(
1857
+ React__default.createElement(
104
1858
  'button',
105
1859
  { className: 'btn btn-primary btn-block mt-3' },
106
- React.createElement(
1860
+ React__default.createElement(
107
1861
  'a',
108
1862
  { style: { textDecoration: 'underline' }, onClick: function onClick() {
109
1863
  return setShowForm(!showForm);
@@ -111,13 +1865,13 @@ var AuthWrapper = function AuthWrapper(_ref) {
111
1865
  'Register Now'
112
1866
  )
113
1867
  ),
114
- React.createElement(
1868
+ React__default.createElement(
115
1869
  'p',
116
1870
  { className: 'mt-1', style: { fontSize: '.8em', textAlign: 'center' } },
117
- React.createElement(
1871
+ React__default.createElement(
118
1872
  'em',
119
1873
  null,
120
- React.createElement(
1874
+ React__default.createElement(
121
1875
  'a',
122
1876
  { href: '/forgotpassword', style: { color: 'blue', textDecoration: 'underline' } },
123
1877
  'Forgot your password? '
@@ -125,7 +1879,7 @@ var AuthWrapper = function AuthWrapper(_ref) {
125
1879
  )
126
1880
  )
127
1881
  ),
128
- showForm && React.createElement('iframe', { className: styles.iframe, src: formUrl })
1882
+ showForm && React__default.createElement('iframe', { className: styles.iframe, src: formUrl })
129
1883
  )
130
1884
  );
131
1885
  } else {