@clickview/exchange 0.57.0 → 0.58.0-rc.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 (199) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{CczLEc2p.chunk.css → BBuiH5XR.chunk.css} +1 -1
  3. package/dist/en.json +1 -1
  4. package/dist/scripts/{B1IKzVyn.chunk.js → 59HBVVj3.chunk.js} +2 -2
  5. package/dist/scripts/{B1IKzVyn.chunk.js.map → 59HBVVj3.chunk.js.map} +1 -1
  6. package/dist/scripts/{DmL0FSJr.chunk.js → 77QNnWjW.chunk.js} +2 -2
  7. package/dist/scripts/{DmL0FSJr.chunk.js.map → 77QNnWjW.chunk.js.map} +1 -1
  8. package/dist/scripts/{dlcOoTX2.chunk.js → 97GoF_Eh.chunk.js} +2 -2
  9. package/dist/scripts/{dlcOoTX2.chunk.js.map → 97GoF_Eh.chunk.js.map} +1 -1
  10. package/dist/scripts/{DkVa76dg.chunk.js → A03ti58C.chunk.js} +2 -2
  11. package/dist/scripts/{DkVa76dg.chunk.js.map → A03ti58C.chunk.js.map} +1 -1
  12. package/dist/scripts/{DEFuGMsd.chunk.js → B0qPCCXt.chunk.js} +2 -2
  13. package/dist/scripts/{DEFuGMsd.chunk.js.map → B0qPCCXt.chunk.js.map} +1 -1
  14. package/dist/scripts/{CYuWFG4C.chunk.js → B3P1JDvZ.chunk.js} +2 -2
  15. package/dist/scripts/{CYuWFG4C.chunk.js.map → B3P1JDvZ.chunk.js.map} +1 -1
  16. package/dist/scripts/{BKID_sLP.chunk.js → B3hUKuRr.chunk.js} +2 -2
  17. package/dist/scripts/{BKID_sLP.chunk.js.map → B3hUKuRr.chunk.js.map} +1 -1
  18. package/dist/scripts/{CrYQzjgZ.chunk.js → B7sQixjZ.chunk.js} +2 -2
  19. package/dist/scripts/{CrYQzjgZ.chunk.js.map → B7sQixjZ.chunk.js.map} +1 -1
  20. package/dist/scripts/{CQnwddP2.chunk.js → B9q9og3n.chunk.js} +2 -2
  21. package/dist/scripts/{CQnwddP2.chunk.js.map → B9q9og3n.chunk.js.map} +1 -1
  22. package/dist/scripts/{Doc0JWTn.chunk.js → BD8uJxiB.chunk.js} +2 -2
  23. package/dist/scripts/{Doc0JWTn.chunk.js.map → BD8uJxiB.chunk.js.map} +1 -1
  24. package/dist/scripts/{C8Ld-38h.chunk.js → BJaYD8dc.chunk.js} +2 -2
  25. package/dist/scripts/{C8Ld-38h.chunk.js.map → BJaYD8dc.chunk.js.map} +1 -1
  26. package/dist/scripts/{DfLXqnWC.chunk.js → BMTawQoz.chunk.js} +2 -2
  27. package/dist/scripts/{DfLXqnWC.chunk.js.map → BMTawQoz.chunk.js.map} +1 -1
  28. package/dist/scripts/{BWu0k43d.chunk.js → BP-61ONz.chunk.js} +2 -2
  29. package/dist/scripts/{BWu0k43d.chunk.js.map → BP-61ONz.chunk.js.map} +1 -1
  30. package/dist/scripts/{COMMZ5NT.chunk.js → BQiCELUH.chunk.js} +2 -2
  31. package/dist/scripts/{COMMZ5NT.chunk.js.map → BQiCELUH.chunk.js.map} +1 -1
  32. package/dist/scripts/{Dj2iNM2-.chunk.js → BQz8nP4M.chunk.js} +2 -2
  33. package/dist/scripts/{Dj2iNM2-.chunk.js.map → BQz8nP4M.chunk.js.map} +1 -1
  34. package/dist/scripts/{p9Hw1u0F.chunk.js → BSZHRB-3.chunk.js} +2 -2
  35. package/dist/scripts/{p9Hw1u0F.chunk.js.map → BSZHRB-3.chunk.js.map} +1 -1
  36. package/dist/scripts/{Ci21j_NU.chunk.js → BTJwiZTv.chunk.js} +2 -2
  37. package/dist/scripts/{Ci21j_NU.chunk.js.map → BTJwiZTv.chunk.js.map} +1 -1
  38. package/dist/scripts/{CqWuZzIu.chunk.js → BVbJxgV8.chunk.js} +2 -2
  39. package/dist/scripts/{CqWuZzIu.chunk.js.map → BVbJxgV8.chunk.js.map} +1 -1
  40. package/dist/scripts/{aImHyMo0.chunk.js → BX8fMfGC.chunk.js} +2 -2
  41. package/dist/scripts/{aImHyMo0.chunk.js.map → BX8fMfGC.chunk.js.map} +1 -1
  42. package/dist/scripts/{D91xJv6J.chunk.js → BaNAbBYa.chunk.js} +2 -2
  43. package/dist/scripts/{D91xJv6J.chunk.js.map → BaNAbBYa.chunk.js.map} +1 -1
  44. package/dist/scripts/{BImNArot.chunk.js → BazXwFtM.chunk.js} +2 -2
  45. package/dist/scripts/{BImNArot.chunk.js.map → BazXwFtM.chunk.js.map} +1 -1
  46. package/dist/scripts/{e9ZqHdMv.chunk.js → BbGFMokw.chunk.js} +2 -2
  47. package/dist/scripts/{e9ZqHdMv.chunk.js.map → BbGFMokw.chunk.js.map} +1 -1
  48. package/dist/scripts/BfA6QK2M.chunk.js +2 -0
  49. package/dist/scripts/{BnkjQdg-.chunk.js.map → BfA6QK2M.chunk.js.map} +1 -1
  50. package/dist/scripts/{DbB0S2ZQ.chunk.js → BfAoEeOL.chunk.js} +2 -2
  51. package/dist/scripts/{DbB0S2ZQ.chunk.js.map → BfAoEeOL.chunk.js.map} +1 -1
  52. package/dist/scripts/{0Rgjdcqz.chunk.js → BiAKqJdD.chunk.js} +2 -2
  53. package/dist/scripts/{0Rgjdcqz.chunk.js.map → BiAKqJdD.chunk.js.map} +1 -1
  54. package/dist/scripts/{CssHbHjG.chunk.js → BmU_YUbl.chunk.js} +2 -2
  55. package/dist/scripts/{CssHbHjG.chunk.js.map → BmU_YUbl.chunk.js.map} +1 -1
  56. package/dist/scripts/{SmYpiCQA.chunk.js → BuSLCxEs.chunk.js} +2 -2
  57. package/dist/scripts/{SmYpiCQA.chunk.js.map → BuSLCxEs.chunk.js.map} +1 -1
  58. package/dist/scripts/{BZp1TuCa.chunk.js → Bvlv6PGR.chunk.js} +2 -2
  59. package/dist/scripts/{BZp1TuCa.chunk.js.map → Bvlv6PGR.chunk.js.map} +1 -1
  60. package/dist/scripts/{BYXBfLyn.chunk.js → BwS3tIqZ.chunk.js} +2 -2
  61. package/dist/scripts/{BYXBfLyn.chunk.js.map → BwS3tIqZ.chunk.js.map} +1 -1
  62. package/dist/scripts/{S6sUSK4X.chunk.js → ByKnIsJG.chunk.js} +2 -2
  63. package/dist/scripts/{S6sUSK4X.chunk.js.map → ByKnIsJG.chunk.js.map} +1 -1
  64. package/dist/scripts/Bz5fsSmV.chunk.js +15 -0
  65. package/dist/scripts/Bz5fsSmV.chunk.js.map +1 -0
  66. package/dist/scripts/{CXmjzxZL.chunk.js → C06GoFsR.chunk.js} +2 -2
  67. package/dist/scripts/{CXmjzxZL.chunk.js.map → C06GoFsR.chunk.js.map} +1 -1
  68. package/dist/scripts/{CYbmYWz6.chunk.js → C3cp4ax7.chunk.js} +2 -2
  69. package/dist/scripts/{CYbmYWz6.chunk.js.map → C3cp4ax7.chunk.js.map} +1 -1
  70. package/dist/scripts/{BHQ-iEoW.chunk.js → C7giBbHJ.chunk.js} +2 -2
  71. package/dist/scripts/{BHQ-iEoW.chunk.js.map → C7giBbHJ.chunk.js.map} +1 -1
  72. package/dist/scripts/{CWAi8BHf.chunk.js → CEXoa-wM.chunk.js} +2 -2
  73. package/dist/scripts/{CWAi8BHf.chunk.js.map → CEXoa-wM.chunk.js.map} +1 -1
  74. package/dist/scripts/{lO5fmjgI.chunk.js → CKbq02SS.chunk.js} +2 -2
  75. package/dist/scripts/{lO5fmjgI.chunk.js.map → CKbq02SS.chunk.js.map} +1 -1
  76. package/dist/scripts/{CxZxk1HQ.chunk.js → CNVerO1q.chunk.js} +2 -2
  77. package/dist/scripts/{CxZxk1HQ.chunk.js.map → CNVerO1q.chunk.js.map} +1 -1
  78. package/dist/scripts/{5jG1qquw.chunk.js → CNat3TfQ.chunk.js} +2 -2
  79. package/dist/scripts/{5jG1qquw.chunk.js.map → CNat3TfQ.chunk.js.map} +1 -1
  80. package/dist/scripts/{D-lhN8Br.chunk.js → CP5MKWC_.chunk.js} +2 -2
  81. package/dist/scripts/{D-lhN8Br.chunk.js.map → CP5MKWC_.chunk.js.map} +1 -1
  82. package/dist/scripts/{CiOp7PM4.chunk.js → CSvE-r6r.chunk.js} +2 -2
  83. package/dist/scripts/{CiOp7PM4.chunk.js.map → CSvE-r6r.chunk.js.map} +1 -1
  84. package/dist/scripts/{BZhnbXlC.chunk.js → CW4iXW5L.chunk.js} +2 -2
  85. package/dist/scripts/{BZhnbXlC.chunk.js.map → CW4iXW5L.chunk.js.map} +1 -1
  86. package/dist/scripts/{-Xvqr6f_.chunk.js → CWdK_7iP.chunk.js} +2 -2
  87. package/dist/scripts/{-Xvqr6f_.chunk.js.map → CWdK_7iP.chunk.js.map} +1 -1
  88. package/dist/scripts/{jFTHf_UL.chunk.js → CWjXnQlc.chunk.js} +2 -2
  89. package/dist/scripts/{jFTHf_UL.chunk.js.map → CWjXnQlc.chunk.js.map} +1 -1
  90. package/dist/scripts/{BwuTkpPz.chunk.js → CXEroOnb.chunk.js} +2 -2
  91. package/dist/scripts/{BwuTkpPz.chunk.js.map → CXEroOnb.chunk.js.map} +1 -1
  92. package/dist/scripts/{DMu9QirA.chunk.js → C_KOP_pH.chunk.js} +2 -2
  93. package/dist/scripts/{DMu9QirA.chunk.js.map → C_KOP_pH.chunk.js.map} +1 -1
  94. package/dist/scripts/CbqPW1QD.chunk.js +2 -0
  95. package/dist/scripts/{COkVtt29.chunk.js.map → CbqPW1QD.chunk.js.map} +1 -1
  96. package/dist/scripts/{BI2RzMBo.chunk.js → CelK9zYh.chunk.js} +2 -2
  97. package/dist/scripts/{BI2RzMBo.chunk.js.map → CelK9zYh.chunk.js.map} +1 -1
  98. package/dist/scripts/{DsAzRbUN.chunk.js → Cj7-nmDw.chunk.js} +2 -2
  99. package/dist/scripts/{DsAzRbUN.chunk.js.map → Cj7-nmDw.chunk.js.map} +1 -1
  100. package/dist/scripts/{CoZqjJhl.chunk.js → CkXDJSIC.chunk.js} +2 -2
  101. package/dist/scripts/{CoZqjJhl.chunk.js.map → CkXDJSIC.chunk.js.map} +1 -1
  102. package/dist/scripts/CmKuC0AJ.chunk.js +2 -0
  103. package/dist/scripts/CmKuC0AJ.chunk.js.map +1 -0
  104. package/dist/scripts/CmQwEhN8.chunk.js +2 -0
  105. package/dist/scripts/{DX5d-qLN.chunk.js.map → CmQwEhN8.chunk.js.map} +1 -1
  106. package/dist/scripts/{CKE8GGKH.chunk.js → CsI_aEby.chunk.js} +2 -2
  107. package/dist/scripts/{CKE8GGKH.chunk.js.map → CsI_aEby.chunk.js.map} +1 -1
  108. package/dist/scripts/{B9372wBc.chunk.js → CtbOxRCF.chunk.js} +2 -2
  109. package/dist/scripts/{B9372wBc.chunk.js.map → CtbOxRCF.chunk.js.map} +1 -1
  110. package/dist/scripts/{Ux2KpCQK.chunk.js → CxNf401G.chunk.js} +2 -2
  111. package/dist/scripts/{Ux2KpCQK.chunk.js.map → CxNf401G.chunk.js.map} +1 -1
  112. package/dist/scripts/{CeNx5Kzz.chunk.js → Cxg7zIQ7.chunk.js} +2 -2
  113. package/dist/scripts/{CeNx5Kzz.chunk.js.map → Cxg7zIQ7.chunk.js.map} +1 -1
  114. package/dist/scripts/{WuuAAnHZ.chunk.js → CyTjm-iy.chunk.js} +2 -2
  115. package/dist/scripts/{WuuAAnHZ.chunk.js.map → CyTjm-iy.chunk.js.map} +1 -1
  116. package/dist/scripts/{CfiDZ6LP.chunk.js → D-XHMtrK.chunk.js} +2 -2
  117. package/dist/scripts/{CfiDZ6LP.chunk.js.map → D-XHMtrK.chunk.js.map} +1 -1
  118. package/dist/scripts/{Dur2ee5n.chunk.js → D0Kez51H.chunk.js} +2 -2
  119. package/dist/scripts/{Dur2ee5n.chunk.js.map → D0Kez51H.chunk.js.map} +1 -1
  120. package/dist/scripts/{DUWvwOTa.chunk.js → D1O5BdYP.chunk.js} +2 -2
  121. package/dist/scripts/{DUWvwOTa.chunk.js.map → D1O5BdYP.chunk.js.map} +1 -1
  122. package/dist/scripts/{OZVJyZgM.chunk.js → D8QwkaNv.chunk.js} +2 -2
  123. package/dist/scripts/{OZVJyZgM.chunk.js.map → D8QwkaNv.chunk.js.map} +1 -1
  124. package/dist/scripts/{DvbFBcOQ.chunk.js → DDCwFNmm.chunk.js} +2 -2
  125. package/dist/scripts/{DvbFBcOQ.chunk.js.map → DDCwFNmm.chunk.js.map} +1 -1
  126. package/dist/scripts/{Cog61quf.chunk.js → DGdFdv74.chunk.js} +2 -2
  127. package/dist/scripts/{Cog61quf.chunk.js.map → DGdFdv74.chunk.js.map} +1 -1
  128. package/dist/scripts/DHQlkDUq.chunk.js +2 -0
  129. package/dist/scripts/{D0w9N-3T.chunk.js.map → DHQlkDUq.chunk.js.map} +1 -1
  130. package/dist/scripts/{D1o0K4Kj.chunk.js → DIzcUtXf.chunk.js} +2 -2
  131. package/dist/scripts/{D1o0K4Kj.chunk.js.map → DIzcUtXf.chunk.js.map} +1 -1
  132. package/dist/scripts/{BYq9jK40.chunk.js → DLqmmsup.chunk.js} +2 -2
  133. package/dist/scripts/{BYq9jK40.chunk.js.map → DLqmmsup.chunk.js.map} +1 -1
  134. package/dist/scripts/DOH54KcJ.chunk.js +2 -0
  135. package/dist/scripts/DOH54KcJ.chunk.js.map +1 -0
  136. package/dist/scripts/{CMUKx3aO.chunk.js → DQz3vFm9.chunk.js} +2 -2
  137. package/dist/scripts/{CMUKx3aO.chunk.js.map → DQz3vFm9.chunk.js.map} +1 -1
  138. package/dist/scripts/{BHC43d8p.chunk.js → DSuqoCKU.chunk.js} +2 -2
  139. package/dist/scripts/{BHC43d8p.chunk.js.map → DSuqoCKU.chunk.js.map} +1 -1
  140. package/dist/scripts/{Bj4aS_x2.chunk.js → DVgGpvRr.chunk.js} +2 -2
  141. package/dist/scripts/{Bj4aS_x2.chunk.js.map → DVgGpvRr.chunk.js.map} +1 -1
  142. package/dist/scripts/{j26kM5AB.chunk.js → DVqb0KMG.chunk.js} +2 -2
  143. package/dist/scripts/{j26kM5AB.chunk.js.map → DVqb0KMG.chunk.js.map} +1 -1
  144. package/dist/scripts/D_K0UgSq.chunk.js +2 -0
  145. package/dist/scripts/{DWYleim7.chunk.js.map → D_K0UgSq.chunk.js.map} +1 -1
  146. package/dist/scripts/{4r-SFWRv.chunk.js → DbQN84Ka.chunk.js} +2 -2
  147. package/dist/scripts/{4r-SFWRv.chunk.js.map → DbQN84Ka.chunk.js.map} +1 -1
  148. package/dist/scripts/{CqdCH0OC.chunk.js → DgCvHCTv.chunk.js} +2 -2
  149. package/dist/scripts/{CqdCH0OC.chunk.js.map → DgCvHCTv.chunk.js.map} +1 -1
  150. package/dist/scripts/{DZ9Qr412.chunk.js → DhiXbhAO.chunk.js} +2 -2
  151. package/dist/scripts/{DZ9Qr412.chunk.js.map → DhiXbhAO.chunk.js.map} +1 -1
  152. package/dist/scripts/{DbIiwJi6.chunk.js → DvMJBGNc.chunk.js} +2 -2
  153. package/dist/scripts/{DbIiwJi6.chunk.js.map → DvMJBGNc.chunk.js.map} +1 -1
  154. package/dist/scripts/{DQP0C036.chunk.js → DxppYmgw.chunk.js} +2 -2
  155. package/dist/scripts/{DQP0C036.chunk.js.map → DxppYmgw.chunk.js.map} +1 -1
  156. package/dist/scripts/{DlvPyEMc.chunk.js → DzTRfLQn.chunk.js} +2 -2
  157. package/dist/scripts/{DlvPyEMc.chunk.js.map → DzTRfLQn.chunk.js.map} +1 -1
  158. package/dist/scripts/EOyUW0EV.chunk.js +2 -0
  159. package/dist/scripts/{B6wIglzt.chunk.js.map → EOyUW0EV.chunk.js.map} +1 -1
  160. package/dist/scripts/{Dkw1yxVb.chunk.js → Ft5Mau7n.chunk.js} +2 -2
  161. package/dist/scripts/{Dkw1yxVb.chunk.js.map → Ft5Mau7n.chunk.js.map} +1 -1
  162. package/dist/scripts/{EypiXS_y.chunk.js → GIZO-DsR.chunk.js} +2 -2
  163. package/dist/scripts/{EypiXS_y.chunk.js.map → GIZO-DsR.chunk.js.map} +1 -1
  164. package/dist/scripts/{C-LZ1Pnr.chunk.js → PEkZnijT.chunk.js} +2 -2
  165. package/dist/scripts/{C-LZ1Pnr.chunk.js.map → PEkZnijT.chunk.js.map} +1 -1
  166. package/dist/scripts/{FwSaxfbL.chunk.js → YhHoI_hl.chunk.js} +3 -3
  167. package/dist/scripts/{FwSaxfbL.chunk.js.map → YhHoI_hl.chunk.js.map} +1 -1
  168. package/dist/scripts/{app-eQ6keCVj.js → app-DlxnnX-Y.js} +5 -5
  169. package/dist/scripts/{app-eQ6keCVj.js.map → app-DlxnnX-Y.js.map} +1 -1
  170. package/dist/scripts/{CBYrUSmz.chunk.js → eF4foLm3.chunk.js} +2 -2
  171. package/dist/scripts/{CBYrUSmz.chunk.js.map → eF4foLm3.chunk.js.map} +1 -1
  172. package/dist/scripts/{D4uscADt.chunk.js → faET_EvS.chunk.js} +2 -2
  173. package/dist/scripts/{D4uscADt.chunk.js.map → faET_EvS.chunk.js.map} +1 -1
  174. package/dist/scripts/{CtsGHZp3.chunk.js → i36I5rgn.chunk.js} +2 -2
  175. package/dist/scripts/{CtsGHZp3.chunk.js.map → i36I5rgn.chunk.js.map} +1 -1
  176. package/dist/scripts/i6PC1lEa.chunk.js +2 -0
  177. package/dist/scripts/{D8bdW5jN.chunk.js.map → i6PC1lEa.chunk.js.map} +1 -1
  178. package/dist/scripts/{BYTm1HdJ.chunk.js → mMvgsH8u.chunk.js} +2 -2
  179. package/dist/scripts/{BYTm1HdJ.chunk.js.map → mMvgsH8u.chunk.js.map} +1 -1
  180. package/dist/scripts/{1JtZW3TW.chunk.js → nzWgRE-N.chunk.js} +2 -2
  181. package/dist/scripts/{1JtZW3TW.chunk.js.map → nzWgRE-N.chunk.js.map} +1 -1
  182. package/dist/scripts/{DqYjDOWl.chunk.js → uFAznmkx.chunk.js} +2 -2
  183. package/dist/scripts/{DqYjDOWl.chunk.js.map → uFAznmkx.chunk.js.map} +1 -1
  184. package/dist/scripts/{zFY--sWD.chunk.js → wC1U3zaB.chunk.js} +2 -2
  185. package/dist/scripts/{zFY--sWD.chunk.js.map → wC1U3zaB.chunk.js.map} +1 -1
  186. package/package.json +1 -1
  187. package/dist/scripts/B6wIglzt.chunk.js +0 -2
  188. package/dist/scripts/BnkjQdg-.chunk.js +0 -2
  189. package/dist/scripts/ByM31Op_.chunk.js +0 -2
  190. package/dist/scripts/ByM31Op_.chunk.js.map +0 -1
  191. package/dist/scripts/COkVtt29.chunk.js +0 -2
  192. package/dist/scripts/D0w9N-3T.chunk.js +0 -2
  193. package/dist/scripts/D8bdW5jN.chunk.js +0 -2
  194. package/dist/scripts/DWYleim7.chunk.js +0 -2
  195. package/dist/scripts/DX5d-qLN.chunk.js +0 -2
  196. package/dist/scripts/DoJDzZ7U.chunk.js +0 -15
  197. package/dist/scripts/DoJDzZ7U.chunk.js.map +0 -1
  198. package/dist/scripts/k5oLm6N7.chunk.js +0 -2
  199. package/dist/scripts/k5oLm6N7.chunk.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{a3 as o,j as e,P as m,L as d,B as a,aq as x,a as h,b as j,x as c}from"./app-eQ6keCVj.js";import{T as l,a as g}from"./dlcOoTX2.chunk.js";import{t as r}from"./aImHyMo0.chunk.js";const u="_infoAlert_r916y_1",N={infoAlert:u},s="tv.broadcastContent",p=d.encloseNamespace(s);function A(t){const i=o(l.region(t.region)),n=o(l.dateRange(t.region));return e.jsxs(m,{title:p("title"),closePopup:t.closePopup,children:[e.jsx("div",{className:`${N.infoAlert} rounded w-100 p-2 mb-4`,children:e.jsxs("p",{className:"d-inline fw-semibold mb-0 me-2",children:[e.jsx(a,{namespace:s,phrase:"programsAvailable"}),n.data&&g.getFormattedDateRange(r(n.data.startDate,i.data.timeZone),r(n.data.endDate,i.data.timeZone))]})}),e.jsx("h2",{className:"h5",children:e.jsx(a,{namespace:s,phrase:"subTitle"})}),e.jsx("p",{className:"mb-2",children:e.jsx(a,{namespace:s,phrase:"description"})}),e.jsxs("div",{className:"mb-2",children:[e.jsx("p",{className:"d-inline",children:e.jsx(a,{namespace:s,phrase:"missedProgram"})}),e.jsx(x,{appLink:{application:j.EXCHANGE,action:h.Exchange.INDEX},className:"text-info",onClick:t.closePopup,children:e.jsx("span",{children:e.jsx(a,{namespace:s,phrase:"exchangeArchive"})})}),"."]}),e.jsx("p",{className:"mb-3",children:e.jsx(a,{namespace:s,phrase:"emailContent"})}),e.jsx(c,{children:e.jsx(c.Cancel,{text:p("close"),onClick:t.closePopup,variant:"link"})})]})}export{A as TvBroadcastContentView};
2
- //# sourceMappingURL=D-lhN8Br.chunk.js.map
1
+ import{a3 as o,j as e,P as m,L as d,B as a,aq as x,a as h,b as j,x as c}from"./app-DlxnnX-Y.js";import{T as l,a as g}from"./97GoF_Eh.chunk.js";import{t as r}from"./BX8fMfGC.chunk.js";const u="_infoAlert_r916y_1",N={infoAlert:u},s="tv.broadcastContent",p=d.encloseNamespace(s);function A(t){const i=o(l.region(t.region)),n=o(l.dateRange(t.region));return e.jsxs(m,{title:p("title"),closePopup:t.closePopup,children:[e.jsx("div",{className:`${N.infoAlert} rounded w-100 p-2 mb-4`,children:e.jsxs("p",{className:"d-inline fw-semibold mb-0 me-2",children:[e.jsx(a,{namespace:s,phrase:"programsAvailable"}),n.data&&g.getFormattedDateRange(r(n.data.startDate,i.data.timeZone),r(n.data.endDate,i.data.timeZone))]})}),e.jsx("h2",{className:"h5",children:e.jsx(a,{namespace:s,phrase:"subTitle"})}),e.jsx("p",{className:"mb-2",children:e.jsx(a,{namespace:s,phrase:"description"})}),e.jsxs("div",{className:"mb-2",children:[e.jsx("p",{className:"d-inline",children:e.jsx(a,{namespace:s,phrase:"missedProgram"})}),e.jsx(x,{appLink:{application:j.EXCHANGE,action:h.Exchange.INDEX},className:"text-info",onClick:t.closePopup,children:e.jsx("span",{children:e.jsx(a,{namespace:s,phrase:"exchangeArchive"})})}),"."]}),e.jsx("p",{className:"mb-3",children:e.jsx(a,{namespace:s,phrase:"emailContent"})}),e.jsx(c,{children:e.jsx(c.Cancel,{text:p("close"),onClick:t.closePopup,variant:"link"})})]})}export{A as TvBroadcastContentView};
2
+ //# sourceMappingURL=CP5MKWC_.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"D-lhN8Br.chunk.js","sources":["../../src/apps/tv/views/tv-broadcast-content/TvBroadcastContentView.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\nimport { Flight } from 'libs/common/react/index';\n\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\nimport { Popup } from 'libs/shared/components/popup/Popup';\nimport { PopupButtons } from 'libs/shared/components/popup/PopupButtons';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { PopupViewProps } from 'libs/shared/interfaces';\n\nimport { Actions } from 'shared/constants/ExchangeActions';\nimport { AppChannels } from 'shared/constants/ExchangeRadioChannels';\n\nimport { TvRequests } from 'apps/tv/flight-requests/TvRequests';\nimport { TvDateRange, TvRegion } from 'apps/tv/interfaces/models/TvRegion';\nimport { toLocalTime } from 'apps/tv/utils/toLocalTime';\nimport { TvUtils } from 'apps/tv/utils/TvUtils';\n\nimport styles from './tv-broadcast-content.module.scss';\n\nconst namespace = 'tv.broadcastContent';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface TvBroadcastContentViewProps extends PopupViewProps {\n region: string;\n}\n\nexport function TvBroadcastContentView(props: TvBroadcastContentViewProps) {\n const region = Flight.useBasicFetch<TvRegion>(TvRequests.region(props.region));\n const dateRange = Flight.useBasicFetch<TvDateRange>(TvRequests.dateRange(props.region));\n \n return (\n <Popup\n title={getPhrase('title')}\n closePopup={props.closePopup}\n >\n <div className={`${styles.infoAlert} rounded w-100 p-2 mb-4`}>\n <p className='d-inline fw-semibold mb-0 me-2'>\n <Text namespace={namespace} phrase='programsAvailable' />\n {dateRange.data &&\n TvUtils.getFormattedDateRange(\n toLocalTime(dateRange.data.startDate, region.data.timeZone),\n toLocalTime(dateRange.data.endDate, region.data.timeZone)\n )\n }\n </p>\n </div>\n\n <h2 className='h5'><Text namespace={namespace} phrase='subTitle' /></h2>\n <p className='mb-2'><Text namespace={namespace} phrase='description' /></p>\n\n <div className='mb-2'>\n <p className='d-inline'><Text namespace={namespace} phrase='missedProgram' /></p>\n <AppLink\n appLink={{ application: AppChannels.EXCHANGE, action: Actions.Exchange.INDEX }}\n className='text-info'\n onClick={props.closePopup}\n >\n <span><Text namespace={namespace} phrase='exchangeArchive' /></span>\n </AppLink>.\n </div>\n <p className='mb-3'><Text namespace={namespace} phrase='emailContent' /></p>\n\n <PopupButtons>\n <PopupButtons.Cancel\n text={getPhrase('close')}\n onClick={props.closePopup}\n variant='link'\n />\n </PopupButtons>\n </Popup>\n );\n}\n"],"names":["namespace","getPhrase","LanguageService","TvBroadcastContentView","props","region","Flight.useBasicFetch","TvRequests","dateRange","jsxs","Popup","jsx","styles","Text","TvUtils","toLocalTime","AppLink","AppChannels","Actions","PopupButtons"],"mappings":"oOAqBMA,EAAY,sBACZC,EAAYC,EAAgB,iBAAiBF,CAAS,EAMrD,SAASG,EAAuBC,EAAoC,CACzE,MAAMC,EAASC,EAA+BC,EAAW,OAAOH,EAAM,MAAM,CAAC,EACvEI,EAAYF,EAAkCC,EAAW,UAAUH,EAAM,MAAM,CAAC,EAEtF,OACEK,EAAAA,KAACC,EAAA,CACC,MAAOT,EAAU,OAAO,EACxB,WAAYG,EAAM,WAElB,SAAA,CAAAO,EAAAA,IAAC,MAAA,CAAI,UAAW,GAAGC,EAAO,SAAS,0BACjC,SAAAH,EAAAA,KAAC,IAAA,CAAE,UAAU,iCACX,SAAA,CAAAE,EAAAA,IAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,mBAAA,CAAoB,EACtDQ,EAAU,MACTM,EAAQ,sBACNC,EAAYP,EAAU,KAAK,UAAWH,EAAO,KAAK,QAAQ,EAC1DU,EAAYP,EAAU,KAAK,QAASH,EAAO,KAAK,QAAQ,CAAA,CAC1D,CAAA,CAEJ,CAAA,CACF,EAEAM,EAAAA,IAAC,MAAG,UAAU,KAAK,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,UAAA,CAAW,CAAA,CAAE,EACnEW,EAAAA,IAAC,KAAE,UAAU,OAAO,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,aAAA,CAAc,CAAA,CAAE,EAEvES,EAAAA,KAAC,MAAA,CAAI,UAAU,OACb,SAAA,CAAAE,EAAAA,IAAC,IAAA,CAAE,UAAU,WAAW,SAAAA,EAAAA,IAACE,GAAK,UAAAb,EAAsB,OAAO,gBAAgB,CAAA,CAAE,EAC7EW,EAAAA,IAACK,EAAA,CACC,QAAS,CAAE,YAAaC,EAAY,SAAU,OAAQC,EAAQ,SAAS,KAAA,EACvE,UAAU,YACV,QAASd,EAAM,WAEf,eAAC,OAAA,CAAK,SAAAO,EAAAA,IAACE,GAAK,UAAAb,EAAsB,OAAO,kBAAkB,CAAA,CAAE,CAAA,CAAA,EACrD,GAAA,EACZ,EACAW,EAAAA,IAAC,KAAE,UAAU,OAAO,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,cAAA,CAAe,CAAA,CAAE,QAEvEmB,EAAA,CACC,SAAAR,EAAAA,IAACQ,EAAa,OAAb,CACC,KAAMlB,EAAU,OAAO,EACvB,QAASG,EAAM,WACf,QAAQ,MAAA,CAAA,CACV,CACF,CAAA,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"CP5MKWC_.chunk.js","sources":["../../src/apps/tv/views/tv-broadcast-content/TvBroadcastContentView.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\nimport { Flight } from 'libs/common/react/index';\n\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\nimport { Popup } from 'libs/shared/components/popup/Popup';\nimport { PopupButtons } from 'libs/shared/components/popup/PopupButtons';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { PopupViewProps } from 'libs/shared/interfaces';\n\nimport { Actions } from 'shared/constants/ExchangeActions';\nimport { AppChannels } from 'shared/constants/ExchangeRadioChannels';\n\nimport { TvRequests } from 'apps/tv/flight-requests/TvRequests';\nimport { TvDateRange, TvRegion } from 'apps/tv/interfaces/models/TvRegion';\nimport { toLocalTime } from 'apps/tv/utils/toLocalTime';\nimport { TvUtils } from 'apps/tv/utils/TvUtils';\n\nimport styles from './tv-broadcast-content.module.scss';\n\nconst namespace = 'tv.broadcastContent';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface TvBroadcastContentViewProps extends PopupViewProps {\n region: string;\n}\n\nexport function TvBroadcastContentView(props: TvBroadcastContentViewProps) {\n const region = Flight.useBasicFetch<TvRegion>(TvRequests.region(props.region));\n const dateRange = Flight.useBasicFetch<TvDateRange>(TvRequests.dateRange(props.region));\n \n return (\n <Popup\n title={getPhrase('title')}\n closePopup={props.closePopup}\n >\n <div className={`${styles.infoAlert} rounded w-100 p-2 mb-4`}>\n <p className='d-inline fw-semibold mb-0 me-2'>\n <Text namespace={namespace} phrase='programsAvailable' />\n {dateRange.data &&\n TvUtils.getFormattedDateRange(\n toLocalTime(dateRange.data.startDate, region.data.timeZone),\n toLocalTime(dateRange.data.endDate, region.data.timeZone)\n )\n }\n </p>\n </div>\n\n <h2 className='h5'><Text namespace={namespace} phrase='subTitle' /></h2>\n <p className='mb-2'><Text namespace={namespace} phrase='description' /></p>\n\n <div className='mb-2'>\n <p className='d-inline'><Text namespace={namespace} phrase='missedProgram' /></p>\n <AppLink\n appLink={{ application: AppChannels.EXCHANGE, action: Actions.Exchange.INDEX }}\n className='text-info'\n onClick={props.closePopup}\n >\n <span><Text namespace={namespace} phrase='exchangeArchive' /></span>\n </AppLink>.\n </div>\n <p className='mb-3'><Text namespace={namespace} phrase='emailContent' /></p>\n\n <PopupButtons>\n <PopupButtons.Cancel\n text={getPhrase('close')}\n onClick={props.closePopup}\n variant='link'\n />\n </PopupButtons>\n </Popup>\n );\n}\n"],"names":["namespace","getPhrase","LanguageService","TvBroadcastContentView","props","region","Flight.useBasicFetch","TvRequests","dateRange","jsxs","Popup","jsx","styles","Text","TvUtils","toLocalTime","AppLink","AppChannels","Actions","PopupButtons"],"mappings":"oOAqBMA,EAAY,sBACZC,EAAYC,EAAgB,iBAAiBF,CAAS,EAMrD,SAASG,EAAuBC,EAAoC,CACzE,MAAMC,EAASC,EAA+BC,EAAW,OAAOH,EAAM,MAAM,CAAC,EACvEI,EAAYF,EAAkCC,EAAW,UAAUH,EAAM,MAAM,CAAC,EAEtF,OACEK,EAAAA,KAACC,EAAA,CACC,MAAOT,EAAU,OAAO,EACxB,WAAYG,EAAM,WAElB,SAAA,CAAAO,EAAAA,IAAC,MAAA,CAAI,UAAW,GAAGC,EAAO,SAAS,0BACjC,SAAAH,EAAAA,KAAC,IAAA,CAAE,UAAU,iCACX,SAAA,CAAAE,EAAAA,IAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,mBAAA,CAAoB,EACtDQ,EAAU,MACTM,EAAQ,sBACNC,EAAYP,EAAU,KAAK,UAAWH,EAAO,KAAK,QAAQ,EAC1DU,EAAYP,EAAU,KAAK,QAASH,EAAO,KAAK,QAAQ,CAAA,CAC1D,CAAA,CAEJ,CAAA,CACF,EAEAM,EAAAA,IAAC,MAAG,UAAU,KAAK,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,UAAA,CAAW,CAAA,CAAE,EACnEW,EAAAA,IAAC,KAAE,UAAU,OAAO,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,aAAA,CAAc,CAAA,CAAE,EAEvES,EAAAA,KAAC,MAAA,CAAI,UAAU,OACb,SAAA,CAAAE,EAAAA,IAAC,IAAA,CAAE,UAAU,WAAW,SAAAA,EAAAA,IAACE,GAAK,UAAAb,EAAsB,OAAO,gBAAgB,CAAA,CAAE,EAC7EW,EAAAA,IAACK,EAAA,CACC,QAAS,CAAE,YAAaC,EAAY,SAAU,OAAQC,EAAQ,SAAS,KAAA,EACvE,UAAU,YACV,QAASd,EAAM,WAEf,eAAC,OAAA,CAAK,SAAAO,EAAAA,IAACE,GAAK,UAAAb,EAAsB,OAAO,kBAAkB,CAAA,CAAE,CAAA,CAAA,EACrD,GAAA,EACZ,EACAW,EAAAA,IAAC,KAAE,UAAU,OAAO,eAACE,EAAA,CAAK,UAAAb,EAAsB,OAAO,cAAA,CAAe,CAAA,CAAE,QAEvEmB,EAAA,CACC,SAAAR,EAAAA,IAACQ,EAAa,OAAb,CACC,KAAMlB,EAAU,OAAO,EACvB,QAASG,EAAM,WACf,QAAQ,MAAA,CAAA,CACV,CACF,CAAA,CAAA,CAAA,CAGN"}
@@ -1,7 +1,7 @@
1
- import{U as Q,S as Ze,m as Vt,H as In,R as se,D as ii,L as ie,n as oi,o as ai,p as si,q as ui,s as kr,t as kn,v as _n,j as r,w as St,x as Ne,I as gt,y as Fr,r as $,z as X,B as ce,G as de,M as ge,J as Ee,K as Ar,N as Fn,F as Fe,O as $r,Q as vt,V as ci,W as li,X as bt,Y as xt,Z as Lr,_ as di,$ as zn,a0 as fi,c as An,a1 as gi,a2 as mi,a3 as Je,a4 as hi,a5 as Wn,a6 as zt,a7 as pi,a8 as vi,a9 as yi,P as Si,aa as bi,ab as Ct,ac as Gn,ad as Wt,ae as Gt,af as Kt,ag as xi,ah as Ii,ai as _i}from"./app-eQ6keCVj.js";import{u as wi,a as Ci}from"./p9Hw1u0F.chunk.js";import{P as Qt}from"./pkzD5BEm.chunk.js";import{T as Ot,C as Oi,I as Ur}from"./CqWuZzIu.chunk.js";import{u as ji}from"./Ci21j_NU.chunk.js";import{u as qe,l as ye,F as oe,a as Ei}from"./Dur2ee5n.chunk.js";import{D as Ri,E as Pi,C as wn,G as Dt}from"./DUWvwOTa.chunk.js";import{F as $n}from"./DmL0FSJr.chunk.js";import{C as Nt}from"./B1IKzVyn.chunk.js";import{F as Ti,a as Di}from"./CKE8GGKH.chunk.js";import{M as pt}from"./CXmjzxZL.chunk.js";import{S as ki}from"./jFTHf_UL.chunk.js";import{S as Nr}from"./DsAzRbUN.chunk.js";import{M as Fi}from"./_sYSSSUN.chunk.js";import{T as qr}from"./B668bf5B.chunk.js";import"./CrYQzjgZ.chunk.js";var $e=(e=>(e[e.Other=0]="Other",e[e.SuggestImprovement=1]="SuggestImprovement",e[e.ReportBug=2]="ReportBug",e[e.RequestVideo=3]="RequestVideo",e[e.RaiseIssue=4]="RaiseIssue",e[e.GivePraise=5]="GivePraise",e[e.Footer=6]="Footer",e[e.RequestLivestream=7]="RequestLivestream",e))($e||{}),_e=(e=>(e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning",e))(_e||{});const Ai={presentationAudiences(e,t){const n=t||_e.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:Q.urlBuilder("{gateway}/v1/users/me/audiences",i),publicUrl:Q.urlBuilder(`/api/subjects/presentation/${e}/audiences`,i),key:`presentation:audiences:${e}:${n}`,normalize:!1}},audiencesByPresentationId(e){return{url:`{gateway}/v1/subjects/presentations/${e}/audiences`,publicUrl:Q.urlBuilder(`/api/subjects/presentation/${e}/audiences`,{type:_e.Subject.toLowerCase(),presentationId:e}),key:`presentation:${e}:audiences`,normalize:!1}}};var je=(e=>(e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos",e))(je||{});const Yt=e=>`subjectpresentationaudiences.id:[${e.join(",")}]`,$i={topicsFromAllAvailablePresentations(e){const t={filterType:"topics",presentationId:e};return{url:Q.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:Q.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations(e){const t={type:e==null?void 0:e.toLowerCase()};return{url:Q.urlBuilder("{gateway}/v1/users/me/presentations/available",t),publicUrl:Q.urlBuilder("/api/subjects/presentations/available",t),key:`available:presentations:${e}`,normalizeOptions:{namespace:"presentation"}}},topLevelTopics(e){const t={query:Ze.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:Q.urlBuilder(`{gateway}/v1/subjects/presentations/${e}/classifications`,t),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${e}/classifications`,t),key:`presentation:${e}:classifications`,formatData:Ot.applyThemeAssets}},presentationById(e){return{url:`{gateway}/v1/subjects/presentations/${e}`,publicUrl:`/api/subjects/presentations/${e}`,key:`presentation:${e}`}},presentationBySlug(e,t,n){const i={type:n.toLowerCase(),contentRegion:t};return{url:Q.urlBuilder(`/api/subjects/presentations/${e}`,i),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${e}`,i),key:`current:presentation:${n.toLowerCase()}:${t}:${e??""}`,bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation(e,t){const n={type:e==null?void 0:e.toLowerCase()};return{url:Q.urlBuilder("{gateway}/v1/users/me/presentations",n),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${t}`,n),key:`current:presentation${e?`:${e.toLowerCase()}`:""}${t?`:${t}`:""}`,normalizeOptions:{namespace:"presentation"}}},classifications(){return{url:Q.urlBuilder("{gateway}/v1/users/me/classifications",{query:Ze.CLASSIFICATION_COLLECTION,type:_e.Subject.toLowerCase()}),publicUrl:Q.urlBuilder("/api/subjects/classifications",{query:Vt.CLASSIFICATION_COLLECTION,type:_e.Subject.toLowerCase()}),key:"classifications",formatData:Ot.applyThemeAssets}},classification(e,t,n){return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}`,{query:Ze.CLASSIFICATION(t)}),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}`,{query:Vt.CLASSIFICATION}),key:`classification:${e}`,formatData:Ot.applyThemeAssets,error:n}},path(e,t){const n={type:t};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/path`,n),publicUrl:`/api/subjects/classifications/${e}/path`,key:`classification:${e}:path`}},paths(e){return{url:`/api/subjects/classifications/${e}/paths`,key:`classification:${e}:paths`}},children(e){return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/children`,{query:Ze.CLASSIFICATION_COLLECTION}),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/children`,{query:Vt.CLASSIFICATION_COLLECTION}),key:`classification:${e}:children`,formatData:Ot.applyThemeAssets}},videos(e,t,n){if(!t)return;let i="limit:100,orderbydesc:timestamp";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}(videoCollection),subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.PinnedVideos}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.PinnedVideos}`,o),key:`classification:${e}:${je.PinnedVideos}:${n.join(":")}`}},playlists(e,t,n){if(!t)return;let i="limit:100,orderby:name";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}${Ze.PLAYLIST_COLLECTION},subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.Playlists}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.Playlists}`,o),key:`classification:${e}:${je.Playlists}:${n.join(":")}`,formatData:m=>{var p;if(m)return{...m,data:(p=m.data)==null?void 0:p.filter(x=>{var d;return(d=x.cover)==null?void 0:d.url})}}}},series(e,t,n){if(!t)return;let i="limit:100";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}${Ze.SERIES},subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.Series}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.Series}`,o),key:`classification:${e}:${je.Series}:${n.join(":")}`,formatData:m=>{var p;if(m)return{...m,data:(p=m.data)==null?void 0:p.filter(x=>{var d;return(d=x.tallPoster)==null?void 0:d.url})}}}},curriculumLinks(e,t){return{url:Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Curriculum.toLowerCase()}),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Curriculum.toLowerCase()}),key:`curriculum:links:${e}:${t}`,normalize:!1}},subjectLinks(e,t){const n=Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Subject.toLowerCase()});return{url:n,publicUrl:n,key:`subject:links:${e}:${t}`,normalize:!1}},getMappedCurriculums(e,t){const n={type:_e.Curriculum.toLowerCase()};return{url:Q.urlBuilder(`{gateway}/v1/objects/${e}/presentations`,n),publicUrl:Q.urlBuilder(`/api/subjects/${e}/presentations`,{...n,pid:t}),key:`mapped:curriculums:${e}:${t.join(",")}`,normalize:!1}},regionAlternatives(e,t,n,i){return{url:`/api/subjects/classifications/${e}/region-alternatives`,publicUrl:`/api/subjects/classifications/${e}/region-alternatives`,key:`classification:regionAlternatives:${e}`,normalize:!1,success:t,error:n,always:i}}},Li={submitFeedback(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:In.POST,data:{...e,...t}}}};function Ui(e,t,n=[]){var u;const[,i]=se.useState(!1);return se.useEffect(()=>{const o=e();if(o)return o.off("add remove change"),o.on("add remove change",()=>{i(m=>!m)}),()=>{o.off("add remove change")}},n),(u=e())==null?void 0:u.toJSON()}const Ni="shared.studentRestrictedDialogError",Xt=ie.encloseNamespace(Ni);class qi extends ii{constructor(){super("Learner accessing feature that is for staff only")}get name(){return"StudentRestrictedDialogError"}get dialogOptions(){return{title:Xt("heading"),text:Xt("description"),buttons:[{text:Xt("close"),className:"btn btn-link",close:!0}]}}}function Mi(){const{hasPermissions:e,isLoaded:t}=oi();se.useEffect(()=>{if(!t||!e(ai.StudentExperience))return;const n=new qi;si.logError(n),ui.throw(n)},[t])}var tt=(e=>(e.AU="au",e.NZ="nz",e.UK="uk",e.US="us",e.CA="ca",e))(tt||{});const Bi={[tt.AU]:"au",[tt.NZ]:"nz",[tt.UK]:"uk",[tt.US]:"us",[tt.CA]:"ca"},Tt={getUserInfo:(e,t)=>({id:e.id,username:e.username,email:e.email,userType:e.role===_n.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion,firstName:e.givenName,lastName:e.familyName}),mapCountryCodeToTag:e=>Bi[e.toLowerCase()],getTags:(e,t,n,i)=>{const u=[t,...i];u.push(n?"student":"staff"),e.role===_n.Admin&&u.push("administrator");const o=Tt.mapCountryCodeToTag(e.countryCode);return o&&u.push(o),u},categorizeFiles(e){return e.reduce((t,n)=>{const i=n.get("fileInfo");return kr.isValidFile(n.get("file"),kn.VIDEO)?t.videoUrls.push(i==null?void 0:i.url):t.imageUrls.push(i==null?void 0:i.url),t},{imageUrls:[],videoUrls:[]})}};var H=(e=>(e.SUGGEST_IMPROVEMENT="suggestImprovement",e.REPORT_BUG="reportBug",e.REQUEST_VIDEO="requestVideo",e.REQUEST_LIVESTREAM="requestLivestream",e.GIVE_PRAISE="givePraise",e.RAISE_ISSUE="raiseIssue",e.OTHER="other",e))(H||{});const Hi="shared.feedbackFormTitles",Ve=ie.encloseNamespace(Hi),kt=e=>{switch(e){case H.SUGGEST_IMPROVEMENT:return Ve(e);case H.REPORT_BUG:return Ve(e);case H.REQUEST_VIDEO:return Ve(e);case H.REQUEST_LIVESTREAM:return Ve(e);case H.GIVE_PRAISE:return Ve(e);case H.RAISE_ISSUE:return Ve(e);case H.OTHER:return Ve(e)}},at={mailSent:"https://img.clickviewapp.com/v2/images/2mZ7L9",mediaPreview:"https://img.clickviewapp.com/v2/images/ageRM0",lightBulb:"https://img.clickviewapp.com/v2/images/Oqg3JN",heartHands:"https://img.clickviewapp.com/v2/images/1ML8Oj",videoAlert:"https://img.clickviewapp.com/v2/images/dq2oMq",[H.REQUEST_VIDEO]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[H.REQUEST_LIVESTREAM]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[H.SUGGEST_IMPROVEMENT]:{default:"https://img.clickviewapp.com/v2/images/g7aR1l",hover:"https://img.clickviewapp.com/v2/images/zMR0Dk"},[H.RAISE_ISSUE]:{default:"https://img.clickviewapp.com/v2/images/5boW78",hover:"https://img.clickviewapp.com/v2/images/m6yRKr"},[H.GIVE_PRAISE]:{default:"https://img.clickviewapp.com/v2/images/nE1mdz",hover:"https://img.clickviewapp.com/v2/images/JjEnmR"},[H.REPORT_BUG]:{default:"https://img.clickviewapp.com/v2/images/AOdYpo",hover:"https://img.clickviewapp.com/v2/images/yro9NM"},[H.OTHER]:{default:"https://img.clickviewapp.com/v2/images/Eoaykj",hover:"https://img.clickviewapp.com/v2/images/wN59Zg"}},Vi="_image_1gpfb_1",zi={image:Vi};function Wi(e){const[t,n]=ji(),i=at[e.option];return r.jsx(St,{ref:t,className:"col-lg-4 col-sm-6 col-12",onClick:()=>e.onSelectOption(e.option),children:r.jsxs("div",{className:"d-flex flex-column align-items-center h-100 rounded border py-3 gap-2",children:[r.jsx("img",{className:zi.image,src:n?i.hover:i.default,alt:kt(e.option)}),r.jsx("p",{className:"fw-semibold text-center mb-0",children:kt(e.option)})]})})}function Gi(e){return r.jsx("div",{className:"row g-2",children:e.options.map(t=>r.jsx(Wi,{option:t,onSelectOption:e.onSelectOption},t))})}const Ki="shared.feedbackButtons",Zt=ie.encloseNamespace(Ki);function Qi(e){const t=qe();return r.jsxs(Ne,{children:[e.formStage==="form"&&r.jsxs(r.Fragment,{children:[!e.hideCancelButton&&r.jsx(Ne.Cancel,{onClick:()=>e.setSelectedOption(null),text:Zt("cancel")}),r.jsx(Ne.Submit,{variant:"dark",text:e.submitText||Zt("submit"),disabled:!t.isValid})]}),e.formStage==="success"&&r.jsx(Ne.Cancel,{variant:"dark",text:Zt("close"),onClick:e.closePopup})]})}const Yi="_successImage_3sso6_1",Xi={successImage:Yi},Zi="shared.feedbackFormState",Kn=ie.encloseNamespace(Zi);function Ji(e){return e.formStage==="form"?r.jsx(r.Fragment,{}):e.formStage==="error"?r.jsx(r.Fragment,{}):r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"mb-3",children:r.jsx("img",{className:Xi.successImage,src:e.successImageUrl||at.mailSent})}),r.jsx("h4",{className:"mb-3",children:e.successHeading||Kn("successHeading")}),r.jsx("p",{className:"mb-3",children:e.successDescription||Kn("successDescription")})]})}const eo="shared.feedbackForm",Jt=ie.encloseNamespace(eo),Mr=10,qt=5e3,De=e=>{switch(e){case"requiredError":return Jt(e);case"minCharactersError":return Jt(e,{limit:Mr});case"maxCharactersError":return Jt("maxCharactersError",{limit:qt})}},ke=()=>ye.string().min(Mr,De("minCharactersError")).max(qt,De("maxCharactersError")),to="shared.feedbackGivePraise",Ft=ie.encloseNamespace(to),no={praise:""},ro=ye.object().shape({praise:ke().required(De("requiredError"))}).noUnknown();function io(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Ft("givePraisePlaceholder"),label:Ft("givePraiseLabel"),name:"praise",rows:5,value:e.values.praise,showRequiredStar:!0})})}function oo(e){return r.jsx(Ke,{...e,initialValues:{...no,...e.initialValues},validationSchema:ro,successImageUrl:at.heartHands,successHeading:Ft("successHeading"),successDescription:Ft("successDescription"),children:r.jsx(io,{})})}const ao="shared.feedbackOther",Qn=ie.encloseNamespace(ao),so={feedback:""},uo=ye.object().shape({feedback:ke().required(De("requiredError"))}).noUnknown();function co(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Qn("otherPlaceholder"),label:Qn("otherLabel"),name:"feedback",rows:5,value:e.values.feedback,showRequiredStar:!0})})}function lo(e){return r.jsx(Ke,{...e,initialValues:{...so,...e.initialValues},validationSchema:uo,children:r.jsx(co,{})})}const fo="shared.feedbackRaiseIssue",Yn=ie.encloseNamespace(fo),go={issue:""},mo=ye.object().shape({issue:ke().required(De("requiredError"))}).noUnknown();function ho(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Yn("raiseIssuePlaceholder"),label:Yn("raiseIssueLabel"),name:"issue",rows:5,value:e.values.issue,showRequiredStar:!0})})}function po(e){return r.jsx(Ke,{...e,initialValues:{...go,...e.initialValues},validationSchema:mo,children:r.jsx(ho,{})})}const en={[gt.AU]:{phone:"02 9509 2600",email:"support@clickview.com.au",website:"https://www.clickviewsupport.com/hc"},[gt.UK]:{phone:"+44 (0)333 207 6595",email:"info@clickview.co.uk",website:"https://www.clickviewsupport.com/hc"},[gt.NZ]:{phone:"09 916 1156",email:"support@clickview.co.nz",website:"https://www.clickviewsupport.com/hc"},[gt.US]:{phone:"+1 312-292-9322",email:"info@clickvieweducation.com",website:"https://www.clickviewsupport.com/hc"}};function vo(e){return r.jsx("svg",{...e,children:r.jsx("path",{fill:"currentColor",d:"M17.834 5.916a2.5 2.5 0 0 0-3.536 0L12.53 7.684a.5.5 0 0 1-.707-.707l1.768-1.768a3.5 3.5 0 1 1 4.95 4.95l-3.687 3.687a3.786 3.786 0 0 1-5.354 0l-.152-.152a.5.5 0 0 1 .707-.707l.152.152a2.786 2.786 0 0 0 3.94 0l3.687-3.687a2.5 2.5 0 0 0 0-3.536m-8.94 3.99a3.643 3.643 0 0 1 5.152 0l.606.607a.5.5 0 1 1-.707.707l-.607-.606a2.643 2.643 0 0 0-3.737 0l-3.435 3.434a2.5 2.5 0 1 0 3.536 3.536l1.414-1.415a.5.5 0 0 1 .707.707l-1.414 1.415a3.5 3.5 0 1 1-4.95-4.95z"})})}function yo(e){return r.jsx("svg",{...e,children:r.jsx("path",{fill:"currentColor",d:"M15.928 20c1.348 0 2.33-.38 3.185-1.297.051-.057.097-.114.139-.161.505-.547.742-1.102.742-1.62 0-.545-.3-1.057-.941-1.492l-2.444-1.687c-.695-.477-1.51-.553-2.247.163l-.61.605c-.189.189-.387.218-.615.09-.417-.249-1.35-1.014-2.067-1.727-.785-.78-1.34-1.42-1.678-2.01-.127-.23-.098-.427.09-.616l.612-.616c.716-.726.64-1.552.157-2.243L8.575 4.952c-.446-.646-.953-.94-1.503-.952-.512-.01-1.071.242-1.614.742-.057.052-.104.098-.157.145C4.39 5.727 4 6.714 4 8.047c0 2.358 1.53 5.21 4.143 7.815C10.736 18.45 13.569 20 15.928 20m.006-1.018c-2.146.023-4.837-1.6-7.046-3.81-2.226-2.214-3.9-4.976-3.87-7.127.013-.942.335-1.764 1.014-2.39l.13-.112c.306-.282.63-.432.897-.432.266 0 .495.124.674.394l1.635 2.44c.209.307.247.66-.107 1.002l-.693.689c-.5.5-.484 1.153-.135 1.66.403.593 1.182 1.497 1.95 2.262.765.775 1.733 1.605 2.321 2.009.512.348 1.16.364 1.659-.141l.684-.694c.348-.342.7-.309 1.014-.1l2.433 1.635c.276.18.389.402.389.668 0 .283-.14.597-.437.908a1 1 0 0 1-.102.12c-.63.689-1.462 1.006-2.41 1.018"})})}function st(e,t,n,i){function u(o){return o instanceof n?o:new n(function(m){m(o)})}return new(n||(n=Promise))(function(o,m){function p(E){try{d(i.next(E))}catch(T){m(T)}}function x(E){try{d(i.throw(E))}catch(T){m(T)}}function d(E){E.done?o(E.value):u(E.value).then(p,x)}d((i=i.apply(e,t||[])).next())})}function ut(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,u,o,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(d){return function(E){return x([d,E])}}function x(d){if(i)throw new TypeError("Generator is already executing.");for(;m&&(m=0,d[0]&&(n=0)),n;)try{if(i=1,u&&(o=d[0]&2?u.return:d[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,d[1])).done)return o;switch(u=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,u=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(E){d=[6,E],u=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Xn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),u,o=[],m;try{for(;(t===void 0||t-- >0)&&!(u=i.next()).done;)o.push(u.value)}catch(p){m={error:p}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(m)throw m.error}}return o}function Zn(e,t,n){if(n||arguments.length===2)for(var i=0,u=t.length,o;i<u;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}var So=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function It(e,t){var n=bo(e);if(typeof n.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function bo(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),u=So.get(i);u&&Object.defineProperty(e,"type",{value:u,writable:!1,configurable:!1,enumerable:!0})}return e}var xo=[".DS_Store","Thumbs.db"];function Io(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return At(e)&&_o(e.dataTransfer)?[2,jo(e.dataTransfer,e.type)]:wo(e)?[2,Co(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Oo(e)]:[2,[]]})})}function _o(e){return At(e)}function wo(e){return At(e)&&At(e.target)}function At(e){return typeof e=="object"&&e!==null}function Co(e){return Cn(e.target.files).map(function(t){return It(t)})}function Oo(e){return st(this,void 0,void 0,function(){var t;return ut(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return It(i)})]}})})}function jo(e,t){return st(this,void 0,void 0,function(){var n,i;return ut(this,function(u){switch(u.label){case 0:return e.items?(n=Cn(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Eo))]):[3,2];case 1:return i=u.sent(),[2,Jn(Br(i))];case 2:return[2,Jn(Cn(e.files).map(function(o){return It(o)}))]}})})}function Jn(e){return e.filter(function(t){return xo.indexOf(t.name)===-1})}function Cn(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function Eo(e){if(typeof e.webkitGetAsEntry!="function")return er(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Hr(t):er(e)}function Br(e){return e.reduce(function(t,n){return Zn(Zn([],Xn(t),!1),Xn(Array.isArray(n)?Br(n):[n]),!1)},[])}function er(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=It(t);return Promise.resolve(n)}function Ro(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return[2,e.isDirectory?Hr(e):Po(e)]})})}function Hr(e){var t=e.createReader();return new Promise(function(n,i){var u=[];function o(){var m=this;t.readEntries(function(p){return st(m,void 0,void 0,function(){var x,d,E;return ut(this,function(T){switch(T.label){case 0:if(p.length)return[3,5];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,Promise.all(u)];case 2:return x=T.sent(),n(x),[3,4];case 3:return d=T.sent(),i(d),[3,4];case 4:return[3,6];case 5:E=Promise.all(p.map(Ro)),u.push(E),o(),T.label=6;case 6:return[2]}})})},function(p){i(p)})}o()})}function Po(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return[2,new Promise(function(n,i){e.file(function(u){var o=It(u,e.fullPath);n(o)},function(u){i(u)})})]})})}var jt={},tr;function To(){return tr||(tr=1,jt.__esModule=!0,jt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",u=(e.type||"").toLowerCase(),o=u.replace(/\/.*$/,"");return n.some(function(m){var p=m.trim().toLowerCase();return p.charAt(0)==="."?i.toLowerCase().endsWith(p):p.endsWith("/*")?o===p.replace(/\/.*$/,""):u===p})}return!0}),jt}var Do=To();const ko=Fr(Do);function nr(e){return $o(e)||Ao(e)||zr(e)||Fo()}function Fo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{U as Q,S as Ze,m as Vt,H as In,R as se,D as ii,L as ie,n as oi,o as ai,p as si,q as ui,s as kr,t as kn,v as _n,j as r,w as St,x as Ne,I as gt,y as Fr,r as $,z as X,B as ce,G as de,M as ge,J as Ee,K as Ar,N as Fn,F as Fe,O as $r,Q as vt,V as ci,W as li,X as bt,Y as xt,Z as Lr,_ as di,$ as zn,a0 as fi,c as An,a1 as gi,a2 as mi,a3 as Je,a4 as hi,a5 as Wn,a6 as zt,a7 as pi,a8 as vi,a9 as yi,P as Si,aa as bi,ab as Ct,ac as Gn,ad as Wt,ae as Gt,af as Kt,ag as xi,ah as Ii,ai as _i}from"./app-DlxnnX-Y.js";import{u as wi,a as Ci}from"./BSZHRB-3.chunk.js";import{P as Qt}from"./pkzD5BEm.chunk.js";import{T as Ot,C as Oi,I as Ur}from"./BVbJxgV8.chunk.js";import{u as ji}from"./BTJwiZTv.chunk.js";import{u as qe,l as ye,F as oe,a as Ei}from"./D0Kez51H.chunk.js";import{D as Ri,E as Pi,C as wn,G as Dt}from"./D1O5BdYP.chunk.js";import{F as $n}from"./77QNnWjW.chunk.js";import{C as Nt}from"./59HBVVj3.chunk.js";import{F as Ti,a as Di}from"./CsI_aEby.chunk.js";import{M as pt}from"./C06GoFsR.chunk.js";import{S as ki}from"./CWjXnQlc.chunk.js";import{S as Nr}from"./Cj7-nmDw.chunk.js";import{M as Fi}from"./_sYSSSUN.chunk.js";import{T as qr}from"./B668bf5B.chunk.js";import"./B7sQixjZ.chunk.js";var $e=(e=>(e[e.Other=0]="Other",e[e.SuggestImprovement=1]="SuggestImprovement",e[e.ReportBug=2]="ReportBug",e[e.RequestVideo=3]="RequestVideo",e[e.RaiseIssue=4]="RaiseIssue",e[e.GivePraise=5]="GivePraise",e[e.Footer=6]="Footer",e[e.RequestLivestream=7]="RequestLivestream",e))($e||{}),_e=(e=>(e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning",e))(_e||{});const Ai={presentationAudiences(e,t){const n=t||_e.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:Q.urlBuilder("{gateway}/v1/users/me/audiences",i),publicUrl:Q.urlBuilder(`/api/subjects/presentation/${e}/audiences`,i),key:`presentation:audiences:${e}:${n}`,normalize:!1}},audiencesByPresentationId(e){return{url:`{gateway}/v1/subjects/presentations/${e}/audiences`,publicUrl:Q.urlBuilder(`/api/subjects/presentation/${e}/audiences`,{type:_e.Subject.toLowerCase(),presentationId:e}),key:`presentation:${e}:audiences`,normalize:!1}}};var je=(e=>(e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos",e))(je||{});const Yt=e=>`subjectpresentationaudiences.id:[${e.join(",")}]`,$i={topicsFromAllAvailablePresentations(e){const t={filterType:"topics",presentationId:e};return{url:Q.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:Q.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations(e){const t={type:e==null?void 0:e.toLowerCase()};return{url:Q.urlBuilder("{gateway}/v1/users/me/presentations/available",t),publicUrl:Q.urlBuilder("/api/subjects/presentations/available",t),key:`available:presentations:${e}`,normalizeOptions:{namespace:"presentation"}}},topLevelTopics(e){const t={query:Ze.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:Q.urlBuilder(`{gateway}/v1/subjects/presentations/${e}/classifications`,t),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${e}/classifications`,t),key:`presentation:${e}:classifications`,formatData:Ot.applyThemeAssets}},presentationById(e){return{url:`{gateway}/v1/subjects/presentations/${e}`,publicUrl:`/api/subjects/presentations/${e}`,key:`presentation:${e}`}},presentationBySlug(e,t,n){const i={type:n.toLowerCase(),contentRegion:t};return{url:Q.urlBuilder(`/api/subjects/presentations/${e}`,i),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${e}`,i),key:`current:presentation:${n.toLowerCase()}:${t}:${e??""}`,bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation(e,t){const n={type:e==null?void 0:e.toLowerCase()};return{url:Q.urlBuilder("{gateway}/v1/users/me/presentations",n),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${t}`,n),key:`current:presentation${e?`:${e.toLowerCase()}`:""}${t?`:${t}`:""}`,normalizeOptions:{namespace:"presentation"}}},classifications(){return{url:Q.urlBuilder("{gateway}/v1/users/me/classifications",{query:Ze.CLASSIFICATION_COLLECTION,type:_e.Subject.toLowerCase()}),publicUrl:Q.urlBuilder("/api/subjects/classifications",{query:Vt.CLASSIFICATION_COLLECTION,type:_e.Subject.toLowerCase()}),key:"classifications",formatData:Ot.applyThemeAssets}},classification(e,t,n){return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}`,{query:Ze.CLASSIFICATION(t)}),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}`,{query:Vt.CLASSIFICATION}),key:`classification:${e}`,formatData:Ot.applyThemeAssets,error:n}},path(e,t){const n={type:t};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/path`,n),publicUrl:`/api/subjects/classifications/${e}/path`,key:`classification:${e}:path`}},paths(e){return{url:`/api/subjects/classifications/${e}/paths`,key:`classification:${e}:paths`}},children(e){return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/children`,{query:Ze.CLASSIFICATION_COLLECTION}),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/children`,{query:Vt.CLASSIFICATION_COLLECTION}),key:`classification:${e}:children`,formatData:Ot.applyThemeAssets}},videos(e,t,n){if(!t)return;let i="limit:100,orderbydesc:timestamp";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}(videoCollection),subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.PinnedVideos}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.PinnedVideos}`,o),key:`classification:${e}:${je.PinnedVideos}:${n.join(":")}`}},playlists(e,t,n){if(!t)return;let i="limit:100,orderby:name";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}${Ze.PLAYLIST_COLLECTION},subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.Playlists}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.Playlists}`,o),key:`classification:${e}:${je.Playlists}:${n.join(":")}`,formatData:m=>{var p;if(m)return{...m,data:(p=m.data)==null?void 0:p.filter(x=>{var d;return(d=x.cover)==null?void 0:d.url})}}}},series(e,t,n){if(!t)return;let i="limit:100";n.length&&(i+=`,${Yt(n)}`);const o={query:`{${i}}${Ze.SERIES},subjectpresentationaudiences{presentationId:${t}}`,permissionFilterOption:Qt.StripMetadata};return{url:Q.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${je.Series}`,o),publicUrl:Q.urlBuilder(`/api/subjects/classifications/${e}/${je.Series}`,o),key:`classification:${e}:${je.Series}:${n.join(":")}`,formatData:m=>{var p;if(m)return{...m,data:(p=m.data)==null?void 0:p.filter(x=>{var d;return(d=x.tallPoster)==null?void 0:d.url})}}}},curriculumLinks(e,t){return{url:Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Curriculum.toLowerCase()}),publicUrl:Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Curriculum.toLowerCase()}),key:`curriculum:links:${e}:${t}`,normalize:!1}},subjectLinks(e,t){const n=Q.urlBuilder(`/api/subjects/presentations/${t}/objects/${e}/classifications/paths`,{type:_e.Subject.toLowerCase()});return{url:n,publicUrl:n,key:`subject:links:${e}:${t}`,normalize:!1}},getMappedCurriculums(e,t){const n={type:_e.Curriculum.toLowerCase()};return{url:Q.urlBuilder(`{gateway}/v1/objects/${e}/presentations`,n),publicUrl:Q.urlBuilder(`/api/subjects/${e}/presentations`,{...n,pid:t}),key:`mapped:curriculums:${e}:${t.join(",")}`,normalize:!1}},regionAlternatives(e,t,n,i){return{url:`/api/subjects/classifications/${e}/region-alternatives`,publicUrl:`/api/subjects/classifications/${e}/region-alternatives`,key:`classification:regionAlternatives:${e}`,normalize:!1,success:t,error:n,always:i}}},Li={submitFeedback(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:In.POST,data:{...e,...t}}}};function Ui(e,t,n=[]){var u;const[,i]=se.useState(!1);return se.useEffect(()=>{const o=e();if(o)return o.off("add remove change"),o.on("add remove change",()=>{i(m=>!m)}),()=>{o.off("add remove change")}},n),(u=e())==null?void 0:u.toJSON()}const Ni="shared.studentRestrictedDialogError",Xt=ie.encloseNamespace(Ni);class qi extends ii{constructor(){super("Learner accessing feature that is for staff only")}get name(){return"StudentRestrictedDialogError"}get dialogOptions(){return{title:Xt("heading"),text:Xt("description"),buttons:[{text:Xt("close"),className:"btn btn-link",close:!0}]}}}function Mi(){const{hasPermissions:e,isLoaded:t}=oi();se.useEffect(()=>{if(!t||!e(ai.StudentExperience))return;const n=new qi;si.logError(n),ui.throw(n)},[t])}var tt=(e=>(e.AU="au",e.NZ="nz",e.UK="uk",e.US="us",e.CA="ca",e))(tt||{});const Bi={[tt.AU]:"au",[tt.NZ]:"nz",[tt.UK]:"uk",[tt.US]:"us",[tt.CA]:"ca"},Tt={getUserInfo:(e,t)=>({id:e.id,username:e.username,email:e.email,userType:e.role===_n.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion,firstName:e.givenName,lastName:e.familyName}),mapCountryCodeToTag:e=>Bi[e.toLowerCase()],getTags:(e,t,n,i)=>{const u=[t,...i];u.push(n?"student":"staff"),e.role===_n.Admin&&u.push("administrator");const o=Tt.mapCountryCodeToTag(e.countryCode);return o&&u.push(o),u},categorizeFiles(e){return e.reduce((t,n)=>{const i=n.get("fileInfo");return kr.isValidFile(n.get("file"),kn.VIDEO)?t.videoUrls.push(i==null?void 0:i.url):t.imageUrls.push(i==null?void 0:i.url),t},{imageUrls:[],videoUrls:[]})}};var H=(e=>(e.SUGGEST_IMPROVEMENT="suggestImprovement",e.REPORT_BUG="reportBug",e.REQUEST_VIDEO="requestVideo",e.REQUEST_LIVESTREAM="requestLivestream",e.GIVE_PRAISE="givePraise",e.RAISE_ISSUE="raiseIssue",e.OTHER="other",e))(H||{});const Hi="shared.feedbackFormTitles",Ve=ie.encloseNamespace(Hi),kt=e=>{switch(e){case H.SUGGEST_IMPROVEMENT:return Ve(e);case H.REPORT_BUG:return Ve(e);case H.REQUEST_VIDEO:return Ve(e);case H.REQUEST_LIVESTREAM:return Ve(e);case H.GIVE_PRAISE:return Ve(e);case H.RAISE_ISSUE:return Ve(e);case H.OTHER:return Ve(e)}},at={mailSent:"https://img.clickviewapp.com/v2/images/2mZ7L9",mediaPreview:"https://img.clickviewapp.com/v2/images/ageRM0",lightBulb:"https://img.clickviewapp.com/v2/images/Oqg3JN",heartHands:"https://img.clickviewapp.com/v2/images/1ML8Oj",videoAlert:"https://img.clickviewapp.com/v2/images/dq2oMq",[H.REQUEST_VIDEO]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[H.REQUEST_LIVESTREAM]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[H.SUGGEST_IMPROVEMENT]:{default:"https://img.clickviewapp.com/v2/images/g7aR1l",hover:"https://img.clickviewapp.com/v2/images/zMR0Dk"},[H.RAISE_ISSUE]:{default:"https://img.clickviewapp.com/v2/images/5boW78",hover:"https://img.clickviewapp.com/v2/images/m6yRKr"},[H.GIVE_PRAISE]:{default:"https://img.clickviewapp.com/v2/images/nE1mdz",hover:"https://img.clickviewapp.com/v2/images/JjEnmR"},[H.REPORT_BUG]:{default:"https://img.clickviewapp.com/v2/images/AOdYpo",hover:"https://img.clickviewapp.com/v2/images/yro9NM"},[H.OTHER]:{default:"https://img.clickviewapp.com/v2/images/Eoaykj",hover:"https://img.clickviewapp.com/v2/images/wN59Zg"}},Vi="_image_1gpfb_1",zi={image:Vi};function Wi(e){const[t,n]=ji(),i=at[e.option];return r.jsx(St,{ref:t,className:"col-lg-4 col-sm-6 col-12",onClick:()=>e.onSelectOption(e.option),children:r.jsxs("div",{className:"d-flex flex-column align-items-center h-100 rounded border py-3 gap-2",children:[r.jsx("img",{className:zi.image,src:n?i.hover:i.default,alt:kt(e.option)}),r.jsx("p",{className:"fw-semibold text-center mb-0",children:kt(e.option)})]})})}function Gi(e){return r.jsx("div",{className:"row g-2",children:e.options.map(t=>r.jsx(Wi,{option:t,onSelectOption:e.onSelectOption},t))})}const Ki="shared.feedbackButtons",Zt=ie.encloseNamespace(Ki);function Qi(e){const t=qe();return r.jsxs(Ne,{children:[e.formStage==="form"&&r.jsxs(r.Fragment,{children:[!e.hideCancelButton&&r.jsx(Ne.Cancel,{onClick:()=>e.setSelectedOption(null),text:Zt("cancel")}),r.jsx(Ne.Submit,{variant:"dark",text:e.submitText||Zt("submit"),disabled:!t.isValid})]}),e.formStage==="success"&&r.jsx(Ne.Cancel,{variant:"dark",text:Zt("close"),onClick:e.closePopup})]})}const Yi="_successImage_3sso6_1",Xi={successImage:Yi},Zi="shared.feedbackFormState",Kn=ie.encloseNamespace(Zi);function Ji(e){return e.formStage==="form"?r.jsx(r.Fragment,{}):e.formStage==="error"?r.jsx(r.Fragment,{}):r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"mb-3",children:r.jsx("img",{className:Xi.successImage,src:e.successImageUrl||at.mailSent})}),r.jsx("h4",{className:"mb-3",children:e.successHeading||Kn("successHeading")}),r.jsx("p",{className:"mb-3",children:e.successDescription||Kn("successDescription")})]})}const eo="shared.feedbackForm",Jt=ie.encloseNamespace(eo),Mr=10,qt=5e3,De=e=>{switch(e){case"requiredError":return Jt(e);case"minCharactersError":return Jt(e,{limit:Mr});case"maxCharactersError":return Jt("maxCharactersError",{limit:qt})}},ke=()=>ye.string().min(Mr,De("minCharactersError")).max(qt,De("maxCharactersError")),to="shared.feedbackGivePraise",Ft=ie.encloseNamespace(to),no={praise:""},ro=ye.object().shape({praise:ke().required(De("requiredError"))}).noUnknown();function io(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Ft("givePraisePlaceholder"),label:Ft("givePraiseLabel"),name:"praise",rows:5,value:e.values.praise,showRequiredStar:!0})})}function oo(e){return r.jsx(Ke,{...e,initialValues:{...no,...e.initialValues},validationSchema:ro,successImageUrl:at.heartHands,successHeading:Ft("successHeading"),successDescription:Ft("successDescription"),children:r.jsx(io,{})})}const ao="shared.feedbackOther",Qn=ie.encloseNamespace(ao),so={feedback:""},uo=ye.object().shape({feedback:ke().required(De("requiredError"))}).noUnknown();function co(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Qn("otherPlaceholder"),label:Qn("otherLabel"),name:"feedback",rows:5,value:e.values.feedback,showRequiredStar:!0})})}function lo(e){return r.jsx(Ke,{...e,initialValues:{...so,...e.initialValues},validationSchema:uo,children:r.jsx(co,{})})}const fo="shared.feedbackRaiseIssue",Yn=ie.encloseNamespace(fo),go={issue:""},mo=ye.object().shape({issue:ke().required(De("requiredError"))}).noUnknown();function ho(){const e=qe();return r.jsx(r.Fragment,{children:r.jsx(oe,{as:"textarea",placeholder:Yn("raiseIssuePlaceholder"),label:Yn("raiseIssueLabel"),name:"issue",rows:5,value:e.values.issue,showRequiredStar:!0})})}function po(e){return r.jsx(Ke,{...e,initialValues:{...go,...e.initialValues},validationSchema:mo,children:r.jsx(ho,{})})}const en={[gt.AU]:{phone:"02 9509 2600",email:"support@clickview.com.au",website:"https://www.clickviewsupport.com/hc"},[gt.UK]:{phone:"+44 (0)333 207 6595",email:"info@clickview.co.uk",website:"https://www.clickviewsupport.com/hc"},[gt.NZ]:{phone:"09 916 1156",email:"support@clickview.co.nz",website:"https://www.clickviewsupport.com/hc"},[gt.US]:{phone:"+1 312-292-9322",email:"info@clickvieweducation.com",website:"https://www.clickviewsupport.com/hc"}};function vo(e){return r.jsx("svg",{...e,children:r.jsx("path",{fill:"currentColor",d:"M17.834 5.916a2.5 2.5 0 0 0-3.536 0L12.53 7.684a.5.5 0 0 1-.707-.707l1.768-1.768a3.5 3.5 0 1 1 4.95 4.95l-3.687 3.687a3.786 3.786 0 0 1-5.354 0l-.152-.152a.5.5 0 0 1 .707-.707l.152.152a2.786 2.786 0 0 0 3.94 0l3.687-3.687a2.5 2.5 0 0 0 0-3.536m-8.94 3.99a3.643 3.643 0 0 1 5.152 0l.606.607a.5.5 0 1 1-.707.707l-.607-.606a2.643 2.643 0 0 0-3.737 0l-3.435 3.434a2.5 2.5 0 1 0 3.536 3.536l1.414-1.415a.5.5 0 0 1 .707.707l-1.414 1.415a3.5 3.5 0 1 1-4.95-4.95z"})})}function yo(e){return r.jsx("svg",{...e,children:r.jsx("path",{fill:"currentColor",d:"M15.928 20c1.348 0 2.33-.38 3.185-1.297.051-.057.097-.114.139-.161.505-.547.742-1.102.742-1.62 0-.545-.3-1.057-.941-1.492l-2.444-1.687c-.695-.477-1.51-.553-2.247.163l-.61.605c-.189.189-.387.218-.615.09-.417-.249-1.35-1.014-2.067-1.727-.785-.78-1.34-1.42-1.678-2.01-.127-.23-.098-.427.09-.616l.612-.616c.716-.726.64-1.552.157-2.243L8.575 4.952c-.446-.646-.953-.94-1.503-.952-.512-.01-1.071.242-1.614.742-.057.052-.104.098-.157.145C4.39 5.727 4 6.714 4 8.047c0 2.358 1.53 5.21 4.143 7.815C10.736 18.45 13.569 20 15.928 20m.006-1.018c-2.146.023-4.837-1.6-7.046-3.81-2.226-2.214-3.9-4.976-3.87-7.127.013-.942.335-1.764 1.014-2.39l.13-.112c.306-.282.63-.432.897-.432.266 0 .495.124.674.394l1.635 2.44c.209.307.247.66-.107 1.002l-.693.689c-.5.5-.484 1.153-.135 1.66.403.593 1.182 1.497 1.95 2.262.765.775 1.733 1.605 2.321 2.009.512.348 1.16.364 1.659-.141l.684-.694c.348-.342.7-.309 1.014-.1l2.433 1.635c.276.18.389.402.389.668 0 .283-.14.597-.437.908a1 1 0 0 1-.102.12c-.63.689-1.462 1.006-2.41 1.018"})})}function st(e,t,n,i){function u(o){return o instanceof n?o:new n(function(m){m(o)})}return new(n||(n=Promise))(function(o,m){function p(E){try{d(i.next(E))}catch(T){m(T)}}function x(E){try{d(i.throw(E))}catch(T){m(T)}}function d(E){E.done?o(E.value):u(E.value).then(p,x)}d((i=i.apply(e,t||[])).next())})}function ut(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,u,o,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(d){return function(E){return x([d,E])}}function x(d){if(i)throw new TypeError("Generator is already executing.");for(;m&&(m=0,d[0]&&(n=0)),n;)try{if(i=1,u&&(o=d[0]&2?u.return:d[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,d[1])).done)return o;switch(u=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,u=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(E){d=[6,E],u=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Xn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),u,o=[],m;try{for(;(t===void 0||t-- >0)&&!(u=i.next()).done;)o.push(u.value)}catch(p){m={error:p}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(m)throw m.error}}return o}function Zn(e,t,n){if(n||arguments.length===2)for(var i=0,u=t.length,o;i<u;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}var So=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function It(e,t){var n=bo(e);if(typeof n.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function bo(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),u=So.get(i);u&&Object.defineProperty(e,"type",{value:u,writable:!1,configurable:!1,enumerable:!0})}return e}var xo=[".DS_Store","Thumbs.db"];function Io(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return At(e)&&_o(e.dataTransfer)?[2,jo(e.dataTransfer,e.type)]:wo(e)?[2,Co(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Oo(e)]:[2,[]]})})}function _o(e){return At(e)}function wo(e){return At(e)&&At(e.target)}function At(e){return typeof e=="object"&&e!==null}function Co(e){return Cn(e.target.files).map(function(t){return It(t)})}function Oo(e){return st(this,void 0,void 0,function(){var t;return ut(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return It(i)})]}})})}function jo(e,t){return st(this,void 0,void 0,function(){var n,i;return ut(this,function(u){switch(u.label){case 0:return e.items?(n=Cn(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Eo))]):[3,2];case 1:return i=u.sent(),[2,Jn(Br(i))];case 2:return[2,Jn(Cn(e.files).map(function(o){return It(o)}))]}})})}function Jn(e){return e.filter(function(t){return xo.indexOf(t.name)===-1})}function Cn(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function Eo(e){if(typeof e.webkitGetAsEntry!="function")return er(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Hr(t):er(e)}function Br(e){return e.reduce(function(t,n){return Zn(Zn([],Xn(t),!1),Xn(Array.isArray(n)?Br(n):[n]),!1)},[])}function er(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=It(t);return Promise.resolve(n)}function Ro(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return[2,e.isDirectory?Hr(e):Po(e)]})})}function Hr(e){var t=e.createReader();return new Promise(function(n,i){var u=[];function o(){var m=this;t.readEntries(function(p){return st(m,void 0,void 0,function(){var x,d,E;return ut(this,function(T){switch(T.label){case 0:if(p.length)return[3,5];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,Promise.all(u)];case 2:return x=T.sent(),n(x),[3,4];case 3:return d=T.sent(),i(d),[3,4];case 4:return[3,6];case 5:E=Promise.all(p.map(Ro)),u.push(E),o(),T.label=6;case 6:return[2]}})})},function(p){i(p)})}o()})}function Po(e){return st(this,void 0,void 0,function(){return ut(this,function(t){return[2,new Promise(function(n,i){e.file(function(u){var o=It(u,e.fullPath);n(o)},function(u){i(u)})})]})})}var jt={},tr;function To(){return tr||(tr=1,jt.__esModule=!0,jt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",u=(e.type||"").toLowerCase(),o=u.replace(/\/.*$/,"");return n.some(function(m){var p=m.trim().toLowerCase();return p.charAt(0)==="."?i.toLowerCase().endsWith(p):p.endsWith("/*")?o===p.replace(/\/.*$/,""):u===p})}return!0}),jt}var Do=To();const ko=Fr(Do);function nr(e){return $o(e)||Ao(e)||zr(e)||Fo()}function Fo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $o(e){if(Array.isArray(e))return On(e)}function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,i)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rr(Object(n),!0).forEach(function(i){Vr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e,t){return No(e)||Uo(e,t)||zr(e,t)||Lo()}function Lo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zr(e,t){if(e){if(typeof e=="string")return On(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(e,t)}}function On(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Uo(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],u=!0,o=!1,m,p;try{for(n=n.call(e);!(u=(m=n.next()).done)&&(i.push(m.value),!(t&&i.length===t));u=!0);}catch(x){o=!0,p=x}finally{try{!u&&n.return!=null&&n.return()}finally{if(o)throw p}}return i}}function No(e){if(Array.isArray(e))return e}var qo="file-invalid-type",Mo="file-too-large",Bo="file-too-small",Ho="too-many-files",Vo=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:qo,message:"File type must be ".concat(n)}},or=function(t){return{code:Mo,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ar=function(t){return{code:Bo,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},zo={code:Ho,message:"Too many files"};function Wr(e,t){var n=e.type==="application/x-moz-file"||ko(e,t);return[n,n?null:Vo(t)]}function Gr(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,or(n)];if(e.size<t)return[!1,ar(t)]}else{if(Ge(t)&&e.size<t)return[!1,ar(t)];if(Ge(n)&&e.size>n)return[!1,or(n)]}return[!0,null]}function Ge(e){return e!=null}function Wo(e){var t=e.files,n=e.accept,i=e.minSize,u=e.maxSize,o=e.multiple,m=e.maxFiles,p=e.validator;return!o&&t.length>1||o&&m>=1&&t.length>m?!1:t.every(function(x){var d=Wr(x,n),E=yt(d,1),T=E[0],k=Gr(x,i,u),B=yt(k,1),M=B[0],q=p?p(x):null;return T&&M&&!q})}function $t(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Et(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function sr(e){e.preventDefault()}function Go(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ko(e){return e.indexOf("Edge/")!==-1}function Qo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Go(e)||Ko(e)}function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var u=arguments.length,o=new Array(u>1?u-1:0),m=1;m<u;m++)o[m-1]=arguments[m];return t.some(function(p){return!$t(i)&&p&&p.apply(void 0,[i].concat(o)),$t(i)})}}function Yo(){return"showOpenFilePicker"in window}function Xo(e){if(Ge(e)){var t=Object.entries(e).filter(function(n){var i=yt(n,2),u=i[0],o=i[1],m=!0;return Kr(u)||(console.warn('Skipped "'.concat(u,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),m=!1),(!Array.isArray(o)||!o.every(Qr))&&(console.warn('Skipped "'.concat(u,'" because an invalid file extension was provided.')),m=!1),m}).reduce(function(n,i){var u=yt(i,2),o=u[0],m=u[1];return ir(ir({},n),{},Vr({},o,m))},{});return[{description:"Files",accept:t}]}return e}function Zo(e){if(Ge(e))return Object.entries(e).reduce(function(t,n){var i=yt(n,2),u=i[0],o=i[1];return[].concat(nr(t),[u],nr(o))},[]).filter(function(t){return Kr(t)||Qr(t)}).join(",")}function Jo(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ea(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Kr(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Qr(e){return/^.*\.[\w]+$/.test(e)}var ta=["children"],na=["open"],ra=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ia=["refKey","onChange","onClick"];function oa(e){return ua(e)||sa(e)||Yr(e)||aa()}function aa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sa(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ua(e){if(Array.isArray(e))return jn(e)}function tn(e,t){return da(e)||la(e,t)||Yr(e,t)||ca()}function ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yr(e,t){if(e){if(typeof e=="string")return jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(e,t)}}function jn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function la(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],u=!0,o=!1,m,p;try{for(n=n.call(e);!(u=(m=n.next()).done)&&(i.push(m.value),!(t&&i.length===t));u=!0);}catch(x){o=!0,p=x}finally{try{!u&&n.return!=null&&n.return()}finally{if(o)throw p}}return i}}function da(e){if(Array.isArray(e))return e}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,i)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ur(Object(n),!0).forEach(function(i){En(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e,t){if(e==null)return{};var n=fa(e,t),i,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u<o.length;u++)i=o[u],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function fa(e,t){if(e==null)return{};var n={},i=Object.keys(e),u,o;for(o=0;o<i.length;o++)u=i[o],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}var Ln=$.forwardRef(function(e,t){var n=e.children,i=Lt(e,ta),u=Zr(i),o=u.open,m=Lt(u,na);return $.useImperativeHandle(t,function(){return{open:o}},[o]),se.createElement($.Fragment,null,n(re(re({},m),{},{open:o})))});Ln.displayName="Dropzone";var Xr={disabled:!1,getFilesFromEvent:Io,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ln.defaultProps=Xr;Ln.propTypes={children:X.func,accept:X.objectOf(X.arrayOf(X.string)),multiple:X.bool,preventDropOnDocument:X.bool,noClick:X.bool,noKeyboard:X.bool,noDrag:X.bool,noDragEventsBubbling:X.bool,minSize:X.number,maxSize:X.number,maxFiles:X.number,disabled:X.bool,getFilesFromEvent:X.func,onFileDialogCancel:X.func,onFileDialogOpen:X.func,useFsAccessApi:X.bool,autoFocus:X.bool,onDragEnter:X.func,onDragLeave:X.func,onDragOver:X.func,onDrop:X.func,onDropAccepted:X.func,onDropRejected:X.func,onError:X.func,validator:X.func};var Rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=re(re({},Xr),e),n=t.accept,i=t.disabled,u=t.getFilesFromEvent,o=t.maxSize,m=t.minSize,p=t.multiple,x=t.maxFiles,d=t.onDragEnter,E=t.onDragLeave,T=t.onDragOver,k=t.onDrop,B=t.onDropAccepted,M=t.onDropRejected,q=t.onFileDialogCancel,V=t.onFileDialogOpen,L=t.useFsAccessApi,K=t.autoFocus,Z=t.preventDropOnDocument,C=t.noClick,D=t.noKeyboard,R=t.noDrag,N=t.noDragEventsBubbling,S=t.onError,c=t.validator,y=$.useMemo(function(){return Zo(n)},[n]),b=$.useMemo(function(){return Xo(n)},[n]),_=$.useMemo(function(){return typeof V=="function"?V:cr},[V]),O=$.useMemo(function(){return typeof q=="function"?q:cr},[q]),A=$.useRef(null),W=$.useRef(null),Y=$.useReducer(ga,Rn),w=tn(Y,2),g=w[0],s=w[1],l=g.isFocused,h=g.isFileDialogActive,a=$.useRef(typeof window<"u"&&window.isSecureContext&&L&&Yo()),f=function(){!a.current&&h&&setTimeout(function(){if(W.current){var F=W.current.files;F.length||(s({type:"closeDialog"}),O())}},300)};$.useEffect(function(){return window.addEventListener("focus",f,!1),function(){window.removeEventListener("focus",f,!1)}},[W,h,O,a]);var v=$.useRef([]),I=function(F){A.current&&A.current.contains(F.target)||(F.preventDefault(),v.current=[])};$.useEffect(function(){return Z&&(document.addEventListener("dragover",sr,!1),document.addEventListener("drop",I,!1)),function(){Z&&(document.removeEventListener("dragover",sr),document.removeEventListener("drop",I))}},[A,Z]),$.useEffect(function(){return!i&&K&&A.current&&A.current.focus(),function(){}},[A,K,i]);var P=$.useCallback(function(j){S?S(j):console.error(j)},[S]),U=$.useCallback(function(j){j.preventDefault(),j.persist(),Me(j),v.current=[].concat(oa(v.current),[j.target]),Et(j)&&Promise.resolve(u(j)).then(function(F){if(!($t(j)&&!N)){var ne=F.length,ue=ne>0&&Wo({files:F,accept:y,minSize:m,maxSize:o,multiple:p,maxFiles:x,validator:c}),he=ne>0&&!ue;s({isDragAccept:ue,isDragReject:he,isDragActive:!0,type:"setDraggedFiles"}),d&&d(j)}}).catch(function(F){return P(F)})},[u,d,P,N,y,m,o,p,x,c]),G=$.useCallback(function(j){j.preventDefault(),j.persist(),Me(j);var F=Et(j);if(F&&j.dataTransfer)try{j.dataTransfer.dropEffect="copy"}catch{}return F&&T&&T(j),!1},[T,N]),J=$.useCallback(function(j){j.preventDefault(),j.persist(),Me(j);var F=v.current.filter(function(ue){return A.current&&A.current.contains(ue)}),ne=F.indexOf(j.target);ne!==-1&&F.splice(ne,1),v.current=F,!(F.length>0)&&(s({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Et(j)&&E&&E(j))},[A,E,N]),te=$.useCallback(function(j,F){var ne=[],ue=[];j.forEach(function(he){var Ce=Wr(he,y),Ae=tn(Ce,2),ct=Ae[0],lt=Ae[1],Be=Gr(he,m,o),ee=tn(Be,2),xe=ee[0],Pe=ee[1],Xe=c?c(he):null;if(ct&&xe&&!Xe)ne.push(he);else{var He=[lt,Pe];Xe&&(He=He.concat(Xe)),ue.push({file:he,errors:He.filter(function(dt){return dt})})}}),(!p&&ne.length>1||p&&x>=1&&ne.length>x)&&(ne.forEach(function(he){ue.push({file:he,errors:[zo]})}),ne.splice(0)),s({acceptedFiles:ne,fileRejections:ue,type:"setFiles"}),k&&k(ne,ue,F),ue.length>0&&M&&M(ue,F),ne.length>0&&B&&B(ne,F)},[s,p,y,m,o,x,k,B,M,c]),ae=$.useCallback(function(j){j.preventDefault(),j.persist(),Me(j),v.current=[],Et(j)&&Promise.resolve(u(j)).then(function(F){$t(j)&&!N||te(F,j)}).catch(function(F){return P(F)}),s({type:"reset"})},[u,te,P,N]),le=$.useCallback(function(){if(a.current){s({type:"openDialog"}),_();var j={multiple:p,types:b};window.showOpenFilePicker(j).then(function(F){return u(F)}).then(function(F){te(F,null),s({type:"closeDialog"})}).catch(function(F){Jo(F)?(O(F),s({type:"closeDialog"})):ea(F)?(a.current=!1,W.current?(W.current.value=null,W.current.click()):P(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):P(F)});return}W.current&&(s({type:"openDialog"}),_(),W.current.value=null,W.current.click())},[s,_,O,L,te,P,b,p]),me=$.useCallback(function(j){!A.current||!A.current.isEqualNode(j.target)||(j.key===" "||j.key==="Enter"||j.keyCode===32||j.keyCode===13)&&(j.preventDefault(),le())},[A,le]),we=$.useCallback(function(){s({type:"focus"})},[]),fe=$.useCallback(function(){s({type:"blur"})},[]),Re=$.useCallback(function(){C||(Qo()?setTimeout(le,0):le())},[C,le]),Se=function(F){return i?null:F},be=function(F){return D?null:Se(F)},Qe=function(F){return R?null:Se(F)},Me=function(F){N&&F.stopPropagation()},_t=$.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=j.refKey,ne=F===void 0?"ref":F,ue=j.role,he=j.onKeyDown,Ce=j.onFocus,Ae=j.onBlur,ct=j.onClick,lt=j.onDragEnter,Be=j.onDragOver,ee=j.onDragLeave,xe=j.onDrop,Pe=Lt(j,ra);return re(re(En({onKeyDown:be(Oe(he,me)),onFocus:be(Oe(Ce,we)),onBlur:be(Oe(Ae,fe)),onClick:Se(Oe(ct,Re)),onDragEnter:Qe(Oe(lt,U)),onDragOver:Qe(Oe(Be,G)),onDragLeave:Qe(Oe(ee,J)),onDrop:Qe(Oe(xe,ae)),role:typeof ue=="string"&&ue!==""?ue:"presentation"},ne,A),!i&&!D?{tabIndex:0}:{}),Pe)}},[A,me,we,fe,Re,U,G,J,ae,D,R,i]),wt=$.useCallback(function(j){j.stopPropagation()},[]),Ye=$.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=j.refKey,ne=F===void 0?"ref":F,ue=j.onChange,he=j.onClick,Ce=Lt(j,ia),Ae=En({accept:y,multiple:p,type:"file",style:{display:"none"},onChange:Se(Oe(ue,ae)),onClick:Se(Oe(he,wt)),tabIndex:-1},ne,W);return re(re({},Ae),Ce)}},[W,n,p,ae,i]);return re(re({},g),{},{isFocused:l&&!i,getRootProps:_t,getInputProps:Ye,rootRef:A,inputRef:W,open:Se(le)})}function ga(e,t){switch(t.type){case"focus":return re(re({},e),{},{isFocused:!0});case"blur":return re(re({},e),{},{isFocused:!1});case"openDialog":return re(re({},Rn),{},{isFileDialogActive:!0});case"closeDialog":return re(re({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return re(re({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return re(re({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return re({},Rn);default:return e}}function cr(){}var Pn=(e=>(e.FileSelect="file-select",e.DragDrop="drag-drop",e))(Pn||{});const ma="_fileDrop_dm34f_1",ha="_resourcePreview_dm34f_4",lr={fileDrop:ma,resourcePreview:ha},nn="shared.feedbackFileUpload";function pa(e){const{getRootProps:t,getInputProps:n,isDragActive:i}=Zr({onDrop:x=>e.onFilesAdded(x,Pn.DragDrop),noClick:!0,noKeyboard:!0,multiple:!!e.acceptMultiple,noDragEventsBubbling:!0}),u=$.useRef(null),o=$.useCallback(x=>{x&&(u.current=x)},[]),m=()=>{u.current.value=null,u.current.click()};let p=`${lr.fileDrop} text-center p-2 rounded-1`;return e.uploadError&&(p+=" border-red"),i&&(p+=" border-blue bg-light-blue"),r.jsxs(r.Fragment,{children:[r.jsxs("div",{...t({className:p}),children:[r.jsx("img",{className:lr.resourcePreview,src:e.imageUrl,draggable:!1}),r.jsxs("div",{className:"position-relative",children:[i&&r.jsx("p",{className:"position-absolute font-size-md translate-middle top-50 start-50 mb-0",children:r.jsx(ce,{namespace:nn,phrase:"dropUpload"})}),r.jsxs("div",{className:i?"opacity-0":"",children:[r.jsx("p",{className:"mb-0",children:r.jsx(ce,{namespace:nn,phrase:"dragDrop"})}),r.jsx("button",{type:"button",className:"btn btn-link text-underline p-0",onClick:m,children:r.jsx(ce,{namespace:nn,phrase:"upload"})})]})]}),r.jsx("input",{type:"file",name:"fileUpload",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:o,onChange:x=>e.onFilesAdded([...x.target.files],Pn.FileSelect),"aria-errormessage":"fileUploadError"}),r.jsx("input",{...n()})]}),e.uploadError&&r.jsx($n,{name:"fileUpload",children:e.uploadError})]})}const va="_progress_w7ph2_1",ya={progress:va};function Sa(e){const t=e.upload.progress===100;return r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(de,{svg:Ti,className:"svg-container me-2"}),r.jsx("span",{className:"align-middle",children:e.upload.name}),t&&r.jsx(de,{svg:Oi,className:"svg-container float-end text-success"}),!t&&r.jsx("div",{role:"button","aria-label":"close",onClick:()=>e.cancelUpload(e.upload.id),className:"float-end description",children:r.jsx(de,{svg:Nt})})]}),r.jsx("div",{className:`${ya.progress} progress my-2`,children:r.jsx("div",{className:"progress-bar bg-blue",role:"progressbar",style:{width:`${e.upload.progress}%`},"aria-valuenow":e.upload.progress,"aria-valuemin":0,"aria-valuemax":100})})]})}function ba(e){var t;return(t=e.uploads)!=null&&t.length?r.jsx(r.Fragment,{children:e.uploads.map((n,i)=>r.jsx(Sa,{upload:n,cancelUpload:e.cancelUpload},i))}):r.jsx(r.Fragment,{})}function xa(e){return r.jsxs("div",{className:"bg-gray-100 rounded p-2",children:[r.jsx(de,{className:"d-inline-block align-middle svg-container icon-purple me-2",svg:Di}),r.jsx("span",{className:"align-middle",children:e.file.get("name")}),r.jsx("button",{className:"btn p-0 border-0 float-end",onClick:()=>e.deleteFile(e.file.get("id")),children:r.jsx(de,{svg:Ri})})]})}function Ia(e){return r.jsx("div",{className:"d-flex flex-column gap-2",children:e.uploadedFiles.map(t=>r.jsx(xa,{file:t,deleteFile:e.deleteFile},t.id))})}const nt="shared.feedbackReportBug",mt=ie.encloseNamespace(nt),_a={issue:"",stepsToReproduce:""},wa=ye.object().shape({issue:ke().required(De("requiredError")),stepsToReproduce:ke()}).noUnknown();function Ca(e){const t=qe();return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"form-group",children:[r.jsx("label",{className:"form-label mb-1",children:r.jsx(ce,{namespace:nt,phrase:"mixedMediaLabel"})}),r.jsx("p",{className:"text-secondary font-size-sm",children:r.jsx(ce,{namespace:nt,phrase:"mixedMediaDescription"})}),r.jsx("div",{className:"mb-3",children:r.jsx(pa,{mimeType:kn.MIXED_MEDIA,onFilesAdded:e.onFilesAdded,imageUrl:e.previewImageUrl,uploadError:e.uploadError,acceptMultiple:!0})}),r.jsx(ba,{uploads:e.uploadingFiles,cancelUpload:e.cancelUpload}),r.jsx(Ia,{uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile})]}),r.jsx(oe,{as:"textarea",placeholder:mt("issuePlaceholder"),label:mt("issueLabel"),name:"issue",value:t.values.issue,showRequiredStar:!0}),r.jsx(oe,{as:"textarea",placeholder:mt("stepsPlaceholder"),label:mt("stepsLabel"),name:"stepsToReproduce",value:t.values.stepsToReproduce}),r.jsxs("div",{className:"rounded bg-light-yellow p-2 mb-3",children:[r.jsx("p",{className:"fw-semibold mb-2",children:r.jsx(ce,{namespace:nt,phrase:"help"})}),r.jsxs("div",{className:"d-flex gap-1 mb-2",children:[r.jsx(de,{svg:vo}),r.jsx("a",{href:en[e.instanceRegion].website,target:"_blank",className:"text-underline",children:r.jsx(ce,{namespace:nt,phrase:"visitHelpCentre"})})]}),r.jsx("p",{className:"mb-2",children:r.jsx(ce,{namespace:nt,phrase:"supportTeam"})}),r.jsxs("div",{className:"d-flex gap-1 mb-2",children:[r.jsx(de,{svg:yo}),r.jsx("span",{children:en[e.instanceRegion].phone})]}),r.jsxs("div",{className:"d-flex gap-1 mb-2",children:[r.jsx(de,{svg:Pi}),r.jsx("span",{children:en[e.instanceRegion].email})]})]})]})}function Oa(e){const{onFilesAdded:t,cancelUpload:n,uploadingFiles:i,uploadedFiles:u,deleteFile:o,...m}=e;return r.jsx(Ke,{...m,initialValues:{..._a,...e.initialValues},validationSchema:wa,submitText:mt("submit"),children:r.jsx(Ca,{onFilesAdded:t,previewImageUrl:at.mediaPreview,cancelUpload:n,uploadingFiles:i,uploadedFiles:u,deleteFile:o,uploadError:e.uploadError,instanceRegion:e.instanceRegion})})}var We=(e=>(e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5",e))(We||{});function Mt(e){switch(e){case We.Pink:return"pink";case We.Orange:return"orange";case We.Green:return"green";case We.Blue:return"blue";case We.Purple:return"purple";case We.Indigo:return"indigo";default:return"pink"}}const ja="_avatar_rpeug_1",Ea={avatar:ja};function Ra(e){const{imageUrl:t,initials:n}=e,i={};return t&&(i.backgroundImage=`url('${t}')`),r.jsx("div",{className:Ea.avatar,style:i,children:t?r.jsx(r.Fragment,{children:" "}):n})}function Pa(e){return r.jsx("svg",{...e,children:r.jsx("path",{d:"M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2z",fill:"currentColor"})})}const Ta="_svgContainer_kq46n_1",Da="_selection_kq46n_5",ka="_expander_kq46n_8",Fa="_iconContainer_kq46n_14",Aa="_icon_kq46n_14",$a="_bubble_kq46n_30",La="_spinnerContainer_kq46n_46",Ua="_remove_kq46n_51",Na="_removeBubble_kq46n_60",ve={svgContainer:Ta,selection:Da,expander:ka,iconContainer:Fa,icon:Aa,bubble:$a,spinnerContainer:La,remove:Ua,removeBubble:Na},qa=ie.encloseNamespace("shared.inputSelection");function Ma(e){var t;switch(e.typeId){case ge.Classroom:return"text-teal-hover";case ge.ClassroomGroup:return`text-${Mt((t=e.metadata)==null?void 0:t.colour)}-hover`}}function dr(e){var n;let t=`${ve.svgContainer} ${ve.icon}`;return e.typeId===ge.Classroom?t+=" text-teal":t+=` text-${Mt((n=e.metadata)==null?void 0:n.colour)}`,t}function Ba(e){var i;const t=Ma(e.selection),n=e.selection.typeId===ge.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===ge.User){const u=e.selection;return r.jsx("div",{className:ve.svgContainer,children:r.jsx(Ra,{imageUrl:(i=u.avatar)==null?void 0:i.url,initials:Ee.getInitials(e.selection.name,e.selection.surname)})})}return r.jsx(Ar,{title:qa(n?"emptyClassroom":"emptyGroup"),children:r.jsx("div",{className:`align-items-center border border-white bg-white ${ve.iconContainer}`,children:r.jsx(de,{className:dr(e.selection),svg:n?wn:Dt})})})}return e.hasExpanded?r.jsx("div",{className:`d-flex align-items-center text-white ${ve.spinnerContainer} ${ve.svgContainer}`,children:r.jsx(Fn,{as:"div",size:"sm",animation:"border",role:"status"})}):r.jsxs(r.Fragment,{children:[r.jsx(St,{className:`align-items-center cursor-pointer text-white border border-white rounded-circle ${ve.expander} ${t}`,onClick:e.onClickExpand,children:r.jsx(de,{svg:Pa,className:`d-flex align-items-center ${ve.svgContainer}`})}),r.jsx("div",{className:`align-items-center border border-white bg-white ${ve.iconContainer}`,children:r.jsx(de,{className:dr(e.selection),svg:n?wn:Dt})})]})}function Tn(e){var t;if(!e.typeId)return"ultramarine";switch(e.typeId){case ge.User:return typeof e.userType=="number"?e.userType===2?"ultramarine":"indigo":e.userType===$r.Learner?"ultramarine":"indigo";case ge.Classroom:return"teal";case ge.ClassroomGroup:return Mt((t=e.metadata)==null?void 0:t.colour)}}function Ha(e){var T,k,B;const t=pt.isType(e.selection,ge.Classroom),n=pt.isType(e.selection,ge.ClassroomGroup),i=e.onClickExpand&&(t||n),u=!!((T=e.selection.users||e.selection.enrolments)!=null&&T.count),o=!!((B=(k=e.selection.users)==null?void 0:k.data)!=null&&B.length),[m,p]=se.useState(!1),[x,d]=se.useState(i&&u);se.useEffect(()=>{d(i&&u)},[i,u]);function E(){p(!0),e.onClickExpand(e.selection.id)}if(o){const M=e.selection,q=Tn(e.selection);return r.jsxs("div",{className:`d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-${q} text-${q} ${ve.bubble}`,children:[M.users.data.map(V=>r.jsx(Ut,{selection:V,colourVariant:q,hasStudentExperience:e.hasStudentExperience},`${V.id}:${e.selection.id}`)),r.jsx(St,{className:`cursor-pointer position-absolute text-${q} ${ve.removeBubble}`,onClick:()=>e.onClickRemove(e.selection),children:r.jsx(de,{svg:Nt,className:`d-flex align-items-center ${ve.svgContainer}`})})]})}return r.jsx(Ut,{selection:e.selection,canExpand:x,hasExpanded:m,onClickExpand:E,onClickRemove:e.onClickRemove,colourVariant:Tn(e.selection),hasStudentExperience:e.hasStudentExperience})}function Ut(e){const t=e.colourVariant||Tn(e.selection);let n=e.selection.name;return e.selection.typeId===ge.User&&(n=e.hasStudentExperience?Ee.getDisplayName(e.selection):Ee.getFullName(e.selection)),r.jsxs("div",{className:`${ve.selection} bg-${t} rounded-pill text-${t} d-flex align-items-center me-1 mt-1 overflow-hidden`,children:[!e.hideExpander&&r.jsx(Ba,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),r.jsx("span",{className:"mx-1 text-white text-truncate",children:n}),Fe.isFunction(e.onClickRemove)&&r.jsx(St,{className:`d-flex align-items-center cursor-pointer align-self-stretch text-white ${ve.remove}`,onClick:()=>e.onClickRemove(e.selection),children:r.jsx(de,{svg:Nt,className:`d-flex align-items-center ${ve.svgContainer}`})})]})}const Va="_removeRecipient_3yabf_1",za="_recipientItem_3yabf_5",Wa="_showSpinner_3yabf_8",Ga="_avatarContainer_3yabf_11",Ka="_recipientDetails_3yabf_15",Qa="_recipientDetailsWithRemoveButton_3yabf_18",Ue={removeRecipient:Va,recipientItem:za,showSpinner:Wa,avatarContainer:Ga,recipientDetails:Ka,recipientDetailsWithRemoveButton:Qa},Ya="shared.classroomGroupRecipientItemMetadata";function Xa(e){var i,u;const t=((i=e.users)==null?void 0:i.count)??0,n=(u=e.classroom)==null?void 0:u.name;return n?ie.getPhrase(Ya,"subheading",{classroomName:n,smartCount:t}):""}function Za(e){var t;return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`${Ue.avatarContainer} d-inline-block`,children:r.jsx(Ur,{svg:Dt,variant:Mt((t=e.classroomGroup.metadata)==null?void 0:t.colour)})}),r.jsxs("div",{className:e.detailsClassName,children:[r.jsx("h4",{className:"font-size-normal fw-normal m-0",children:e.classroomGroup.name}),r.jsx("p",{className:"text-secondary m-0",children:Xa(e.classroomGroup)})]})]})}const Ja="shared.classroomRecipientItemMetadata";function es(e){var n,i;const t=((n=e.users)==null?void 0:n.count)??((i=e.enrolments)==null?void 0:i.count);return Number.isInteger(t)?ie.getPhrase(Ja,"subheading",{smartCount:t}):""}function ts(e){return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`${Ue.avatarContainer} d-inline-block`,children:r.jsx(Ur,{svg:wn,variant:"teal"})}),r.jsxs("div",{className:e.detailsClassName,children:[r.jsx("h4",{className:"font-size-normal fw-normal m-0",children:e.classroom.name}),r.jsx("p",{className:"text-secondary m-0",children:es(e.classroom)})]})]})}const ns=["amber","apricot","aqua","azure","black","blue","bronze","brown","chocolate","copper","coral","cream","crimson","cyan","emerald","gold","green","grey","indigo","ivory","jade","lavender","lime","maroon","mint","navy","olive","orange","peach","pink","plum","purple","red","rose","ruby","sage","salmon","sapphire","scarlet","silver","sky","teal","turquoise","violet","white","yellow"],rs=["aardvark","albatross","alligator","alpaca","ant","anteater","antelope","ape","armadillo","baboon","badger","bat","bear","beaver","bee","beetle","bison","blackbird","boar","bobcat","bonobo","buffalo","butterfly","camel","canary","capybara","caribou","cat","caterpillar","chameleon","cheetah","chimpanzee","chinchilla","chipmunk","clownfish","cockatoo","cougar","cow","coyote","crab","crane","crocodile","crow","deer","dingo","dog","dolphin","donkey","dove","dragonfly","duck","eagle","elephant","elk","emu","falcon","ferret","finch","firefly","fish","flamingo","fox","frog","gazelle","gecko","gerbil","giraffe","goat","goldfish","goose","gorilla","grasshopper","gull","hamster","hare","hawk","hedgehog","heron","hippopotamus","horse","hummingbird","iguana","impala","jaguar","jellyfish","kangaroo","kingfisher","kiwi","koala","koi","ladybug","lemur","leopard","lion","lizard","llama","lobster","lynx","macaw","magpie","manatee","mandrill","marlin","meerkat","mole","mongoose","monkey","moose","mouse","mule","narwhal","newt","nightingale","ocelot","octopus","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","peacock","pelican","penguin","pheasant","pigeon","platypus","pony","porcupine","possum","pufferfish","puffin","puma","quail","rabbit","raccoon","raven","reindeer","rhinoceros","roadrunner","robin","rooster","salamander","salmon","seahorse","seal","shark","sheep","sloth","snail","snake","sparrow","squid","squirrel","starfish","stingray","stork","swallow","swan","swordfish","tapir","tiger","toad","tortoise","toucan","trout","tuna","turtle","wallaby","walrus","weasel","whale","wildebeest","wolf","wolverine","woodpecker","yak","zebra"],ft={colours:ns,animals:rs},is="shared.analyticsUtils",rn=ie.encloseNamespace(is);function fr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function os(e){if(!e)return 0;let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t|=0}return Math.abs(t)}function as(e,t){const n=Math.floor(new Date().getMinutes()/5),i=os(`${e||t}-${n}`),u=ft.colours[i%ft.colours.length],o=ft.animals[Math.floor(i/ft.colours.length)%ft.animals.length];return`${fr(u)} ${fr(o)}`}function gr(e,t){return e?t?as(e.id,e.sessionId):e.deleted?rn("deleted"):Ee.getFullName(e)||rn("anonUser"):rn("anonUser")}function ss(e){return r.jsx("svg",{...e,children:r.jsx("path",{d:"m16.837 9.842-1.138-3.678a1.65 1.65 0 0 0-.887-1.01 1.67 1.67 0 0 0-1.348-.02l-1.14.486a.8.8 0 0 1-.647 0l-1.14-.488a1.67 1.67 0 0 0-1.348.021 1.65 1.65 0 0 0-.887 1.01L7.164 9.842a7.17 7.17 0 0 0-3.062 1.85.41.41 0 0 0 .314.683h15.17c.162 0 .31-.094.376-.241a.41.41 0 0 0-.064-.44 7.17 7.17 0 0 0-3.061-1.852M9.094 6.404a.836.836 0 0 1 1.117-.516l1.135.484c.416.181.89.181 1.306 0l1.137-.485a.836.836 0 0 1 1.117.516l.976 3.153a16.17 16.17 0 0 0-7.764 0zm-3.59 5.148c1.455-1.019 3.866-1.645 6.497-1.645a14.5 14.5 0 0 1 4.41.651c.74.229 1.444.563 2.087.994zm9.807 1.645a2.9 2.9 0 0 0-2.508 1.447 1.61 1.61 0 0 0-1.604 0c-.763-1.323-2.425-1.835-3.807-1.173s-2.016 2.272-1.452 3.69a2.93 2.93 0 0 0 3.6 1.704 2.906 2.906 0 0 0 1.968-3.445.88.88 0 0 1 .986 0 2.87 2.87 0 0 0 1.269 3.088 2.91 2.91 0 0 0 3.351-.176c.966-.762 1.341-2.048.935-3.204s-1.505-1.932-2.738-1.93m-6.62 4.936c-1.143 0-2.07-.92-2.07-2.056s.927-2.057 2.07-2.057 2.069.92 2.069 2.057a2.065 2.065 0 0 1-2.07 2.056m6.62 0c-1.142 0-2.069-.92-2.069-2.056s.927-2.057 2.07-2.057 2.068.92 2.068 2.057a2.065 2.065 0 0 1-2.069 2.056",fill:"currentColor"})})}const us="_iconCircle_186sk_1",cs="_dot_186sk_8",on={iconCircle:us,dot:cs};function ls(e){const t=e.type==="anon";return e.type==="student-reach"?r.jsx("div",{className:"position-relative h-100 w-100",children:r.jsx("div",{className:`${on.iconCircle} bg-orange text-light ${e.extraClasses||""}`,children:r.jsx(de,{svg:Dt,size:e.anonymousSvgSize||vt.Large,className:"svg-container w-100 h-100"})})}):t?r.jsxs("div",{className:"position-relative h-100 w-100",children:[r.jsx("div",{className:`${on.iconCircle} bg-gray-700 text-light ${e.extraClasses||""}`,children:r.jsx(de,{svg:ss,size:e.anonymousSvgSize||vt.Large,className:"svg-container w-100 h-100"})}),e.showDot&&r.jsx("div",{className:`${on.dot} rounded-circle bg-danger`})]}):r.jsx(ci,{imageCdnUrl:e.imageCdnUrl,initials:e.initials,imageUrl:e.imageUrl,extraClasses:e.extraClasses,showDot:e.showDot,anonymiseUsers:e.anonymiseUsers})}const ds="shared.userRecipientItemMetadata",an=ie.encloseNamespace(ds);function fs(e){const t=Ee.getUserType(e),n=Ee.getUserRole(e);if(t===$r.Staff)return n===_n.Admin?an("admin"):an("staff");const i=Ee.getYearGroup(e);return i!=null&&i.name&&i.name!=="Learners"?i.name:an("student")}function gs({user:e,anonymiseUsers:t,showDisplayName:n}){var i;if(e.sessionId||e.deleted){const u=gr(e,t),o=u.split(" ").filter(m=>!!m);return{name:u,surname:o.slice(1).join(" "),avatarUrl:null}}return{name:t?gr(e,!0):n?Ee.getDisplayName(e):Ee.getFullName(e),surname:e.surname,avatarUrl:(i=e.avatar)==null?void 0:i.url}}Jr.defaults={showSubText:!0};function Jr(e){const{name:t,surname:n,avatarUrl:i}=gs(e);return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`${Ue.avatarContainer} ${e.avatarClassName} d-inline-block flex-shrink-0`,children:r.jsx(ls,{imageUrl:i,imageCdnUrl:e.imageCdnUrl,initials:Ee.getInitials(t,n),type:!e.anonymiseUsers&&(e.user.sessionId||e.user.deleted)?"anon":void 0,anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:vt.Small})}),r.jsxs("div",{className:e.detailsClassName,children:[r.jsx("h4",{className:li("font-size-normal fw-normal m-0",e.nameClassName),children:t}),e.showSubText&&"id"in e.user&&r.jsx("p",{className:"text-secondary m-0",children:e.getSubText?e.getSubText(e.user):fs(e.user)})]})]})}const ms="share.recipientItem",sn=ie.encloseNamespace(ms);function hs(e){switch(e){case ge.User:return sn("removeUser");case ge.Classroom:return sn("removeClassroom");case ge.ClassroomGroup:return sn("removeGroup")}return null}function ps(e){const[t,n]=se.useState(!1);let i=`${Ue.recipientItem} d-flex`;t&&(i+=` ${Ue.showSpinner}`);const u=`${e.removeRecipient?Ue.recipientDetailsWithRemoveButton:Ue.recipientDetails} d-inline-block ms-2`;function o(){n(!0),e.removeRecipient(e.entity.id,()=>n(!1))}return r.jsxs("div",{className:i,children:[(()=>{if(pt.isType(e.entity,ge.User))return r.jsx(Jr,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:u,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0});if(pt.isType(e.entity,ge.Classroom))return r.jsx(ts,{classroom:e.entity,detailsClassName:u});if(pt.isType(e.entity,ge.ClassroomGroup))return r.jsx(Za,{classroomGroup:e.entity,detailsClassName:u})})(),Fe.isFunction(e.removeRecipient)&&r.jsx("div",{className:`${Ue.removeRecipient} d-inline-flex justify-content-center align-items-center`,children:t?r.jsx(Fn,{as:"div",size:"sm",animation:"border",role:"status"}):r.jsx(Ar,{title:hs(e.entity.typeId),spanHack:!0,children:r.jsx("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:o})})})]})}var un={},cn,mr;function vs(){if(mr)return cn;mr=1;function e(t,n){if(t===n)return!0;if(!t||!n)return!1;var i=t.length;if(n.length!==i)return!1;for(var u=0;u<i;u++)if(t[u]!==n[u])return!1;return!0}return cn=e,cn}var ln={},dn,hr;function ys(){if(hr)return dn;hr=1;var e=(function(){function t(n,i){var u=[],o=!0,m=!1,p=void 0;try{for(var x=n[Symbol.iterator](),d;!(o=(d=x.next()).done)&&(u.push(d.value),!(i&&u.length===i));o=!0);}catch(E){m=!0,p=E}finally{try{!o&&x.return&&x.return()}finally{if(m)throw p}}return u}return function(n,i){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return t(n,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();return dn=function(t){var n=t.data,i=t.multiSection;function u(d){for(d===null?d=0:d++;d<n.length&&n[d]===0;)d++;return d===n.length?null:d}function o(d){for(d===null?d=n.length-1:d--;d>=0&&n[d]===0;)d--;return d===-1?null:d}function m(d){var E=e(d,2),T=E[0],k=E[1];return i?k===null||k===n[T]-1?(T=u(T),T===null?[null,null]:[T,0]):[T,k+1]:n===0||k===n-1?[null,null]:k===null?[null,0]:[null,k+1]}function p(d){var E=e(d,2),T=E[0],k=E[1];return i?k===null||k===0?(T=o(T),T===null?[null,null]:[T,n[T]-1]):[T,k-1]:n===0||k===0?[null,null]:k===null?[null,n-1]:[null,k-1]}function x(d){return m(d)[1]===null}return{next:m,prev:p,isLast:x}},dn}var Rt={exports:{}},fn,pr;function Ss(){if(pr)return fn;pr=1;var e=Object.prototype.propertyIsEnumerable;function t(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function n(i){var u=Object.getOwnPropertyNames(i);return Object.getOwnPropertySymbols&&(u=u.concat(Object.getOwnPropertySymbols(i))),u.filter(function(o){return e.call(i,o)})}return fn=Object.assign||function(i,u){for(var o,m,p=t(i),x=1;x<arguments.length;x++){o=arguments[x],m=n(Object(o));for(var d=0;d<m.length;d++)p[m[d]]=o[m[d]]}return p},fn}var vr;function bs(){return vr||(vr=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function x(d,E){var T=[],k=!0,B=!1,M=void 0;try{for(var q=d[Symbol.iterator](),V;!(k=(V=q.next()).done)&&(T.push(V.value),!(E&&T.length===E));k=!0);}catch(L){B=!0,M=L}finally{try{!k&&q.return&&q.return()}finally{if(B)throw M}}return T}return function(d,E){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return x(d,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();function i(x){return x&&x.__esModule?x:{default:x}}function u(x){if(Array.isArray(x)){for(var d=0,E=Array(x.length);d<x.length;d++)E[d]=x[d];return E}else return Array.from(x)}var o=Ss(),m=i(o),p=function(d){return d};t.default=function(x){var d=Array.isArray(x)&&x.length===2?x:[x,null],E=n(d,2),T=E[0],k=E[1];return function(B){for(var M=arguments.length,q=Array(M>1?M-1:0),V=1;V<M;V++)q[V-1]=arguments[V];var L=q.map(function(K){return T[K]}).filter(p);return typeof L[0]=="string"||typeof k=="function"?{key:B,className:k?k.apply(void 0,u(L)):L.join(" ")}:{key:B,style:m.default.apply(void 0,[{}].concat(u(L)))}}},e.exports=t.default})(Rt,Rt.exports)),Rt.exports}var gn={},mn={},yr;function Un(){return yr||(yr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function t(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(o){return typeof o}:t=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(i)}function n(i,u){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(i===u)return!1;var m=Object.keys(i),p=Object.keys(u);if(m.length!==p.length)return!0;var x={},d,E;for(d=0,E=o.length;d<E;d++)x[o[d]]=!0;for(d=0,E=m.length;d<E;d++){var T=m[d],k=i[T],B=u[T];if(k!==B){if(!x[T]||k===null||B===null||t(k)!=="object"||t(B)!=="object")return!0;var M=Object.keys(k),q=Object.keys(B);if(M.length!==q.length)return!0;for(var V=0,L=M.length;V<L;V++){var K=M[V];if(k[K]!==B[K])return!0}}}return!1}})(mn)),mn}var Sr;function xs(){return Sr||(Sr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(bt()),n=u(xt()),i=u(Un());function u(C){return C&&C.__esModule?C:{default:C}}function o(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return o=function(){return C},C}function m(C){if(C&&C.__esModule)return C;if(C===null||p(C)!=="object"&&typeof C!="function")return{default:C};var D=o();if(D&&D.has(C))return D.get(C);var R={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in C)if(Object.prototype.hasOwnProperty.call(C,S)){var c=N?Object.getOwnPropertyDescriptor(C,S):null;c&&(c.get||c.set)?Object.defineProperty(R,S,c):R[S]=C[S]}return R.default=C,D&&D.set(C,R),R}function p(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(R){return typeof R}:p=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},p(C)}function x(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}function d(C,D){for(var R=0;R<D.length;R++){var N=D[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}function E(C,D,R){return D&&d(C.prototype,D),C}function T(C){return function(){var D=q(C),R;if(M()){var N=q(this).constructor;R=Reflect.construct(D,arguments,N)}else R=D.apply(this,arguments);return k(this,R)}}function k(C,D){return D&&(p(D)==="object"||typeof D=="function")?D:B(C)}function B(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function q(C){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},q(C)}function V(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),D&&L(C,D)}function L(C,D){return L=Object.setPrototypeOf||function(N,S){return N.__proto__=S,N},L(C,D)}function K(C,D,R){return D in C?Object.defineProperty(C,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):C[D]=R,C}var Z=(function(C){V(R,C);var D=T(R);function R(){return x(this,R),D.apply(this,arguments)}return E(R,[{key:"shouldComponentUpdate",value:function(S){return(0,i.default)(S,this.props)}},{key:"render",value:function(){var S=this.props,c=S.section,y=S.renderSectionTitle,b=S.theme,_=S.sectionKeyPrefix,O=y(c);return O?t.default.createElement("div",b("".concat(_,"title"),"sectionTitle"),O):null}}]),R})(t.Component);e.default=Z,K(Z,"propTypes",{section:n.default.any.isRequired,renderSectionTitle:n.default.func.isRequired,theme:n.default.func.isRequired,sectionKeyPrefix:n.default.string.isRequired})})(gn)),gn}var hn={},pn={},br;function Is(){return br||(br=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(bt()),n=u(xt()),i=u(Un());function u(c){return c&&c.__esModule?c:{default:c}}function o(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return o=function(){return c},c}function m(c){if(c&&c.__esModule)return c;if(c===null||p(c)!=="object"&&typeof c!="function")return{default:c};var y=o();if(y&&y.has(c))return y.get(c);var b={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in c)if(Object.prototype.hasOwnProperty.call(c,O)){var A=_?Object.getOwnPropertyDescriptor(c,O):null;A&&(A.get||A.set)?Object.defineProperty(b,O,A):b[O]=c[O]}return b.default=c,y&&y.set(c,b),b}function p(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(b){return typeof b}:p=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},p(c)}function x(){return x=Object.assign||function(c){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(c[_]=b[_])}return c},x.apply(this,arguments)}function d(c,y){var b=Object.keys(c);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(c);y&&(_=_.filter(function(O){return Object.getOwnPropertyDescriptor(c,O).enumerable})),b.push.apply(b,_)}return b}function E(c){for(var y=1;y<arguments.length;y++){var b=arguments[y]!=null?arguments[y]:{};y%2?d(Object(b),!0).forEach(function(_){N(c,_,b[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(b)):d(Object(b)).forEach(function(_){Object.defineProperty(c,_,Object.getOwnPropertyDescriptor(b,_))})}return c}function T(c,y){if(c==null)return{};var b=k(c,y),_,O;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(c);for(O=0;O<A.length;O++)_=A[O],!(y.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(b[_]=c[_])}return b}function k(c,y){if(c==null)return{};var b={},_=Object.keys(c),O,A;for(A=0;A<_.length;A++)O=_[A],!(y.indexOf(O)>=0)&&(b[O]=c[O]);return b}function B(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function M(c,y){for(var b=0;b<y.length;b++){var _=y[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}function q(c,y,b){return y&&M(c.prototype,y),c}function V(c){return function(){var y=C(c),b;if(Z()){var _=C(this).constructor;b=Reflect.construct(y,arguments,_)}else b=y.apply(this,arguments);return L(this,b)}}function L(c,y){return y&&(p(y)==="object"||typeof y=="function")?y:K(c)}function K(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function Z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function C(c){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},C(c)}function D(c,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(y&&y.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),y&&R(c,y)}function R(c,y){return R=Object.setPrototypeOf||function(_,O){return _.__proto__=O,_},R(c,y)}function N(c,y,b){return y in c?Object.defineProperty(c,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):c[y]=b,c}var S=(function(c){D(b,c);var y=V(b);function b(){var _;B(this,b);for(var O=arguments.length,A=new Array(O),W=0;W<O;W++)A[W]=arguments[W];return _=y.call.apply(y,[this].concat(A)),N(K(_),"storeItemReference",function(Y){Y!==null&&(_.item=Y)}),N(K(_),"onMouseEnter",function(Y){var w=_.props,g=w.sectionIndex,s=w.itemIndex;_.props.onMouseEnter(Y,{sectionIndex:g,itemIndex:s})}),N(K(_),"onMouseLeave",function(Y){var w=_.props,g=w.sectionIndex,s=w.itemIndex;_.props.onMouseLeave(Y,{sectionIndex:g,itemIndex:s})}),N(K(_),"onMouseDown",function(Y){var w=_.props,g=w.sectionIndex,s=w.itemIndex;_.props.onMouseDown(Y,{sectionIndex:g,itemIndex:s})}),N(K(_),"onClick",function(Y){var w=_.props,g=w.sectionIndex,s=w.itemIndex;_.props.onClick(Y,{sectionIndex:g,itemIndex:s})}),_}return q(b,[{key:"shouldComponentUpdate",value:function(O){return(0,i.default)(O,this.props,["renderItemData"])}},{key:"render",value:function(){var O=this.props,A=O.isHighlighted,W=O.item,Y=O.renderItem,w=O.renderItemData,g=T(O,["isHighlighted","item","renderItem","renderItemData"]);return delete g.sectionIndex,delete g.itemIndex,typeof g.onMouseEnter=="function"&&(g.onMouseEnter=this.onMouseEnter),typeof g.onMouseLeave=="function"&&(g.onMouseLeave=this.onMouseLeave),typeof g.onMouseDown=="function"&&(g.onMouseDown=this.onMouseDown),typeof g.onClick=="function"&&(g.onClick=this.onClick),t.default.createElement("li",x({role:"option"},g,{ref:this.storeItemReference}),Y(W,E({isHighlighted:A},w)))}}]),b})(t.Component);e.default=S,N(S,"propTypes",{sectionIndex:n.default.number,isHighlighted:n.default.bool.isRequired,itemIndex:n.default.number.isRequired,item:n.default.any.isRequired,renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,onMouseEnter:n.default.func,onMouseLeave:n.default.func,onMouseDown:n.default.func,onClick:n.default.func})})(pn)),pn}var xr;function _s(){return xr||(xr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=p(bt()),n=o(xt()),i=o(Is()),u=o(Un());function o(S){return S&&S.__esModule?S:{default:S}}function m(){if(typeof WeakMap!="function")return null;var S=new WeakMap;return m=function(){return S},S}function p(S){if(S&&S.__esModule)return S;if(S===null||x(S)!=="object"&&typeof S!="function")return{default:S};var c=m();if(c&&c.has(S))return c.get(S);var y={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in S)if(Object.prototype.hasOwnProperty.call(S,_)){var O=b?Object.getOwnPropertyDescriptor(S,_):null;O&&(O.get||O.set)?Object.defineProperty(y,_,O):y[_]=S[_]}return y.default=S,c&&c.set(S,y),y}function x(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(y){return typeof y}:x=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},x(S)}function d(){return d=Object.assign||function(S){for(var c=1;c<arguments.length;c++){var y=arguments[c];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(S[b]=y[b])}return S},d.apply(this,arguments)}function E(S,c){var y=Object.keys(S);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(S);c&&(b=b.filter(function(_){return Object.getOwnPropertyDescriptor(S,_).enumerable})),y.push.apply(y,b)}return y}function T(S){for(var c=1;c<arguments.length;c++){var y=arguments[c]!=null?arguments[c]:{};c%2?E(Object(y),!0).forEach(function(b){R(S,b,y[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(y)):E(Object(y)).forEach(function(b){Object.defineProperty(S,b,Object.getOwnPropertyDescriptor(y,b))})}return S}function k(S,c){if(!(S instanceof c))throw new TypeError("Cannot call a class as a function")}function B(S,c){for(var y=0;y<c.length;y++){var b=c[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(S,b.key,b)}}function M(S,c,y){return c&&B(S.prototype,c),S}function q(S){return function(){var c=Z(S),y;if(K()){var b=Z(this).constructor;y=Reflect.construct(c,arguments,b)}else y=c.apply(this,arguments);return V(this,y)}}function V(S,c){return c&&(x(c)==="object"||typeof c=="function")?c:L(S)}function L(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Z(S){return Z=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},Z(S)}function C(S,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(c&&c.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),c&&D(S,c)}function D(S,c){return D=Object.setPrototypeOf||function(b,_){return b.__proto__=_,b},D(S,c)}function R(S,c,y){return c in S?Object.defineProperty(S,c,{value:y,enumerable:!0,configurable:!0,writable:!0}):S[c]=y,S}var N=(function(S){C(y,S);var c=q(y);function y(){var b;k(this,y);for(var _=arguments.length,O=new Array(_),A=0;A<_;A++)O[A]=arguments[A];return b=c.call.apply(c,[this].concat(O)),R(L(b),"storeHighlightedItemReference",function(W){b.props.onHighlightedItemChange(W===null?null:W.item)}),b}return M(y,[{key:"shouldComponentUpdate",value:function(_){return(0,u.default)(_,this.props,["itemProps"])}},{key:"render",value:function(){var _=this,O=this.props,A=O.items,W=O.itemProps,Y=O.renderItem,w=O.renderItemData,g=O.sectionIndex,s=O.highlightedItemIndex,l=O.getItemId,h=O.theme,a=O.keyPrefix,f=g===null?a:"".concat(a,"section-").concat(g,"-"),v=typeof W=="function";return t.default.createElement("ul",d({role:"listbox"},h("".concat(f,"items-list"),"itemsList")),A.map(function(I,P){var U=P===0,G=P===s,J="".concat(f,"item-").concat(P),te=v?W({sectionIndex:g,itemIndex:P}):W,ae=T({id:l(g,P),"aria-selected":G},h(J,"item",U&&"itemFirst",G&&"itemHighlighted"),{},te);return G&&(ae.ref=_.storeHighlightedItemReference),t.default.createElement(i.default,d({},ae,{sectionIndex:g,isHighlighted:G,itemIndex:P,item:I,renderItem:Y,renderItemData:w}))}))}}]),y})(t.Component);e.default=N,R(N,"propTypes",{items:n.default.array.isRequired,itemProps:n.default.oneOfType([n.default.object,n.default.func]),renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,sectionIndex:n.default.number,highlightedItemIndex:n.default.number,onHighlightedItemChange:n.default.func.isRequired,getItemId:n.default.func.isRequired,theme:n.default.func.isRequired,keyPrefix:n.default.string.isRequired}),R(N,"defaultProps",{sectionIndex:null})})(hn)),hn}var Ir;function ws(){return Ir||(Ir=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=d(bt()),n=p(xt()),i=p(ys()),u=p(bs()),o=p(xs()),m=p(_s());function p(s){return s&&s.__esModule?s:{default:s}}function x(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return x=function(){return s},s}function d(s){if(s&&s.__esModule)return s;if(s===null||K(s)!=="object"&&typeof s!="function")return{default:s};var l=x();if(l&&l.has(s))return l.get(s);var h={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(Object.prototype.hasOwnProperty.call(s,f)){var v=a?Object.getOwnPropertyDescriptor(s,f):null;v&&(v.get||v.set)?Object.defineProperty(h,f,v):h[f]=s[f]}return h.default=s,l&&l.set(s,h),h}function E(s,l){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(s);l&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(s,f).enumerable})),h.push.apply(h,a)}return h}function T(s){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?E(Object(h),!0).forEach(function(a){O(s,a,h[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):E(Object(h)).forEach(function(a){Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(h,a))})}return s}function k(s,l){return L(s)||V(s,l)||M(s,l)||B()}function B(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
6
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(s,l){if(s){if(typeof s=="string")return q(s,l);var h=Object.prototype.toString.call(s).slice(8,-1);if(h==="Object"&&s.constructor&&(h=s.constructor.name),h==="Map"||h==="Set")return Array.from(h);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return q(s,l)}}function q(s,l){(l==null||l>s.length)&&(l=s.length);for(var h=0,a=new Array(l);h<l;h++)a[h]=s[h];return a}function V(s,l){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var h=[],a=!0,f=!1,v=void 0;try{for(var I=s[Symbol.iterator](),P;!(a=(P=I.next()).done)&&(h.push(P.value),!(l&&h.length===l));a=!0);}catch(U){f=!0,v=U}finally{try{!a&&I.return!=null&&I.return()}finally{if(f)throw v}}return h}}function L(s){if(Array.isArray(s))return s}function K(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K=function(h){return typeof h}:K=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},K(s)}function Z(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function C(s,l){for(var h=0;h<l.length;h++){var a=l[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function D(s,l,h){return l&&C(s.prototype,l),s}function R(s){return function(){var l=y(s),h;if(c()){var a=y(this).constructor;h=Reflect.construct(l,arguments,a)}else h=l.apply(this,arguments);return N(this,h)}}function N(s,l){return l&&(K(l)==="object"||typeof l=="function")?l:S(s)}function S(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function y(s){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},y(s)}function b(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),l&&_(s,l)}function _(s,l){return _=Object.setPrototypeOf||function(a,f){return a.__proto__=f,a},_(s,l)}function O(s,l,h){return l in s?Object.defineProperty(s,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):s[l]=h,s}var A={},W=function(l){return t.default.createElement("input",l)},Y=function(l){var h=l.containerProps,a=l.children;return t.default.createElement("div",h,a)},w={container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"},g=(function(s){b(h,s);var l=R(h);function h(a){var f;return Z(this,h),f=l.call(this,a),O(S(f),"storeInputReference",function(v){v!==null&&(f.input=v);var I=f.props.inputProps.ref;I&&(typeof I=="function"?I(v):K(I)==="object"&&Object.prototype.hasOwnProperty.call(I,"current")&&(I.current=v))}),O(S(f),"storeItemsContainerReference",function(v){v!==null&&(f.itemsContainer=v)}),O(S(f),"onHighlightedItemChange",function(v){f.highlightedItem=v}),O(S(f),"getItemId",function(v,I){if(I===null)return null;var P=f.props.id,U=v===null?"":"section-".concat(v);return"react-autowhatever-".concat(P,"-").concat(U,"-item-").concat(I)}),O(S(f),"onFocus",function(v){var I=f.props.inputProps;f.setState({isInputFocused:!0}),I.onFocus&&I.onFocus(v)}),O(S(f),"onBlur",function(v){var I=f.props.inputProps;f.setState({isInputFocused:!1}),I.onBlur&&I.onBlur(v)}),O(S(f),"onKeyDown",function(v){var I=f.props,P=I.inputProps,U=I.highlightedSectionIndex,G=I.highlightedItemIndex,J=v.keyCode;switch(J){case 40:case 38:{var te=J===40?"next":"prev",ae=f.sectionIterator[te]([U,G]),le=k(ae,2),me=le[0],we=le[1];P.onKeyDown(v,{newHighlightedSectionIndex:me,newHighlightedItemIndex:we});break}default:P.onKeyDown(v,{highlightedSectionIndex:U,highlightedItemIndex:G})}}),f.highlightedItem=null,f.state={isInputFocused:!1},f.setSectionsItems(a),f.setSectionIterator(a),f.setTheme(a),f}return D(h,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(f){f.items!==this.props.items&&this.setSectionsItems(f),(f.items!==this.props.items||f.multiSection!==this.props.multiSection)&&this.setSectionIterator(f),f.theme!==this.props.theme&&this.setTheme(f)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(f){f.multiSection&&(this.sectionsItems=f.items.map(function(v){return f.getSectionItems(v)}),this.sectionsLengths=this.sectionsItems.map(function(v){return v.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(v){return v===0}))}},{key:"setSectionIterator",value:function(f){this.sectionIterator=(0,i.default)({multiSection:f.multiSection,data:f.multiSection?this.sectionsLengths:f.items.length})}},{key:"setTheme",value:function(f){this.theme=(0,u.default)(f.theme)}},{key:"renderSections",value:function(){var f=this;if(this.allSectionsAreEmpty)return null;var v=this.theme,I=this.props,P=I.id,U=I.items,G=I.renderItem,J=I.renderItemData,te=I.renderSectionTitle,ae=I.highlightedSectionIndex,le=I.highlightedItemIndex,me=I.itemProps;return U.map(function(we,fe){var Re="react-autowhatever-".concat(P,"-"),Se="".concat(Re,"section-").concat(fe,"-"),be=fe===0;return t.default.createElement("div",v("".concat(Se,"container"),"sectionContainer",be&&"sectionContainerFirst"),t.default.createElement(o.default,{section:we,renderSectionTitle:te,theme:v,sectionKeyPrefix:Se}),t.default.createElement(m.default,{items:f.sectionsItems[fe],itemProps:me,renderItem:G,renderItemData:J,sectionIndex:fe,highlightedItemIndex:ae===fe?le:null,onHighlightedItemChange:f.onHighlightedItemChange,getItemId:f.getItemId,theme:v,keyPrefix:Re,ref:f.storeItemsListReference}))})}},{key:"renderItems",value:function(){var f=this.props.items;if(f.length===0)return null;var v=this.theme,I=this.props,P=I.id,U=I.renderItem,G=I.renderItemData,J=I.highlightedSectionIndex,te=I.highlightedItemIndex,ae=I.itemProps;return t.default.createElement(m.default,{items:f,itemProps:ae,renderItem:U,renderItemData:G,highlightedItemIndex:J===null?te:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:v,keyPrefix:"react-autowhatever-".concat(P,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var f=this.highlightedItem;if(f){var v=this.itemsContainer,I=f.offsetParent===v?f.offsetTop:f.offsetTop-v.offsetTop,P=v.scrollTop;I<P?P=I:I+f.offsetHeight>P+v.offsetHeight&&(P=I+f.offsetHeight-v.offsetHeight),P!==v.scrollTop&&(v.scrollTop=P)}}},{key:"render",value:function(){var f=this.theme,v=this.props,I=v.id,P=v.multiSection,U=v.renderInputComponent,G=v.renderItemsContainer,J=v.highlightedSectionIndex,te=v.highlightedItemIndex,ae=this.state.isInputFocused,le=P?this.renderSections():this.renderItems(),me=le!==null,we=this.getItemId(J,te),fe="react-autowhatever-".concat(I),Re=T({role:"combobox","aria-haspopup":"listbox","aria-owns":fe,"aria-expanded":me},f("react-autowhatever-".concat(I,"-container"),"container",me&&"containerOpen"),{},this.props.containerProps),Se=U(T({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":fe,"aria-activedescendant":we},f("react-autowhatever-".concat(I,"-input"),"input",me&&"inputOpen",ae&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),be=G({containerProps:T({id:fe,role:"listbox"},f("react-autowhatever-".concat(I,"-items-container"),"itemsContainer",me&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:le});return t.default.createElement("div",Re,Se,be)}}]),h})(t.Component);e.default=g,O(g,"propTypes",{id:n.default.string,multiSection:n.default.bool,renderInputComponent:n.default.func,renderItemsContainer:n.default.func,items:n.default.array.isRequired,renderItem:n.default.func,renderItemData:n.default.object,renderSectionTitle:n.default.func,getSectionItems:n.default.func,containerProps:n.default.object,inputProps:n.default.object,itemProps:n.default.oneOfType([n.default.object,n.default.func]),highlightedSectionIndex:n.default.number,highlightedItemIndex:n.default.number,theme:n.default.oneOfType([n.default.object,n.default.array])}),O(g,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:W,renderItemsContainer:Y,renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:A,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:A,inputProps:A,itemProps:A,highlightedSectionIndex:null,highlightedItemIndex:null,theme:w})})(ln)),ln}var ze={},_r;function Cs(){if(_r)return ze;_r=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.mapToAutowhateverTheme=ze.defaultTheme=void 0;var e={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};ze.defaultTheme=e;var t=function(i){var u={};for(var o in i)switch(o){case"suggestionsContainer":u.itemsContainer=i[o];break;case"suggestionsContainerOpen":u.itemsContainerOpen=i[o];break;case"suggestion":u.item=i[o];break;case"suggestionFirst":u.itemFirst=i[o];break;case"suggestionHighlighted":u.itemHighlighted=i[o];break;case"suggestionsList":u.itemsList=i[o];break;default:u[o]=i[o]}return u};return ze.mapToAutowhateverTheme=t,ze}var wr;function Os(){return wr||(wr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=x(bt()),n=m(xt()),i=m(vs()),u=m(ws()),o=Cs();function m(g){return g&&g.__esModule?g:{default:g}}function p(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return p=function(){return g},g}function x(g){if(g&&g.__esModule)return g;if(g===null||d(g)!=="object"&&typeof g!="function")return{default:g};var s=p();if(s&&s.has(g))return s.get(g);var l={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in g)if(Object.prototype.hasOwnProperty.call(g,a)){var f=h?Object.getOwnPropertyDescriptor(g,a):null;f&&(f.get||f.set)?Object.defineProperty(l,a,f):l[a]=g[a]}return l.default=g,s&&s.set(g,l),l}function d(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(l){return typeof l}:d=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},d(g)}function E(g,s){var l=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);s&&(h=h.filter(function(a){return Object.getOwnPropertyDescriptor(g,a).enumerable})),l.push.apply(l,h)}return l}function T(g){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?E(Object(l),!0).forEach(function(h){R(g,h,l[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(l)):E(Object(l)).forEach(function(h){Object.defineProperty(g,h,Object.getOwnPropertyDescriptor(l,h))})}return g}function k(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function B(g,s){for(var l=0;l<s.length;l++){var h=s[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}function M(g,s,l){return s&&B(g.prototype,s),g}function q(g){return function(){var s=Z(g),l;if(K()){var h=Z(this).constructor;l=Reflect.construct(s,arguments,h)}else l=s.apply(this,arguments);return V(this,l)}}function V(g,s){return s&&(d(s)==="object"||typeof s=="function")?s:L(g)}function L(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Z(g){return Z=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},Z(g)}function C(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),s&&D(g,s)}function D(g,s){return D=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h},D(g,s)}function R(g,s,l){return s in g?Object.defineProperty(g,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):g[s]=l,g}var N=function(){return!0},S=function(s){return s.trim().length>0},c=function(s){var l=s.containerProps,h=s.children;return t.default.createElement("div",l,h)},y="suggestions-revealed",b="suggestions-updated",_="suggestion-selected",O="input-focused",A="input-changed",W="input-blurred",Y="escape-pressed",w=(function(g){C(l,g);var s=q(l);function l(h){var a,f=h.alwaysRenderSuggestions;return k(this,l),a=s.call(this),R(L(a),"onDocumentMouseDown",function(v){a.justClickedOnSuggestionsContainer=!1;for(var I=v.detail&&v.detail.target||v.target;I!==null&&I!==document;){if(I.getAttribute&&I.getAttribute("data-suggestion-index")!==null)return;if(I===a.suggestionsContainer){a.justClickedOnSuggestionsContainer=!0;return}I=I.parentNode}}),R(L(a),"storeAutowhateverRef",function(v){v!==null&&(a.autowhatever=v)}),R(L(a),"onSuggestionMouseEnter",function(v,I){var P=I.sectionIndex,U=I.itemIndex;a.updateHighlightedSuggestion(P,U),v.target===a.pressedSuggestion&&(a.justSelectedSuggestion=!0),a.justMouseEntered=!0,setTimeout(function(){a.justMouseEntered=!1})}),R(L(a),"highlightFirstSuggestion",function(){a.updateHighlightedSuggestion(a.props.multiSection?0:null,0)}),R(L(a),"onDocumentMouseUp",function(){a.pressedSuggestion&&!a.justSelectedSuggestion&&a.input.focus(),a.pressedSuggestion=null}),R(L(a),"onSuggestionMouseDown",function(v){a.justSelectedSuggestion||(a.justSelectedSuggestion=!0,a.pressedSuggestion=v.target)}),R(L(a),"onSuggestionsClearRequested",function(){var v=a.props.onSuggestionsClearRequested;v&&v()}),R(L(a),"onSuggestionSelected",function(v,I){var P=a.props,U=P.alwaysRenderSuggestions,G=P.onSuggestionSelected,J=P.onSuggestionsFetchRequested;G&&G(v,I);var te=a.props.shouldKeepSuggestionsOnSelect(I.suggestion);U||te?J({value:I.suggestionValue,reason:_}):a.onSuggestionsClearRequested(),a.resetHighlightedSuggestion()}),R(L(a),"onSuggestionClick",function(v){var I=a.props,P=I.alwaysRenderSuggestions,U=I.focusInputOnSuggestionClick,G=a.getSuggestionIndices(a.findSuggestionElement(v.target)),J=G.sectionIndex,te=G.suggestionIndex,ae=a.getSuggestion(J,te),le=a.props.getSuggestionValue(ae);a.maybeCallOnChange(v,le,"click"),a.onSuggestionSelected(v,{suggestion:ae,suggestionValue:le,suggestionIndex:te,sectionIndex:J,method:"click"});var me=a.props.shouldKeepSuggestionsOnSelect(ae);P||me||a.closeSuggestions(),U===!0?a.input.focus():a.onBlur(),setTimeout(function(){a.justSelectedSuggestion=!1})}),R(L(a),"onBlur",function(){var v=a.props,I=v.inputProps,P=v.shouldRenderSuggestions,U=I.value,G=I.onBlur,J=a.getHighlightedSuggestion(),te=P(U,W);a.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!te}),G&&G(a.blurEvent,{highlightedSuggestion:J})}),R(L(a),"onSuggestionMouseLeave",function(v){a.resetHighlightedSuggestion(!1),a.justSelectedSuggestion&&v.target===a.pressedSuggestion&&(a.justSelectedSuggestion=!1)}),R(L(a),"onSuggestionTouchStart",function(){a.justSelectedSuggestion=!0}),R(L(a),"onSuggestionTouchMove",function(){a.justSelectedSuggestion=!1,a.pressedSuggestion=null,a.input.focus()}),R(L(a),"itemProps",function(v){var I=v.sectionIndex,P=v.itemIndex;return{"data-section-index":I,"data-suggestion-index":P,onMouseEnter:a.onSuggestionMouseEnter,onMouseLeave:a.onSuggestionMouseLeave,onMouseDown:a.onSuggestionMouseDown,onTouchStart:a.onSuggestionTouchStart,onTouchMove:a.onSuggestionTouchMove,onClick:a.onSuggestionClick}}),R(L(a),"renderSuggestionsContainer",function(v){var I=v.containerProps,P=v.children,U=a.props.renderSuggestionsContainer;return U({containerProps:I,children:P,query:a.getQuery()})}),a.state={isFocused:!1,isCollapsed:!f,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},a.justPressedUpDown=!1,a.justMouseEntered=!1,a.pressedSuggestion=null,a}return M(l,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(a){var f=this.state.highlightedSuggestionIndex===0&&this.props.highlightFirstSuggestion&&!a.highlightFirstSuggestion;(0,i.default)(a.suggestions,this.props.suggestions)?a.highlightFirstSuggestion&&a.suggestions.length>0&&this.justPressedUpDown===!1&&this.justMouseEntered===!1?this.highlightFirstSuggestion():f&&this.resetHighlightedSuggestion():this.willRenderSuggestions(a,b)?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),f&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(a,f){var v=this.props,I=v.suggestions,P=v.onSuggestionHighlighted,U=v.highlightFirstSuggestion;if(!(0,i.default)(I,a.suggestions)&&I.length>0&&U){this.highlightFirstSuggestion();return}if(P){var G=this.getHighlightedSuggestion(),J=f.highlightedSuggestion;G!=J&&P({suggestion:G})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(a,f,v){var I=this;this.setState(function(P){var U=P.valueBeforeUpDown;return f===null?U=null:U===null&&typeof v<"u"&&(U=v),{highlightedSectionIndex:a,highlightedSuggestionIndex:f,highlightedSuggestion:f===null?null:I.getSuggestion(a,f),valueBeforeUpDown:U}})}},{key:"resetHighlightedSuggestion",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setState(function(f){var v=f.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:a?null:v}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(a,f){var v=this.props,I=v.suggestions,P=v.multiSection,U=v.getSectionSuggestions;return P?U(I[a])[f]:I[f]}},{key:"getHighlightedSuggestion",value:function(){var a=this.state,f=a.highlightedSectionIndex,v=a.highlightedSuggestionIndex;return v===null?null:this.getSuggestion(f,v)}},{key:"getSuggestionValueByIndex",value:function(a,f){var v=this.props.getSuggestionValue;return v(this.getSuggestion(a,f))}},{key:"getSuggestionIndices",value:function(a){var f=a.getAttribute("data-section-index"),v=a.getAttribute("data-suggestion-index");return{sectionIndex:typeof f=="string"?parseInt(f,10):null,suggestionIndex:parseInt(v,10)}}},{key:"findSuggestionElement",value:function(a){var f=a;do{if(f.getAttribute&&f.getAttribute("data-suggestion-index")!==null)return f;f=f.parentNode}while(f!==null);throw console.error("Clicked element:",a),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(a,f,v){var I=this.props.inputProps,P=I.value,U=I.onChange;f!==P&&U(a,{newValue:f,method:v})}},{key:"willRenderSuggestions",value:function(a,f){var v=a.suggestions,I=a.inputProps,P=a.shouldRenderSuggestions,U=I.value;return v.length>0&&P(U,f)}},{key:"getQuery",value:function(){var a=this.props.inputProps,f=a.value,v=this.state.valueBeforeUpDown;return(v===null?f:v).trim()}},{key:"render",value:function(){var a=this,f=this.props,v=f.suggestions,I=f.renderInputComponent,P=f.onSuggestionsFetchRequested,U=f.renderSuggestion,G=f.inputProps,J=f.multiSection,te=f.renderSectionTitle,ae=f.id,le=f.getSectionSuggestions,me=f.theme,we=f.getSuggestionValue,fe=f.alwaysRenderSuggestions,Re=f.highlightFirstSuggestion,Se=f.containerProps,be=this.state,Qe=be.isFocused,Me=be.isCollapsed,_t=be.highlightedSectionIndex,wt=be.highlightedSuggestionIndex,Ye=be.valueBeforeUpDown,j=fe?N:this.props.shouldRenderSuggestions,F=G.value,ne=G.onFocus,ue=G.onKeyDown,he=this.willRenderSuggestions(this.props,"render"),Ce=fe||Qe&&!Me&&he,Ae=Ce?v:[],ct=T({},G,{onFocus:function(ee){if(!a.justSelectedSuggestion&&!a.justClickedOnSuggestionsContainer){var xe=j(F,O);a.setState({isFocused:!0,isCollapsed:!xe}),ne&&ne(ee),xe&&P({value:F,reason:O})}},onBlur:function(ee){if(a.justClickedOnSuggestionsContainer){a.input.focus();return}a.blurEvent=ee,a.justSelectedSuggestion||(a.onBlur(),a.onSuggestionsClearRequested())},onChange:function(ee){var xe=ee.target.value,Pe=j(xe,A);a.maybeCallOnChange(ee,xe,"type"),a.suggestionsContainer&&(a.suggestionsContainer.scrollTop=0),a.setState(T({},Re?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!Pe})),Pe?P({value:xe,reason:A}):a.onSuggestionsClearRequested()},onKeyDown:function(ee,xe){var Pe=ee.keyCode;switch(Pe){case 40:case 38:if(Me)j(F,y)&&(P({value:F,reason:y}),a.revealSuggestions(),ee.preventDefault());else if(v.length>0){var Xe=xe.newHighlightedSectionIndex,He=xe.newHighlightedItemIndex,dt;He===null?dt=Ye===null?F:Ye:dt=a.getSuggestionValueByIndex(Xe,He),a.updateHighlightedSuggestion(Xe,He,F),a.maybeCallOnChange(ee,dt,Pe===40?"down":"up"),ee.preventDefault()}a.justPressedUpDown=!0,setTimeout(function(){a.justPressedUpDown=!1});break;case 13:{if(ee.keyCode===229)break;var Bt=a.getHighlightedSuggestion();if(Ce&&!fe&&a.closeSuggestions(),Bt!=null){ee.preventDefault();var Hn=we(Bt);a.maybeCallOnChange(ee,Hn,"enter"),a.onSuggestionSelected(ee,{suggestion:Bt,suggestionValue:Hn,suggestionIndex:wt,sectionIndex:_t,method:"enter"}),a.justSelectedSuggestion=!0,setTimeout(function(){a.justSelectedSuggestion=!1})}break}case 27:{Ce&&ee.preventDefault();var Vn=Ce&&!fe;if(Ye===null){if(!Vn){var Ht="";a.maybeCallOnChange(ee,Ht,"escape"),j(Ht,Y)?P({value:Ht,reason:Y}):a.onSuggestionsClearRequested()}}else a.maybeCallOnChange(ee,Ye,"escape");Vn?(a.onSuggestionsClearRequested(),a.closeSuggestions()):a.resetHighlightedSuggestion();break}}ue&&ue(ee)}}),lt={query:this.getQuery()};return t.default.createElement(u.default,{multiSection:J,items:Ae,renderInputComponent:I,renderItemsContainer:this.renderSuggestionsContainer,renderItem:U,renderItemData:lt,renderSectionTitle:te,getSectionItems:le,highlightedSectionIndex:_t,highlightedItemIndex:wt,containerProps:Se,inputProps:ct,itemProps:this.itemProps,theme:(0,o.mapToAutowhateverTheme)(me),id:ae,ref:this.storeAutowhateverRef})}}]),l})(t.Component);e.default=w,R(w,"propTypes",{suggestions:n.default.array.isRequired,onSuggestionsFetchRequested:function(s,l){var h=s[l];if(typeof h!="function")throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(s,l){var h=s[l];if(s.alwaysRenderSuggestions===!1&&typeof h!="function")throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:n.default.func,onSuggestionSelected:n.default.func,onSuggestionHighlighted:n.default.func,renderInputComponent:n.default.func,renderSuggestionsContainer:n.default.func,getSuggestionValue:n.default.func.isRequired,renderSuggestion:n.default.func.isRequired,inputProps:function(s,l){var h=s[l];if(!h)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(h,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(h,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:n.default.func,alwaysRenderSuggestions:n.default.bool,multiSection:n.default.bool,renderSectionTitle:function(s,l){var h=s[l];if(s.multiSection===!0&&typeof h!="function")throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(s,l){var h=s[l];if(s.multiSection===!0&&typeof h!="function")throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:n.default.bool,highlightFirstSuggestion:n.default.bool,theme:n.default.object,id:n.default.string,containerProps:n.default.object}),R(w,"defaultProps",{renderSuggestionsContainer:c,shouldRenderSuggestions:S,alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:o.defaultTheme,id:"1",containerProps:{}})})(un)),un}var vn,Cr;function js(){return Cr||(Cr=1,vn=Os().default),vn}var Es=js();const Rs=Fr(Es),Ps="_inputWithoutHighlight_1gh2d_1",Ts="_suggestionsContainerOpen_1gh2d_5",Ds="_sectionContainer_1gh2d_12",ks="_suggestionHighlighted_1gh2d_15",Fs="_clearButton_1gh2d_18",As="_inputWithLeftIcon_1gh2d_21",$s="_inputWithRightIcon_1gh2d_24",Ls="_inputWithTwoRightIcons_1gh2d_27",Us="_iconContainer_1gh2d_30",Ns="_leftIconContainer_1gh2d_35",qs="_rightIconContainer_1gh2d_38",Ie={inputWithoutHighlight:Ps,suggestionsContainerOpen:Ts,sectionContainer:Ds,suggestionHighlighted:ks,clearButton:Fs,inputWithLeftIcon:As,inputWithRightIcon:$s,inputWithTwoRightIcons:Ls,iconContainer:Us,leftIconContainer:Ns,rightIconContainer:qs};function Ms(e,t,n,i,u){let o="form-control text-truncate";return n||(o+=` ${Ie.inputWithoutHighlight}`),e==="left"&&(o+=` ${Ie.inputWithLeftIcon}`),(e==="right"&&!t||e==="left"&&t||t)&&(o+=` ${Ie.inputWithRightIcon}`),e==="right"&&t&&(o+=` ${Ie.inputWithTwoRightIcons}`),u==="lg"&&(o+=" form-control-lg"),u==="sm"&&(o+=" form-control-sm"),i&&(o+=` ${i}`),o}function Or(e){const t="d-inline-block svg-container";return Fe.isFunction(e)?t+" cursor-pointer":t}function Bs(e){const{onClickSearchIcon:t,searchIconPlacement:n,showClearInputIcon:i,onClickClearInput:u,highlightOnFocus:o,className:m,formSize:p,...x}=e,d=()=>r.jsx("div",{className:"d-inline-block",children:r.jsx(de,{svg:Nr,size:vt.Standard,onClick:t,className:Or(t)})}),E=()=>r.jsx("button",{className:`d-inline-block text-secondary ${Ie.clearButton}`,onMouseUp:u,children:r.jsx(de,{svg:Nt,size:vt.Standard,className:Or(u)})});return r.jsxs("div",{className:`position-relative ${Ie.inputContainer}`,children:[n==="left"&&r.jsx("div",{className:`${Ie.iconContainer} ${Ie.leftIconContainer}`,children:r.jsx(d,{})}),r.jsx("input",{className:Ms(n,i,o,m,p),...x}),(n==="right"||!!i)&&r.jsxs("div",{className:`${Ie.iconContainer} ${Ie.rightIconContainer}`,children:[!!i&&r.jsx(E,{}),n==="right"&&r.jsx(d,{})]})]})}function ot(e,t){return{recent:t,local:e,remote:[],generic:[]}}function Nn(e,t){return Lr.isObject(e)&&e.hasOwnProperty(t)&&qr.isString(e[t])}function qn(e,t,n,i){const u=e.trim().toLowerCase();return u.length<i?[]:t.filter(o=>!Nn(o,n)||!qr.isString(o[n])?!1:o[n].trim().toLowerCase().includes(u))}function Hs(e,t,n,i,u,o){const m=Fe.isFunction(e)&&e(t);if(m){if(o){zn({resource:m,type:In.POST,success:n,error:i,headers:u,data:o(t)});return}zn({resource:m,type:In.GET,success:n,error:i,headers:u})}}function rt(e,t){e({...ot([],[]),generic:[{type:t,generic:!0}]})}function jr(e,t,n){const i=Fe.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;if(!i.length&&t.getEmptyStateComponent){rt(n,"empty");return}n(u=>({...u,remote:i,generic:[]}))}function yn(e,t,n){return({value:i,reason:u})=>{var m;if((((m=e.allowableSuggestionFetchRequestedReasons)==null?void 0:m.includes(u))??!0)&&(i.length||n(),!(i.length<e.activationLength))){if(e.local){const p=Fe.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):qn(i,e.local,e.valueKey,e.activationLength);if(!p.length&&e.getEmptyStateComponent){rt(t,"empty");return}t(x=>({...x,local:p,generic:[]}))}if(typeof e.handleFetchSuggestions=="function"){e.replacePreviousRemoteSuggestions?t(p=>({...ot([],[]),remote:p.remote})):rt(t,"loading"),e.handleFetchSuggestions(i,p=>jr(p,e,t),()=>rt(t,"errored"));return}e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t(p=>({...ot([],[]),remote:p.remote})):rt(t,"loading"),Hs(e.getRemoteUrl,i,p=>jr(p,e,t),()=>{rt(t,"errored")},e.requestHeaders,e.getRemotePostBody))}}}function Vs(e,t){return Nn(t,e)?t[e]:""}function Mn(e,t){return Nn(t,e)?r.jsx(r.Fragment,{children:t[e]}):r.jsx(r.Fragment,{})}function zs(e){function t(n){n.stopPropagation()}return r.jsx("div",{className:`d-flex justify-content-center cursor-default ${e??""}`,onClick:t,children:r.jsx(Fn,{as:"span",animation:"border",role:"status"})})}function Ws(e,t,n,i,u,o){const m=k=>{const B=e[k];return B?B.map(M=>({...M,suggestionType:k})):[]},p=m("recent"),x=m("local"),d=m("remote"),E=m("generic");if(E.length)return[{data:E,suggestionType:"generic"}];if(Fe.isFunction(i))return i([...x,...d,...p]);const T=[];return x!=null&&x.length&&T.push({title:t,data:bn(x,Sn("local",u)),suggestionType:"local"}),d!=null&&d.length&&T.push({title:t,data:bn(d,Sn("remote",u)),suggestionType:"remote"}),p!=null&&p.length&&T.push({title:n,data:bn(p,Sn("recent",u)),suggestionType:"recent"}),typeof o=="function"?o(T):T}function Sn(e,t){return typeof t=="number"||typeof t=="boolean"?t:t[e]||!1}function bn(e,t){return typeof t=="boolean"||e.length<=t?e:e.slice(0,t)}function Gs(e){return e.data}function Ks(e,t){if(e.title)return r.jsx("div",{className:`pb-1 ${t??""}`,children:r.jsx("strong",{children:e.title})})}function Qs(e){return{container:"position-relative",suggestionsContainerOpen:`bg-white py-1 border rounded ${Ie.suggestionsContainerOpen}`,suggestionsList:"list-unstyled m-0",suggestion:`${e?"":"cursor-pointer"} py-1 px-2`,suggestionHighlighted:e?"":Ie.suggestionHighlighted,sectionContainer:`border-bottom py-1 ${Ie.sectionContainer}`}}function Ys(e,t){const n=typeof e=="function"?e(t):e,i=Qs(t);return Object.assign(i,n)}function Xs(e,t,n,i,u,o){$.useEffect(()=>{!e||e.current||(e.current={resetQuery:t,setQuery:n,focusInput:i,blurInput:u,setInputProperty:o})},[e==null?void 0:e.current])}function Zs(e){const[t,n]=di("lite:search:bar:focus",{focus:!1});return $.useEffect(()=>{!t.focus||!(e!=null&&e.current)||(e.current.focus(),n({focus:!1}))},[t.focus]),{focusSearchBar:()=>n({focus:!0}),shouldFocus:t.focus}}const Er="shared.searchBar",Te=Fe.isFunction;function Js(e){return e.renderAsForm?r.jsx("form",{onSubmit:e.onSubmit,children:e.children}):r.jsx("div",{className:"w-100",children:e.children})}ei.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};function ei(e){const t=ot(e.initialLocalSuggestions,e.recentSearches),[n,i]=$.useState(e.initialQuery||""),[u,o]=$.useState(t),m=$.useMemo(()=>Ws(u,e.suggestionsHeading,e.recentSearchHeading||ie.getPhrase(Er,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections),[u]);$.useEffect(()=>{Lr.isEqual(t,u)||n&&n.length>=(e==null?void 0:e.activationLength)||o(t)},[t]),$.useEffect(()=>{typeof e.onSuggestionUpdated=="function"&&e.onSuggestionUpdated(m)},[m]);const p=$.useRef(null),x=$.useRef(!1);Zs(p);const[d,E]=$.useState(e.initialQuery||""),[T,k]=$.useState("none"),B=fi(Fi.XS);$.useEffect(()=>{!e.resetSuggestionsOnNoActivation||!n||n.length>=e.activationLength||M()},[n]),$.useEffect(()=>{if(n.length)return;const w=ot(e.initialLocalSuggestions,e.recentSearches);o(w)},[e.initialLocalSuggestions,e.recentSearches]),$.useEffect(()=>{const w=e.initialQuery||"";n!==w&&(i(w),E(w))},[e.initialQuery]),$.useEffect(()=>{!p.current||!e.autoFocusInput||p.current.focus()},[e.autoFocusInput]);const M=()=>{const w=ot(e.initialLocalSuggestions,e.recentSearches);o(w)},q=()=>{i(""),E("")},V=()=>{var w;(w=p.current)==null||w.focus()},L=()=>{var w;(w=p.current)==null||w.blur()},K=(w,g)=>{var s,l,h;p.current&&((h=(l=(s=p.current)==null?void 0:s.style)==null?void 0:l.setProperty)==null||h.call(l,w,g))};Xs(e.controlsRef,q,i,V,L,K);const Z=(w,{newValue:g,method:s})=>{s==="type"&&E(g),!(s==="escape"&&(k("none"),!(e!=null&&e.resetQueryOnEscape)))&&(["up","down"].includes(s)||(i(g),Te(e.onQueryChange)&&e.onQueryChange(g)))},C=()=>{k("none")},D=w=>{w.preventDefault(),Te(e.onSubmit)&&e.onSubmit(n,p.current),e.clearQueryOnSelect&&q()},R=w=>{if(w.key==="Backspace"&&e.onBackspace&&!n){e.onBackspace();return}if(w.key==="ArrowUp"||w.key==="ArrowDown"){x.current=!0;return}},N=()=>{q(),e.resetSuggestionsOnClear&&M(),Te(e.onClickClearInput)&&e.onClickClearInput()},S=({suggestion:w})=>{if(T==="none"&&!w)return;x.current&&e.onArrowKeyUpOrDown&&(x.current=!1,e.onArrowKeyUpOrDown()),k(w?"suggestion":"custom")};function c(w){return Te(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(w):e.shouldUpdateQueryOnSelection}const y=$.useMemo(()=>e.debounceTime?Fe.debounce(yn(e,o,M),e.debounceTime):yn(e,o,M),[e.debounceTime,...e.onSuggestionDependencies]);function b(w){return Te(e.renderSectionTitle)?e.renderSectionTitle(w,e.sectionTitleClassName):Ks(w,e.sectionTitleClassName)}function _(){return Te(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(n):e.renderSuggestionsOnInputFocus}function O(){e.onBlur&&e.onBlur(n)}function A(){e.onFocus&&e.onFocus(n)}function W(w){w!==null&&!p.current&&(p.current=w.input)}function Y(){return typeof e.alwaysRenderSuggestions=="boolean"?e.alwaysRenderSuggestions:e.alwaysRenderSuggestionsWhenFocused&&n.length>=e.activationLength?document.activeElement===p.current:!1}return r.jsx(Js,{onSubmit:D,renderAsForm:!!e.renderAsForm,children:r.jsx(Rs,{ref:W,suggestions:m,onSuggestionsFetchRequested:y,onSuggestionHighlighted:S,onSuggestionsClearRequested:()=>{Y()||M()},onSuggestionSelected:(w,{suggestion:g})=>{g.generic||(e.clearQueryOnSelect&&q(),e.onSuggestionSelected(g,p.current,w))},getSuggestionValue:w=>c(w)?Vs(e.valueKey,w):n,renderSuggestion:(w,g)=>{if(w.generic){if(w.type==="empty")return n.length>=e.activationLength&&Te(e.getEmptyStateComponent)?e.getEmptyStateComponent(n):r.jsx(r.Fragment,{});if(w.type==="errored"&&Te(e.getErrorStateComponent)){const s=yn(e,o,M),l=()=>s({value:n,reason:"input-changed"});return e.getErrorStateComponent(l)}if(w.type==="loading")return zs(e.loadingComponentClassName)}return Te(e.getSuggestionComponent)?e.getSuggestionComponent(w,g):Mn(e.valueKey,w)},renderSuggestionsContainer:w=>{const{ref:g,...s}=w.containerProps;if(!e.customScrollbarProps){const l={suggestions:u,query:n,isDropdownOpen:!!w.children};return r.jsxs("div",{ref:g,...s,onMouseOut:C,children:[w.children,e.getCreateComponent&&e.getCreateComponent({userInput:d,isActive:T==="custom",resetQuery:q,resetSuggestions:M,...l}),e.getFooterComponent&&e.getFooterComponent(l)]})}return r.jsx(ki,{ref:g,...e.customScrollbarProps,...s,children:w.children})},alwaysRenderSuggestions:Y(),focusInputOnSuggestionClick:!B&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":`${e.id}Error`,"aria-label":e.label,placeholder:e.placeholder||ie.getPhrase(Er,"placeholder"),value:n,onChange:Z,onKeyDown:R,autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&D,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:typeof e.showClearInputIcon=="boolean"?e.showClearInputIcon:!!n.length,onClickClearInput:N,formSize:e.size,onBlur:O,onFocus:A,disabled:e.disabled},renderInputComponent:Bs,theme:Ys(e.theme,!!u.generic.length),multiSection:!0,renderSectionTitle:b,getSectionSuggestions:Gs,...e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:_}:{}})})}const eu=(e,t)=>{const[n,i]=se.useState(e);return se.useEffect(()=>{const u=setTimeout(()=>i(e),t);return()=>clearTimeout(u)},[e,t]),n},tu="_emptyState_1lwjl_1",nu={emptyState:tu},ru="shared.typeaheadEmptyState";function iu({query:e="",imageUrl:t}){function n(u){u.stopPropagation()}const i=eu(e,300);return r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",onClick:n,children:[r.jsx("img",{alt:"",role:"presentation",src:t,className:`pb-2 ${nu.emptyState}`}),r.jsx("h2",{role:"status",className:"h6",children:r.jsx(ce,{namespace:ru,phrase:"noResults",options:{query:i,smartCount:i.length}})})]})}const ou="_emptyState_1lwjl_1",au={emptyState:ou},Rr="shared.typeaheadErrorState";function su(e){function t(i){i.stopPropagation()}function n(i){i.stopPropagation(),e.onClickTryAgain()}return r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",onClick:t,children:[r.jsx("img",{alt:"",role:"presentation",src:e.imageUrl,className:`pb-2 ${au.emptyState}`}),r.jsx("h2",{className:"h6",role:"alert",children:r.jsx(ce,{namespace:Rr,phrase:"error"})}),r.jsx(St,{onClick:n,className:"btn btn-link info-link p-0",children:r.jsx(ce,{namespace:Rr,phrase:"tryAgain"})})]})}const uu="_container_sxosy_1",cu="_suggestionsContainerOpen_sxosy_11",lu="_selectionContainer_sxosy_18",du="_sectionContainer_sxosy_28",Pt={container:uu,suggestionsContainerOpen:cu,selectionContainer:lu,sectionContainer:du},fu="shared.tokenizedTypeahead";Bn.defaultProps={renderSuggestionsOnInputFocus:!0};function Bn(e){var t;return r.jsxs("div",{className:`form-control h-auto d-flex align-items-top position-relative ${e.hideIcon?"":"py-1 px-0"} ${e.className}`,children:[!e.hideIcon&&r.jsx(de,{className:"svg-container m-1",svg:Nr}),r.jsxs("div",{className:`${Pt.selectionContainer} d-flex flex-wrap align-items-center mt-n1`,children:[e.selections.map(n=>e.getInputTokenComponent?e.getInputTokenComponent(n):r.jsx(Ha,{selection:n,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience},n.id)),r.jsx(ei,{...e,onBackspace:()=>{e.selections.length&&e.removeSelection(An.last(e.selections))},recentSearchHeading:e.recentSearchHeading||ie.getPhrase(fu,"recentSearchHeading"),placeholder:(t=e.selections)!=null&&t.length?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:n=>e.getSuggestionComponent?e.getSuggestionComponent(n):r.jsx(ps,{entity:n,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience}),getEmptyStateComponent:n=>{if(e.getEmptyStateComponent)return e.getEmptyStateComponent(n);e.emptyStateImageUrl&&e.emptyStateImageUrl},getErrorStateComponent:n=>r.jsx(su,{imageUrl:e.errorStateImageUrl,onClickTryAgain:n}),theme:{container:Pt.container,suggestionsContainerOpen:`bg-white py-1 rounded border mt-1 ${Pt.suggestionsContainerOpen}`,sectionContainer:`border-bottom py-1 ${Pt.sectionContainer}`},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]})]}),!!e.sharePermissionsDescription&&r.jsx("span",{className:"px-2 text-secondary text-nowrap",children:e.sharePermissionsDescription})]})}const ti="shared.feedbackRequestLivestream",Le=ie.encloseNamespace(ti),gu={topic:"",studentLevel:[],producerCompany:"",additionalInfo:""},Pr=ye.string().max(qt,De("maxCharactersError")),mu=ye.object().shape({producerCompany:Pr.required(()=>Le("companyError")),topic:Pr,studentLevel:ye.array(ye.string()),additionalInfo:ke()}).noUnknown();function hu(e){const t=qe(),n=t.values.studentLevel.map(o=>e.audiences.find(m=>m.name===o))||[];function i(o){t.setFieldValue("studentLevel",An.addOrRemoveImmutable(t.values.studentLevel,o.name)),requestAnimationFrame(()=>t.setFieldTouched("studentLevel"))}function u(o,m){const p=m.find(d=>d.name===o);return qn(p?"":o,m,"name",0).filter(d=>!(n.find(E=>E.name===d.name)||d.name===(p==null?void 0:p.name)))}return r.jsxs(r.Fragment,{children:[r.jsx(oe,{placeholder:Le("companyPlaceholder"),label:Le("companyLabel"),name:"producerCompany",value:t.values.producerCompany,showRequiredStar:!0}),r.jsx(oe,{placeholder:Le("topicPlaceholder"),label:Le("topicLabel"),name:"topic",value:t.values.topic}),r.jsxs("div",{className:"form-group",children:[r.jsx("label",{className:"form-label",children:r.jsx(ce,{namespace:ti,phrase:"audiencesLabel"})}),r.jsx(Bn,{id:"audiences",placeholder:Le("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:i,removeSelection:o=>i(o),errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:o=>r.jsx(Ut,{selection:{name:o.name,masterId:o.masterId},colourVariant:"teal",onClickRemove:m=>i(m),hideExpander:!0},o.name),getSuggestionComponent:o=>Mn("name",o),onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:u,focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:()=>t.setFieldTouched("studentLevel"),className:`p-2 ${t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":""}`}),t.touched.studentLevel&&t.errors.studentLevel&&r.jsx($n,{name:"audiences",children:t.errors.studentLevel})]}),r.jsx(oe,{as:"textarea",placeholder:Le("otherPlaceholder"),label:Le("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})]})}function pu(e){return r.jsx(Ke,{...e,initialValues:{...gu,...e.initialValues},validationSchema:mu,children:r.jsx(hu,{audiences:e.audiences})})}const vu="_image_1d4la_1",yu={image:vu},ht="shared.feedbackBeforeRequesting",xn=ie.encloseNamespace(ht);function Su(e){const[t,n]=se.useState(!1);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"d-flex flex-column align-items-center my-4",children:[r.jsx("img",{className:`${yu.image} mb-3`,src:at.videoAlert}),r.jsx("h4",{className:"mb-3",children:r.jsx(ce,{namespace:ht,phrase:"beforeRequesting"})}),r.jsx("p",{children:r.jsx(ce,{namespace:ht,phrase:"haveYouSearched",options:{exchangeUrl:`${e.exchangeTvUrl}/exchange`}})}),e.instanceRegion===gt.UK?r.jsx("p",{children:r.jsx(ce,{namespace:ht,phrase:"bbcArchiveRequestsNote",options:{exchangeTvUrl:`${e.exchangeTvUrl}/tv?requestVideo=true`}})}):r.jsx("p",{children:r.jsx(ce,{namespace:ht,phrase:"foxtelRequestsNote",options:{exchangeTvUrl:`${e.exchangeTvUrl}/tv?requestVideo=true`}})})]}),r.jsxs(Ne,{children:[r.jsx(Ne.Checkbox,{id:"confirmExchange",checked:t,onToggle:()=>n(!t),label:xn("exchangeCheck")}),r.jsx(Ne.Cancel,{onClick:()=>e.setSelectedOption(null),text:xn("back")}),r.jsx(Ne.Submit,{variant:"dark",text:xn("continue"),disabled:!t,onClick:()=>e.setConfirmed(!0)})]})]})}const ni="shared.feedbackRequestVideo",z=ie.encloseNamespace(ni),bu={videoRequestType:"",topic:"",studentLevel:[],videoTitle:"",seriesName:"",producerCompany:"",websiteOrTrailer:"",additionalInfo:"",youtubeChannelLink:"",youtubeVideoLink:""},pe=()=>ye.string().max(qt,De("maxCharactersError")),xu=ye.object().shape({videoRequestType:ye.string().required(z("videoRequestTypeRequiredError")),topic:pe().when("videoRequestType",{is:e=>e==="videosTopic",then:pe().required(z("topicRequiredError")),otherwise:pe().notRequired()}),studentLevel:ye.array(ye.string()),videoTitle:pe().when(["videoRequestType","seriesName"],{is:(e,t)=>e==="videoOrSeries"&&!t,then:pe().required(z("videoRequiredError")),otherwise:pe().notRequired()}),seriesName:pe(),producerCompany:pe(),websiteOrTrailer:pe(),additionalInfo:ke(),youtubeChannelLink:pe().when("videoRequestType",{is:e=>e==="youtubeVideo",then:pe().required(z("youtubeChannelLinkRequiredError")).url(z("invalidUrlError")),otherwise:pe().notRequired()}),youtubeVideoLink:pe().when("videoRequestType",{is:e=>e==="youtubeVideo",then:pe().required(z("youtubeVideoLinkRequiredError")).url(z("invalidUrlError")),otherwise:pe().notRequired()})}).noUnknown();function Iu(e){const t=qe(),n=t.values.studentLevel.map(o=>{var m;return(m=e.audiences)==null?void 0:m.find(p=>p.name===o)})||[];function i(o){t.setFieldValue("studentLevel",An.addOrRemoveImmutable(t.values.studentLevel,o.name)),requestAnimationFrame(()=>t.setFieldTouched("studentLevel"))}function u(o,m){const p=m.find(d=>d.name===o);return qn(p?"":o,m,"name",0).filter(d=>!(n.find(E=>E.name===d.name)||d.name===(p==null?void 0:p.name)))}return r.jsxs(r.Fragment,{children:[r.jsxs(oe,{as:"select",label:z("videoRequestTypeLabel"),name:"videoRequestType",value:t.values.videoRequestType,children:[r.jsx("option",{value:"",disabled:!0,hidden:!0,children:z("videoRequestTypePlaceholder")}),r.jsx("option",{value:"videosTopic",children:z("videosTopicType")}),r.jsx("option",{value:"videoOrSeries",children:z("videoOrSeriesType")}),r.jsx("option",{value:"youtubeVideo",children:z("youtubeVideoType")})]}),t.values.videoRequestType==="youtubeVideo"&&r.jsxs(r.Fragment,{children:[r.jsx(oe,{placeholder:z("youtubeChannelLinkPlaceholder"),label:z("youtubeChannelLinkLabel"),name:"youtubeChannelLink",value:t.values.youtubeChannelLink,showRequiredStar:!0}),r.jsx(oe,{placeholder:z("youtubeVideoLinkPlaceholder"),label:z("youtubeVideoLinkLabel"),name:"youtubeVideoLink",value:t.values.youtubeVideoLink,showRequiredStar:!0}),r.jsx(oe,{as:"textarea",placeholder:z("otherPlaceholder"),label:z("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})]}),t.values.videoRequestType==="videosTopic"&&r.jsxs(r.Fragment,{children:[r.jsx(oe,{placeholder:z("videoTopicPlaceholder"),label:z("videoTopicLabel"),name:"topic",value:t.values.topic,showRequiredStar:!0}),r.jsxs("div",{className:"form-group",children:[r.jsx("label",{className:"form-label",children:r.jsx(ce,{namespace:ni,phrase:"audiencesLabel"})}),r.jsx(Bn,{id:"audiences",placeholder:z("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:i,removeSelection:o=>i(o),errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:o=>r.jsx(Ut,{selection:{name:o.name,masterId:o.masterId},colourVariant:"teal",onClickRemove:m=>i(m),hideExpander:!0},o.name),getSuggestionComponent:o=>Mn("name",o),onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:u,focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:()=>t.setFieldTouched("studentLevel"),className:`p-2 ${t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":""}`}),t.touched.studentLevel&&t.errors.studentLevel&&r.jsx($n,{name:"audiences",children:t.errors.studentLevel})]}),r.jsx(oe,{as:"textarea",placeholder:z("otherPlaceholder"),label:z("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})]}),t.values.videoRequestType==="videoOrSeries"&&r.jsxs(r.Fragment,{children:[r.jsx(oe,{placeholder:z("videoTitlePlaceholder"),label:z("videoTitleLabel"),name:"videoTitle",value:t.values.videoTitle}),r.jsx(oe,{placeholder:z("seriesPlaceholder"),label:z("seriesLabel"),name:"seriesName",value:t.values.seriesName}),r.jsx(oe,{placeholder:z("companyPlaceholder"),label:z("companyLabel"),name:"producerCompany",value:t.values.producerCompany}),r.jsx(oe,{placeholder:z("videoTopicPlaceholder"),label:z("topicLabel"),name:"topic",value:t.values.topic}),r.jsx(oe,{placeholder:z("websiteOrTrailerPlaceholder"),label:z("websiteOrTrailerLabel"),name:"websiteOrTrailer",value:t.values.websiteOrTrailer}),r.jsx(oe,{as:"textarea",placeholder:z("otherPlaceholder"),label:z("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})]})]})}function _u(e){const[t,n]=se.useState(!!e.skipBeforeRequesting),i=e.hasExchangeTvProduct&&!t;return r.jsxs(Ke,{...e,initialValues:{...bu,...e.initialValues},validationSchema:xu,hideButtons:e.hasExchangeTvProduct&&!t,hideCancelButton:e.skipBeforeRequesting,children:[i&&r.jsx(Su,{setConfirmed:n,setSelectedOption:e.setSelectedOption,exchangeTvUrl:e.exchangeTvUrl,instanceRegion:e.instanceRegion}),!i&&r.jsx(Iu,{audiences:e.audiences})]})}const Dn="shared.feedbackSuggestImprovement",it=ie.encloseNamespace(Dn),wu={suggestion:"",importance:""},Cu=ye.object().shape({suggestion:ke().required(De("requiredError")),importance:ke()}).noUnknown();function Ou(e){const t=qe();return r.jsxs(r.Fragment,{children:[r.jsx(oe,{as:"textarea",placeholder:it("suggestionPlaceholder"),label:it("suggestionLabel"),name:"suggestion",value:t.values.suggestion,showRequiredStar:!0}),r.jsx(oe,{as:"textarea",placeholder:it("whySuggestionPlaceholder"),label:it("whySuggestionLabel"),name:"importance",rows:5,value:t.values.importance}),r.jsxs("p",{children:[r.jsx(ce,{namespace:Dn,phrase:"contactSupport"})," ",r.jsx("button",{className:"btn btn-link text-underline p-0",onClick:()=>e.setSelectedOption(H.RAISE_ISSUE),children:r.jsx(ce,{namespace:Dn,phrase:"raiseIssue"})})]})]})}function ju(e){return r.jsx(Ke,{...e,initialValues:{...wu,...e.initialValues},validationSchema:Cu,successImageUrl:at.lightBulb,successHeading:it("successHeading"),successDescription:it("successDescription"),children:r.jsx(Ou,{setSelectedOption:e.setSelectedOption})})}function Ke(e){const t=se.useRef(null);function n(i){e.setFormState(u=>{var o;return{...u,...(o=t.current)==null?void 0:o.values}}),e.setSelectedOption(i)}return r.jsx(Ei,{onSubmit:e.onSubmit,initialValues:e.initialValues,validationSchema:e.validationSchema,validateOnMount:!0,innerRef:t,children:r.jsxs(gi,{children:[e.formStage==="form"&&e.children,r.jsx(Ji,{formStage:e.formStage,successImageUrl:e.successImageUrl,successHeading:e.successHeading,successDescription:e.successDescription}),!e.hideButtons&&r.jsx(Qi,{setSelectedOption:n,submitText:e.submitText,formStage:e.formStage,closePopup:e.closePopup,hideCancelButton:e.hideCancelButton})]})})}function Eu(e){const t={formStage:e.formStage,initialValues:e.initialValues,setFormState:e.setFormState,onSubmit:e.onSubmit,setSelectedOption:e.setSelectedOption,closePopup:e.closePopup};switch(e.selectedOption){case H.SUGGEST_IMPROVEMENT:return r.jsx(ju,{...t});case H.REPORT_BUG:return r.jsx(Oa,{...t,onFilesAdded:e.onFilesAdded,cancelUpload:e.cancelUpload,uploadingFiles:e.uploadingFiles,uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile,uploadError:e.uploadError,instanceRegion:e.instanceRegion});case H.REQUEST_VIDEO:return r.jsx(_u,{...t,audiences:e.audiences,hasExchangeTvProduct:e.hasExchangeTvProduct,exchangeTvUrl:e.exchangeTvUrl,instanceRegion:e.instanceRegion,skipBeforeRequesting:e.skipBeforeRequesting,hideCancelButton:e.hideCancelButton});case H.REQUEST_LIVESTREAM:return r.jsx(pu,{...t,audiences:e.audiences});case H.RAISE_ISSUE:return r.jsx(po,{...t});case H.GIVE_PRAISE:return r.jsx(oo,{...t});case H.OTHER:return r.jsx(lo,{...t})}}const ri="shared.giveFeedback",et=ie.encloseNamespace(ri),Tr=5,Dr=60,Ru=1e6;function Wu(e){var Y,w;const t=wi(),n=mi(),i=Je(Wn.currentUser()),u=Je(i.data&&hi.customer(i.data.customerId)),o=Je(i.data&&Wn.user(i.data.id)),[m,p]=se.useState(e.selectedOption),[x,d]=se.useState("form"),[E,T]=se.useState(null),k=Ci(Ii.MixedMediaUpload),B=Ui(()=>k.getCollection()),M=se.useRef(null),q=se.useRef(0),V=se.useRef([]),[L,K]=se.useState([]),[Z,C]=se.useState(""),D=e.product===zt.StreamableLearning?_e.StreamableLearning:_e.Subject,R=Je($i.presentation(D)),N=Je(Ai.presentationAudiences(null,D)),c=(Y=Je(bi.userProducts()).data)==null?void 0:Y.find(g=>g.id===zt.Exchange);pi(vi.Radio.channel(yi.MIXED_MEDIA_UPLOAD),_i.UPLOAD_COMPLETE,b),Mi();function y(g,s){if(g.some(l=>l.size>Dr*Ru)){C(et("maxFileSizeUploadError",{limit:Dr}));return}if(g.length>Tr-B.length){C(et("maxFilesUploadError",{limit:Tr}));return}if(g.some(l=>!kr.isValidFile(l,kn.MIXED_MEDIA))){C(et("invalidTypeUploadError"));return}C(""),q.current+=g.length,s&&(M.current=s),k.addFiles(g)}function b(g){const s=g.toJSON();if(V.current.push(s),q.current--,q.current>0)return;let l=V.current.length;V.current.forEach(h=>{setTimeout(()=>{l--;const a=k.getCollection().filter(f=>{var v;return((v=f.get("fileInfo"))==null?void 0:v.id)===h.fileInfo.id});k.getCollection().remove(a),K(f=>[...f,...a]),!(l>0)&&(Ct.logUserAction({fileInfo:h.fileInfo},{location:Wt.GiveFeedbackPopup,actionType:Kt.Upload,entity:Gt.MixedMedia,descriptor:Ct.mapInteractionType(M.current)}),t.success(et("mixedMediaUploadSuccess")))})}),V.current=[]}function _(g){K(s=>s.filter(l=>l.id!==g))}function O(g){p(g),g&&Ct.logUserAction({type:g},{actionType:Kt.Click,entity:Gt.Feedback,location:Wt.GiveFeedbackPopup,workflowPhase:Gn.Start})}function A(g){switch(g){case H.SUGGEST_IMPROVEMENT:return $e.SuggestImprovement;case H.REPORT_BUG:return $e.ReportBug;case H.REQUEST_VIDEO:return $e.RequestVideo;case H.REQUEST_LIVESTREAM:return $e.RequestLivestream;case H.GIVE_PRAISE:return $e.GivePraise;case H.RAISE_ISSUE:return $e.RaiseIssue;case H.OTHER:return $e.Other}}async function W(g,s){var a,f,v,I,P,U;const l={type:A(m),user:Tt.getUserInfo(i.data,u.data),tags:Tt.getTags(i.data,e.product,!1,["give feedback",kt(m).toLowerCase(),(f=(a=R.data)==null?void 0:a.description)==null?void 0:f.toLowerCase().trim(),(U=(P=(I=(v=o.data)==null?void 0:v.userProfile)==null?void 0:I.metadata)==null?void 0:P.jobTitle)==null?void 0:U.toLowerCase()].filter(Boolean))};let h={...g,currentPageUrl:xi.GetCurrentUrl()};m===H.REPORT_BUG&&L.length&&(h={...h,...Tt.categorizeFiles(L)});try{await n(Li.submitFeedback(l,h)),Ct.logUserAction({...l,...h},{actionType:Kt.Submit,entity:Gt.Feedback,location:Wt.GiveFeedbackPopup,workflowPhase:Gn.Complete}),d("success")}catch{t.error(et("error"))}finally{s()}}return r.jsxs(Si,{size:"lg",title:m?kt(m):et("title"),closePopup:e.closePopup,backdrop:"static",children:[!m&&r.jsx("p",{children:r.jsx(ce,{namespace:ri,phrase:"description"})}),!m&&r.jsx(Gi,{onSelectOption:O,options:[H.SUGGEST_IMPROVEMENT,H.REPORT_BUG,e.product===zt.StreamableLearning?H.REQUEST_LIVESTREAM:H.REQUEST_VIDEO,H.GIVE_PRAISE,H.RAISE_ISSUE,H.OTHER]}),m&&r.jsx(Eu,{selectedOption:m,formStage:x,onSubmit:W,setSelectedOption:O,closePopup:e.closePopup,onFilesAdded:y,uploadingFiles:B,uploadedFiles:L,deleteFile:_,cancelUpload:g=>k.cancelUpload(g),audiences:N.data,uploadError:Z,initialValues:E,setFormState:T,instanceRegion:(w=i.data)==null?void 0:w.instanceRegion,hasExchangeTvProduct:!!c,exchangeTvUrl:c==null?void 0:c.url,skipBeforeRequesting:!!e.skipBeforeRequestingVideoStep,hideCancelButton:!!e.selectedOption})]})}export{Wu as GiveFeedbackView};
7
- //# sourceMappingURL=CiOp7PM4.chunk.js.map
7
+ //# sourceMappingURL=CSvE-r6r.chunk.js.map