@mjhls/mjh-framework 1.0.976 → 1.0.977-docgroup-test-v2

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