@clickview/streamable-learning 0.36.0 → 0.36.1-dev.0

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 (437) hide show
  1. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  2. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  3. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  4. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  5. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  6. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  7. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  8. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  9. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  10. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  11. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  12. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  13. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  14. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  15. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  16. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  17. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  18. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  19. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  20. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  21. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  22. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  23. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  24. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  25. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  26. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  27. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  28. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  29. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  30. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  31. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  32. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  33. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  34. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  35. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  36. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  37. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  38. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  39. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  40. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  41. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  42. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  43. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  44. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  45. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  46. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  47. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  48. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  49. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  50. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  51. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  52. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  53. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  54. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  55. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  56. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  57. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  58. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  59. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  60. package/dist/bundles.json +2 -2
  61. package/dist/css/B-attovs.chunk.css +9 -0
  62. package/dist/css/B1NucFMn.chunk.css +1 -0
  63. package/dist/css/BPdg7JW4.chunk.css +1 -0
  64. package/dist/css/BPrUSCaY.chunk.css +1 -0
  65. package/dist/css/BR0fUt9D.chunk.css +1 -0
  66. package/dist/css/BhYm6SRm.chunk.css +1 -0
  67. package/dist/css/BiRz4h1c.chunk.css +1 -0
  68. package/dist/css/Bq1ChJn4.chunk.css +1 -0
  69. package/dist/css/Bt85j9js.chunk.css +1 -0
  70. package/dist/css/BuYrqi9E.chunk.css +1 -0
  71. package/dist/css/BugV1Bpa.chunk.css +1 -0
  72. package/dist/css/BuuVPl7n.chunk.css +1 -0
  73. package/dist/css/C1NkrNqQ.chunk.css +1 -0
  74. package/dist/css/C1qv5jz5.chunk.css +1 -0
  75. package/dist/css/C7XoyEPr.chunk.css +1 -0
  76. package/dist/css/C7_MDu56.chunk.css +1 -0
  77. package/dist/css/CC5F5C8O.chunk.css +1 -0
  78. package/dist/css/CChSC6Ta.chunk.css +1 -0
  79. package/dist/css/CCsCPLDG.chunk.css +1 -0
  80. package/dist/css/CD1qrI1T.chunk.css +1 -0
  81. package/dist/css/CKqvCBj4.chunk.css +1 -0
  82. package/dist/css/CLZ0Ycds.chunk.css +1 -0
  83. package/dist/css/CO7M4rZW.chunk.css +1 -0
  84. package/dist/css/CY0yvCW4.chunk.css +1 -0
  85. package/dist/css/CYGsw8FT.chunk.css +1 -0
  86. package/dist/css/Cbi3KYBa.chunk.css +1 -0
  87. package/dist/css/CgWQu_Ss.chunk.css +1 -0
  88. package/dist/css/CliS8Q8r.chunk.css +1 -0
  89. package/dist/css/D-kQKsZN.chunk.css +1 -0
  90. package/dist/css/D2NwUVrK.chunk.css +1 -0
  91. package/dist/css/D4g1IoUU.chunk.css +1 -0
  92. package/dist/css/DBgpcO3T.chunk.css +1 -0
  93. package/dist/css/DDnpOnVB.chunk.css +1 -0
  94. package/dist/css/DZJSONGP.chunk.css +1 -0
  95. package/dist/css/DeAfaPiD.chunk.css +1 -0
  96. package/dist/css/Dj731zLm.chunk.css +1 -0
  97. package/dist/css/DjPPxa0A.chunk.css +1 -0
  98. package/dist/css/DlOtoSz0.chunk.css +1 -0
  99. package/dist/css/DwduQat7.chunk.css +1 -0
  100. package/dist/css/Dzuu2GTx.chunk.css +1 -0
  101. package/dist/css/JAvsJreH.chunk.css +1 -0
  102. package/dist/css/NKlFYVOc.chunk.css +1 -0
  103. package/dist/css/VZd8qGtK.chunk.css +1 -0
  104. package/dist/css/Y7U--2na.chunk.css +1 -0
  105. package/dist/css/ir3IcK_l.chunk.css +1 -0
  106. package/dist/css/jbMisi9r.chunk.css +1 -0
  107. package/dist/css/kS5aDtIJ.chunk.css +1 -0
  108. package/dist/css/mqCL1o7m.chunk.css +1 -0
  109. package/dist/css/qZzkUeZk.chunk.css +1 -0
  110. package/dist/css/sC_H3yXE.chunk.css +1 -0
  111. package/dist/css/wR_6C_NV.chunk.css +1 -0
  112. package/dist/en.json +1 -0
  113. package/dist/scripts/38Gc6FvJ.chunk.js +2 -0
  114. package/dist/scripts/38Gc6FvJ.chunk.js.map +1 -0
  115. package/dist/scripts/9vP26Hjl.chunk.js +2 -0
  116. package/dist/scripts/9vP26Hjl.chunk.js.map +1 -0
  117. package/dist/scripts/B-YTLo4E.chunk.js +2 -0
  118. package/dist/scripts/B-YTLo4E.chunk.js.map +1 -0
  119. package/dist/scripts/B2rqAGbQ.chunk.js +2 -0
  120. package/dist/scripts/B2rqAGbQ.chunk.js.map +1 -0
  121. package/dist/scripts/B46nd_gM.chunk.js +2 -0
  122. package/dist/scripts/B46nd_gM.chunk.js.map +1 -0
  123. package/dist/scripts/B61dxODs.chunk.js +2 -0
  124. package/dist/scripts/B61dxODs.chunk.js.map +1 -0
  125. package/dist/scripts/B928Y1m-.chunk.js +2 -0
  126. package/dist/scripts/B928Y1m-.chunk.js.map +1 -0
  127. package/dist/scripts/BBnDr_iy.chunk.js +2 -0
  128. package/dist/scripts/BBnDr_iy.chunk.js.map +1 -0
  129. package/dist/scripts/BDwX0xO5.chunk.js +7 -0
  130. package/dist/scripts/BDwX0xO5.chunk.js.map +1 -0
  131. package/dist/scripts/BFcg4phV.chunk.js +15 -0
  132. package/dist/scripts/BFcg4phV.chunk.js.map +1 -0
  133. package/dist/scripts/BOH3SvVi.chunk.js +2 -0
  134. package/dist/scripts/BOH3SvVi.chunk.js.map +1 -0
  135. package/dist/scripts/BPzvNgkA.chunk.js +10 -0
  136. package/dist/scripts/BPzvNgkA.chunk.js.map +1 -0
  137. package/dist/scripts/BWkYFXR0.chunk.js +2 -0
  138. package/dist/scripts/BWkYFXR0.chunk.js.map +1 -0
  139. package/dist/scripts/BYrL8Bl0.chunk.js +2 -0
  140. package/dist/scripts/BYrL8Bl0.chunk.js.map +1 -0
  141. package/dist/scripts/BaMuTXqa.chunk.js +2 -0
  142. package/dist/scripts/BaMuTXqa.chunk.js.map +1 -0
  143. package/dist/scripts/Bbj3u3zY.chunk.js +2 -0
  144. package/dist/scripts/Bbj3u3zY.chunk.js.map +1 -0
  145. package/dist/scripts/Bd-gJLT1.chunk.js +2 -0
  146. package/dist/scripts/Bd-gJLT1.chunk.js.map +1 -0
  147. package/dist/scripts/BdHxGaRy.chunk.js +2 -0
  148. package/dist/scripts/BdHxGaRy.chunk.js.map +1 -0
  149. package/dist/scripts/BdPgUz8g.chunk.js +2 -0
  150. package/dist/scripts/BdPgUz8g.chunk.js.map +1 -0
  151. package/dist/scripts/Be6BKGLG.chunk.js +356 -0
  152. package/dist/scripts/Be6BKGLG.chunk.js.map +1 -0
  153. package/dist/scripts/BfK6q73t.chunk.js +8 -0
  154. package/dist/scripts/BfK6q73t.chunk.js.map +1 -0
  155. package/dist/scripts/Bg1w511R.chunk.js +2 -0
  156. package/dist/scripts/Bg1w511R.chunk.js.map +1 -0
  157. package/dist/scripts/Bg6K2hsA.chunk.js +3 -0
  158. package/dist/scripts/Bg6K2hsA.chunk.js.map +1 -0
  159. package/dist/scripts/BiLpxxSD.chunk.js +2 -0
  160. package/dist/scripts/BiLpxxSD.chunk.js.map +1 -0
  161. package/dist/scripts/BmN5JsPi.chunk.js +5 -0
  162. package/dist/scripts/BmN5JsPi.chunk.js.map +1 -0
  163. package/dist/scripts/BnSh6tRF.chunk.js +2 -0
  164. package/dist/scripts/BnSh6tRF.chunk.js.map +1 -0
  165. package/dist/scripts/Bnt14Hw8.chunk.js +2 -0
  166. package/dist/scripts/Bnt14Hw8.chunk.js.map +1 -0
  167. package/dist/scripts/BpRVTpnA.chunk.js +8 -0
  168. package/dist/scripts/BpRVTpnA.chunk.js.map +1 -0
  169. package/dist/scripts/BsoISj2P.chunk.js +2 -0
  170. package/dist/scripts/BsoISj2P.chunk.js.map +1 -0
  171. package/dist/scripts/BuNZOfIz.chunk.js +2 -0
  172. package/dist/scripts/BuNZOfIz.chunk.js.map +1 -0
  173. package/dist/scripts/BvQxdtl3.chunk.js +2 -0
  174. package/dist/scripts/BvQxdtl3.chunk.js.map +1 -0
  175. package/dist/scripts/C2zcSUEr.chunk.js +2 -0
  176. package/dist/scripts/C2zcSUEr.chunk.js.map +1 -0
  177. package/dist/scripts/C35NlkUr.chunk.js +2 -0
  178. package/dist/scripts/C35NlkUr.chunk.js.map +1 -0
  179. package/dist/scripts/C5Fq7Tf-.chunk.js +2 -0
  180. package/dist/scripts/C5Fq7Tf-.chunk.js.map +1 -0
  181. package/dist/scripts/CD-ZU1Sa.chunk.js +2 -0
  182. package/dist/scripts/CD-ZU1Sa.chunk.js.map +1 -0
  183. package/dist/scripts/CEmtkty-.chunk.js +2 -0
  184. package/dist/scripts/CEmtkty-.chunk.js.map +1 -0
  185. package/dist/scripts/CO1Up6zQ.chunk.js +2 -0
  186. package/dist/scripts/CO1Up6zQ.chunk.js.map +1 -0
  187. package/dist/scripts/CPNjAJN5.chunk.js +2 -0
  188. package/dist/scripts/CPNjAJN5.chunk.js.map +1 -0
  189. package/dist/scripts/CPXlV0fg.chunk.js +2 -0
  190. package/dist/scripts/CPXlV0fg.chunk.js.map +1 -0
  191. package/dist/scripts/CQJIB_e-.chunk.js +2 -0
  192. package/dist/scripts/CQJIB_e-.chunk.js.map +1 -0
  193. package/dist/scripts/CRusuLqR.chunk.js +2 -0
  194. package/dist/scripts/CRusuLqR.chunk.js.map +1 -0
  195. package/dist/scripts/CTWahyAB.chunk.js +2 -0
  196. package/dist/scripts/CTWahyAB.chunk.js.map +1 -0
  197. package/dist/scripts/CU5Dd7rS.chunk.js +2 -0
  198. package/dist/scripts/CU5Dd7rS.chunk.js.map +1 -0
  199. package/dist/scripts/CW7x8M-z.chunk.js +2 -0
  200. package/dist/scripts/CW7x8M-z.chunk.js.map +1 -0
  201. package/dist/scripts/CX-Bc0hf.chunk.js +2 -0
  202. package/dist/scripts/CX-Bc0hf.chunk.js.map +1 -0
  203. package/dist/scripts/CY1om5lx.chunk.js +2 -0
  204. package/dist/scripts/CY1om5lx.chunk.js.map +1 -0
  205. package/dist/scripts/C_79jeAr.chunk.js +2 -0
  206. package/dist/scripts/C_79jeAr.chunk.js.map +1 -0
  207. package/dist/scripts/C_pobyVf.chunk.js +3 -0
  208. package/dist/scripts/C_pobyVf.chunk.js.map +1 -0
  209. package/dist/scripts/Cgf5lDwO.chunk.js +2 -0
  210. package/dist/scripts/Cgf5lDwO.chunk.js.map +1 -0
  211. package/dist/scripts/Ci9wGu6N.chunk.js +2 -0
  212. package/dist/scripts/Ci9wGu6N.chunk.js.map +1 -0
  213. package/dist/scripts/Cmu1J2M7.chunk.js +262 -0
  214. package/dist/scripts/Cmu1J2M7.chunk.js.map +1 -0
  215. package/dist/scripts/Cp-yDIHE.chunk.js +2 -0
  216. package/dist/scripts/Cp-yDIHE.chunk.js.map +1 -0
  217. package/dist/scripts/CqWRz_Vd.chunk.js +2 -0
  218. package/dist/scripts/CqWRz_Vd.chunk.js.map +1 -0
  219. package/dist/scripts/Cs-XAmfP.chunk.js +2 -0
  220. package/dist/scripts/Cs-XAmfP.chunk.js.map +1 -0
  221. package/dist/scripts/CsxsnXoH.chunk.js +2 -0
  222. package/dist/scripts/CsxsnXoH.chunk.js.map +1 -0
  223. package/dist/scripts/CvuMDF0y.chunk.js +2 -0
  224. package/dist/scripts/CvuMDF0y.chunk.js.map +1 -0
  225. package/dist/scripts/CwRpHtAf.chunk.js +2 -0
  226. package/dist/scripts/CwRpHtAf.chunk.js.map +1 -0
  227. package/dist/scripts/D4OCofAF.chunk.js +2 -0
  228. package/dist/scripts/D4OCofAF.chunk.js.map +1 -0
  229. package/dist/scripts/D4x4hAdA.chunk.js +2 -0
  230. package/dist/scripts/D4x4hAdA.chunk.js.map +1 -0
  231. package/dist/scripts/DBaknZA7.chunk.js +2 -0
  232. package/dist/scripts/DBaknZA7.chunk.js.map +1 -0
  233. package/dist/scripts/DBdD19pY.chunk.js +53 -0
  234. package/dist/scripts/DBdD19pY.chunk.js.map +1 -0
  235. package/dist/scripts/DELBynwO.chunk.js +2 -0
  236. package/dist/scripts/DELBynwO.chunk.js.map +1 -0
  237. package/dist/scripts/DEixuHfi.chunk.js +2 -0
  238. package/dist/scripts/DEixuHfi.chunk.js.map +1 -0
  239. package/dist/scripts/DFhkO_lZ.chunk.js +2 -0
  240. package/dist/scripts/DFhkO_lZ.chunk.js.map +1 -0
  241. package/dist/scripts/DIIFVn0p.chunk.js +2 -0
  242. package/dist/scripts/DIIFVn0p.chunk.js.map +1 -0
  243. package/dist/scripts/DIhfGjAK.chunk.js +2 -0
  244. package/dist/scripts/DIhfGjAK.chunk.js.map +1 -0
  245. package/dist/scripts/DK1p1ffZ.chunk.js +2 -0
  246. package/dist/scripts/DK1p1ffZ.chunk.js.map +1 -0
  247. package/dist/scripts/DK6BRHnl.chunk.js +2 -0
  248. package/dist/scripts/DK6BRHnl.chunk.js.map +1 -0
  249. package/dist/scripts/DNbkIXc2.chunk.js +2 -0
  250. package/dist/scripts/DNbkIXc2.chunk.js.map +1 -0
  251. package/dist/scripts/DRmZj7Fw.chunk.js +2 -0
  252. package/dist/scripts/DRmZj7Fw.chunk.js.map +1 -0
  253. package/dist/scripts/DTcDjqUi.chunk.js +8 -0
  254. package/dist/scripts/DTcDjqUi.chunk.js.map +1 -0
  255. package/dist/scripts/DVmtgkhY.chunk.js +2 -0
  256. package/dist/scripts/DVmtgkhY.chunk.js.map +1 -0
  257. package/dist/scripts/DWkg1qc2.chunk.js +2 -0
  258. package/dist/scripts/DWkg1qc2.chunk.js.map +1 -0
  259. package/dist/scripts/D_nzH8Cw.chunk.js +2 -0
  260. package/dist/scripts/D_nzH8Cw.chunk.js.map +1 -0
  261. package/dist/scripts/DaJTPRJr.chunk.js +2 -0
  262. package/dist/scripts/DaJTPRJr.chunk.js.map +1 -0
  263. package/dist/scripts/Dal4C0kV.chunk.js +2 -0
  264. package/dist/scripts/Dal4C0kV.chunk.js.map +1 -0
  265. package/dist/scripts/DecSY6Xq.chunk.js +2 -0
  266. package/dist/scripts/DecSY6Xq.chunk.js.map +1 -0
  267. package/dist/scripts/DgL-ti6b.chunk.js +2 -0
  268. package/dist/scripts/DgL-ti6b.chunk.js.map +1 -0
  269. package/dist/scripts/Dhn0D6IV.chunk.js +2 -0
  270. package/dist/scripts/Dhn0D6IV.chunk.js.map +1 -0
  271. package/dist/scripts/DuidBpWd.chunk.js +2 -0
  272. package/dist/scripts/DuidBpWd.chunk.js.map +1 -0
  273. package/dist/scripts/DvDdiDQN.chunk.js +7 -0
  274. package/dist/scripts/DvDdiDQN.chunk.js.map +1 -0
  275. package/dist/scripts/Dx9ncX-C.chunk.js +2 -0
  276. package/dist/scripts/Dx9ncX-C.chunk.js.map +1 -0
  277. package/dist/scripts/Dxt3JwJz.chunk.js +2 -0
  278. package/dist/scripts/Dxt3JwJz.chunk.js.map +1 -0
  279. package/dist/scripts/Dy57waqb.chunk.js +2 -0
  280. package/dist/scripts/Dy57waqb.chunk.js.map +1 -0
  281. package/dist/scripts/DzLh2mnb.chunk.js +2 -0
  282. package/dist/scripts/DzLh2mnb.chunk.js.map +1 -0
  283. package/dist/scripts/F-K8Bwdk.chunk.js +2 -0
  284. package/dist/scripts/F-K8Bwdk.chunk.js.map +1 -0
  285. package/dist/scripts/G4u5okSS.chunk.js +2 -0
  286. package/dist/scripts/G4u5okSS.chunk.js.map +1 -0
  287. package/dist/scripts/KAizYpNf.chunk.js +2 -0
  288. package/dist/scripts/KAizYpNf.chunk.js.map +1 -0
  289. package/dist/scripts/LIBRZSqN.chunk.js +8 -0
  290. package/dist/scripts/LIBRZSqN.chunk.js.map +1 -0
  291. package/dist/scripts/LgZBXsgq.chunk.js +2 -0
  292. package/dist/scripts/LgZBXsgq.chunk.js.map +1 -0
  293. package/dist/scripts/QlJI4d4R.chunk.js +2 -0
  294. package/dist/scripts/QlJI4d4R.chunk.js.map +1 -0
  295. package/dist/scripts/ShERxFU5.chunk.js +2 -0
  296. package/dist/scripts/ShERxFU5.chunk.js.map +1 -0
  297. package/dist/scripts/Ynb9IAgu.chunk.js +2 -0
  298. package/dist/scripts/Ynb9IAgu.chunk.js.map +1 -0
  299. package/dist/scripts/_8CvUiOV.chunk.js +2 -0
  300. package/dist/scripts/_8CvUiOV.chunk.js.map +1 -0
  301. package/dist/scripts/aXDrx9_z.chunk.js +6 -0
  302. package/dist/scripts/aXDrx9_z.chunk.js.map +1 -0
  303. package/dist/scripts/app-DiXzpOyg.js +220 -0
  304. package/dist/scripts/app-DiXzpOyg.js.map +1 -0
  305. package/dist/scripts/bww2eGbI.chunk.js +2 -0
  306. package/dist/scripts/bww2eGbI.chunk.js.map +1 -0
  307. package/dist/scripts/cvX-F_mx.chunk.js +2 -0
  308. package/dist/scripts/cvX-F_mx.chunk.js.map +1 -0
  309. package/dist/scripts/gtdeja1H.chunk.js +2 -0
  310. package/dist/scripts/gtdeja1H.chunk.js.map +1 -0
  311. package/dist/scripts/m9wd_474.chunk.js +2 -0
  312. package/dist/scripts/m9wd_474.chunk.js.map +1 -0
  313. package/dist/scripts/nay4aGaa.chunk.js +2 -0
  314. package/dist/scripts/nay4aGaa.chunk.js.map +1 -0
  315. package/dist/scripts/pkzD5BEm.chunk.js +2 -0
  316. package/dist/scripts/pkzD5BEm.chunk.js.map +1 -0
  317. package/dist/scripts/qO6ZefON.chunk.js +2 -0
  318. package/dist/scripts/qO6ZefON.chunk.js.map +1 -0
  319. package/dist/scripts/s4utqqzH.chunk.js +2 -0
  320. package/dist/scripts/s4utqqzH.chunk.js.map +1 -0
  321. package/dist/scripts/sxyRyCzh.chunk.js +2 -0
  322. package/dist/scripts/sxyRyCzh.chunk.js.map +1 -0
  323. package/dist/scripts/tzNty_oG.chunk.js +2 -0
  324. package/dist/scripts/tzNty_oG.chunk.js.map +1 -0
  325. package/dist/scripts/vjyJbQe4.chunk.js +2 -0
  326. package/dist/scripts/vjyJbQe4.chunk.js.map +1 -0
  327. package/dist/scripts/vuoBilPQ.chunk.js +2 -0
  328. package/dist/scripts/vuoBilPQ.chunk.js.map +1 -0
  329. package/dist/scripts/vwgUbn2Z.chunk.js +2 -0
  330. package/dist/scripts/vwgUbn2Z.chunk.js.map +1 -0
  331. package/dist/scripts/wOGv44_K.chunk.js +2 -0
  332. package/dist/scripts/wOGv44_K.chunk.js.map +1 -0
  333. package/dist/scripts/xbvkqJGe.chunk.js +2 -0
  334. package/dist/scripts/xbvkqJGe.chunk.js.map +1 -0
  335. package/dist/scripts/xywWSa0t.chunk.js +2 -0
  336. package/dist/scripts/xywWSa0t.chunk.js.map +1 -0
  337. package/dist/scripts/zUz4ZfV2.chunk.js +2 -0
  338. package/dist/scripts/zUz4ZfV2.chunk.js.map +1 -0
  339. package/package.json +5 -3
  340. package/typings/utils/imports.d.ts +2 -1
  341. package/vite.config.ts +6 -0
  342. package/dist/css/103-streamable-learning-5060b6cda5.chunk.css +0 -7
  343. package/dist/css/1269-streamable-learning-a12c4ebc99.chunk.css +0 -2
  344. package/dist/css/1457-streamable-learning-c8c8b3b9b1.chunk.css +0 -50
  345. package/dist/css/2334-streamable-learning-de03ae073a.chunk.css +0 -2
  346. package/dist/css/3322-streamable-learning-510e1aa3f3.chunk.css +0 -34
  347. package/dist/css/3838-streamable-learning-da10685fe8.chunk.css +0 -22
  348. package/dist/css/4254-streamable-learning-e493f4a027.chunk.css +0 -2
  349. package/dist/css/4607-streamable-learning-2605302fc2.chunk.css +0 -90
  350. package/dist/css/4772-streamable-learning-f83b838d71.chunk.css +0 -9
  351. package/dist/css/5565-streamable-learning-0caae3809b.chunk.css +0 -13
  352. package/dist/css/6017-streamable-learning-098a205d01.chunk.css +0 -6
  353. package/dist/css/6356-streamable-learning-8c5b220bf6.chunk.css +0 -1
  354. package/dist/css/6987-streamable-learning-8f682301c6.chunk.css +0 -1
  355. package/dist/css/7317-streamable-learning-b5d226bbb6.chunk.css +0 -5
  356. package/dist/css/8058-streamable-learning-539cf7be18.chunk.css +0 -12
  357. package/dist/css/8294-streamable-learning-c797263ac2.chunk.css +0 -1
  358. package/dist/css/8496-streamable-learning-ce19f6ca52.chunk.css +0 -13
  359. package/dist/css/8601-streamable-learning-f525210660.chunk.css +0 -6
  360. package/dist/css/9514-streamable-learning-251703c6d1.chunk.css +0 -2
  361. package/dist/css/9766-streamable-learning-31650ffe5d.chunk.css +0 -8
  362. package/dist/css/9842-streamable-learning-24729103f7.chunk.css +0 -4
  363. package/dist/css/9899-streamable-learning-0338f8d2dc.chunk.css +0 -4
  364. package/dist/css/9951-streamable-learning-e9a916b2ef.chunk.css +0 -99
  365. package/dist/css/streamable-learning-dd0c1095d5.css +0 -23
  366. package/dist/languages/en.json +0 -1
  367. package/dist/scripts/103-aceced8961-streamable-learning.chunk.js +0 -1
  368. package/dist/scripts/1097-680a971192-streamable-learning.chunk.js +0 -2
  369. package/dist/scripts/1097-680a971192-streamable-learning.chunk.js.LICENSE.txt +0 -105
  370. package/dist/scripts/1269-2d0b903343-streamable-learning.chunk.js +0 -2
  371. package/dist/scripts/1269-2d0b903343-streamable-learning.chunk.js.LICENSE.txt +0 -1
  372. package/dist/scripts/1457-899f40d09a-streamable-learning.chunk.js +0 -1
  373. package/dist/scripts/1482-b1dd75897c-streamable-learning.chunk.js +0 -1
  374. package/dist/scripts/1934-fc017df0da-streamable-learning.chunk.js +0 -2
  375. package/dist/scripts/1934-fc017df0da-streamable-learning.chunk.js.LICENSE.txt +0 -9
  376. package/dist/scripts/2042-d51622d63e-streamable-learning.chunk.js +0 -1
  377. package/dist/scripts/2087-eba9033b1c-streamable-learning.chunk.js +0 -1
  378. package/dist/scripts/2245-8cd3224e1b-streamable-learning.chunk.js +0 -1
  379. package/dist/scripts/2334-00b028191d-streamable-learning.chunk.js +0 -1
  380. package/dist/scripts/2676-c842ec7e8d-streamable-learning.chunk.js +0 -2
  381. package/dist/scripts/2676-c842ec7e8d-streamable-learning.chunk.js.LICENSE.txt +0 -1
  382. package/dist/scripts/2877-5ffc9711f6-streamable-learning.chunk.js +0 -1
  383. package/dist/scripts/2911-2ec3a6600a-streamable-learning.chunk.js +0 -1
  384. package/dist/scripts/3057-731a8ca978-streamable-learning.chunk.js +0 -1
  385. package/dist/scripts/3093-efbcc927ea-streamable-learning.chunk.js +0 -1
  386. package/dist/scripts/3186-d1a6ccffde-streamable-learning.chunk.js +0 -1
  387. package/dist/scripts/3322-33c015dec9-streamable-learning.chunk.js +0 -1
  388. package/dist/scripts/3472-50ca92bde3-streamable-learning.chunk.js +0 -1
  389. package/dist/scripts/3838-4a38f33dc2-streamable-learning.chunk.js +0 -1
  390. package/dist/scripts/3941-2ef15ca9ac-streamable-learning.chunk.js +0 -1
  391. package/dist/scripts/4254-1e95cdfdf2-streamable-learning.chunk.js +0 -1
  392. package/dist/scripts/4607-2ef017d2ae-streamable-learning.chunk.js +0 -2
  393. package/dist/scripts/4607-2ef017d2ae-streamable-learning.chunk.js.LICENSE.txt +0 -1
  394. package/dist/scripts/4772-3cb280f959-streamable-learning.chunk.js +0 -2
  395. package/dist/scripts/4772-3cb280f959-streamable-learning.chunk.js.LICENSE.txt +0 -1
  396. package/dist/scripts/4951-df701c6a8d-streamable-learning.chunk.js +0 -1
  397. package/dist/scripts/5088-2e09e1ba6e-streamable-learning.chunk.js +0 -1
  398. package/dist/scripts/5173-a800a17d0d-streamable-learning.chunk.js +0 -1
  399. package/dist/scripts/5446-2cbe9f9d1b-streamable-learning.chunk.js +0 -1
  400. package/dist/scripts/5543-205aaa36a6-streamable-learning.chunk.js +0 -1
  401. package/dist/scripts/5565-224d86dc1b-streamable-learning.chunk.js +0 -1
  402. package/dist/scripts/578-2cc99f46f7-streamable-learning.chunk.js +0 -1
  403. package/dist/scripts/6017-5bd6f9bf7a-streamable-learning.chunk.js +0 -2
  404. package/dist/scripts/6017-5bd6f9bf7a-streamable-learning.chunk.js.LICENSE.txt +0 -1
  405. package/dist/scripts/6356-eefa3ff22e-streamable-learning.chunk.js +0 -1
  406. package/dist/scripts/6979-ef9a3931a2-streamable-learning.chunk.js +0 -2
  407. package/dist/scripts/6979-ef9a3931a2-streamable-learning.chunk.js.LICENSE.txt +0 -1
  408. package/dist/scripts/6987-e58de31cfe-streamable-learning.chunk.js +0 -1
  409. package/dist/scripts/7317-6b7186c85d-streamable-learning.chunk.js +0 -1
  410. package/dist/scripts/7347-772848ba8a-streamable-learning.chunk.js +0 -1
  411. package/dist/scripts/7570-cd4f70ff52-streamable-learning.chunk.js +0 -2
  412. package/dist/scripts/7570-cd4f70ff52-streamable-learning.chunk.js.LICENSE.txt +0 -1
  413. package/dist/scripts/7904-96574373ca-streamable-learning.chunk.js +0 -1
  414. package/dist/scripts/7925-1e1cfa2a04-streamable-learning.chunk.js +0 -1
  415. package/dist/scripts/8058-51c4b442d6-streamable-learning.chunk.js +0 -1
  416. package/dist/scripts/8126-9d09959b28-streamable-learning.chunk.js +0 -2
  417. package/dist/scripts/8126-9d09959b28-streamable-learning.chunk.js.LICENSE.txt +0 -60
  418. package/dist/scripts/8397-39ce77876d-streamable-learning.chunk.js +0 -1
  419. package/dist/scripts/8496-1b2519f9fd-streamable-learning.chunk.js +0 -2
  420. package/dist/scripts/8496-1b2519f9fd-streamable-learning.chunk.js.LICENSE.txt +0 -1
  421. package/dist/scripts/8599-b74e1ab6e3-streamable-learning.chunk.js +0 -1
  422. package/dist/scripts/8601-37783cf18b-streamable-learning.chunk.js +0 -1
  423. package/dist/scripts/8819-2a50dd6a9b-streamable-learning.chunk.js +0 -1
  424. package/dist/scripts/8937-5103db88d8-streamable-learning.chunk.js +0 -1
  425. package/dist/scripts/9390-bbaf07ad0f-streamable-learning.chunk.js +0 -1
  426. package/dist/scripts/9514-a31ca9af06-streamable-learning.chunk.js +0 -1
  427. package/dist/scripts/9766-855b276f54-streamable-learning.chunk.js +0 -2
  428. package/dist/scripts/9766-855b276f54-streamable-learning.chunk.js.LICENSE.txt +0 -1
  429. package/dist/scripts/9842-ca3b069e5d-streamable-learning.chunk.js +0 -1
  430. package/dist/scripts/9899-f33e8f1d43-streamable-learning.chunk.js +0 -2
  431. package/dist/scripts/9899-f33e8f1d43-streamable-learning.chunk.js.LICENSE.txt +0 -1
  432. package/dist/scripts/9951-122cbba64f-streamable-learning.chunk.js +0 -2
  433. package/dist/scripts/9951-122cbba64f-streamable-learning.chunk.js.LICENSE.txt +0 -1
  434. package/dist/scripts/bundle-d51fd463b2.min.js +0 -2
  435. package/dist/scripts/bundle-d51fd463b2.min.js.LICENSE.txt +0 -108
  436. package/dist/scripts/pdf.worker.entry-a2092a6670.min.worker.js +0 -2
  437. package/dist/scripts/pdf.worker.entry-a2092a6670.min.worker.js.LICENSE.txt +0 -21
@@ -0,0 +1,2 @@
1
+ import{n as l,aX as r,j as s,G as x,c as g,aY as m,T as n,d as o,W as i,X as c,l as u,bP as d}from"./app-DiXzpOyg.js";const j="_logo_15b07_1",h={logo:j},e="streamableVideos.signInPopup",b=g.encloseNamespace(e);function N(t){const a=l.getHref(r.getCurrentRoute().appLink),p=a!=="/"?{redirectUrl:a}:{};return s.jsxs(x,{title:b("signInHeading"),hideTitle:!0,closePopup:t.closePopup,bodyClassName:"p-5",children:[s.jsx("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:t.closePopup}),s.jsx("div",{className:`${h.logo} position-absolute top-0 start-0 m-3`,children:s.jsx(m,{})}),s.jsx("h1",{className:"h2 text-center",children:s.jsx(n,{namespace:e,phrase:"signInHeading"})}),s.jsx("p",{className:"text-center mb-3",children:s.jsx(n,{namespace:e,phrase:"signInDescription"})}),s.jsxs(o,{className:"mt-3 btn btn-dark w-100",appLink:{application:c.DEFAULT,action:i.Default.CHALLENGE,params:p},children:[s.jsx(u,{svg:d}),s.jsx("span",{className:"ms-1",children:s.jsx(n,{namespace:e,phrase:"signInButton"})})]}),s.jsx(o,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:c.DEFAULT,action:i.Default.CONTACT_US_POPUP},children:s.jsx(n,{namespace:e,phrase:"contactUsLink"})})]})}export{N as SignInPopupView};
2
+ //# sourceMappingURL=Cp-yDIHE.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cp-yDIHE.chunk.js","sources":["../../src/apps/videos/views/sign-in-popup/SignInPopupView.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Core } from 'libs/common/backbone/index';\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\n\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\nimport { Popup, PopupProps } from 'libs/shared/components/popup/Popup';\nimport { SvgContainer } from 'libs/shared/components/svg-container/SvgContainer';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { NewWindowSvg } from 'libs/shared/images/svg/actions/NewWindowSvg';\nimport { ContextService } from 'libs/shared/services/ContextService';\n\nimport { StreamableIconLogo } from 'shared/components/streamable-logo/StreamableLogo';\nimport { Actions } from 'shared/constants/StreamableActions';\nimport { AppChannels } from 'shared/constants/StreamableRadioChannels';\n\nimport styles from './sign-in-popup.module.scss';\n\nconst namespace = 'streamableVideos.signInPopup';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface SignInPopupViewProps extends PopupProps { }\n\nexport function SignInPopupView(props: SignInPopupViewProps) {\n const redirectUrl = Core.AppLinkHelper.getHref(ContextService.getCurrentRoute().appLink);\n const params = redirectUrl !== '/' ? { redirectUrl } : {};\n\n return (\n <Popup\n title={getPhrase('signInHeading')}\n hideTitle\n closePopup={props.closePopup}\n bodyClassName='p-5'\n >\n <button className='btn-close position-absolute top-0 end-0 p-3' onClick={props.closePopup} />\n <div className={`${styles.logo} position-absolute top-0 start-0 m-3`}>\n <StreamableIconLogo />\n </div>\n <h1 className='h2 text-center'><Text namespace={namespace} phrase='signInHeading' /></h1>\n <p className='text-center mb-3'><Text namespace={namespace} phrase='signInDescription' /></p>\n <AppLink\n className='mt-3 btn btn-dark w-100'\n appLink={{\n application: AppChannels.DEFAULT,\n action: Actions.Default.CHALLENGE,\n params\n }}\n >\n <SvgContainer svg={NewWindowSvg} />\n <span className='ms-1'>\n <Text namespace={namespace} phrase='signInButton' />\n </span>\n </AppLink>\n <AppLink\n className='d-flex justify-content-center align-items-center mt-3 text-info'\n appLink={{\n application: AppChannels.DEFAULT,\n action: Actions.Default.CONTACT_US_POPUP\n }}\n >\n <Text namespace={namespace} phrase='contactUsLink' />\n </AppLink>\n </Popup>\n );\n}"],"names":["namespace","getPhrase","LanguageService","SignInPopupView","props","redirectUrl","Core.AppLinkHelper","ContextService","params","jsxs","Popup","jsx","styles","StreamableIconLogo","Text","AppLink","AppChannels","Actions","SvgContainer","NewWindowSvg"],"mappings":"yJAkBMA,EAAY,+BACZC,EAAYC,EAAgB,iBAAiBF,CAAS,EAIrD,SAASG,EAAgBC,EAA6B,CAC3D,MAAMC,EAAcC,EAAmB,QAAQC,EAAe,gBAAA,EAAkB,OAAO,EACjFC,EAASH,IAAgB,IAAM,CAAE,YAAAA,CAAA,EAAgB,CAAA,EAEvD,OACEI,EAAAA,KAACC,EAAA,CACC,MAAOT,EAAU,eAAe,EAChC,UAAS,GACT,WAAYG,EAAM,WAClB,cAAc,MAEd,SAAA,CAAAO,EAAAA,IAAC,SAAA,CAAO,UAAU,8CAA8C,QAASP,EAAM,WAAY,EAC3FO,EAAAA,IAAC,OAAI,UAAW,GAAGC,EAAO,IAAI,uCAC5B,SAAAD,EAAAA,IAACE,EAAA,CAAA,CAAmB,CAAA,CACtB,EACAF,EAAAA,IAAC,MAAG,UAAU,iBAAiB,eAACG,EAAA,CAAK,UAAAd,EAAsB,OAAO,eAAA,CAAgB,CAAA,CAAE,EACpFW,EAAAA,IAAC,KAAE,UAAU,mBAAmB,eAACG,EAAA,CAAK,UAAAd,EAAsB,OAAO,mBAAA,CAAoB,CAAA,CAAE,EACzFS,EAAAA,KAACM,EAAA,CACC,UAAU,0BACV,QAAS,CACP,YAAaC,EAAY,QACzB,OAAQC,EAAQ,QAAQ,UACxB,OAAAT,CAAA,EAGF,SAAA,CAAAG,EAAAA,IAACO,EAAA,CAAa,IAAKC,CAAA,CAAc,EACjCR,EAAAA,IAAC,QAAK,UAAU,OACd,eAACG,EAAA,CAAK,UAAAd,EAAsB,OAAO,cAAA,CAAe,CAAA,CACpD,CAAA,CAAA,CAAA,EAEFW,EAAAA,IAACI,EAAA,CACC,UAAU,kEACV,QAAS,CACP,YAAaC,EAAY,QACzB,OAAQC,EAAQ,QAAQ,gBAAA,EAG1B,SAAAN,EAAAA,IAACG,EAAA,CAAK,UAAAd,EAAsB,OAAO,eAAA,CAAgB,CAAA,CAAA,CACrD,CAAA,CAAA,CAGN"}
@@ -0,0 +1,2 @@
1
+ import{j as r,u as x,b8 as p,a5 as h,a6 as c,g as b,O as T}from"./app-DiXzpOyg.js";import{c as m}from"./DBdD19pY.chunk.js";import{R as j}from"./DWkg1qc2.chunk.js";import{W as C,e as y}from"./C2zcSUEr.chunk.js";import{H as l}from"./DaJTPRJr.chunk.js";import{M as $}from"./DuidBpWd.chunk.js";const D="_partialName_157xw_4",O="_partialDescription_157xw_8",S="_partialThumbnail_157xw_12",_="_partialDragHandle_157xw_15",u={partialName:D,partialDescription:O,partialThumbnail:S,partialDragHandle:_};N.defaultProps={numVideos:15};function N(a){return r.jsx(r.Fragment,{children:Array(a.numVideos).fill(null).map((e,i)=>r.jsxs("div",{className:"d-flex",children:[a.allowBulkActions&&r.jsx("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),r.jsx(H,{...a})]},i))})}function H(a){const e=x(),t=m.getSize(e,"md")==="sm",s=a.withReordering&&!e.xs;return r.jsxs(j,{className:`${t?"":"py-2"} flex-grow-1`,children:[r.jsx(p,{...m.getThumbnailColumns(),className:`flex-column align-items-flex-start ${t?"pb-2 pe-1":"mb-1 pe-3 pe-md-2"}`,children:r.jsxs(j,{children:[!!s&&r.jsx("div",{className:"d-flex align-items-center justify-content-center col-2",children:r.jsx("div",{className:`partial-loading-background ${u.partialDragHandle}`})}),r.jsx(p,{xs:m.getThumbnailColSize(s),children:r.jsx("div",{className:`partial-loading-background ${t?"rounded":"rounded-3"} ${u.partialThumbnail}`})})]})}),r.jsxs(p,{...m.getDetailsColumns(),className:t?"pb-2":"px-2",children:[r.jsx("div",{className:`partial-loading-background mb-1 ${u.partialName}`}),r.jsx("div",{className:`partial-loading-background ${u.partialDescription}`})]})]})}const k=new Set([...Object.values(l.Classifications.Twig.EnglandSecondary),...Object.values(l.Classifications.Twig.InternationalSecondary),...Object.values(l.Classifications.Twig.ScotlandSecondary),...Object.values(l.Classifications.Twig.NewZealandSecondary),...Object.values(l.Classifications.Twig.CanadaMiddle),...Object.values(l.Classifications.Twig.CanadaHigh)]),P=new Set([...Object.values(l.Classifications.Tigtag.EnglandPrimary),...Object.values(l.Classifications.Tigtag.InternationalPrimary),...Object.values(l.Classifications.Tigtag.ScotlandPrimary),...Object.values(l.Classifications.Tigtag.NewZealandPrimary),...Object.values(l.Classifications.Tigtag.CanadaElementary),...Object.values(l.Classifications.Tigtag.CanadaMiddle)]);function v(a){return Object.keys(a).map(e=>a[e]).join(":")}function B(a){return v(T.pick(a,["audienceId"]))}const M={classificationDashboard(a,e,i,t){const s={target:`classification:${a}`,status:i,userType:e};return{url:c.urlBuilder("{gateway}/v1/discover/dashboards",s),publicUrl:c.urlBuilder("/api/discover/dashboards",s),key:`classification:dashboard:${a}:${e}:${t}:${i==null?void 0:i.join(":")}`,formatData:o=>{var n;return t?(n=o.data)==null?void 0:n.find(g=>g.id.toString()===t.toString()):b.first(o.data)}}},dashboardWidgetContent(a,e={},i,t,s={}){return{url:c.urlBuilder(`{gateway}/v1/discover/widgets/${a}`,e),publicUrl:c.urlBuilder(`/api/discover/widgets/${a}`,e),key:`widget:${a}:${v(e)}`,formatData:o=>{const n=y.formatResponseData(o,t);if(!s.hideTigTag&&!s.hideTwig)return n;if(Array.isArray(n.content)){const g=n.content.filter(d=>$.isClassification(d)?P.has(d.id)?!s.hideTigTag:k.has(d.id)?!s.hideTwig:!0:!0);n.content=g}return n},normalizeOptions:{namespace:B(e)},normalize:i!==C.EditableCoverFixedPillListSmall}},getDashboard(a,e,i,t,s,o){const n={target:i,status:e,userType:a};t!=null&&t.length&&(n["widgets.curriculum"]=t);const g=`dashboard:${i}:${a}:${s}:${e.join(":")}`;return{url:c.urlBuilder("{gateway}/v1/discover/dashboards",n),publicUrl:c.urlBuilder("/api/discover/dashboards",n),key:g,formatData:d=>{var f;return s?(f=d.data)==null?void 0:f.find(w=>w.id.toString()===s.toString()):b.first(d.data)},success:o}},updateWidgetPreferences(a,e,i){return{url:`{gateway}/v1/discover/widgets/${a}/preferences`,key:"update:widget:preferences",invalidationKeys:[`widget:${a}`],type:h.PUT,data:{userId:i.id,customerId:i.customerId,metadata:e}}}};export{M as D,N as P};
2
+ //# sourceMappingURL=CqWRz_Vd.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CqWRz_Vd.chunk.js","sources":["../../../../libs/shared/src/components/video-list/partial-loading/PartialVideoList.tsx","../../../../libs/shared/src/flight-requests/DashboardRequests.ts"],"sourcesContent":["import React from 'react';\nimport { Col, Row } from 'react-bootstrap';\n\nimport { VideoListHelper } from 'libs/shared/components/video-list/VideoListHelper';\nimport { useBreakpoints } from 'libs/shared/hooks/useBreakpoints';\n\nimport styles from './partial-video-list.module.scss';\n\ninterface PartialVideoListProps {\n withReordering?: boolean;\n numVideos?: number;\n allowBulkActions?: boolean;\n}\n\nPartialVideoList.defaultProps = {\n numVideos: 15\n};\n\nexport function PartialVideoList(props: PartialVideoListProps): JSX.Element {\n return (\n <>\n {Array(props.numVideos).fill(null).map((_, i) => (\n <div className='d-flex' key={i}>\n {props.allowBulkActions && <div className='form-check pe-3 pe-sm-2 mx-0 mx-md-2' />}\n <PartialVideoItem {...props} />\n </div>\n ))}\n </>\n );\n}\n\nexport function PartialVideoItem(props: PartialVideoListProps): JSX.Element {\n const breakpoints = useBreakpoints();\n\n const size = VideoListHelper.getSize(breakpoints, 'md');\n const isSmall = size === 'sm';\n\n const withDragHandle = props.withReordering && !breakpoints.xs;\n\n return (\n <Row className={`${isSmall ? '' : 'py-2'} flex-grow-1`}>\n <Col {...VideoListHelper.getThumbnailColumns()} className={`flex-column align-items-flex-start ${isSmall ? `pb-2 pe-1` : 'mb-1 pe-3 pe-md-2'}`}>\n <Row>\n {!!withDragHandle && (\n <div className='d-flex align-items-center justify-content-center col-2'>\n <div className={`partial-loading-background ${styles.partialDragHandle}`} />\n </div>\n )}\n <Col xs={VideoListHelper.getThumbnailColSize(withDragHandle)}>\n <div className={`partial-loading-background ${isSmall ? 'rounded' : 'rounded-3'} ${styles.partialThumbnail}`} />\n </Col>\n </Row>\n </Col>\n <Col {...VideoListHelper.getDetailsColumns()} className={isSmall ? 'pb-2' : 'px-2'}>\n <div className={`partial-loading-background mb-1 ${styles.partialName}`} />\n <div className={`partial-loading-background ${styles.partialDescription}`} />\n </Col>\n </Row>\n );\n}\n\n","import { HttpVerbs } from 'libs/common/backbone/enums/HttpVerbs';\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\nimport { Flight } from 'libs/common/flight';\nimport { HashObject } from 'libs/common/react/interfaces';\nimport { ArrayHelper } from 'libs/common/react/utils/ArrayHelper';\nimport { ObjectHelper } from 'libs/common/react/utils/ObjectHelper';\n\nimport { CuratedDashboard, CuratedDashboardCollection, CuratedWidget, CuratedWidgetContent, CuratedWidgetQueryParams, CurrentUser, DashboardStatus, DashboardUserType, Presentation, WidgetPreference } from 'libs/shared/interfaces';\nimport { WidgetHelper } from 'libs/shared/utils/WidgetHelper';\n\nimport { HardCoded } from '../constants/HardCoded';\nimport { WidgetTemplate } from '../enums/WidgetTemplate';\nimport { MasterTypeHelper } from '../utils/MasterTypeHelper';\n\ninterface GetDashboardWidgetContentOptions {\n hideTigTag?: boolean;\n hideTwig?: boolean;\n}\n\nconst TWIG_TOPIC_IDS = new Set([\n ...Object.values(HardCoded.Classifications.Twig.EnglandSecondary),\n ...Object.values(HardCoded.Classifications.Twig.InternationalSecondary),\n ...Object.values(HardCoded.Classifications.Twig.ScotlandSecondary),\n ...Object.values(HardCoded.Classifications.Twig.NewZealandSecondary),\n ...Object.values(HardCoded.Classifications.Twig.CanadaMiddle),\n ...Object.values(HardCoded.Classifications.Twig.CanadaHigh)\n]);\n\nconst TIG_TAG_TOPIC_IDS = new Set([\n ...Object.values(HardCoded.Classifications.Tigtag.EnglandPrimary),\n ...Object.values(HardCoded.Classifications.Tigtag.InternationalPrimary),\n ...Object.values(HardCoded.Classifications.Tigtag.ScotlandPrimary),\n ...Object.values(HardCoded.Classifications.Tigtag.NewZealandPrimary),\n ...Object.values(HardCoded.Classifications.Tigtag.CanadaElementary),\n ...Object.values(HardCoded.Classifications.Tigtag.CanadaMiddle)\n]);\n\nfunction getQueryParamsKey(queryParams: CuratedWidgetQueryParams): string {\n return Object.keys(queryParams)\n .map((key: keyof CuratedWidgetQueryParams) => queryParams[key])\n .join(':');\n}\n\nfunction getNamespaceKey(queryParams: CuratedWidgetQueryParams): string {\n return getQueryParamsKey(ObjectHelper.pick(queryParams, ['audienceId']));\n}\n\nexport const DashboardRequests = {\n classificationDashboard(\n classificationId: string,\n userType: DashboardUserType,\n statuses: DashboardStatus[],\n dashboardId?: string | null\n ): Flight.PublicRequest {\n const queryParamOpts = {\n target: `classification:${classificationId}`,\n status: statuses,\n userType\n };\n\n return {\n url: UrlHelper.urlBuilder(`{gateway}/v1/discover/dashboards`, queryParamOpts),\n publicUrl: UrlHelper.urlBuilder(`/api/discover/dashboards`, queryParamOpts),\n key: `classification:dashboard:${classificationId}:${userType}:${dashboardId}:${statuses?.join(':')}`,\n formatData: (data: CuratedDashboardCollection) => {\n if (dashboardId)\n return data.data?.find(d => d.id.toString() === dashboardId.toString());\n\n // only the first one of available dashboard will be displayed for the user\n return ArrayHelper.first(data.data);\n }\n };\n },\n\n dashboardWidgetContent(\n id: string,\n queryParams: CuratedWidgetQueryParams = {},\n template?: WidgetTemplate,\n presentation?: Presentation,\n options: GetDashboardWidgetContentOptions = {}\n ): Flight.PublicRequest {\n return {\n url: UrlHelper.urlBuilder(`{gateway}/v1/discover/widgets/${id}`, queryParams),\n publicUrl: UrlHelper.urlBuilder(`/api/discover/widgets/${id}`, queryParams),\n key: `widget:${id}:${getQueryParamsKey(queryParams)}`,\n formatData: (widget: CuratedWidget) => {\n const formatted = WidgetHelper.formatResponseData(widget, presentation);\n\n if (!options.hideTigTag && !options.hideTwig)\n return formatted;\n\n // Filter out the Twig topics for users who don't have access to the Twig library\n if (Array.isArray(formatted.content)) {\n const newContent = formatted.content.filter(entity => {\n if (MasterTypeHelper.isClassification(entity)) {\n if (TIG_TAG_TOPIC_IDS.has(entity.id))\n return !options.hideTigTag;\n\n if (TWIG_TOPIC_IDS.has(entity.id))\n return !options.hideTwig;\n\n return true;\n }\n \n return true;\n }) as CuratedWidgetContent;\n \n formatted.content = newContent;\n }\n \n return formatted;\n },\n normalizeOptions: {\n namespace: getNamespaceKey(queryParams)\n },\n normalize: template !== WidgetTemplate.EditableCoverFixedPillListSmall\n };\n },\n\n getDashboard(\n userType: DashboardUserType,\n statuses: DashboardStatus[],\n target: string,\n curriculumIds?: string[],\n dashboardId?: string,\n success?: (data: CuratedDashboard) => void\n ): Flight.PublicRequest {\n const queryParamOpts: HashObject = {\n target,\n status: statuses,\n userType\n };\n\n if (curriculumIds?.length)\n queryParamOpts['widgets.curriculum'] = curriculumIds;\n\n const key = `dashboard:${target}:${userType}:${dashboardId}:${statuses.join(':')}`;\n\n return {\n url: UrlHelper.urlBuilder(`{gateway}/v1/discover/dashboards`, queryParamOpts),\n publicUrl: UrlHelper.urlBuilder(`/api/discover/dashboards`, queryParamOpts),\n key,\n formatData: (data: CuratedDashboardCollection) => {\n if (dashboardId)\n return data.data?.find(d => d.id.toString() === dashboardId.toString());\n\n // only the first one of available dashboard will be displayed for the user\n return ArrayHelper.first(data.data);\n },\n success\n };\n },\n\n updateWidgetPreferences(widgetId: string, preferences: WidgetPreference[], currentUser: CurrentUser): Flight.Request {\n return {\n url: `{gateway}/v1/discover/widgets/${widgetId}/preferences`,\n key: 'update:widget:preferences',\n invalidationKeys: [`widget:${widgetId}`],\n type: HttpVerbs.PUT,\n data: {\n userId: currentUser.id,\n customerId: currentUser.customerId,\n metadata: preferences\n }\n };\n }\n};"],"names":["PartialVideoList","props","jsx","Fragment","_","jsxs","PartialVideoItem","breakpoints","useBreakpoints","isSmall","VideoListHelper","withDragHandle","Row","Col","styles","TWIG_TOPIC_IDS","HardCoded","TIG_TAG_TOPIC_IDS","getQueryParamsKey","queryParams","key","getNamespaceKey","ObjectHelper","DashboardRequests","classificationId","userType","statuses","dashboardId","queryParamOpts","UrlHelper","data","_a","d","ArrayHelper","id","template","presentation","options","widget","formatted","WidgetHelper","newContent","entity","MasterTypeHelper","WidgetTemplate","target","curriculumIds","success","widgetId","preferences","currentUser","HttpVerbs"],"mappings":"8eAcAA,EAAiB,aAAe,CAC9B,UAAW,EACb,EAEO,SAASA,EAAiBC,EAA2C,CAC1E,OACEC,EAAAA,IAAAC,EAAAA,SAAA,CACG,SAAA,MAAMF,EAAM,SAAS,EAAE,KAAK,IAAI,EAAE,IAAI,CAACG,EAAG,IACzCC,EAAAA,KAAC,MAAA,CAAI,UAAU,SACZ,SAAA,CAAAJ,EAAM,kBAAoBC,EAAAA,IAAC,MAAA,CAAI,UAAU,uCAAuC,EACjFA,MAACI,EAAA,CAAkB,GAAGL,CAAA,CAAO,CAAA,GAFF,CAG7B,CACD,EACH,CAEJ,CAEO,SAASK,EAAiBL,EAA2C,CAC1E,MAAMM,EAAcC,EAAA,EAGdC,EADOC,EAAgB,QAAQH,EAAa,IAAI,IAC7B,KAEnBI,EAAiBV,EAAM,gBAAkB,CAACM,EAAY,GAE5D,cACGK,EAAA,CAAI,UAAW,GAAGH,EAAU,GAAK,MAAM,eACtC,SAAA,CAAAP,EAAAA,IAACW,EAAA,CAAK,GAAGH,EAAgB,sBAAuB,UAAW,sCAAsCD,EAAU,YAAc,mBAAmB,GAC1I,SA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E as Y,$ as Q,v as Z,w as ee,x as te,G as ae,aY as se,d as oe,W as re,X as ie}from"./app-DiXzpOyg.js";import{a as ne}from"./DvDdiDQN.chunk.js";import{S as ce}from"./Bbj3u3zY.chunk.js";import{S as le,a as me,J as ue,u as de,b as he,B as O,c as ge,d as pe,e as fe}from"./CvuMDF0y.chunk.js";import{S as Se}from"./CPNjAJN5.chunk.js";import{a as be,l as h,u as xe,F as C}from"./aXDrx9_z.chunk.js";import"./G4u5okSS.chunk.js";import"./CW7x8M-z.chunk.js";import"./C35NlkUr.chunk.js";const Ne="_image_13xy1_1",je={image:Ne},q="default.contactUsError",ye=w.encloseNamespace(q);function Ce({className:t="",onTryAgain:i}){return e.jsxs(n,{className:t,children:[e.jsx(n.Image,{className:je.image,src:k.General.LOST_MESSAGE_BOTTLE}),e.jsx(n.Heading,{className:"w-100",children:e.jsx(d,{namespace:q,phrase:"errorHeading"})}),e.jsx(n.Info,{className:"w-100",children:e.jsx(d,{namespace:q,phrase:"errorMessage"})}),e.jsx(n.Cta,{text:ye("buttonLabel"),className:"btn btn-dark w-100",onClick:i})]})}const _="default.contactUsForm",o=w.encloseNamespace(_),Pe=h.object({firstName:h.string().required(o("firstNameRequired")),lastName:h.string().required(o("lastNameRequired")),email:h.string().email(o("emailValid")).required(o("emailRequired")),jobTitle:h.string().required(o("jobTitleRequired")),phoneNumber:h.string().required(o("phoneNumberRequired")).matches(/^[0-9]+$/,o("phoneNumberValid")),schoolOrDistrict:h.string().required(o("schoolOrDistrictRequired"))});function Ue(t){return e.jsx(be,{initialValues:t.initialValues,validateOnMount:!0,validationSchema:Pe,onSubmit:t.onSubmit,children:e.jsx(Fe,{showSpinner:t.showSpinner,googleMapsApiKey:t.googleMapsApiKey,searchProspectsUrl:t.searchProspectsUrl})})}function Fe(t){var b,x,a,N,j,u,y,A;const{showSpinner:i,googleMapsApiKey:f,searchProspectsUrl:c}=t,s=xe(),[l,m]=p.useState({}),[I,P]=p.useState(!1);function g(){s.setFieldValue("schoolOrDistrict",""),s.setFieldValue("country",""),s.setFieldValue("province",""),s.setFieldValue("prospectId",""),S()}function U(r){m({...l,...r}),g()}function D(){m({}),g()}function F(r){m({...l,...r}),s.setFieldValue("schoolOrDistrict",r.schoolName),s.setFieldValue("country",r.country),s.setFieldValue("province",r.province),s.setFieldValue("prospectId",r.prospectId),S()}function V(){m({...l,prospectId:void 0,schoolName:void 0,schoolPostCode:void 0}),g()}function L(r){P(!0),s.setFieldValue("schoolOrDistrict",r),S()}function S(){window.setTimeout(()=>s.validateForm(),0)}return e.jsxs(v,{children:[e.jsx(C,{label:o("firstName"),name:"firstName",value:(b=s.values)==null?void 0:b.firstName,showRequiredStar:!0,placeholder:o("firstNamePlaceholder")}),e.jsx(C,{label:o("lastName"),name:"lastName",value:(x=s.values)==null?void 0:x.lastName,showRequiredStar:!0,placeholder:o("lastNamePlaceholder")}),e.jsx(C,{label:o("email"),name:"email",value:(a=s.values)==null?void 0:a.email,showRequiredStar:!0,placeholder:o("emailPlaceholder")}),I?e.jsx(C,{label:o("schoolOrDistrict"),name:"schoolOrDistrict",value:(N=s.values)==null?void 0:N.schoolOrDistrict,showRequiredStar:!0,placeholder:o("schoolOrDistrictPlaceholder"),autoFocus:!0}):e.jsxs(e.Fragment,{children:[e.jsx(le,{data:l,setData:U,clearData:D,labelClassName:"form-label",geoLocation:{countryCode:"US"},googleMapsApiKey:f,required:!0,hideOnBlur:!0}),e.jsx(me,{data:l,setData:F,clearData:V,disabled:!l.schoolLocality,searchUrl:c,onClickNoSuggestions:L,required:!0,placeholder:!l.schoolLocality&&o("schoolPlaceholder"),hideOnBlur:!0})]}),e.jsx(ue,{id:"job-title",error:((j=s.touched)==null?void 0:j.jobTitle)&&((u=s.errors)==null?void 0:u.jobTitle),countryCode:K.US,initialValue:(y=s.values)==null?void 0:y.jobTitle,onChange:r=>s.setFieldValue("jobTitle",r,!1),labelClassName:"form-label",isTertiary:!1,required:!0}),e.jsx(C,{label:o("phoneNumber"),name:"phoneNumber",value:(A=s.values)==null?void 0:A.phoneNumber,showRequiredStar:!0,placeholder:o("phoneNumberPlaceholder")}),e.jsx(z,{type:"submit",className:"w-100 mt-3",variant:"dark",showSpinner:i,disabled:!s.isValid,children:e.jsx(d,{namespace:_,phrase:"contactUsButton"})})]})}const Ae="_image_13xy1_1",Te={image:Ae},M="default.contactUsSuccess",we=w.encloseNamespace(M);function Ie({className:t="",onClose:i}){return e.jsxs(n,{className:t,children:[e.jsx(n.Image,{className:Te.image,src:k.General.EMAIL_SENT}),e.jsx(n.Heading,{className:"w-100",children:e.jsx(d,{namespace:M,phrase:"successHeading"})}),e.jsx(n.Info,{className:"w-100",children:e.jsx(d,{namespace:M,phrase:"successMessage"})}),i&&e.jsx(n.Cta,{text:we("buttonLabel"),className:"btn btn-dark w-100",onClick:i})]})}const De="_logo_c400r_1",Ve="_pageContainer_c400r_5",H={logo:De,pageContainer:Ve},T="default.contactUs",E=w.encloseNamespace(T);function B(t){return e.jsxs(e.Fragment,{children:[t.formStage==="data-entry"&&e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"h2 text-center",children:e.jsx(d,{namespace:T,phrase:"contactUsHeading"})}),e.jsx("p",{className:"text-center mb-3",children:e.jsx(d,{namespace:T,phrase:"contactUsDescription"})}),e.jsx(Ue,{initialValues:t.initialFormValues,showSpinner:t.submitting,onSubmit:t.onSubmit,googleMapsApiKey:t.googleMapsApiKey,searchProspectsUrl:t.searchProspectsUrl}),t.showSignIn&&e.jsx(oe,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:ie.DEFAULT,action:re.Default.CHALLENGE,params:t.loginParams},children:e.jsx(d,{namespace:T,phrase:"signInLink"})})]}),t.formStage==="error"&&e.jsx(Ce,{onTryAgain:t.onTryAgain}),t.formStage==="success"&&e.jsx(Ie,{onClose:t.closePopup})]})}function Le(t){return Z(ee.getDefaultMetadata({title:E("title"),phraseContext:{phraseHandler:E,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Se.getCanonicalLink(),allowIndexing:!0,product:te.PRODUCT_NAME})),e.jsx("div",{className:`${H.pageContainer} bg-white mt-4 mx-4 mx-sm-auto p-3 mb-3 border border-gray-400 rounded-3 shadow-sm`,children:e.jsx(B,{formStage:t.formStage,initialFormValues:t.initialFormValues,loginParams:t.loginParams,onSubmit:t.onSubmit,onTryAgain:t.onTryAgain,submitting:t.submitting,googleMapsApiKey:t.googleMapsApiKey,searchProspectsUrl:t.searchProspectsUrl,showSignIn:t.showSignIn})})}function qe(t){function i(){t.closePopup(),ce.preventScrollTop()}return e.jsxs(ae,{title:E("title"),closePopup:i,bodyClassName:"p-5",hideTitle:!0,children:[e.jsx("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:i}),e.jsx("div",{className:`${H.logo} position-absolute top-0 start-0 m-3`,children:e.jsx(se,{})}),e.jsx(B,{formStage:t.formStage,initialFormValues:t.initialFormValues,loginParams:t.loginParams,onSubmit:t.onSubmit,onTryAgain:t.onTryAgain,submitting:t.submitting,closePopup:i,googleMapsApiKey:t.googleMapsApiKey,searchProspectsUrl:t.searchProspectsUrl,showSignIn:t.showSignIn})]})}function ve(t){var x;const i=G(),f=R(Q.config()),c=R(Y.currentUser()),s=de(),[l,m]=p.useState("data-entry"),[I,P]=p.useState(!1),[g,U]=p.useState({firstName:"",lastName:"",email:"",schoolOrDistrict:"",jobTitle:"",phoneNumber:"",country:"",province:"",prospectId:""}),{createOrUpdateProfile:D}=he(),F=W.getHref(J.getCurrentRoute().appLink),V=F!=="/"?{redirectUrl:F}:{};p.useEffect(()=>{var a;(a=c.data)!=null&&a.isAuthenticated&&U({...g,firstName:c.data.givenName,lastName:c.data.familyName,email:c.data.email})},[(x=c.data)==null?void 0:x.isAuthenticated]);async function L(a){var N,j;try{P(!0),U(a);const u=await i(O.checkEmail(a.email));let y;if(a.prospectId){const r=await i(O.prospectLookups(a.prospectId));y=(N=r==null?void 0:r.find($=>$.type==="crm_id"))==null?void 0:N.externalId}const A={email:a.email,firstName:a.firstName,lastName:a.lastName,phone:a.phoneNumber,custom:{accountAddress:a!=null&&a.province?{countryCode:a==null?void 0:a.country,province:ge.parseProvince((a==null?void 0:a.province)||"")}:void 0,accountName:a.schoolOrDistrict,jobTitle:a.jobTitle,syncToCrm:(j=u==null?void 0:u.users)!=null&&j.length?void 0:!0,crmId:y||void 0}};D({email:a.email,firstName:a.firstName,lastName:a.lastName,phone:a.phoneNumber,countryCode:a.country}),s.logFormSubmission({user:A,eventType:ne.StreamableFormEvent.ContactUsFormSubmit,source:fe.ContactUs,topic:pe.ContactUs,productType:"sl"}),m("success")}catch(u){console.warn(u),m("error")}finally{P(!1)}}function S(){m("data-entry")}if(!f.hasCompleted||!c.hasCompleted)return e.jsx(e.Fragment,{});const b={formStage:l,initialFormValues:g,submitting:I,loginParams:V,onSubmit:L,onTryAgain:S,closePopup:t.closePopup,googleMapsApiKey:f.data.googleMapsApiKey,searchProspectsUrl:X.safeUrlConcat(f.data.gatewayApiUrl,"/v1/search/prospects"),showSignIn:!c.data.isAuthenticated};return t.fromPageLoad?e.jsx(Le,{...b}):e.jsx(qe,{...b})}export{ve as ContactUsView};
2
+ //# sourceMappingURL=Cs-XAmfP.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cs-XAmfP.chunk.js","sources":["../../src/apps/default/views/contact-us/error/ContactUsError.tsx","../../src/apps/default/views/contact-us/form/ContactUsForm.tsx","../../src/apps/default/views/contact-us/success/ContactUsSuccess.tsx","../../src/apps/default/views/contact-us/StreamableContactUsView.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\n\nimport { EmptyState } from 'libs/shared/components/empty-states/EmptyState';\nimport { Text } from 'libs/shared/components/text/Text';\n\nimport { ImageUrls } from 'shared/constants/ImageUrls';\n\nimport styles from './contact-us-error.module.scss';\n\nconst namespace = 'default.contactUsError';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface ContactUsErrorProps {\n className?: string;\n onTryAgain: () => void;\n}\n\nexport function ContactUsError({ className = '', onTryAgain }: ContactUsErrorProps) {\n return (\n <EmptyState className={className}>\n <EmptyState.Image className={styles.image} src={ImageUrls.General.LOST_MESSAGE_BOTTLE} />\n <EmptyState.Heading className='w-100'>\n <Text namespace={namespace} phrase='errorHeading' />\n </EmptyState.Heading>\n <EmptyState.Info className='w-100'>\n <Text namespace={namespace} phrase='errorMessage' />\n </EmptyState.Info>\n <EmptyState.Cta text={getPhrase('buttonLabel')} className='btn btn-dark w-100' onClick={onTryAgain} />\n </EmptyState>\n );\n}\n","import React from 'react';\nimport { Form } from 'formik';\nimport * as Yup from 'yup';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\n\nimport { JobTitleInput } from 'libs/shared/apps/sign-up/components/steps/add-to-braze-step-item/JobTitleInput';\nimport { SearchLocalityInput } from 'libs/shared/apps/sign-up/components/steps/search-school-step-item/SearchLocalityInput';\nimport { SearchSchoolInput } from 'libs/shared/apps/sign-up/components/steps/search-school-step-item/SearchSchoolInput';\nimport { SearchSchoolData } from 'libs/shared/apps/sign-up/interfaces/SearchSchoolData';\nimport { FormField } from 'libs/shared/components/forms/form-field/FormField';\nimport { FormWrapper, useFormikContextWrapper } from 'libs/shared/components/forms/form-wrapper/FormWrapper';\nimport { SpinnerButton } from 'libs/shared/components/spinner-button/SpinnerButton';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { CountryCode } from 'libs/shared/enums/CountryCode';\n\nconst namespace = 'default.contactUsForm';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\nconst validationSchema = Yup.object({\n firstName: Yup.string().required(getPhrase('firstNameRequired')),\n lastName: Yup.string().required(getPhrase('lastNameRequired')),\n email: Yup.string().email(getPhrase('emailValid')).required(getPhrase('emailRequired')),\n jobTitle: Yup.string().required(getPhrase('jobTitleRequired')),\n phoneNumber: Yup.string().required(getPhrase('phoneNumberRequired')).matches(/^[0-9]+$/, getPhrase('phoneNumberValid')),\n schoolOrDistrict: Yup.string().required(getPhrase('schoolOrDistrictRequired'))\n});\n\nexport interface ContactUsFormValues {\n firstName: string;\n lastName: string;\n email: string;\n schoolOrDistrict: string;\n jobTitle: string;\n phoneNumber: string;\n country: string;\n province: string;\n prospectId: string;\n}\n\ninterface ContactUsFormProps {\n initialValues: ContactUsFormValues;\n showSpinner: boolean;\n onSubmit: (values: ContactUsFormValues) => void;\n googleMapsApiKey: string;\n searchProspectsUrl: string;\n}\n\nexport function ContactUsForm(props: ContactUsFormProps) {\n return (\n <FormWrapper<ContactUsFormValues>\n initialValues={props.initialValues}\n validateOnMount={true}\n validationSchema={validationSchema}\n onSubmit={props.onSubmit}\n >\n <ContactUsFormFields\n showSpinner={props.showSpinner}\n googleMapsApiKey={props.googleMapsApiKey}\n searchProspectsUrl={props.searchProspectsUrl}\n />\n </FormWrapper>\n );\n}\n\ninterface ContactUsFormFieldsProps {\n showSpinner: boolean;\n googleMapsApiKey: string;\n searchProspectsUrl: string;\n}\n\nfunction ContactUsFormFields(props: ContactUsFormFieldsProps) {\n const { showSpinner, googleMapsApiKey, searchProspectsUrl } = props;\n const formikProps = useFormikContextWrapper<ContactUsFormValues>();\n\n const [ searchSchoolData, setSearchSchoolData ] = React.useState<SearchSchoolData>({});\n const [ cantFindSchool, setCantFindSchool ] = React.useState<boolean>(false);\n\n function clearFormikSchoolData() {\n formikProps.setFieldValue('schoolOrDistrict', '');\n formikProps.setFieldValue('country', '');\n formikProps.setFieldValue('province', '');\n formikProps.setFieldValue('prospectId', '');\n triggerValidation();\n }\n\n function setLocalityData(data: SearchSchoolData): void {\n setSearchSchoolData({ ...searchSchoolData, ...data });\n clearFormikSchoolData();\n }\n\n function clearLocalityData(): void {\n setSearchSchoolData({});\n clearFormikSchoolData();\n }\n\n function setSchoolData(data: SearchSchoolData): void {\n setSearchSchoolData({ ...searchSchoolData, ...data });\n\n formikProps.setFieldValue('schoolOrDistrict', data.schoolName);\n formikProps.setFieldValue('country', data.country);\n formikProps.setFieldValue('province', data.province);\n formikProps.setFieldValue('prospectId', data.prospectId);\n\n triggerValidation();\n }\n\n function clearSchooldata(): void {\n setSearchSchoolData({\n ...searchSchoolData,\n prospectId: undefined,\n schoolName: undefined,\n schoolPostCode: undefined\n });\n clearFormikSchoolData();\n }\n\n function onClickNoSuggestions(name: string) {\n setCantFindSchool(true);\n\n formikProps.setFieldValue('schoolOrDistrict', name);\n\n triggerValidation();\n }\n\n function triggerValidation() {\n // For whatever reason, forcing the form the validate needs to happen in a setTimeout to work\n // I genuinely have no idea why - Sha\n window.setTimeout(() => formikProps.validateForm(), 0);\n }\n\n return (\n <Form>\n <FormField\n label={getPhrase('firstName')}\n name='firstName'\n value={formikProps.values?.firstName}\n showRequiredStar\n placeholder={getPhrase('firstNamePlaceholder')}\n />\n <FormField\n label={getPhrase('lastName')}\n name='lastName'\n value={formikProps.values?.lastName}\n showRequiredStar\n placeholder={getPhrase('lastNamePlaceholder')}\n />\n <FormField\n label={getPhrase('email')}\n name='email'\n value={formikProps.values?.email}\n showRequiredStar\n placeholder={getPhrase('emailPlaceholder')}\n />\n {!cantFindSchool ?\n <>\n <SearchLocalityInput\n data={searchSchoolData}\n setData={setLocalityData}\n clearData={clearLocalityData}\n labelClassName='form-label'\n geoLocation={{ countryCode: 'US' }}\n googleMapsApiKey={googleMapsApiKey}\n required\n hideOnBlur\n />\n <SearchSchoolInput\n data={searchSchoolData}\n setData={setSchoolData}\n clearData={clearSchooldata}\n disabled={!searchSchoolData.schoolLocality}\n searchUrl={searchProspectsUrl}\n onClickNoSuggestions={onClickNoSuggestions}\n required\n placeholder={!searchSchoolData.schoolLocality && getPhrase('schoolPlaceholder')}\n hideOnBlur\n />\n </> :\n <FormField\n label={getPhrase('schoolOrDistrict')}\n name='schoolOrDistrict'\n value={formikProps.values?.schoolOrDistrict}\n showRequiredStar\n placeholder={getPhrase('schoolOrDistrictPlaceholder')}\n autoFocus\n />\n }\n <JobTitleInput\n id='job-title'\n error={formikProps.touched?.jobTitle && formikProps.errors?.jobTitle}\n countryCode={CountryCode.US}\n initialValue={formikProps.values?.jobTitle}\n onChange={jobTitle => formikProps.setFieldValue('jobTitle', jobTitle, false)}\n labelClassName='form-label'\n isTertiary={false}\n required\n />\n <FormField\n label={getPhrase('phoneNumber')}\n name='phoneNumber'\n value={formikProps.values?.phoneNumber}\n showRequiredStar\n placeholder={getPhrase('phoneNumberPlaceholder')}\n />\n <SpinnerButton type='submit' className='w-100 mt-3' variant='dark' showSpinner={showSpinner} disabled={!formikProps.isValid} >\n <Text namespace={namespace} phrase='contactUsButton' />\n </SpinnerButton>\n </Form>\n );\n}","import React from 'react';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\n\nimport { EmptyState } from 'libs/shared/components/empty-states/EmptyState';\nimport { Text } from 'libs/shared/components/text/Text';\n\nimport { ImageUrls } from 'shared/constants/ImageUrls';\n\nimport styles from './contact-us-success.module.scss';\n\nconst namespace = 'default.contactUsSuccess';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface ContactUsSuccessProps {\n className?: string;\n onClose?: () => void;\n}\n\nexport function ContactUsSuccess({ className = '', onClose }: ContactUsSuccessProps) {\n return (\n <EmptyState className={className}>\n <EmptyState.Image className={styles.image} src={ImageUrls.General.EMAIL_SENT} />\n <EmptyState.Heading className='w-100'>\n <Text namespace={namespace} phrase='successHeading' />\n </EmptyState.Heading>\n <EmptyState.Info className='w-100'>\n <Text namespace={namespace} phrase='successMessage' />\n </EmptyState.Info>\n {onClose && <EmptyState.Cta text={getPhrase('buttonLabel')} className='btn btn-dark w-100' onClick={onClose} />}\n </EmptyState>\n );\n}\n","import React from 'react';\nimport { type BrazeUser, StreamableFormEvent } from '@clickview/braze-client';\n\nimport { Core } from 'libs/common/backbone/index';\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\nimport { ScrollHelper } from 'libs/common/backbone/utils/ScrollHelper';\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\nimport { Flight } from 'libs/common/react/index';\nimport { HashObject } from 'libs/common/react/interfaces';\n\nimport { ProspectLookup } from 'libs/shared/apps/sign-up/enums/ProspectLookup';\nimport { BrazeCheckEmailResponse, BrazeHelper } from 'libs/shared/apps/sign-up/helpers/BrazeHelper';\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\nimport { Popup, PopupProps } from 'libs/shared/components/popup/Popup';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { BrazeRequests } from 'libs/shared/flight-requests/BrazeRequests';\nimport { ConfigRequests } from 'libs/shared/flight-requests/ConfigRequests';\nimport { UserRequests } from 'libs/shared/flight-requests/UserRequests';\nimport { useProfileApiClient } from 'libs/shared/hooks/UseProfileApiClient';\nimport { useSetPageMetadata } from 'libs/shared/hooks/useSetPageMetadata';\nimport { Config, CurrentUser } from 'libs/shared/interfaces';\nimport { ContextService } from 'libs/shared/services/ContextService';\nimport { PageMetadataHelper } from 'libs/shared/utils/PageMetadataHelper';\n\nimport { StreamableIconLogo } from 'shared/components/streamable-logo/StreamableLogo';\nimport { Actions } from 'shared/constants/StreamableActions';\nimport { StreamableConstants } from 'shared/constants/StreamableConstants';\nimport { AppChannels } from 'shared/constants/StreamableRadioChannels';\nimport { BrazeSource } from 'shared/enums/BrazeSource';\nimport { BrazeTopic } from 'shared/enums/BrazeTopic';\nimport { useStreamableBrazeClientService } from 'shared/hooks/useStreamableBrazeClientService';\nimport { SeoHelper } from 'shared/utils/StreamableSeoHelper';\n\nimport { ContactUsError } from './error/ContactUsError';\nimport { ContactUsForm, ContactUsFormValues } from './form/ContactUsForm';\nimport { ContactUsSuccess } from './success/ContactUsSuccess';\n\nimport styles from './contact-us.module.scss';\n\nconst namespace = 'default.contactUs';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ntype ContactUsFormStage = 'data-entry' | 'success' | 'error';\n\ninterface ContactUsContentProps {\n formStage: ContactUsFormStage\n initialFormValues: ContactUsFormValues;\n submitting: boolean;\n loginParams: HashObject;\n onSubmit: (values: ContactUsFormValues) => void;\n onTryAgain: () => void;\n closePopup?: () => void;\n googleMapsApiKey: string;\n searchProspectsUrl: string;\n showSignIn: boolean;\n}\n\nfunction ContactUsContent(props: ContactUsContentProps) {\n return (\n <>\n {props.formStage === 'data-entry' &&\n <>\n <h1 className='h2 text-center'><Text namespace={namespace} phrase='contactUsHeading' /></h1>\n <p className='text-center mb-3'><Text namespace={namespace} phrase='contactUsDescription' /></p>\n <ContactUsForm\n initialValues={props.initialFormValues}\n showSpinner={props.submitting}\n onSubmit={props.onSubmit}\n googleMapsApiKey={props.googleMapsApiKey}\n searchProspectsUrl={props.searchProspectsUrl}\n />\n {props.showSignIn && <AppLink\n className='d-flex justify-content-center align-items-center mt-3 text-info'\n appLink={{\n application: AppChannels.DEFAULT,\n action: Actions.Default.CHALLENGE,\n params: props.loginParams\n }}\n >\n <Text namespace={namespace} phrase='signInLink' />\n </AppLink>}\n </>\n }\n {props.formStage === 'error' && <ContactUsError onTryAgain={props.onTryAgain} />}\n {props.formStage === 'success' && <ContactUsSuccess onClose={props.closePopup} />}\n </>\n );\n}\n\ninterface ContactUsPageProps extends ContactUsContentProps { }\n\nfunction ContactUsPage(props: ContactUsPageProps) {\n useSetPageMetadata(PageMetadataHelper.getDefaultMetadata({\n title: getPhrase('title'),\n phraseContext: {\n phraseHandler: getPhrase,\n titlePhrase: 'pageTitle',\n descriptionPhrase: 'pageDescription'\n },\n canonicalLink: SeoHelper.getCanonicalLink(),\n allowIndexing: true,\n product: StreamableConstants.PRODUCT_NAME\n }));\n\n return (\n <div className={`${styles.pageContainer} bg-white mt-4 mx-4 mx-sm-auto p-3 mb-3 border border-gray-400 rounded-3 shadow-sm`}>\n <ContactUsContent\n formStage={props.formStage}\n initialFormValues={props.initialFormValues}\n loginParams={props.loginParams}\n onSubmit={props.onSubmit}\n onTryAgain={props.onTryAgain}\n submitting={props.submitting}\n googleMapsApiKey={props.googleMapsApiKey}\n searchProspectsUrl={props.searchProspectsUrl}\n showSignIn={props.showSignIn}\n />\n </div>\n );\n}\n\ninterface ContactUsPopupProps extends ContactUsContentProps { }\n\nfunction ContactUsPopup(props: ContactUsPopupProps) {\n function onClose() {\n props.closePopup();\n\n ScrollHelper.preventScrollTop();\n }\n\n return (\n <Popup\n title={getPhrase('title')}\n closePopup={onClose}\n bodyClassName='p-5'\n hideTitle\n >\n <button className='btn-close position-absolute top-0 end-0 p-3' onClick={onClose} />\n <div className={`${styles.logo} position-absolute top-0 start-0 m-3`}>\n <StreamableIconLogo />\n </div>\n <ContactUsContent\n formStage={props.formStage}\n initialFormValues={props.initialFormValues}\n loginParams={props.loginParams}\n onSubmit={props.onSubmit}\n onTryAgain={props.onTryAgain}\n submitting={props.submitting}\n closePopup={onClose}\n googleMapsApiKey={props.googleMapsApiKey}\n searchProspectsUrl={props.searchProspectsUrl}\n showSignIn={props.showSignIn}\n />\n </Popup>\n );\n}\n\ninterface ContactUsViewProps extends PopupProps {\n fromPageLoad: boolean;\n}\n\n// eslint-disable-next-line rulesdir/require-view-title\nexport function ContactUsView(props: ContactUsViewProps) {\n const fetchAsync = Flight.useGetFetchAsync();\n const config = Flight.useBasicFetch<Config>(ConfigRequests.config());\n const currentUser = Flight.useBasicFetch<CurrentUser>(UserRequests.currentUser());\n const braze = useStreamableBrazeClientService();\n const [ formStage, setFormStage ] = React.useState<ContactUsFormStage>('data-entry');\n const [ submitting, setSubmitting ] = React.useState(false);\n const [ initialFormValues, setInitialFormValues ] = React.useState<ContactUsFormValues>({\n firstName: '',\n lastName: '',\n email: '',\n schoolOrDistrict: '',\n jobTitle: '',\n phoneNumber: '',\n country: '',\n province: '',\n prospectId: ''\n });\n\n const { createOrUpdateProfile } = useProfileApiClient();\n\n const redirectUrl = Core.AppLinkHelper.getHref(ContextService.getCurrentRoute().appLink);\n const loginParams = redirectUrl !== '/' ? { redirectUrl } : {};\n\n React.useEffect(() => {\n if (!currentUser.data?.isAuthenticated)\n return;\n\n setInitialFormValues({\n ...initialFormValues,\n firstName: currentUser.data.givenName,\n lastName: currentUser.data.familyName,\n email: currentUser.data.email\n });\n }, [currentUser.data?.isAuthenticated]);\n\n async function onSubmit(values: ContactUsFormValues) {\n try {\n setSubmitting(true);\n setInitialFormValues(values);\n\n const checkEmail = await fetchAsync<BrazeCheckEmailResponse>(BrazeRequests.checkEmail(values.email));\n\n let crmId: string;\n if (values.prospectId) {\n const prospectLookups = await fetchAsync<ProspectLookup[]>(BrazeRequests.prospectLookups(values.prospectId));\n crmId = prospectLookups?.find(l => l.type === 'crm_id')?.externalId;\n }\n\n const brazeUser: BrazeUser = {\n email: values.email,\n firstName: values.firstName,\n lastName: values.lastName,\n phone: values.phoneNumber,\n custom: {\n accountAddress: values?.province ? {\n countryCode: values?.country,\n province: BrazeHelper.parseProvince(values?.province || '')\n } : undefined,\n accountName: values.schoolOrDistrict,\n jobTitle: values.jobTitle,\n syncToCrm: checkEmail?.users?.length ? undefined : true,\n crmId: crmId || undefined\n }\n };\n \n createOrUpdateProfile({\n email: values.email,\n firstName: values.firstName,\n lastName: values.lastName,\n phone: values.phoneNumber,\n countryCode: values.country\n });\n\n braze.logFormSubmission({\n user: brazeUser,\n eventType: StreamableFormEvent.ContactUsFormSubmit,\n source: BrazeSource.ContactUs,\n topic: BrazeTopic.ContactUs,\n productType: 'sl'\n });\n\n setFormStage('success');\n } catch (err) {\n console.warn(err);\n\n setFormStage('error');\n } finally {\n setSubmitting(false);\n }\n }\n\n function onTryAgain() {\n setFormStage('data-entry');\n }\n\n if (!config.hasCompleted || !currentUser.hasCompleted)\n return <></>;\n\n const contactUsProps = {\n formStage,\n initialFormValues,\n submitting,\n loginParams,\n onSubmit,\n onTryAgain,\n closePopup: props.closePopup,\n googleMapsApiKey: config.data.googleMapsApiKey,\n searchProspectsUrl: UrlHelper.safeUrlConcat(config.data.gatewayApiUrl, '/v1/search/prospects'),\n showSignIn: !currentUser.data.isAuthenticated\n };\n\n if (props.fromPageLoad)\n return <ContactUsPage {...contactUsProps} />;\n\n return (\n <ContactUsPopup {...contactUsProps} />\n );\n}"],"names":["namespace","getPhrase","LanguageService","ContactUsError","className","onTryAgain","jsxs","EmptyState","jsx","styles","ImageUrls","Text","validationSchema","Yup.object","Yup.string","ContactUsForm","props","FormWrapper","ContactUsFormFields","showSpinner","googleMapsApiKey","searchProspectsUrl","formikProps","useFormikContextWrapper","searchSchoolData","setSearchSchoolData","React","cantFindSchool","setCantFindSchool","clearFormikSchoolData","triggerValidation","setLocalityData","data","clearLocalityData","setSchoolData","clearSchooldata","onClickNoSuggestions","name","Form","FormField","_a","_b","_c","_d","Fragment","SearchLocalityInput","SearchSchoolInput","JobTitleInput","_e","_f","CountryCode","_g","jobTitle","_h","SpinnerButton","ContactUsSuccess","onClose","ContactUsContent","AppLink","AppChannels","Actions","ContactUsPage","useSetPageMetadata","PageMetadataHelper","SeoHelper","StreamableConstants","ContactUsPopup","ScrollHelper","Popup","StreamableIconLogo","ContactUsView","fetchAsync","Flight.useGetFetchAsync","config","Flight.useBasicFetch","ConfigRequests","currentUser","UserRequests","braze","useStreamableBrazeClientService","formStage","setFormStage","submitting","setSubmitting","initialFormValues","setInitialFormValues","createOrUpdateProfile","useProfileApiClient","redirectUrl","Core.AppLinkHelper","ContextService","loginParams","onSubmit","values","checkEmail","BrazeRequests","crmId","prospectLookups","l","brazeUser","BrazeHelper","StreamableFormEvent","BrazeSource","BrazeTopic","err","contactUsProps","UrlHelper"],"mappings":"onBAWMA,EAAY,yBACZC,GAAYC,EAAgB,iBAAiBF,CAAS,EAOrD,SAASG,GAAe,CAAE,UAAAC,EAAY,GAAI,WAAAC,GAAmC,CAClF,OACEC,OAACC,GAAW,UAAAH,EACV,SAAA,CAAAI,EAAAA,IAACD,EAAW,MAAX,CAAiB,UAAWE,GAAO,MAAO,IAAKC,EAAU,QAAQ,mBAAA,CAAqB,EACvFF,EAAAA,IAACD,EAAW,QAAX,CAAmB,UAAU,QAC5B,SAAAC,MAACG,EAAA,CAAA,UAAKX,EAAsB,OAAO,cAAA,CAAe,CAAA,CACpD,EACA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tB,QAAA,CACEE,EAAc,EAAK,CACrB,CACF,CAEA,SAAS9E,GAAa,CACpB4E,EAAa,YAAY,CAC3B,CAEA,GAAI,CAACR,EAAO,cAAgB,CAACG,EAAY,aACvC,OAAOpE,EAAAA,IAAAoC,EAAAA,SAAA,EAAE,EAEX,MAAM6D,EAAiB,CACrB,UAAAzB,EACA,kBAAAI,EACA,WAAAF,EACA,YAAAS,EACA,SAAAC,EACA,WAAAvF,EACA,WAAYW,EAAM,WAClB,iBAAkByD,EAAO,KAAK,iBAC9B,mBAAoBiC,EAAU,cAAcjC,EAAO,KAAK,cAAe,sBAAsB,EAC7F,WAAY,CAACG,EAAY,KAAK,eAAA,EAGhC,OAAI5D,EAAM,aACDR,MAACqD,GAAA,CAAe,GAAG4C,CAAA,CAAgB,EAG1CjG,MAAC0D,GAAA,CAAgB,GAAGuC,CAAA,CAAgB,CAExC"}
@@ -0,0 +1,2 @@
1
+ import{ai as a,j as t,f as c,l as o,m as f}from"./app-DiXzpOyg.js";import{u as l}from"./DgL-ti6b.chunk.js";import{C as u}from"./B2rqAGbQ.chunk.js";const x="_container_1kfhe_1",h="_spinner_1kfhe_4",r={container:x,spinner:h};m.defaultProps={fetchOnScroll:!1};function m(e){const[s,i]=l();return a.useEffect(()=>{var n;e.fetchOnScroll&&(!i||e.isFetching||(n=e.fetchNext)==null||n.call(e,e.nextCursor))},[i,e.isFetching]),t.jsx("div",{className:`p-3 text-center ${r.container}`,children:e.isFetching?t.jsx(c,{as:"span",animation:"border",role:"status",className:r.spinner}):t.jsx("div",{ref:s,children:t.jsx(o,{svg:u,className:"svg-container cursor-pointer",size:f.Large,onClick:()=>{var n;return(n=e.fetchNext)==null?void 0:n.call(e,e.nextCursor)}})})})}export{m as I};
2
+ //# sourceMappingURL=CsxsnXoH.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CsxsnXoH.chunk.js","sources":["../../../../libs/shared/src/components/infinite-scroll-footer/InfiniteScrollFooter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Spinner } from 'react-bootstrap';\nimport { useInView } from 'react-intersection-observer';\n\nimport { SvgContainer, SvgContainerSize } from 'libs/shared/components/svg-container/SvgContainer';\nimport { ChevronDownSvg } from 'libs/shared/images/svg/arrows/ChevronDownSvg';\n\nimport styles from './infinite-scroll-footer.module.scss';\n\ninterface InfiniteScrollFooterProps {\n isFetching: boolean;\n fetchNext?: (nextCursor: string) => void;\n nextCursor?: string;\n fetchOnScroll?: boolean;\n}\n\nInfiniteScrollFooter.defaultProps = {\n fetchOnScroll: false\n};\n\nexport function InfiniteScrollFooter(props: InfiniteScrollFooterProps): React.ReactElement {\n const [ ref, inView ] = useInView();\n\n React.useEffect(() => {\n if (!props.fetchOnScroll)\n return;\n\n if (!inView || props.isFetching)\n return;\n\n props.fetchNext?.(props.nextCursor);\n }, [ inView, props.isFetching ]);\n\n return (\n <div className={`p-3 text-center ${styles.container}`}>\n {props.isFetching\n ? <Spinner as='span' animation='border' role='status' className={styles.spinner} />\n : (\n <div ref={ref}>\n <SvgContainer\n svg={ChevronDownSvg}\n className='svg-container cursor-pointer'\n size={SvgContainerSize.Large}\n onClick={() => props.fetchNext?.(props.nextCursor)}\n />\n </div>\n )\n }\n </div>\n );\n}"],"names":["InfiniteScrollFooter","props","ref","inView","useInView","React.useEffect","_a","jsx","styles","Spinner","SvgContainer","ChevronDownSvg","SvgContainerSize"],"mappings":"+NAgBAA,EAAqB,aAAe,CAClC,cAAe,EACjB,EAEO,SAASA,EAAqBC,EAAsD,CACzF,KAAM,CAAEC,EAAKC,CAAO,EAAIC,EAAA,EAExBC,OAAAA,EAAAA,UAAgB,IAAM,OACfJ,EAAM,gBAGP,CAACE,GAAUF,EAAM,aAGrBK,EAAAL,EAAM,YAAN,MAAAK,EAAA,KAAAL,EAAkBA,EAAM,YAC1B,EAAG,CAAEE,EAAQF,EAAM,UAAW,CAAC,EAG7BM,EAAAA,IAAC,OAAI,UAAW,mBAAmBC,EAAO,SAAS,GAChD,SAAAP,EAAM,WACHM,EAAAA,IAACE,EAAA,CAAQ,GAAG,OAAO,UAAU,SAAS,KAAK,SAAS,UAAWD,EAAO,OAAA,CAAS,EAE/ED,EAAAA,IAAC,MAAA,CAAI,IAAAL,EACH,SAAAK,EAAAA,IAACG,EAAA,CACC,IAAKC,EACL,UAAU,+BACV,KAAMC,EAAiB,MACvB,QAAS,IAAA,OAAM,OAAAN,EAAAL,EAAM,YAAN,YAAAK,EAAA,KAAAL,EAAkBA,EAAM,YAAU,CAAA,EAErD,CAAA,CAGN,CAEJ"}
@@ -0,0 +1,2 @@
1
+ import{ah as Se,a5 as M,b0 as _e,b1 as ve,b2 as xe,S as Ie,ac as U,R as S,j as f,b3 as le,b4 as ce,b5 as ue,aw as de,ae as H,b6 as Te,k as Ae,f as we}from"./app-DiXzpOyg.js";import{F as X}from"./G4u5okSS.chunk.js";var z={exports:{}},ee;function Ee(){return ee||(ee=1,(function(t,o){(function(s){t.exports=s()})(function(s){var u=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function c(l,a){var n=l[0],e=l[1],i=l[2],r=l[3];n+=(e&i|~e&r)+a[0]-680876936|0,n=(n<<7|n>>>25)+e|0,r+=(n&e|~n&i)+a[1]-389564586|0,r=(r<<12|r>>>20)+n|0,i+=(r&n|~r&e)+a[2]+606105819|0,i=(i<<17|i>>>15)+r|0,e+=(i&r|~i&n)+a[3]-1044525330|0,e=(e<<22|e>>>10)+i|0,n+=(e&i|~e&r)+a[4]-176418897|0,n=(n<<7|n>>>25)+e|0,r+=(n&e|~n&i)+a[5]+1200080426|0,r=(r<<12|r>>>20)+n|0,i+=(r&n|~r&e)+a[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,e+=(i&r|~i&n)+a[7]-45705983|0,e=(e<<22|e>>>10)+i|0,n+=(e&i|~e&r)+a[8]+1770035416|0,n=(n<<7|n>>>25)+e|0,r+=(n&e|~n&i)+a[9]-1958414417|0,r=(r<<12|r>>>20)+n|0,i+=(r&n|~r&e)+a[10]-42063|0,i=(i<<17|i>>>15)+r|0,e+=(i&r|~i&n)+a[11]-1990404162|0,e=(e<<22|e>>>10)+i|0,n+=(e&i|~e&r)+a[12]+1804603682|0,n=(n<<7|n>>>25)+e|0,r+=(n&e|~n&i)+a[13]-40341101|0,r=(r<<12|r>>>20)+n|0,i+=(r&n|~r&e)+a[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,e+=(i&r|~i&n)+a[15]+1236535329|0,e=(e<<22|e>>>10)+i|0,n+=(e&r|i&~r)+a[1]-165796510|0,n=(n<<5|n>>>27)+e|0,r+=(n&i|e&~i)+a[6]-1069501632|0,r=(r<<9|r>>>23)+n|0,i+=(r&e|n&~e)+a[11]+643717713|0,i=(i<<14|i>>>18)+r|0,e+=(i&n|r&~n)+a[0]-373897302|0,e=(e<<20|e>>>12)+i|0,n+=(e&r|i&~r)+a[5]-701558691|0,n=(n<<5|n>>>27)+e|0,r+=(n&i|e&~i)+a[10]+38016083|0,r=(r<<9|r>>>23)+n|0,i+=(r&e|n&~e)+a[15]-660478335|0,i=(i<<14|i>>>18)+r|0,e+=(i&n|r&~n)+a[4]-405537848|0,e=(e<<20|e>>>12)+i|0,n+=(e&r|i&~r)+a[9]+568446438|0,n=(n<<5|n>>>27)+e|0,r+=(n&i|e&~i)+a[14]-1019803690|0,r=(r<<9|r>>>23)+n|0,i+=(r&e|n&~e)+a[3]-187363961|0,i=(i<<14|i>>>18)+r|0,e+=(i&n|r&~n)+a[8]+1163531501|0,e=(e<<20|e>>>12)+i|0,n+=(e&r|i&~r)+a[13]-1444681467|0,n=(n<<5|n>>>27)+e|0,r+=(n&i|e&~i)+a[2]-51403784|0,r=(r<<9|r>>>23)+n|0,i+=(r&e|n&~e)+a[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,e+=(i&n|r&~n)+a[12]-1926607734|0,e=(e<<20|e>>>12)+i|0,n+=(e^i^r)+a[5]-378558|0,n=(n<<4|n>>>28)+e|0,r+=(n^e^i)+a[8]-2022574463|0,r=(r<<11|r>>>21)+n|0,i+=(r^n^e)+a[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,e+=(i^r^n)+a[14]-35309556|0,e=(e<<23|e>>>9)+i|0,n+=(e^i^r)+a[1]-1530992060|0,n=(n<<4|n>>>28)+e|0,r+=(n^e^i)+a[4]+1272893353|0,r=(r<<11|r>>>21)+n|0,i+=(r^n^e)+a[7]-155497632|0,i=(i<<16|i>>>16)+r|0,e+=(i^r^n)+a[10]-1094730640|0,e=(e<<23|e>>>9)+i|0,n+=(e^i^r)+a[13]+681279174|0,n=(n<<4|n>>>28)+e|0,r+=(n^e^i)+a[0]-358537222|0,r=(r<<11|r>>>21)+n|0,i+=(r^n^e)+a[3]-722521979|0,i=(i<<16|i>>>16)+r|0,e+=(i^r^n)+a[6]+76029189|0,e=(e<<23|e>>>9)+i|0,n+=(e^i^r)+a[9]-640364487|0,n=(n<<4|n>>>28)+e|0,r+=(n^e^i)+a[12]-421815835|0,r=(r<<11|r>>>21)+n|0,i+=(r^n^e)+a[15]+530742520|0,i=(i<<16|i>>>16)+r|0,e+=(i^r^n)+a[2]-995338651|0,e=(e<<23|e>>>9)+i|0,n+=(i^(e|~r))+a[0]-198630844|0,n=(n<<6|n>>>26)+e|0,r+=(e^(n|~i))+a[7]+1126891415|0,r=(r<<10|r>>>22)+n|0,i+=(n^(r|~e))+a[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,e+=(r^(i|~n))+a[5]-57434055|0,e=(e<<21|e>>>11)+i|0,n+=(i^(e|~r))+a[12]+1700485571|0,n=(n<<6|n>>>26)+e|0,r+=(e^(n|~i))+a[3]-1894986606|0,r=(r<<10|r>>>22)+n|0,i+=(n^(r|~e))+a[10]-1051523|0,i=(i<<15|i>>>17)+r|0,e+=(r^(i|~n))+a[1]-2054922799|0,e=(e<<21|e>>>11)+i|0,n+=(i^(e|~r))+a[8]+1873313359|0,n=(n<<6|n>>>26)+e|0,r+=(e^(n|~i))+a[15]-30611744|0,r=(r<<10|r>>>22)+n|0,i+=(n^(r|~e))+a[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,e+=(r^(i|~n))+a[13]+1309151649|0,e=(e<<21|e>>>11)+i|0,n+=(i^(e|~r))+a[4]-145523070|0,n=(n<<6|n>>>26)+e|0,r+=(e^(n|~i))+a[11]-1120210379|0,r=(r<<10|r>>>22)+n|0,i+=(n^(r|~e))+a[2]+718787259|0,i=(i<<15|i>>>17)+r|0,e+=(r^(i|~n))+a[9]-343485551|0,e=(e<<21|e>>>11)+i|0,l[0]=n+l[0]|0,l[1]=e+l[1]|0,l[2]=i+l[2]|0,l[3]=r+l[3]|0}function d(l){var a=[],n;for(n=0;n<64;n+=4)a[n>>2]=l.charCodeAt(n)+(l.charCodeAt(n+1)<<8)+(l.charCodeAt(n+2)<<16)+(l.charCodeAt(n+3)<<24);return a}function h(l){var a=[],n;for(n=0;n<64;n+=4)a[n>>2]=l[n]+(l[n+1]<<8)+(l[n+2]<<16)+(l[n+3]<<24);return a}function y(l){var a=l.length,n=[1732584193,-271733879,-1732584194,271733878],e,i,r,A,L,P;for(e=64;e<=a;e+=64)c(n,d(l.substring(e-64,e)));for(l=l.substring(e-64),i=l.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)r[e>>2]|=l.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(c(n,r),e=0;e<16;e+=1)r[e]=0;return A=a*8,A=A.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(A[2],16),P=parseInt(A[1],16)||0,r[14]=L,r[15]=P,c(n,r),n}function m(l){var a=l.length,n=[1732584193,-271733879,-1732584194,271733878],e,i,r,A,L,P;for(e=64;e<=a;e+=64)c(n,h(l.subarray(e-64,e)));for(l=e-64<a?l.subarray(e-64):new Uint8Array(0),i=l.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)r[e>>2]|=l[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(c(n,r),e=0;e<16;e+=1)r[e]=0;return A=a*8,A=A.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(A[2],16),P=parseInt(A[1],16)||0,r[14]=L,r[15]=P,c(n,r),n}function _(l){var a="",n;for(n=0;n<4;n+=1)a+=u[l>>n*8+4&15]+u[l>>n*8&15];return a}function g(l){var a;for(a=0;a<l.length;a+=1)l[a]=_(l[a]);return l.join("")}g(y("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function l(a,n){return a=a|0||0,a<0?Math.max(a+n,0):Math.min(a,n)}ArrayBuffer.prototype.slice=function(a,n){var e=this.byteLength,i=l(a,e),r=e,A,L,P,j;return n!==s&&(r=l(n,e)),i>r?new ArrayBuffer(0):(A=r-i,L=new ArrayBuffer(A),P=new Uint8Array(L),j=new Uint8Array(this,i,A),P.set(j),L)}})();function b(l){return/[\u0080-\uFFFF]/.test(l)&&(l=unescape(encodeURIComponent(l))),l}function T(l,a){var n=l.length,e=new ArrayBuffer(n),i=new Uint8Array(e),r;for(r=0;r<n;r+=1)i[r]=l.charCodeAt(r);return a?i:e}function w(l){return String.fromCharCode.apply(null,new Uint8Array(l))}function v(l,a,n){var e=new Uint8Array(l.byteLength+a.byteLength);return e.set(new Uint8Array(l)),e.set(new Uint8Array(a),l.byteLength),e}function E(l){var a=[],n=l.length,e;for(e=0;e<n-1;e+=2)a.push(parseInt(l.substr(e,2),16));return String.fromCharCode.apply(String,a)}function p(){this.reset()}return p.prototype.append=function(l){return this.appendBinary(b(l)),this},p.prototype.appendBinary=function(l){this._buff+=l,this._length+=l.length;var a=this._buff.length,n;for(n=64;n<=a;n+=64)c(this._hash,d(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},p.prototype.end=function(l){var a=this._buff,n=a.length,e,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r;for(e=0;e<n;e+=1)i[e>>2]|=a.charCodeAt(e)<<(e%4<<3);return this._finish(i,n),r=g(this._hash),l&&(r=E(r)),this.reset(),r},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(l){return this._buff=l.buff,this._length=l.length,this._hash=l.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(l,a){var n=a,e,i,r;if(l[n>>2]|=128<<(n%4<<3),n>55)for(c(this._hash,l),n=0;n<16;n+=1)l[n]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(e[2],16),r=parseInt(e[1],16)||0,l[14]=i,l[15]=r,c(this._hash,l)},p.hash=function(l,a){return p.hashBinary(b(l),a)},p.hashBinary=function(l,a){var n=y(l),e=g(n);return a?E(e):e},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(l){var a=v(this._buff.buffer,l),n=a.length,e;for(this._length+=l.byteLength,e=64;e<=n;e+=64)c(this._hash,h(a.subarray(e-64,e)));return this._buff=e-64<n?new Uint8Array(a.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(l){var a=this._buff,n=a.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,r;for(i=0;i<n;i+=1)e[i>>2]|=a[i]<<(i%4<<3);return this._finish(e,n),r=g(this._hash),l&&(r=E(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var l=p.prototype.getState.call(this);return l.buff=w(l.buff),l},p.ArrayBuffer.prototype.setState=function(l){return l.buff=T(l.buff,!0),p.prototype.setState.call(this,l)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(l,a){var n=m(new Uint8Array(l)),e=g(n);return a?E(e):e},p})})(z)),z.exports}var Le=Ee();const Pe=Se(Le),te={secondary:{label:"Secondary",isTertiary:!1},"primary & secondary":{label:"Primary & Secondary",isTertiary:!1},k12:{label:"Primary & Secondary",isTertiary:!1},primary:{label:"Primary",isTertiary:!1},special:{label:"Special",isTertiary:!1},university:{label:"University",isTertiary:!0},middle:{label:"Middle",isTertiary:!1},"fe college":{label:"FE College",isTertiary:!0},"high school":{label:"Secondary",isTertiary:!1},elementary:{label:"Primary",isTertiary:!1},"middle school":{label:"Middle",isTertiary:!1},tafe:{label:"TAFE",isTertiary:!0},college:{label:"FE College",isTertiary:!0},"sixth form college":{label:"Sixth Form College",isTertiary:!0}},je={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},Ne={hashedEmail(t){const o=t.trim().toLowerCase();return Pe.hash(o)},removeEmptyKeys(t){if(Array.isArray(t))return t;const o={...t};return Object.entries(o).filter(([,s])=>!(s==null||typeof s=="string"&&!s.length)).reduce((s,[u,c])=>({...s,[u]:c===Object(c)?Ne.removeEmptyKeys(c):c}),{})},EVENT_TOPIC:"Free Trial Request",BDM_EVENT_TOPIC:"Requested free trial (Streamable Customer)",SOURCE:"cv_product_trial_requested",BDM_SOURCE:"cv_product_bdm_trial_requested",TRIAL_UPGRADE_SOURCE:"cv_product_trial_upgrade_requested",getSchoolType(t){var u;if(!t)return;const o=t.toLowerCase();if(["unknown","other"].includes(o))return;const s=(u=te[o])==null?void 0:u.label;return s||t},isTertiarySchool(t){var o;return((o=te[t==null?void 0:t.toLowerCase()])==null?void 0:o.isTertiary)||!1},parseProvince(t){return t.length?je[t.toLowerCase()]||t:""}},vt={checkEmail(t){return{url:"/api/braze/check-email",key:`braze:check:email:${t}`,type:M.POST,data:{email:t}}},prospectLookups(t){return{url:`{gateway}/v1/prospects/${t}/lookups`,key:`prospect:lookup:${t}`}}};function xt(){return{createOrUpdateProfile:_e(ve.ProfileApiClient).createOrUpdate}}var Oe=(t=>(t.LivestreamBooking="sl_product_livestream",t.ContactUs="sl_marketing_form_contact_us",t))(Oe||{}),Ue=(t=>(t.ContactUs="Contact us",t.LivestreamBooking="Livestream booking",t))(Ue||{});function Re(t,o){return{...t,custom:{...t==null?void 0:t.custom,topic:o.topic,source:o.source},event:{...t==null?void 0:t.event,eventTopic:o.topic}}}function $e(){const t=xe(Ie.BrazeClient);function o({user:s,additionalData:u,source:c,eventType:d,topic:h,productType:y,callback:m}){const _=Re(s,{source:c,topic:h});t.setUserInit(_),t.logFormEvent({eventType:d,additionalData:u,callback:m,internalOptions:{subscriptionGroups:y}})}return{client:t,logFormSubmission:o}}function It(){return $e()}const Be=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal","Business Manager"],De=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],he=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],Fe=["Teacher","Librarian / Teacher Librarian","Curriculum Leader","e-Learning Coordinator","IT","Head of Department","Head of Faculty","Learning Support","Learning Assistant","Deputy Principal","Assistant Principal","Principal"],Ke=["Teacher","Librarian / Teacher Librarian","Educational Assistant (EA)","Learning Support Teacher / Resource Teacher","Department Head / Manager","Curriculum Coordinator / Consultant","School Counsellor / Guidance Counsellor","Vice-Principal","Principal","Superintendent","Director of Education"],fe=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],Me=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],ze={[U.AU]:Be,[U.NZ]:Fe,[U.UK]:De,[U.US]:he,[U.CA]:Ke},Ge={[U.AU]:fe,[U.UK]:Me};function ke(t){var s;const o=(s=t.countryCode)==null?void 0:s.toLowerCase();return t.isTertiary?Ge[o]||fe:ze[o]||he}const D="OTHER";function ne(t,o){return o.includes(t)?t:t?D:""}function Tt(t){const{error:o,onChange:s,countryCode:u,isTertiary:c}=t,d=ke({countryCode:u,isTertiary:c}),h=ne(t.initialValue,d),[y,m]=S.useState(h),[_,g]=S.useState(h===D?t.initialValue:"");S.useEffect(()=>{m(ne(t.initialValue,d))},[t.initialValue]);function b(v){m(v.target.value),g(""),s(v.target.value===D?"":v.target.value)}function T(v){g(v.target.value),s(v.target.value)}const w=y===D;return f.jsxs("div",{className:"form-group",children:[f.jsxs("label",{htmlFor:t.id,className:t.labelClassName,children:["Job title",t.required&&f.jsx("span",{className:"text-danger",children:"*"})]}),f.jsxs("div",{className:"mb-2",children:[f.jsxs("select",{id:t.id,name:t.id,className:`form-select ${t.size==="lg"?"form-select-lg":""} ${y.length?"text-dark":"text-secondary"} ${!!o&&"is-invalid"}`,value:y,placeholder:"Role",onChange:b,children:[f.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:t.placeholder?t.placeholder:f.jsx(f.Fragment,{children:"What do you do?"})}),d.map((v,E)=>f.jsx("option",{value:v,className:"text-dark",children:v},E)),f.jsx("option",{value:D,className:"text-dark",children:"Other"})]}),!!o&&!w&&f.jsx(X,{name:t.id,children:o})]}),w&&f.jsxs("div",{className:"mb-3",children:[f.jsx("input",{className:`form-control ${t.size==="lg"?"form-select-lg":""} ${!!o&&"is-invalid"}`,type:"text",value:_,placeholder:"What do you do?",autoFocus:!0,onChange:T}),!!o&&f.jsx(X,{name:t.id,children:o})]})]})}function He(){return f.jsx("svg",{viewBox:"0 0 24 24",children:f.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const qe="_clearInput_1l19p_1",Je="_clearableInput_1l19p_8",re={clearInput:qe,clearableInput:Je},ge=S.forwardRef((t,o)=>{const{onClickClear:s,showClearButton:u,clearClassName:c,...d}=t;return f.jsxs("div",{className:"position-relative",children:[f.jsx("input",{...d,ref:o,className:`${t.className} ${re.clearableInput}`}),(!!t.value||u)&&f.jsx("span",{className:`${re.clearInput} position-absolute cursor-pointer text-secondary ${c||""}`,role:"button",onClick:s,onKeyDown:h=>h.key==="Enter"&&s(),tabIndex:0,children:f.jsx("div",{className:"d-inline-block svg-container md",children:f.jsx(He,{})})})]})});var Ve=function t(o,s){if(o===s)return!0;if(o&&s&&typeof o=="object"&&typeof s=="object"){if(o.constructor!==s.constructor)return!1;var u,c,d;if(Array.isArray(o)){if(u=o.length,u!=s.length)return!1;for(c=u;c--!==0;)if(!t(o[c],s[c]))return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===s.toString();if(d=Object.keys(o),u=d.length,u!==Object.keys(s).length)return!1;for(c=u;c--!==0;)if(!Object.prototype.hasOwnProperty.call(s,d[c]))return!1;for(c=u;c--!==0;){var h=d[c];if(!t(o[h],s[h]))return!1}return!0}return o!==o&&s!==s};const ie="__googleMapsScriptId";var B;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(B||(B={}));class R{constructor({apiKey:o,authReferrerPolicy:s,channel:u,client:c,id:d=ie,language:h,libraries:y=[],mapIds:m,nonce:_,region:g,retries:b=3,url:T="https://maps.googleapis.com/maps/api/js",version:w}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=o,this.authReferrerPolicy=s,this.channel=u,this.client=c,this.id=d||ie,this.language=h,this.libraries=y,this.mapIds=m,this.nonce=_,this.region=g,this.retries=b,this.url=T,this.version=w,R.instance){if(!Ve(this.options,R.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(R.instance.options)}`);return R.instance}R.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?B.FAILURE:this.done?B.SUCCESS:this.loading?B.LOADING:B.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let o=this.url;return o+=`?callback=${this.CALLBACK}`,this.apiKey&&(o+=`&key=${this.apiKey}`),this.channel&&(o+=`&channel=${this.channel}`),this.client&&(o+=`&client=${this.client}`),this.libraries.length>0&&(o+=`&libraries=${this.libraries.join(",")}`),this.language&&(o+=`&language=${this.language}`),this.region&&(o+=`&region=${this.region}`),this.version&&(o+=`&v=${this.version}`),this.mapIds&&(o+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(o+=`&auth_referrer_policy=${this.authReferrerPolicy}`),o}deleteScript(){const o=document.getElementById(this.id);o&&o.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((o,s)=>{this.loadCallback(u=>{u?s(u.error):o(window.google)})})}loadCallback(o){this.callbacks.push(o),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const o=this.createUrl(),s=document.createElement("script");s.id=this.id,s.type="text/javascript",s.src=o,s.onerror=this.loadErrorCallback.bind(this),s.defer=!0,s.async=!0,this.nonce&&(s.nonce=this.nonce),document.head.appendChild(s)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(o){if(this.errors.push(o),this.errors.length<=this.retries){const s=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${s} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},s)}else this.onerrorEvent=o,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(o=>{o(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function oe(t){return new R({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function ye(t){const o={apiKey:t.apiKey,libraries:t.libraries||["places"]},[s,u]=S.useState(!1),[c,d]=S.useState(oe(o));S.useEffect(()=>{h()},[]);function h(y,m){if(!c){d(oe(o));return}c.loadCallback(_=>{if(_){u(!1),m&&m(_);return}u(!0),y&&y()})}return{loader:c,scriptLoaded:s,onGoogleApiReady:h}}function pe(t){const{scriptLoaded:o}=ye({apiKey:t.googleApiKey}),[s,u]=S.useState();return S.useEffect(()=>{o&&u(new google.maps.places.AutocompleteService)},[o]),s}const ae="us",me="country:placeholder:text";function Ye(t){const o=le.getLocalizedLocalityPlaceholderText(t==null?void 0:t.countryCode);if(o)return o;const s=ue.cacheGet(`${me}:${t==null?void 0:t.countryCode}`);if(s)return s}function Ze(){return String.fromCharCode(96+ce.getRandomInt(26))}function We({apiKey:t,geoLocation:o,makeRequest:s=!0,template:u="E.g. [placeholder]",templateKey:c="[placeholder]"}){const d=pe({googleApiKey:t}),[h,y]=S.useState(()=>Ye(o));S.useEffect(()=>{if(h||!d||!s)return;const g=(o==null?void 0:o.countryCode)||ae,T={input:Ze(),types:["(cities)"],region:g,componentRestrictions:{country:g}};d.getPlacePredictions(T,(w,v)=>_(w,v,g))},[h,d,o,s]);function m(g,b){ue.cacheSet(`${me}:${b}`,g,86400),y(g)}function _(g,b,T){if(b!==google.maps.places.PlacesServiceStatus.OK||!g){m(le.getLocalizedLocalityPlaceholderText(ae),T);return}const w=ce.getRandomInt(g.length),v=g[w].description;m(u.replace(c,v),T)}return h}function be(t){const[o,s]=S.useState(0),u=S.useRef(null),[c,d]=S.useState(!!t.hideInitially);function h(){var g;u.current&&((g=u.current.children[o-1])==null||g.scrollIntoView({block:"center"}))}function y(g){if(t.hideOnEnter&&d(!1),g.code==="ArrowDown"){g.stopPropagation(),g.preventDefault();let b=o+1;b>t.itemCount&&(b=1),s(b),h();return}if(g.code==="ArrowUp"){g.stopPropagation(),g.preventDefault();let b=o-1;b<=0&&(b=t.itemCount),s(b),h();return}if(g.code==="Enter"&&o>0){g.stopPropagation(),g.preventDefault(),t.onSelected(o-1),t.hideOnEnter&&d(!0);return}s(0)}function m(){t.hideOnBlur&&d(!1)}function _(){t.hideOnBlur&&d(!0)}return{selectedIndex:o,onKeyDown:y,containerRef:u,hide:c,onFocus:m,onBlur:_}}const Ce={getPlaceDetails(t){let o,s,u,c;const d=t.formatted_address;for(const h of t.address_components)for(const y of h.types)y==="locality"&&(o=h.short_name),y==="administrative_area_level_1"&&(s=h.short_name),y==="postal_code"&&(c=h.short_name),y==="country"&&(u=h.short_name);return{locality:d,country:u,postalCode:c,city:o,province:s}}},Qe={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function Xe(t){const[o,s]=S.useState({}),{onGoogleApiReady:u}=ye(t);function c(){u(()=>{window.navigator.geolocation.getCurrentPosition(d,h)})}function d(y){const{latitude:m,longitude:_}=y.coords,g=new google.maps.LatLng(m,_);new google.maps.Geocoder().geocode({location:g},(T,w)=>{if(w!==google.maps.GeocoderStatus.OK)return;const v=T.find(p=>p.types.includes("locality")||p.types.includes("administrative_area_level_2")),E=Ce.getPlaceDetails(v);s({...E,longitude:_,latitude:m})})}function h(y){Qe[y.code],t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:c}}function et({search:t,makePredicition:o,geoLocation:s,apiKey:u}){const c=pe({googleApiKey:u}),d=de(t,300),[h,y]=S.useState();S.useEffect(()=>{if(!c)return;if((d==null?void 0:d.length)===0||!o){y(void 0);return}const g=(s==null?void 0:s.countryCode)||"us";c.getPlacePredictions({input:d,componentRestrictions:s!=null&&s.isFallback?void 0:{country:g},region:g,types:["locality","sublocality","postal_code"]},m)},[d,o,c]);function m(g,b){if(b!==google.maps.places.PlacesServiceStatus.OK||!g){y(void 0);return}y(g)}function _(g,b,T){new google.maps.places.PlacesService(b.current).getDetails({placeId:g.place_id,fields:["geometry","address_components","formatted_address"],region:s.countryCode},(v,E)=>{if(E!==google.maps.places.PlacesServiceStatus.OK)return;const p=v.geometry.location.lng(),l=v.geometry.location.lat(),{locality:a,country:n,postalCode:e,city:i,province:r}=Ce.getPlaceDetails(v);T({longitude:p,latitude:l,locality:a,country:n,city:i,postalCode:e,province:r})})}return{localityPredicitions:h,getPlaceInfo:_}}function se(){return f.jsx("svg",{viewBox:"0 0 24 24",children:f.jsx("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"})})}const tt="_baseText_5xxp4_1",nt="_inputFocused_5xxp4_4",rt="_dropdown_5xxp4_7",it="_suggestionContainer_5xxp4_10",ot="_suggestionItem_5xxp4_20",at="_suggestionLoading_5xxp4_20",st="_noSuggestion_5xxp4_20",lt="_large_5xxp4_24",ct="_input_5xxp4_4",ut="_selected_5xxp4_42",dt="_useMyLocation_5xxp4_46",I={baseText:tt,inputFocused:nt,dropdown:rt,suggestionContainer:it,suggestionItem:ot,suggestionLoading:at,noSuggestion:st,large:lt,input:ct,selected:ut,useMyLocation:dt};function ht(t){const{predictions:o,getPlaceInfo:s,selectedIndex:u}=t;return f.jsx(f.Fragment,{children:o.map((c,d)=>f.jsx(H,{className:`${I.suggestionItem} ${u-1===d?I.selected:""}`,onKeyDown:h=>h.key==="Enter"&&s(c),onMouseDown:()=>s(c),onClick:()=>s(c),children:c.description},c.place_id))})}function At(t){var q,J,V,Y,Z;const o=S.useRef(null),[s,u]=S.useState(((q=t.data)==null?void 0:q.schoolLocality)||""),[c,d]=S.useState(!1),h=We({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),{localityPredicitions:y,getPlaceInfo:m}=et({search:s,makePredicition:c,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),{placeDetails:_,onClickGetCurrentLocation:g}=Xe({apiKey:t.googleMapsApiKey,onPositionError:e}),b=window.navigator.geolocation?1:0,{selectedIndex:T,onKeyDown:w,containerRef:v,hide:E,onBlur:p,onFocus:l}=be({onSelected:A,itemCount:((y==null?void 0:y.length)??0)+b,hideOnBlur:t.hideOnBlur}),[a,n]=S.useState();S.useEffect(()=>{L(_)},[_]);function e(C){d(!0),n(C)}function i(C){var O,W,Q;a&&n(void 0),c||d(!0),((O=t.data)!=null&&O.longitude||(W=t.data)!=null&&W.latitude||(Q=t.data)!=null&&Q.schoolLocality)&&t.clearData(),u(C)}function r(){i(""),o.current.focus()}function A(C){if(!y)return;if(C===y.length){j();return}const O=y[C];O&&P(O)}function L(C){t.setData({schoolLocality:C.locality,country:C.country,province:C.province,schoolPostCode:C.postalCode,longitude:C.longitude,latitude:C.latitude}),C.locality&&u(C.locality)}function P(C){c&&d(!1),m(C,o,L)}function j(C){var O;C==null||C.preventDefault(),d(!1),g(),(O=t.logUserAction)==null||O.call(t,{},{actionType:Ae.Click,descriptor:Te.UseMyLocation})}function F(){let C="form-control";return t.size==="lg"&&(C+=" form-control-lg"),!$||E?`${C} ${I.input}`:`${C} ${I.inputFocused}`}const $=(y==null?void 0:y.length)&&!((V=(J=t.data)==null?void 0:J.schoolLocality)!=null&&V.length),x=window.navigator.geolocation&&!((Z=(Y=t.data)==null?void 0:Y.schoolLocality)!=null&&Z.length),N=t.labelClassName||`d-block text-center mb-3 fw-normal ${I.baseText}`;let K="form-group position-relative";return t.size==="lg"&&(K+=` ${I.large}`),f.jsxs("div",{className:K,children:[f.jsxs("label",{className:N,htmlFor:"locality-input",children:["ZIP code or city",t.required&&f.jsx("span",{className:"text-danger",children:"*"})]}),f.jsx(ge,{type:"text",value:s,onChange:C=>i(C.currentTarget.value),id:"locality-input",className:F(),ref:o,autoComplete:"off",placeholder:h||"Loading...",disabled:t.disabled||!h,autoFocus:t==null?void 0:t.autoFocus,onClickClear:r,onKeyDown:w,onFocus:l,onBlur:p}),f.jsxs("div",{className:`position-absolute z-1 w-100 ${I.dropdown} ${E?"d-none":""}`,children:[!!$&&f.jsxs("div",{className:I.suggestionContainer,ref:v,children:[f.jsx(ht,{predictions:y,getPlaceInfo:P,selectedIndex:T}),window.navigator.geolocation&&t.useGeoLocationApi&&f.jsx(H,{className:`${I.suggestionItem} px-1 ${T-1===y.length?I.selected:""}`,onClick:j,children:f.jsxs("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1",children:[f.jsx(se,{}),"Use my current location"]})})]}),x&&!$&&t.useGeoLocationApi&&f.jsx("div",{className:`d-flex ${I.useMyLocation}`,children:f.jsxs("button",{onClick:j,className:"btn btn-link info-link bg-white btn-with-icon",children:[f.jsx(se,{}),"Use my current location"]})}),!!a&&f.jsx("div",{className:"text-danger p-2",children:a})]})]})}class ft extends Error{constructor(o,s="Error"){super(s),this.body=o}}const gt={prepareQuery(t,o){let s=t;return Object.keys(o).forEach((u,c)=>{o[u]&&(c===0?s+="?":s+="&",s+=`${u}=${encodeURIComponent(o[u])}`)}),s}};function G(t){let o={method:M.GET,headers:{"Content-type":"application/json"}};t.method&&(o={...o,method:t.method}),t.init&&(o={...o,...t.init});let s=t.url;return o.method===M.GET&&t.data?s=gt.prepareQuery(s,t.data):t.data&&(o={...o,body:JSON.stringify(t.data)}),{init:o,url:s}}const k={async asyncFetch(t){const o=G(t),s=await fetch(o.url,o.init);if(!s.ok){const u=await s.json();throw new ft(u)}if(s.status!==204)return await s.json()},async asyncFetchPlain(t){const o=G(t),s=await fetch(o.url,o.init);if(s.ok)return await s.text()},fetch(t){const o=G(t);return fetch(o.url,o.init).then(s=>{if(s.status!==204)return s.json()}).then(s=>(t.success&&t.success(s),s)).catch(s=>(t.error&&t.error(),s)).finally(()=>{t.always&&t.always()})}},yt={search(t,o,s,u,c){const d={longitude:o.longitude,latitude:o.latitude};o.query&&(d.query=o.query),k.fetch({url:t,data:d,success:s,error:u,always:c})},async create(t,o){return k.asyncFetch({url:t.createProspect,method:M.POST,data:o})},getLookups(t,o){return k.asyncFetch({url:t.prospectLookups(o)})}};function pt(t){return t.toLowerCase().split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}function mt(t){const o=[];return t.city&&o.push(pt(t.city)),t.province&&o.push(t.province),t.postCode&&o.push(t.postCode),o.join(" ")}function bt(t){const{filteredSchoolsList:o,getSchoolName:s,onSchoolSuggestionClick:u,selectedIndex:c}=t;return f.jsx(f.Fragment,{children:o.map((d,h)=>f.jsxs(H,{className:`${I.suggestionItem} ${c-1===h?I.selected:""}`,onKeyDown:y=>y.key==="Enter"&&u(d),onMouseDown:()=>u(d),onClick:()=>u(d),children:[s(d)," ",f.jsx("br",{}),f.jsx("small",{className:"text-secondary",children:mt(d)})]},d.id))})}function Ct(t){return f.jsx("div",{className:`info-link ${I.suggestionItem} ${I.noSuggestion} ${t.selected?I.selected:""}`,onKeyDown:o=>o.key==="Enter"&&t.handleNoSuggestion(),onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion,children:"Can't find your school?"})}function wt(t){var $;const o=S.useRef(null),[s,u]=S.useState(!0),[c,d]=S.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),[h,y]=S.useState(),m=de(c,250),{selectedIndex:_,onKeyDown:g,containerRef:b,hide:T,onBlur:w,onFocus:v}=be({onSelected:E,itemCount:((h==null?void 0:h.length)??0)+1,hideOnBlur:t.hideOnBlur});function E(x){if(!h&&!x)return;if(x===h.length){t.onClickNoSuggestions(c);return}const N=h[x];N&&A(N)}const p=!!(($=t.data)!=null&&$.prospectId),l=s&&!p,a=!s&&!p&&(h==null?void 0:h.length)<5,n=(h==null?void 0:h.length)&&!p;S.useEffect(()=>{if(!p){if(!m.length){r();return}if(!p&&m.length>1&&m===c){r(m);return}}},[m,p]);function e(x){(t.data.schoolName||t.data.prospectId)&&t.clearData(),x!==c&&d(x)}function i(){e(""),o.current.focus()}function r(x){if(!t.data.latitude&&!t.data.longitude){u(!1);return}u(!0);const N={latitude:t.data.latitude,longitude:t.data.longitude};x&&x.length&&(N.query=x),yt.search(t.searchUrl,N,K=>y(K),null,()=>u(!1))}function A(x){d(L(x)),t.setData({prospectId:x.id,schoolName:x.name,schoolPostCode:x.postCode,schoolType:x.prospectType,province:x.province,city:x.city,country:x.countryCode})}function L(x){return x.name}const P=(n||l||a)&&!t.disabled&&!T;let j=`form-control ${P?I.inputFocused:I.input}`,F="form-group position-relative";return t.size==="lg"&&(j+=" form-control-lg",F+=` ${I.large}`),f.jsxs("div",{className:F,children:[f.jsxs("label",{className:t.labelClassName,htmlFor:"school-input",children:["School",t.required&&f.jsx("span",{className:"text-danger",children:"*"})]}),f.jsx(ge,{id:"school-input",value:c,onChange:x=>e(x.currentTarget.value),ref:o,className:j,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:i,onKeyDown:g,onFocus:v,onBlur:w}),f.jsx("div",{className:`position-absolute z-1 w-100 ${I.dropdown} ${T?"d-none":""}`,children:f.jsxs("div",{className:`${I.suggestionContainer} ${P?"":"d-none"}`,ref:b,children:[n?f.jsx(bt,{filteredSchoolsList:h,onSchoolSuggestionClick:A,getSchoolName:L,selectedIndex:_}):l&&f.jsx("div",{className:`${I.suggestionLoading} py-4 d-flex justify-content-center`,children:f.jsx(we,{animation:"border"})}),!l&&a&&f.jsx(Ct,{selected:_===h.length+1,handleNoSuggestion:()=>{t.onClickNoSuggestions(c)}})]})})]})}export{vt as B,Tt as J,At as S,wt as a,xt as b,Ne as c,Ue as d,Oe as e,It as u};
2
+ //# sourceMappingURL=CvuMDF0y.chunk.js.map