@clickview/exchange 0.43.1-dev.0 → 0.43.1-dev.1

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 (333) hide show
  1. package/dist/bundles.json +4 -0
  2. package/dist/css/Actions-BPdg7JW4.css +1 -0
  3. package/dist/css/AddToLibraryView-BBV1d-ZI.css +1 -0
  4. package/dist/css/Caret-C2R4QydJ.css +1 -0
  5. package/dist/css/ExchangeSearchBar-DL_jCfRl.css +1 -0
  6. package/dist/css/ExchangeSearchResultsView-fap4f8w8.css +1 -0
  7. package/dist/css/FormField-CY0yvCW4.css +1 -0
  8. package/dist/css/GiveFeedbackView-CifDVjr-.css +1 -0
  9. package/dist/css/IconCircle-jbMisi9r.css +1 -0
  10. package/dist/css/LazyImage-CC5F5C8O.css +1 -0
  11. package/dist/css/LinkifyHelper-DI4l_5OJ.css +1 -0
  12. package/dist/css/PillTabSelector-DlOtoSz0.css +1 -0
  13. package/dist/css/PreviewVideoDetails-CLoNhAp2.css +1 -0
  14. package/dist/css/ProgramType-B57G3PZD.css +1 -0
  15. package/dist/css/RestrictionHelper-BiRz4h1c.css +1 -0
  16. package/dist/css/SearchFilters-DKLFGlDI.css +1 -0
  17. package/dist/css/TagItem-DD13UQOa.css +1 -0
  18. package/dist/css/TvAdFreeBadge-DnhNnDZN.css +1 -0
  19. package/dist/css/TvAddView-fs02hBfZ.css +1 -0
  20. package/dist/css/TvAlreadyAddedView-Dkh6sNpi.css +1 -0
  21. package/dist/css/TvBroadcastContentView-CDiJwtuL.css +1 -0
  22. package/dist/css/TvChannelBadge-BDOTXlob.css +1 -0
  23. package/dist/css/TvChannelView-DRlDmMhN.css +1 -0
  24. package/dist/css/TvChannelsView-w4TLT4f5.css +1 -0
  25. package/dist/css/TvProgramTimeBadge-zFa1fH-z.css +1 -0
  26. package/dist/css/TvProgramsView-Bt3pBBLn.css +1 -0
  27. package/dist/css/TvSearchBar-Ci6HCTb5.css +1 -0
  28. package/dist/css/TvSearchResultsView-DGyCCqtO.css +1 -0
  29. package/dist/css/UseFetchAll-BIeUeS4h.css +1 -0
  30. package/dist/css/UseGetMediaQueryString-CrSv-tYo.css +1 -0
  31. package/dist/css/UseSelectAllPages-C7XoyEPr.css +1 -0
  32. package/dist/css/VideoList-DJ07F3NX.css +1 -0
  33. package/dist/{exchange.css → css/app-B9KW71K5.css} +1 -1
  34. package/dist/css/useBreakpoints-CCsCPLDG.css +1 -0
  35. package/dist/en.json +1 -1
  36. package/dist/scripts/Actions-DU6xcKNt.js +1 -0
  37. package/dist/scripts/AddToLibraryView-BbpiFnD1.js +1 -0
  38. package/dist/scripts/Badge-kRGAgSgq.js +1 -0
  39. package/dist/scripts/BadgeListContainer-B-qdl_Qj.js +1 -0
  40. package/dist/scripts/ButtonGroup-Pz8uSjml.js +1 -0
  41. package/dist/scripts/Caret-BRrDlj-2.js +1 -0
  42. package/dist/scripts/ChevronDownSvg-PWL_4rOb.js +1 -0
  43. package/dist/scripts/ClassNameHelper-C1RD6ZYU.js +1 -0
  44. package/dist/scripts/CloseSvg-MoBnROf1.js +1 -0
  45. package/dist/scripts/CurationStatus-BlDVEZsX.js +1 -0
  46. package/dist/scripts/DevErrorView-CK5-Rxy-.js +1 -0
  47. package/dist/scripts/DialogView-im7-qx9i.js +1 -0
  48. package/dist/scripts/DownloadHelper-tNp3R89-.js +1 -0
  49. package/dist/scripts/DownloadVideoView-Dcsxo22U.js +1 -0
  50. package/dist/scripts/DragDropMoveWrapper-Dsd-8vE3.js +1 -0
  51. package/dist/scripts/ExchangeAddView-CwHPqfoQ.js +1 -0
  52. package/dist/scripts/ExchangeFolderView-BpMNAmMQ.js +1 -0
  53. package/dist/scripts/ExchangeMostRecentView-DQH8FDqI.js +1 -0
  54. package/dist/scripts/ExchangeNotFoundView-BxjMr4v3.js +1 -0
  55. package/dist/scripts/ExchangePreviewView-Od2pV8fa.js +1 -0
  56. package/dist/scripts/ExchangeRequests-CaMKspLi.js +1 -0
  57. package/dist/scripts/ExchangeSearchBar-BetVWbNL.js +1 -0
  58. package/dist/scripts/ExchangeSearchResultsView-GbfK9RDh.js +2 -0
  59. package/dist/scripts/ExchangeSeriesView-b1ayep0S.js +1 -0
  60. package/dist/scripts/ExchangeSuggestEditView-3CoGs1xA.js +1 -0
  61. package/dist/scripts/ExchangeTabs-CQC3f-18.js +1 -0
  62. package/dist/scripts/ExchangeUtils-BXtQ6ui-.js +1 -0
  63. package/dist/scripts/ExchangeView-DCrYAO5x.js +1 -0
  64. package/dist/scripts/FormButtons-Bgi1UFwH.js +1 -0
  65. package/dist/scripts/FormFeedback-CSSo249E.js +1 -0
  66. package/dist/scripts/FormField-BefWo_kh.js +5 -0
  67. package/dist/scripts/GiveFeedbackView-C05VDJBO.js +7 -0
  68. package/dist/scripts/GroupSvg-CF5_JUEf.js +1 -0
  69. package/dist/scripts/HardCoded-NS2B_WZd.js +1 -0
  70. package/dist/scripts/HttpErrorHandlers-CXQ82gVO.js +1 -0
  71. package/dist/scripts/IconCircle-Bl2iLV5f.js +1 -0
  72. package/dist/scripts/InstanceRegion-CJ3oIQlG.js +1 -0
  73. package/dist/scripts/LazyImage-BuPwkT8t.js +1 -0
  74. package/dist/scripts/LibraryRequests-CIFsh_TC.js +1 -0
  75. package/dist/scripts/LinkifyHelper-DXhtCX0t.js +4 -0
  76. package/dist/scripts/MasterTypeHelper-C89Dh71u.js +1 -0
  77. package/dist/scripts/MediaQueries-_sYSSSUN.js +1 -0
  78. package/dist/scripts/PartialLoadingHelper-jX9dOBvb.js +1 -0
  79. package/dist/scripts/PermissionFilterOption-pkzD5BEm.js +1 -0
  80. package/dist/scripts/PillTabSelector-0Eg1sgXj.js +14 -0
  81. package/dist/scripts/PreviewVideoDetails-DYcfSG9C.js +362 -0
  82. package/dist/scripts/ProgramType-ClR23Av6.js +1 -0
  83. package/dist/scripts/RatingRequests-DE77YS3s.js +1 -0
  84. package/dist/scripts/RedirectView-Bd2ocWHW.js +1 -0
  85. package/dist/scripts/RestrictionHelper-FFW66EYt.js +1 -0
  86. package/dist/scripts/ScrollHelper-DdBBQJML.js +1 -0
  87. package/dist/scripts/SearchFilters-FlVReO0V.js +1 -0
  88. package/dist/scripts/SearchSvg-BVG6NbDK.js +1 -0
  89. package/dist/scripts/SharedSearchHelper-OTwt6mVX.js +1 -0
  90. package/dist/scripts/TagItem-D-T5Jgxc.js +1 -0
  91. package/dist/scripts/TvAdFreeBadge-CK6vQXKI.js +1 -0
  92. package/dist/scripts/TvAdFreeRequestView-DI72pb_f.js +1 -0
  93. package/dist/scripts/TvAddView-B1D9QlK5.js +1 -0
  94. package/dist/scripts/TvAlreadyAddedView-DFqGZwQO.js +1 -0
  95. package/dist/scripts/TvBroadcastContentView-BdIK-pK2.js +1 -0
  96. package/dist/scripts/TvChannelBadge-pBwnbFcb.js +1 -0
  97. package/dist/scripts/TvChannelView-fMD7YYjb.js +1 -0
  98. package/dist/scripts/TvChannelsView-eH68B1en.js +1 -0
  99. package/dist/scripts/TvGuideView-CTuQRLzy.js +1 -0
  100. package/dist/scripts/TvHomeView-B_wgL0pd.js +1 -0
  101. package/dist/scripts/TvPreviewView-DG7HOmV0.js +1 -0
  102. package/dist/scripts/TvProgramTimeBadge-spEPk9Ci.js +1 -0
  103. package/dist/scripts/TvProgramsView-CIGHzdBW.js +1 -0
  104. package/dist/scripts/TvRadioDownloadView-BBjF31yx.js +1 -0
  105. package/dist/scripts/TvRequestProgramView-D4tAgJGb.js +1 -0
  106. package/dist/scripts/TvRequests-DGpJhsk0.js +1 -0
  107. package/dist/scripts/TvSearchBar-DeJpQCLg.js +1 -0
  108. package/dist/scripts/TvSearchResultsView-C2maqf2-.js +1 -0
  109. package/dist/scripts/TvTabs-CwSo_jRg.js +1 -0
  110. package/dist/scripts/TypeHelper-B668bf5B.js +1 -0
  111. package/dist/scripts/UseAlerts-CvkkojNb.js +1 -0
  112. package/dist/scripts/UseFetchAll-gFCX5FgS.js +1 -0
  113. package/dist/scripts/UseGetMediaQueryString-CtMZxiJN.js +1 -0
  114. package/dist/scripts/UseHandleDialogError-DyBOBdQw.js +1 -0
  115. package/dist/scripts/UseHandleObjectError-BX2Mxo9Q.js +1 -0
  116. package/dist/scripts/UseHover-CvNCFvZV.js +1 -0
  117. package/dist/scripts/UseSelectAllPages-lGahuUoo.js +1 -0
  118. package/dist/scripts/VideoHelper-CCZMG1XL.js +1 -0
  119. package/dist/scripts/VideoList-DqqHxoXh.js +49 -0
  120. package/dist/scripts/VideoRequests-vwphYsR4.js +1 -0
  121. package/dist/scripts/VideoSortSelect-DVdIHmhA.js +1 -0
  122. package/dist/scripts/VisibleOnSvg-BuD3Reup.js +1 -0
  123. package/dist/scripts/app-Lrh8TPTe.js +147 -0
  124. package/dist/scripts/getRegionInfo-BBAErHX7.js +1 -0
  125. package/dist/scripts/index-C9eYzTFT.js +1 -0
  126. package/dist/scripts/toLocalTime-pPGBAyPL.js +1 -0
  127. package/dist/scripts/useBreakpoints-BALX55hP.js +1 -0
  128. package/dist/scripts/useGetExchangeActions-BtGC0q85.js +1 -0
  129. package/dist/scripts/useGetTvActions-Cx_DXvlg.js +1 -0
  130. package/dist/scripts/useHandleRegionError-CaGlG48W.js +1 -0
  131. package/dist/scripts/usePreviewContext-B5fK7PxW.js +1 -0
  132. package/dist/scripts/useSelectedRegion-h9Rl12Z2.js +1 -0
  133. package/dist/scripts/useVerifiedEmailRequiredErrorHandler-BON6gc7P.js +1 -0
  134. package/package.json +1 -1
  135. package/vite-bundle-manifest.ts +41 -0
  136. package/vite.config.ts +22 -7
  137. package/dist/Actions-BtMRNMuv.cjs +0 -1
  138. package/dist/Actions-DfeKDy3k.js +0 -178
  139. package/dist/AddToLibraryView-BoCLtcWV.js +0 -508
  140. package/dist/AddToLibraryView-MpkcVgoR.cjs +0 -1
  141. package/dist/Badge-3MW5GacP.cjs +0 -1
  142. package/dist/Badge-Ddz0Il5v.js +0 -326
  143. package/dist/BadgeListContainer-CqwUuWKL.js +0 -19
  144. package/dist/BadgeListContainer-DLrBuDpU.cjs +0 -1
  145. package/dist/ButtonGroup-C-z2yWvb.cjs +0 -1
  146. package/dist/ButtonGroup-zaxEq7ZK.js +0 -24
  147. package/dist/Caret-Cpx0uvJ0.js +0 -36
  148. package/dist/Caret-Dgjy7YHO.cjs +0 -1
  149. package/dist/ChevronDownSvg-BI6xUNrZ.cjs +0 -1
  150. package/dist/ChevronDownSvg-BfijmId7.js +0 -13
  151. package/dist/ClassNameHelper-aJ0BDnVo.js +0 -29
  152. package/dist/ClassNameHelper-n4BHW-GR.cjs +0 -1
  153. package/dist/CloseSvg-2PKjla1T.js +0 -13
  154. package/dist/CloseSvg-B7rizkGp.cjs +0 -1
  155. package/dist/CurationStatus-BGjsO3l8.cjs +0 -1
  156. package/dist/CurationStatus-DZn3C9Qe.js +0 -4
  157. package/dist/DevErrorView-Bg1Ufy6-.js +0 -79
  158. package/dist/DevErrorView-CpXfV0V4.cjs +0 -1
  159. package/dist/DialogView-B5FEh3e8.cjs +0 -1
  160. package/dist/DialogView-RcNOylD7.js +0 -22
  161. package/dist/DownloadHelper-ChKHN-Le.cjs +0 -1
  162. package/dist/DownloadHelper-dL46n0Kq.js +0 -32
  163. package/dist/DownloadVideoView-CvDFi8HI.cjs +0 -1
  164. package/dist/DownloadVideoView-HSnwAYLp.js +0 -32
  165. package/dist/DragDropMoveWrapper-B_dy7ady.cjs +0 -1
  166. package/dist/DragDropMoveWrapper-TdzJqiqv.js +0 -462
  167. package/dist/ExchangeAddView-BRLjRe3p.js +0 -63
  168. package/dist/ExchangeAddView-CWfp5W52.cjs +0 -1
  169. package/dist/ExchangeFolderView-4ArEcQvn.js +0 -159
  170. package/dist/ExchangeFolderView-_ldS0uwf.cjs +0 -1
  171. package/dist/ExchangeMostRecentView-BMAosIXz.js +0 -61
  172. package/dist/ExchangeMostRecentView-s1iLfclz.cjs +0 -1
  173. package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +0 -1
  174. package/dist/ExchangeNotFoundView-Cb-rmQH1.js +0 -7
  175. package/dist/ExchangePreviewView-hztBChIE.js +0 -82
  176. package/dist/ExchangePreviewView-kjDv-uqf.cjs +0 -1
  177. package/dist/ExchangeRequests-B3wRfv5Y.cjs +0 -1
  178. package/dist/ExchangeRequests-DV7BD3HZ.js +0 -115
  179. package/dist/ExchangeSearchBar-CNtU_swT.js +0 -32
  180. package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +0 -1
  181. package/dist/ExchangeSearchResultsView-CEueb9Li.js +0 -1641
  182. package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +0 -2
  183. package/dist/ExchangeSeriesView-BGBgwgMW.cjs +0 -1
  184. package/dist/ExchangeSeriesView-DMr_mCAH.js +0 -143
  185. package/dist/ExchangeSuggestEditView-B3P-nGFE.js +0 -307
  186. package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +0 -1
  187. package/dist/ExchangeTabs-CrA22PjN.js +0 -46
  188. package/dist/ExchangeTabs-KgrROs1d.cjs +0 -1
  189. package/dist/ExchangeUtils-BRDE3b9w.cjs +0 -1
  190. package/dist/ExchangeUtils-CCCrn5oQ.js +0 -65
  191. package/dist/ExchangeView-Cui4zZ4D.js +0 -30
  192. package/dist/ExchangeView-Dql8pHzi.cjs +0 -1
  193. package/dist/FormButtons-CDOsf9A-.cjs +0 -1
  194. package/dist/FormButtons-fQkvwYsy.js +0 -20
  195. package/dist/FormFeedback-5Dd3bMCl.js +0 -7
  196. package/dist/FormFeedback-BU7vSBqB.cjs +0 -1
  197. package/dist/FormField-Cb2l2GMO.cjs +0 -5
  198. package/dist/FormField-DYeERWxm.js +0 -3353
  199. package/dist/GiveFeedbackView-0tH6h1s3.js +0 -5436
  200. package/dist/GiveFeedbackView-DirGDc2a.cjs +0 -7
  201. package/dist/GroupSvg-BmwXO6yT.js +0 -53
  202. package/dist/GroupSvg-DVAq4iNX.cjs +0 -1
  203. package/dist/HardCoded-25AFj2sZ.js +0 -51
  204. package/dist/HardCoded-BbbeCQNt.cjs +0 -1
  205. package/dist/HttpErrorHandlers-CBhvfsvb.cjs +0 -1
  206. package/dist/HttpErrorHandlers-DKqNIMOg.js +0 -76
  207. package/dist/IconCircle-BVHFUBGt.cjs +0 -1
  208. package/dist/IconCircle-CxFLsbLY.js +0 -26
  209. package/dist/InstanceRegion-C7aJEkFV.cjs +0 -1
  210. package/dist/InstanceRegion-DQlzs4EK.js +0 -4
  211. package/dist/LazyImage-DBQklqeJ.js +0 -163
  212. package/dist/LazyImage-lv36coda.cjs +0 -1
  213. package/dist/LibraryRequests-BHAZPSUw.js +0 -186
  214. package/dist/LibraryRequests-DKCsJHbr.cjs +0 -1
  215. package/dist/LinkifyHelper-DPHYATPc.js +0 -925
  216. package/dist/LinkifyHelper-EOfbsqdi.cjs +0 -4
  217. package/dist/MasterTypeHelper-Y_SDsEUF.cjs +0 -1
  218. package/dist/MasterTypeHelper-uSKy6GZd.js +0 -16
  219. package/dist/MediaQueries-9caJ2eG6.js +0 -4
  220. package/dist/MediaQueries-CE9Kbs0e.cjs +0 -1
  221. package/dist/PartialLoadingHelper-D42uOdDd.cjs +0 -1
  222. package/dist/PartialLoadingHelper-DIas6hnM.js +0 -29
  223. package/dist/PermissionFilterOption-B-QrMVdA.js +0 -4
  224. package/dist/PermissionFilterOption-BIA__Q_O.cjs +0 -1
  225. package/dist/PillTabSelector-B5V2rqf0.js +0 -64
  226. package/dist/PillTabSelector-yR52s5ix.cjs +0 -14
  227. package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +0 -362
  228. package/dist/PreviewVideoDetails-DJXB4vV3.js +0 -68337
  229. package/dist/ProgramType-DHk-SlRZ.cjs +0 -1
  230. package/dist/ProgramType-FpE5cuZV.js +0 -60
  231. package/dist/RatingRequests-BNPZAxXm.cjs +0 -1
  232. package/dist/RatingRequests-Dr3w3-z8.js +0 -11
  233. package/dist/RedirectView-BK8yU-PU.js +0 -22
  234. package/dist/RedirectView-OEJhJrvf.cjs +0 -1
  235. package/dist/RestrictionHelper-BSceJYz-.js +0 -112
  236. package/dist/RestrictionHelper-C5u_CmoL.cjs +0 -1
  237. package/dist/ScrollHelper-Dg7bDIH7.js +0 -10
  238. package/dist/ScrollHelper-ESsjtyv8.cjs +0 -1
  239. package/dist/SearchFilters-C_yEnumc.js +0 -3046
  240. package/dist/SearchFilters-D3fLjseM.cjs +0 -1
  241. package/dist/SearchSvg-BB6oXs1v.js +0 -13
  242. package/dist/SearchSvg-BU6G1Fs0.cjs +0 -1
  243. package/dist/SharedSearchHelper-BuVD-GvT.js +0 -159
  244. package/dist/SharedSearchHelper-D5GJJwW7.cjs +0 -1
  245. package/dist/TagItem-BBc3HmnI.cjs +0 -1
  246. package/dist/TagItem-BFnSikAz.js +0 -1125
  247. package/dist/TvAdFreeBadge-BDFn2ujd.js +0 -11
  248. package/dist/TvAdFreeBadge-X2iSf6B3.cjs +0 -1
  249. package/dist/TvAdFreeRequestView-CEAvozfO.js +0 -46
  250. package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +0 -1
  251. package/dist/TvAddView-Bv12wfX7.js +0 -276
  252. package/dist/TvAddView-CA7Yappn.cjs +0 -1
  253. package/dist/TvAlreadyAddedView-C240rLQ7.js +0 -56
  254. package/dist/TvAlreadyAddedView-X4KElzJA.cjs +0 -1
  255. package/dist/TvBroadcastContentView-DizJHvTQ.js +0 -52
  256. package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +0 -1
  257. package/dist/TvChannelBadge-B4a1wkQI.cjs +0 -1
  258. package/dist/TvChannelBadge-Doqs12s9.js +0 -11
  259. package/dist/TvChannelView-CSn0VleL.js +0 -177
  260. package/dist/TvChannelView-Ds_F3Mmp.cjs +0 -1
  261. package/dist/TvChannelsView-CM_T5E3j.js +0 -171
  262. package/dist/TvChannelsView-r3NO_BRv.cjs +0 -1
  263. package/dist/TvGuideView-B8vS-8lS.cjs +0 -1
  264. package/dist/TvGuideView-BLlQJiZ3.js +0 -54
  265. package/dist/TvHomeView-C_h4DZw_.cjs +0 -1
  266. package/dist/TvHomeView-CbNg8AyI.js +0 -15
  267. package/dist/TvPreviewView-DhXD3H__.js +0 -114
  268. package/dist/TvPreviewView-hGq7_Bzs.cjs +0 -1
  269. package/dist/TvProgramTimeBadge-BtQKNLz2.js +0 -18
  270. package/dist/TvProgramTimeBadge-DPJu73xG.cjs +0 -1
  271. package/dist/TvProgramsView-Ba9VPnEh.cjs +0 -1
  272. package/dist/TvProgramsView-DO4WnPJx.js +0 -223
  273. package/dist/TvRadioDownloadView-ByABG_YW.js +0 -41
  274. package/dist/TvRadioDownloadView-CitV60kZ.cjs +0 -1
  275. package/dist/TvRequestProgramView-CYc5nAEt.cjs +0 -1
  276. package/dist/TvRequestProgramView-Dm5Bra4d.js +0 -267
  277. package/dist/TvRequests-Bcy68aT5.js +0 -227
  278. package/dist/TvRequests-l_Xv-rcr.cjs +0 -1
  279. package/dist/TvSearchBar-5J6420z2.cjs +0 -1
  280. package/dist/TvSearchBar-KZqcg7G0.js +0 -95
  281. package/dist/TvSearchResultsView-BTONTtMg.cjs +0 -1
  282. package/dist/TvSearchResultsView-CMsq8ehS.js +0 -212
  283. package/dist/TvTabs-CrQVKuod.js +0 -88
  284. package/dist/TvTabs-JuCI2Ea7.cjs +0 -1
  285. package/dist/TypeHelper-Dt2Y9Wc4.js +0 -14
  286. package/dist/TypeHelper-Z2rqPzup.cjs +0 -1
  287. package/dist/UseAlerts-B2BbQeN3.js +0 -39
  288. package/dist/UseAlerts-pIg83NsO.cjs +0 -1
  289. package/dist/UseFetchAll-BaDVJFdj.cjs +0 -1
  290. package/dist/UseFetchAll-DYGA8s5a.js +0 -147
  291. package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +0 -1
  292. package/dist/UseGetMediaQueryString-Dc_jP0rr.js +0 -226
  293. package/dist/UseHandleDialogError-BJHsOnKn.js +0 -9
  294. package/dist/UseHandleDialogError-PbyWsVaT.cjs +0 -1
  295. package/dist/UseHandleObjectError-CBFN1Ill.cjs +0 -1
  296. package/dist/UseHandleObjectError-DAhDbPEo.js +0 -16
  297. package/dist/UseHover-CLOLtbUV.cjs +0 -1
  298. package/dist/UseHover-Cc_d5rRf.js +0 -85
  299. package/dist/UseSelectAllPages-04737Rdu.cjs +0 -1
  300. package/dist/UseSelectAllPages-Cnk3MEAt.js +0 -149
  301. package/dist/VideoHelper-3AKe5Jyy.js +0 -477
  302. package/dist/VideoHelper-BQ7rWUw0.cjs +0 -1
  303. package/dist/VideoList-SNG1hmoL.cjs +0 -49
  304. package/dist/VideoList-s7lvSqSs.js +0 -2622
  305. package/dist/VideoRequests-CpDXl7E_.cjs +0 -1
  306. package/dist/VideoRequests-DlUeYLjl.js +0 -225
  307. package/dist/VideoSortSelect-3JfrvPfj.cjs +0 -1
  308. package/dist/VideoSortSelect-DS9Uvc-S.js +0 -116
  309. package/dist/VisibleOnSvg-BisjF586.cjs +0 -1
  310. package/dist/VisibleOnSvg-WDCQPPvV.js +0 -33
  311. package/dist/app-2U039aX_.js +0 -67680
  312. package/dist/app-DcIbciDa.cjs +0 -454
  313. package/dist/app.js +0 -1
  314. package/dist/getRegionInfo-B_h_jjAy.js +0 -31
  315. package/dist/getRegionInfo-Bs5JKG7h.cjs +0 -1
  316. package/dist/index-CGkY5YVS.cjs +0 -1
  317. package/dist/index-DUgR-v-j.js +0 -885
  318. package/dist/toLocalTime-Bt8Uy4Kq.js +0 -15
  319. package/dist/toLocalTime-DF9SIfIt.cjs +0 -1
  320. package/dist/useBreakpoints-37V489ap.js +0 -66
  321. package/dist/useBreakpoints-B-bcgx-L.cjs +0 -1
  322. package/dist/useGetExchangeActions-BwXrBSH-.cjs +0 -1
  323. package/dist/useGetExchangeActions-C8Y1FNSl.js +0 -176
  324. package/dist/useGetTvActions-CmEBdHbw.cjs +0 -1
  325. package/dist/useGetTvActions-DENrO3wZ.js +0 -54
  326. package/dist/useHandleRegionError-BNRrs6y8.cjs +0 -1
  327. package/dist/useHandleRegionError-BNxhNPKP.js +0 -10
  328. package/dist/usePreviewContext--ihfEi4P.js +0 -14
  329. package/dist/usePreviewContext-DjpFhe3I.cjs +0 -1
  330. package/dist/useSelectedRegion-7_2s4QQF.js +0 -16
  331. package/dist/useSelectedRegion-D3Xsu2Ut.cjs +0 -1
  332. package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +0 -1
  333. package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +0 -57
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./app-DcIbciDa.cjs"),dn=require("./UseAlerts-pIg83NsO.cjs"),St=require("./PermissionFilterOption-BIA__Q_O.cjs"),Ce=require("./InstanceRegion-C7aJEkFV.cjs"),vr=require("./UseHover-CLOLtbUV.cjs"),q=require("./FormField-Cb2l2GMO.cjs"),Oe=require("./GroupSvg-DVAq4iNX.cjs"),Zt=require("./FormFeedback-BU7vSBqB.cjs"),mt=require("./CloseSvg-B7rizkGp.cjs"),en=require("./ClassNameHelper-n4BHW-GR.cjs"),tn=require("./IconCircle-BVHFUBGt.cjs"),Ze=require("./MasterTypeHelper-Y_SDsEUF.cjs"),yr=require("./index-CGkY5YVS.cjs"),Jn=require("./SearchSvg-BU6G1Fs0.cjs"),Sr=require("./MediaQueries-CE9Kbs0e.cjs"),Zn=require("./TypeHelper-Z2rqPzup.cjs");function br(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(i,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ie=(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))(Ie||{}),ge=(e=>(e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning",e))(ge||{});const Er={presentationAudiences(e,n){const r=n||ge.Subject.toLowerCase(),i={type:r,presentationId:e};return{bootstrapName:"presentationAudiences",url:t.UrlHelper.urlBuilder("{gateway}/v1/users/me/audiences",i),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentation/${e}/audiences`,i),key:`presentation:audiences:${e}:${r}`,normalize:!1}},audiencesByPresentationId(e){return{url:`{gateway}/v1/subjects/presentations/${e}/audiences`,publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentation/${e}/audiences`,{type:ge.Subject.toLowerCase(),presentationId:e}),key:`presentation:${e}:audiences`,normalize:!1}}};var xe=(e=>(e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos",e))(xe||{});const bt=e=>`subjectpresentationaudiences.id:[${e.join(",")}]`,jr={topicsFromAllAvailablePresentations(e){const n={filterType:"topics",presentationId:e};return{url:t.UrlHelper.urlBuilder("{gateway}/v1/search/filters",n),publicUrl:t.UrlHelper.urlBuilder("/api/search/filters",n),key:"classification:availableTopics",normalize:!1}},availablePresentations(e){const n={type:e==null?void 0:e.toLowerCase()};return{url:t.UrlHelper.urlBuilder("{gateway}/v1/users/me/presentations/available",n),publicUrl:t.UrlHelper.urlBuilder("/api/subjects/presentations/available",n),key:`available:presentations:${e}`,normalizeOptions:{namespace:"presentation"}}},topLevelTopics(e){const n={query:t.SharedWithStatements.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/presentations/${e}/classifications`,n),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${e}/classifications`,n),key:`presentation:${e}:classifications`}},presentationById(e){return{url:`{gateway}/v1/subjects/presentations/${e}`,publicUrl:`/api/subjects/presentations/${e}`,key:`presentation:${e}`}},presentationBySlug(e,n,r){const i={type:r.toLowerCase(),contentRegion:n};return{url:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${e}`,i),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${e}`,i),key:`current:presentation:${r.toLowerCase()}:${n}:${e??""}`,bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation(e,n){const r={type:e==null?void 0:e.toLowerCase()};return{url:t.UrlHelper.urlBuilder("{gateway}/v1/users/me/presentations",r),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${n}`,r),key:`current:presentation${e?`:${e.toLowerCase()}`:""}${n?`:${n}`:""}`,normalizeOptions:{namespace:"presentation"}}},classifications(){return{url:t.UrlHelper.urlBuilder("{gateway}/v1/users/me/classifications",{query:t.SharedWithStatements.CLASSIFICATION_COLLECTION,type:ge.Subject.toLowerCase()}),publicUrl:t.UrlHelper.urlBuilder("/api/subjects/classifications",{query:t.PublicWithStatement.CLASSIFICATION_COLLECTION,type:ge.Subject.toLowerCase()}),key:"classifications"}},classification(e,n,r){return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}`,{query:t.SharedWithStatements.CLASSIFICATION(n)}),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/classifications/${e}`,{query:t.PublicWithStatement.CLASSIFICATION}),key:`classification:${e}`,error:r}},path(e,n){const r={type:n};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/path`,r),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:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/children`,{query:t.SharedWithStatements.CLASSIFICATION_COLLECTION}),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/classifications/${e}/children`,{query:t.PublicWithStatement.CLASSIFICATION_COLLECTION}),key:`classification:${e}:children`}},videos(e,n,r){if(!n)return;let i="limit:100,orderbydesc:timestamp";r.length&&(i+=`,${bt(r)}`);const o={query:`{${i}}(videoCollection),subjectpresentationaudiences{presentationId:${n}}`,permissionFilterOption:St.PermissionFilterOption.StripMetadata};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${xe.PinnedVideos}`,o),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/classifications/${e}/${xe.PinnedVideos}`,o),key:`classification:${e}:${xe.PinnedVideos}:${r.join(":")}`}},playlists(e,n,r){if(!n)return;let i="limit:100,orderby:name";r.length&&(i+=`,${bt(r)}`);const o={query:`{${i}}${t.SharedWithStatements.PLAYLIST_COLLECTION},subjectpresentationaudiences{presentationId:${n}}`,permissionFilterOption:St.PermissionFilterOption.StripMetadata};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${xe.Playlists}`,o),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/classifications/${e}/${xe.Playlists}`,o),key:`classification:${e}:${xe.Playlists}:${r.join(":")}`,formatData:l=>{var h;if(l)return{...l,data:(h=l.data)==null?void 0:h.filter(b=>{var d;return(d=b.cover)==null?void 0:d.url})}}}},series(e,n,r){if(!n)return;let i="limit:100";r.length&&(i+=`,${bt(r)}`);const o={query:`{${i}}${t.SharedWithStatements.SERIES},subjectpresentationaudiences{presentationId:${n}}`,permissionFilterOption:St.PermissionFilterOption.StripMetadata};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/subjects/classifications/${e}/${xe.Series}`,o),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/classifications/${e}/${xe.Series}`,o),key:`classification:${e}:${xe.Series}:${r.join(":")}`,formatData:l=>{var h;if(l)return{...l,data:(h=l.data)==null?void 0:h.filter(b=>{var d;return(d=b.tallPoster)==null?void 0:d.url})}}}},curriculumLinks(e,n){return{url:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${n}/objects/${e}/classifications/paths`,{type:ge.Curriculum.toLowerCase()}),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/presentations/${n}/objects/${e}/classifications/paths`,{type:ge.Curriculum.toLowerCase()}),key:`curriculum:links:${e}:${n}`,normalize:!1}},subjectLinks(e,n){const r=t.UrlHelper.urlBuilder(`/api/subjects/presentations/${n}/objects/${e}/classifications/paths`,{type:ge.Subject.toLowerCase()});return{url:r,publicUrl:r,key:`subject:links:${e}:${n}`,normalize:!1}},getMappedCurriculums(e,n){const r={type:ge.Curriculum.toLowerCase()};return{url:t.UrlHelper.urlBuilder(`{gateway}/v1/objects/${e}/presentations`,r),publicUrl:t.UrlHelper.urlBuilder(`/api/subjects/${e}/presentations`,{...r,pid:n}),key:`mapped:curriculums:${e}:${n.join(",")}`,normalize:!1}},regionAlternatives(e,n,r,i){return{url:`/api/subjects/classifications/${e}/region-alternatives`,publicUrl:`/api/subjects/classifications/${e}/region-alternatives`,key:`classification:regionAlternatives:${e}`,normalize:!1,success:n,error:r,always:i}}},Rr={submitFeedback(e,n){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:t.HttpVerbs.POST,data:{...e,...n}}}};function Ir(e,n,r=[]){var a;const[,i]=t.React.useState(!1);return t.React.useEffect(()=>{const o=e();if(o)return o.off("add remove change"),o.on("add remove change",()=>{i(l=>!l)}),()=>{o.off("add remove change")}},r),(a=e())==null?void 0:a.toJSON()}const wr="shared.studentRestrictedDialogError",Et=t.LanguageService.encloseNamespace(wr);class _r extends t.DialogError{constructor(){super("Learner accessing feature that is for staff only")}get name(){return"StudentRestrictedDialogError"}get dialogOptions(){return{title:Et("heading"),text:Et("description"),buttons:[{text:Et("close"),className:"btn btn-link",close:!0}]}}}function Cr(){const{hasPermissions:e,isLoaded:n}=t.usePermissions();t.React.useEffect(()=>{if(!n||!e(t.PermissionName.StudentExperience))return;const r=new _r;t.Logger.logError(r),t.ErrorHelper.throw(r)},[n])}const ut={getUserInfo:(e,n)=>({id:e.id,username:e.username,email:e.email,userType:e.role===t.UserRole.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:n.crmId,customerName:n.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion,firstName:e.givenName,lastName:e.familyName}),mapInstanceRegionToTag:e=>{switch(e){case Ce.InstanceRegion.AU:return"au";case Ce.InstanceRegion.NZ:return"nz";case Ce.InstanceRegion.UK:return"uk";case Ce.InstanceRegion.US:return"us"}},getTags:(e,n,r,i)=>{const a=[n,...i];a.push(r?"student":"staff"),e.role===t.UserRole.Admin&&a.push("administrator");const o=ut.mapInstanceRegionToTag(e.instanceRegion);return o&&a.push(o),a},categorizeFiles(e){return e.reduce((n,r)=>{const i=r.get("fileInfo");return t.Dropzone.isValidFile(r.get("file"),t.FileExtensions.VIDEO)?n.videoUrls.push(i==null?void 0:i.url):n.imageUrls.push(i==null?void 0:i.url),n},{imageUrls:[],videoUrls:[]})}};var V=(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))(V||{});const Or="shared.feedbackFormTitles",ke=t.LanguageService.encloseNamespace(Or),ct=e=>{switch(e){case V.SUGGEST_IMPROVEMENT:return ke(e);case V.REPORT_BUG:return ke(e);case V.REQUEST_VIDEO:return ke(e);case V.REQUEST_LIVESTREAM:return ke(e);case V.GIVE_PRAISE:return ke(e);case V.RAISE_ISSUE:return ke(e);case V.OTHER:return ke(e)}},ze={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",[V.REQUEST_VIDEO]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[V.REQUEST_LIVESTREAM]:{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"},[V.SUGGEST_IMPROVEMENT]:{default:"https://img.clickviewapp.com/v2/images/g7aR1l",hover:"https://img.clickviewapp.com/v2/images/zMR0Dk"},[V.RAISE_ISSUE]:{default:"https://img.clickviewapp.com/v2/images/5boW78",hover:"https://img.clickviewapp.com/v2/images/m6yRKr"},[V.GIVE_PRAISE]:{default:"https://img.clickviewapp.com/v2/images/nE1mdz",hover:"https://img.clickviewapp.com/v2/images/JjEnmR"},[V.REPORT_BUG]:{default:"https://img.clickviewapp.com/v2/images/AOdYpo",hover:"https://img.clickviewapp.com/v2/images/yro9NM"},[V.OTHER]:{default:"https://img.clickviewapp.com/v2/images/Eoaykj",hover:"https://img.clickviewapp.com/v2/images/wN59Zg"}},Pr="_image_1gpfb_1",Tr={image:Pr};function Fr(e){const[n,r]=vr.useHover(),i=ze[e.option];return t.jsxRuntimeExports.jsx(t.DivButton,{ref:n,className:"col-lg-4 col-sm-6 col-12",onClick:()=>e.onSelectOption(e.option),children:t.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center h-100 rounded border py-3 gap-2",children:[t.jsxRuntimeExports.jsx("img",{className:Tr.image,src:r?i.hover:i.default,alt:ct(e.option)}),t.jsxRuntimeExports.jsx("p",{className:"fw-semibold text-center mb-0",children:ct(e.option)})]})})}function kr(e){return t.jsxRuntimeExports.jsx("div",{className:"row g-2",children:e.options.map(n=>t.jsxRuntimeExports.jsx(Fr,{option:n,onSelectOption:e.onSelectOption},n))})}const Dr="shared.feedbackButtons",jt=t.LanguageService.encloseNamespace(Dr);function Ar(e){const n=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsxs(t.PopupButtons,{children:[e.formStage==="form"&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[!e.hideCancelButton&&t.jsxRuntimeExports.jsx(t.PopupButtons.Cancel,{onClick:()=>e.setSelectedOption(null),text:jt("cancel")}),t.jsxRuntimeExports.jsx(t.PopupButtons.Submit,{variant:"dark",text:e.submitText||jt("submit"),disabled:!n.isValid})]}),e.formStage==="success"&&t.jsxRuntimeExports.jsx(t.PopupButtons.Cancel,{variant:"dark",text:jt("close"),onClick:e.closePopup})]})}const Ur="_successImage_3sso6_1",$r={successImage:Ur},Lr="shared.feedbackFormState",fn=t.LanguageService.encloseNamespace(Lr);function Nr(e){return e.formStage==="form"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{}):e.formStage==="error"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{}):t.jsxRuntimeExports.jsxs("div",{className:"text-center",children:[t.jsxRuntimeExports.jsx("div",{className:"mb-3",children:t.jsxRuntimeExports.jsx("img",{className:$r.successImage,src:e.successImageUrl||ze.mailSent})}),t.jsxRuntimeExports.jsx("h4",{className:"mb-3",children:e.successHeading||fn("successHeading")}),t.jsxRuntimeExports.jsx("p",{className:"mb-3",children:e.successDescription||fn("successDescription")})]})}const qr="shared.feedbackForm",Rt=t.LanguageService.encloseNamespace(qr),er=10,ht=5e3,Ee=e=>{switch(e){case"requiredError":return Rt(e);case"minCharactersError":return Rt(e,{limit:er});case"maxCharactersError":return Rt("maxCharactersError",{limit:ht})}},je=()=>q.libExports.string().min(er,Ee("minCharactersError")).max(ht,Ee("maxCharactersError")),Mr="shared.feedbackGivePraise",lt=t.LanguageService.encloseNamespace(Mr),Hr={praise:""},Br=q.libExports.object().shape({praise:je().required(Ee("requiredError"))}).noUnknown();function Vr(){const e=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:lt("givePraisePlaceholder"),label:lt("givePraiseLabel"),name:"praise",rows:5,value:e.values.praise,showRequiredStar:!0})})}function Wr(e){return t.jsxRuntimeExports.jsx($e,{...e,initialValues:{...Hr,...e.initialValues},validationSchema:Br,successImageUrl:ze.heartHands,successHeading:lt("successHeading"),successDescription:lt("successDescription"),children:t.jsxRuntimeExports.jsx(Vr,{})})}const zr="shared.feedbackOther",gn=t.LanguageService.encloseNamespace(zr),Gr={feedback:""},Kr=q.libExports.object().shape({feedback:je().required(Ee("requiredError"))}).noUnknown();function Qr(){const e=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:gn("otherPlaceholder"),label:gn("otherLabel"),name:"feedback",rows:5,value:e.values.feedback,showRequiredStar:!0})})}function Yr(e){return t.jsxRuntimeExports.jsx($e,{...e,initialValues:{...Gr,...e.initialValues},validationSchema:Kr,children:t.jsxRuntimeExports.jsx(Qr,{})})}const Xr="shared.feedbackRaiseIssue",pn=t.LanguageService.encloseNamespace(Xr),Jr={issue:""},Zr=q.libExports.object().shape({issue:je().required(Ee("requiredError"))}).noUnknown();function ei(){const e=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:pn("raiseIssuePlaceholder"),label:pn("raiseIssueLabel"),name:"issue",rows:5,value:e.values.issue,showRequiredStar:!0})})}function ti(e){return t.jsxRuntimeExports.jsx($e,{...e,initialValues:{...Jr,...e.initialValues},validationSchema:Zr,children:t.jsxRuntimeExports.jsx(ei,{})})}const It={[Ce.InstanceRegion.AU]:{phone:"02 9509 2600",email:"support@clickview.com.au",website:"https://www.clickviewsupport.com/hc"},[Ce.InstanceRegion.UK]:{phone:"+44 (0)333 207 6595",email:"info@clickview.co.uk",website:"https://www.clickviewsupport.com/hc"},[Ce.InstanceRegion.NZ]:{phone:"09 916 1156",email:"support@clickview.co.nz",website:"https://www.clickviewsupport.com/hc"},[Ce.InstanceRegion.US]:{phone:"+1 312-292-9322",email:"info@clickvieweducation.com",website:"https://www.clickviewsupport.com/hc"}};function ni(e){return t.jsxRuntimeExports.jsx("svg",{...e,children:t.jsxRuntimeExports.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 ri(e){return t.jsxRuntimeExports.jsx("svg",{...e,children:t.jsxRuntimeExports.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 Ge(e,n,r,i){function a(o){return o instanceof r?o:new r(function(l){l(o)})}return new(r||(r=Promise))(function(o,l){function h(_){try{d(i.next(_))}catch(T){l(T)}}function b(_){try{d(i.throw(_))}catch(T){l(T)}}function d(_){_.done?o(_.value):a(_.value).then(h,b)}d((i=i.apply(e,n||[])).next())})}function Ke(e,n){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=h(0),l.throw=h(1),l.return=h(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function h(d){return function(_){return b([d,_])}}function b(d){if(i)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(r=0)),r;)try{if(i=1,a&&(o=d[0]&2?a.return:d[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,d[1])).done)return o;switch(a=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,a=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){r.label=d[1];break}if(d[0]===6&&r.label<o[1]){r.label=o[1],o=d;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(d);break}o[2]&&r.ops.pop(),r.trys.pop();continue}d=n.call(e,r)}catch(_){d=[6,_],a=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function mn(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,o=[],l;try{for(;(n===void 0||n-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(h){l={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return o}function hn(e,n,r){if(r||arguments.length===2)for(var i=0,a=n.length,o;i<a;i++)(o||!(i in n))&&(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))}var ii=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 tt(e,n){var r=oi(e);if(typeof r.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof n=="string"?n:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function oi(e){var n=e.name,r=n&&n.lastIndexOf(".")!==-1;if(r&&!e.type){var i=n.split(".").pop().toLowerCase(),a=ii.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var si=[".DS_Store","Thumbs.db"];function ai(e){return Ge(this,void 0,void 0,function(){return Ke(this,function(n){return dt(e)&&ui(e.dataTransfer)?[2,fi(e.dataTransfer,e.type)]:ci(e)?[2,li(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,di(e)]:[2,[]]})})}function ui(e){return dt(e)}function ci(e){return dt(e)&&dt(e.target)}function dt(e){return typeof e=="object"&&e!==null}function li(e){return Vt(e.target.files).map(function(n){return tt(n)})}function di(e){return Ge(this,void 0,void 0,function(){var n;return Ke(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return n=r.sent(),[2,n.map(function(i){return tt(i)})]}})})}function fi(e,n){return Ge(this,void 0,void 0,function(){var r,i;return Ke(this,function(a){switch(a.label){case 0:return e.items?(r=Vt(e.items).filter(function(o){return o.kind==="file"}),n!=="drop"?[2,r]:[4,Promise.all(r.map(gi))]):[3,2];case 1:return i=a.sent(),[2,xn(tr(i))];case 2:return[2,xn(Vt(e.files).map(function(o){return tt(o)}))]}})})}function xn(e){return e.filter(function(n){return si.indexOf(n.name)===-1})}function Vt(e){if(e===null)return[];for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(i)}return n}function gi(e){if(typeof e.webkitGetAsEntry!="function")return vn(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?nr(n):vn(e)}function tr(e){return e.reduce(function(n,r){return hn(hn([],mn(n),!1),mn(Array.isArray(r)?tr(r):[r]),!1)},[])}function vn(e){var n=e.getAsFile();if(!n)return Promise.reject("".concat(e," is not a File"));var r=tt(n);return Promise.resolve(r)}function pi(e){return Ge(this,void 0,void 0,function(){return Ke(this,function(n){return[2,e.isDirectory?nr(e):mi(e)]})})}function nr(e){var n=e.createReader();return new Promise(function(r,i){var a=[];function o(){var l=this;n.readEntries(function(h){return Ge(l,void 0,void 0,function(){var b,d,_;return Ke(this,function(T){switch(T.label){case 0:if(h.length)return[3,5];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,Promise.all(a)];case 2:return b=T.sent(),r(b),[3,4];case 3:return d=T.sent(),i(d),[3,4];case 4:return[3,6];case 5:_=Promise.all(h.map(pi)),a.push(_),o(),T.label=6;case 6:return[2]}})})},function(h){i(h)})}o()})}function mi(e){return Ge(this,void 0,void 0,function(){return Ke(this,function(n){return[2,new Promise(function(r,i){e.file(function(a){var o=tt(a,e.fullPath);r(o)},function(a){i(a)})})]})})}var it={},yn;function hi(){return yn||(yn=1,it.__esModule=!0,it.default=function(e,n){if(e&&n){var r=Array.isArray(n)?n:n.split(",");if(r.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some(function(l){var h=l.trim().toLowerCase();return h.charAt(0)==="."?i.toLowerCase().endsWith(h):h.endsWith("/*")?o===h.replace(/\/.*$/,""):a===h})}return!0}),it}var xi=hi();const vi=t.getDefaultExportFromCjs(xi);function Sn(e){return bi(e)||Si(e)||ir(e)||yi()}function yi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Si(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bi(e){if(Array.isArray(e))return Wt(e)}function bn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function En(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?bn(Object(r),!0).forEach(function(i){rr(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function rr(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function et(e,n){return Ri(e)||ji(e,n)||ir(e,n)||Ei()}function Ei(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,n){if(e){if(typeof e=="string")return Wt(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wt(e,n)}}function Wt(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function ji(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],a=!0,o=!1,l,h;try{for(r=r.call(e);!(a=(l=r.next()).done)&&(i.push(l.value),!(n&&i.length===n));a=!0);}catch(b){o=!0,h=b}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw h}}return i}}function Ri(e){if(Array.isArray(e))return e}var Ii="file-invalid-type",wi="file-too-large",_i="file-too-small",Ci="too-many-files",Oi=function(n){n=Array.isArray(n)&&n.length===1?n[0]:n;var r=Array.isArray(n)?"one of ".concat(n.join(", ")):n;return{code:Ii,message:"File type must be ".concat(r)}},jn=function(n){return{code:wi,message:"File is larger than ".concat(n," ").concat(n===1?"byte":"bytes")}},Rn=function(n){return{code:_i,message:"File is smaller than ".concat(n," ").concat(n===1?"byte":"bytes")}},Pi={code:Ci,message:"Too many files"};function or(e,n){var r=e.type==="application/x-moz-file"||vi(e,n);return[r,r?null:Oi(n)]}function sr(e,n,r){if(Ue(e.size))if(Ue(n)&&Ue(r)){if(e.size>r)return[!1,jn(r)];if(e.size<n)return[!1,Rn(n)]}else{if(Ue(n)&&e.size<n)return[!1,Rn(n)];if(Ue(r)&&e.size>r)return[!1,jn(r)]}return[!0,null]}function Ue(e){return e!=null}function Ti(e){var n=e.files,r=e.accept,i=e.minSize,a=e.maxSize,o=e.multiple,l=e.maxFiles,h=e.validator;return!o&&n.length>1||o&&l>=1&&n.length>l?!1:n.every(function(b){var d=or(b,r),_=et(d,1),T=_[0],k=sr(b,i,a),B=et(k,1),M=B[0],N=h?h(b):null;return T&&M&&!N})}function ft(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ot(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function In(e){e.preventDefault()}function Fi(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ki(e){return e.indexOf("Edge/")!==-1}function Di(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Fi(e)||ki(e)}function he(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return n.some(function(h){return!ft(i)&&h&&h.apply(void 0,[i].concat(o)),ft(i)})}}function Ai(){return"showOpenFilePicker"in window}function Ui(e){if(Ue(e)){var n=Object.entries(e).filter(function(r){var i=et(r,2),a=i[0],o=i[1],l=!0;return ar(a)||(console.warn('Skipped "'.concat(a,'" 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.')),l=!1),(!Array.isArray(o)||!o.every(ur))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),l=!1),l}).reduce(function(r,i){var a=et(i,2),o=a[0],l=a[1];return En(En({},r),{},rr({},o,l))},{});return[{description:"Files",accept:n}]}return e}function $i(e){if(Ue(e))return Object.entries(e).reduce(function(n,r){var i=et(r,2),a=i[0],o=i[1];return[].concat(Sn(n),[a],Sn(o))},[]).filter(function(n){return ar(n)||ur(n)}).join(",")}function Li(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Ni(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ar(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ur(e){return/^.*\.[\w]+$/.test(e)}var qi=["children"],Mi=["open"],Hi=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Bi=["refKey","onChange","onClick"];function Vi(e){return Gi(e)||zi(e)||cr(e)||Wi()}function Wi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gi(e){if(Array.isArray(e))return zt(e)}function wt(e,n){return Yi(e)||Qi(e,n)||cr(e,n)||Ki()}function Ki(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e,n){if(e){if(typeof e=="string")return zt(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zt(e,n)}}function zt(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Qi(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],a=!0,o=!1,l,h;try{for(r=r.call(e);!(a=(l=r.next()).done)&&(i.push(l.value),!(n&&i.length===n));a=!0);}catch(b){o=!0,h=b}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw h}}return i}}function Yi(e){if(Array.isArray(e))return e}function wn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function te(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?wn(Object(r),!0).forEach(function(i){Gt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Gt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function gt(e,n){if(e==null)return{};var r=Xi(e,n),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Xi(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}var nn=t.reactExports.forwardRef(function(e,n){var r=e.children,i=gt(e,qi),a=dr(i),o=a.open,l=gt(a,Mi);return t.reactExports.useImperativeHandle(n,function(){return{open:o}},[o]),t.React.createElement(t.reactExports.Fragment,null,r(te(te({},l),{},{open:o})))});nn.displayName="Dropzone";var lr={disabled:!1,getFilesFromEvent:ai,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};nn.defaultProps=lr;nn.propTypes={children:t.PropTypes.func,accept:t.PropTypes.objectOf(t.PropTypes.arrayOf(t.PropTypes.string)),multiple:t.PropTypes.bool,preventDropOnDocument:t.PropTypes.bool,noClick:t.PropTypes.bool,noKeyboard:t.PropTypes.bool,noDrag:t.PropTypes.bool,noDragEventsBubbling:t.PropTypes.bool,minSize:t.PropTypes.number,maxSize:t.PropTypes.number,maxFiles:t.PropTypes.number,disabled:t.PropTypes.bool,getFilesFromEvent:t.PropTypes.func,onFileDialogCancel:t.PropTypes.func,onFileDialogOpen:t.PropTypes.func,useFsAccessApi:t.PropTypes.bool,autoFocus:t.PropTypes.bool,onDragEnter:t.PropTypes.func,onDragLeave:t.PropTypes.func,onDragOver:t.PropTypes.func,onDrop:t.PropTypes.func,onDropAccepted:t.PropTypes.func,onDropRejected:t.PropTypes.func,onError:t.PropTypes.func,validator:t.PropTypes.func};var Kt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function dr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=te(te({},lr),e),r=n.accept,i=n.disabled,a=n.getFilesFromEvent,o=n.maxSize,l=n.minSize,h=n.multiple,b=n.maxFiles,d=n.onDragEnter,_=n.onDragLeave,T=n.onDragOver,k=n.onDrop,B=n.onDropAccepted,M=n.onDropRejected,N=n.onFileDialogCancel,W=n.onFileDialogOpen,U=n.useFsAccessApi,K=n.autoFocus,Q=n.preventDropOnDocument,R=n.noClick,F=n.noKeyboard,O=n.noDrag,L=n.noDragEventsBubbling,y=n.onError,c=n.validator,v=t.reactExports.useMemo(function(){return $i(r)},[r]),S=t.reactExports.useMemo(function(){return Ui(r)},[r]),j=t.reactExports.useMemo(function(){return typeof W=="function"?W:_n},[W]),I=t.reactExports.useMemo(function(){return typeof N=="function"?N:_n},[N]),A=t.reactExports.useRef(null),z=t.reactExports.useRef(null),C=t.reactExports.useReducer(Ji,Kt),H=wt(C,2),p=H[0],u=H[1],g=p.isFocused,m=p.isFileDialogActive,s=t.reactExports.useRef(typeof window<"u"&&window.isSecureContext&&U&&Ai()),f=function(){!s.current&&m&&setTimeout(function(){if(z.current){var D=z.current.files;D.length||(u({type:"closeDialog"}),I())}},300)};t.reactExports.useEffect(function(){return window.addEventListener("focus",f,!1),function(){window.removeEventListener("focus",f,!1)}},[z,m,I,s]);var x=t.reactExports.useRef([]),E=function(D){A.current&&A.current.contains(D.target)||(D.preventDefault(),x.current=[])};t.reactExports.useEffect(function(){return Q&&(document.addEventListener("dragover",In,!1),document.addEventListener("drop",E,!1)),function(){Q&&(document.removeEventListener("dragover",In),document.removeEventListener("drop",E))}},[A,Q]),t.reactExports.useEffect(function(){return!i&&K&&A.current&&A.current.focus(),function(){}},[A,K,i]);var P=t.reactExports.useCallback(function(w){y?y(w):console.error(w)},[y]),$=t.reactExports.useCallback(function(w){w.preventDefault(),w.persist(),Pe(w),x.current=[].concat(Vi(x.current),[w.target]),ot(w)&&Promise.resolve(a(w)).then(function(D){if(!(ft(w)&&!L)){var ee=D.length,re=ee>0&&Ti({files:D,accept:v,minSize:l,maxSize:o,multiple:h,maxFiles:b,validator:c}),ae=ee>0&&!re;u({isDragAccept:re,isDragReject:ae,isDragActive:!0,type:"setDraggedFiles"}),d&&d(w)}}).catch(function(D){return P(D)})},[a,d,P,L,v,l,o,h,b,c]),G=t.reactExports.useCallback(function(w){w.preventDefault(),w.persist(),Pe(w);var D=ot(w);if(D&&w.dataTransfer)try{w.dataTransfer.dropEffect="copy"}catch{}return D&&T&&T(w),!1},[T,L]),Y=t.reactExports.useCallback(function(w){w.preventDefault(),w.persist(),Pe(w);var D=x.current.filter(function(re){return A.current&&A.current.contains(re)}),ee=D.indexOf(w.target);ee!==-1&&D.splice(ee,1),x.current=D,!(D.length>0)&&(u({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ot(w)&&_&&_(w))},[A,_,L]),Z=t.reactExports.useCallback(function(w,D){var ee=[],re=[];w.forEach(function(ae){var me=or(ae,v),Re=wt(me,2),Qe=Re[0],Ye=Re[1],Te=sr(ae,l,o),X=wt(Te,2),de=X[0],ye=X[1],qe=c?c(ae):null;if(Qe&&de&&!qe)ee.push(ae);else{var Fe=[Ye,ye];qe&&(Fe=Fe.concat(qe)),re.push({file:ae,errors:Fe.filter(function(Xe){return Xe})})}}),(!h&&ee.length>1||h&&b>=1&&ee.length>b)&&(ee.forEach(function(ae){re.push({file:ae,errors:[Pi]})}),ee.splice(0)),u({acceptedFiles:ee,fileRejections:re,type:"setFiles"}),k&&k(ee,re,D),re.length>0&&M&&M(re,D),ee.length>0&&B&&B(ee,D)},[u,h,v,l,o,b,k,B,M,c]),ne=t.reactExports.useCallback(function(w){w.preventDefault(),w.persist(),Pe(w),x.current=[],ot(w)&&Promise.resolve(a(w)).then(function(D){ft(w)&&!L||Z(D,w)}).catch(function(D){return P(D)}),u({type:"reset"})},[a,Z,P,L]),ie=t.reactExports.useCallback(function(){if(s.current){u({type:"openDialog"}),j();var w={multiple:h,types:S};window.showOpenFilePicker(w).then(function(D){return a(D)}).then(function(D){Z(D,null),u({type:"closeDialog"})}).catch(function(D){Li(D)?(I(D),u({type:"closeDialog"})):Ni(D)?(s.current=!1,z.current?(z.current.value=null,z.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(D)});return}z.current&&(u({type:"openDialog"}),j(),z.current.value=null,z.current.click())},[u,j,I,U,Z,P,S,h]),se=t.reactExports.useCallback(function(w){!A.current||!A.current.isEqualNode(w.target)||(w.key===" "||w.key==="Enter"||w.keyCode===32||w.keyCode===13)&&(w.preventDefault(),ie())},[A,ie]),pe=t.reactExports.useCallback(function(){u({type:"focus"})},[]),oe=t.reactExports.useCallback(function(){u({type:"blur"})},[]),ve=t.reactExports.useCallback(function(){R||(Di()?setTimeout(ie,0):ie())},[R,ie]),ce=function(D){return i?null:D},le=function(D){return F?null:ce(D)},Le=function(D){return O?null:ce(D)},Pe=function(D){L&&D.stopPropagation()},nt=t.reactExports.useMemo(function(){return function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=w.refKey,ee=D===void 0?"ref":D,re=w.role,ae=w.onKeyDown,me=w.onFocus,Re=w.onBlur,Qe=w.onClick,Ye=w.onDragEnter,Te=w.onDragOver,X=w.onDragLeave,de=w.onDrop,ye=gt(w,Hi);return te(te(Gt({onKeyDown:le(he(ae,se)),onFocus:le(he(me,pe)),onBlur:le(he(Re,oe)),onClick:ce(he(Qe,ve)),onDragEnter:Le(he(Ye,$)),onDragOver:Le(he(Te,G)),onDragLeave:Le(he(X,Y)),onDrop:Le(he(de,ne)),role:typeof re=="string"&&re!==""?re:"presentation"},ee,A),!i&&!F?{tabIndex:0}:{}),ye)}},[A,se,pe,oe,ve,$,G,Y,ne,F,O,i]),rt=t.reactExports.useCallback(function(w){w.stopPropagation()},[]),Ne=t.reactExports.useMemo(function(){return function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=w.refKey,ee=D===void 0?"ref":D,re=w.onChange,ae=w.onClick,me=gt(w,Bi),Re=Gt({accept:v,multiple:h,type:"file",style:{display:"none"},onChange:ce(he(re,ne)),onClick:ce(he(ae,rt)),tabIndex:-1},ee,z);return te(te({},Re),me)}},[z,r,h,ne,i]);return te(te({},p),{},{isFocused:g&&!i,getRootProps:nt,getInputProps:Ne,rootRef:A,inputRef:z,open:ce(ie)})}function Ji(e,n){switch(n.type){case"focus":return te(te({},e),{},{isFocused:!0});case"blur":return te(te({},e),{},{isFocused:!1});case"openDialog":return te(te({},Kt),{},{isFileDialogActive:!0});case"closeDialog":return te(te({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return te(te({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return te(te({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections});case"reset":return te({},Kt);default:return e}}function _n(){}var Qt=(e=>(e.FileSelect="file-select",e.DragDrop="drag-drop",e))(Qt||{});const Zi="_fileDrop_dm34f_1",eo="_resourcePreview_dm34f_4",Cn={fileDrop:Zi,resourcePreview:eo},_t="shared.feedbackFileUpload";function to(e){const{getRootProps:n,getInputProps:r,isDragActive:i}=dr({onDrop:b=>e.onFilesAdded(b,Qt.DragDrop),noClick:!0,noKeyboard:!0,multiple:!!e.acceptMultiple,noDragEventsBubbling:!0}),a=t.reactExports.useRef(null),o=t.reactExports.useCallback(b=>{b&&(a.current=b)},[]),l=()=>{a.current.value=null,a.current.click()};let h=`${Cn.fileDrop} text-center p-2 rounded-1`;return e.uploadError&&(h+=" border-red"),i&&(h+=" border-blue bg-light-blue"),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{...n({className:h}),children:[t.jsxRuntimeExports.jsx("img",{className:Cn.resourcePreview,src:e.imageUrl,draggable:!1}),t.jsxRuntimeExports.jsxs("div",{className:"position-relative",children:[i&&t.jsxRuntimeExports.jsx("p",{className:"position-absolute font-size-md translate-middle top-50 start-50 mb-0",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:_t,phrase:"dropUpload"})}),t.jsxRuntimeExports.jsxs("div",{className:i?"opacity-0":"",children:[t.jsxRuntimeExports.jsx("p",{className:"mb-0",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:_t,phrase:"dragDrop"})}),t.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-link text-underline p-0",onClick:l,children:t.jsxRuntimeExports.jsx(t.Text,{namespace:_t,phrase:"upload"})})]})]}),t.jsxRuntimeExports.jsx("input",{type:"file",name:"fileUpload",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:o,onChange:b=>e.onFilesAdded([...b.target.files],Qt.FileSelect),"aria-errormessage":"fileUploadError"}),t.jsxRuntimeExports.jsx("input",{...r()})]}),e.uploadError&&t.jsxRuntimeExports.jsx(Zt.FormFeedback,{name:"fileUpload",children:e.uploadError})]})}const no="_progress_w7ph2_1",ro={progress:no};function io(e){const n=e.upload.progress===100;return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{children:[t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:en.FolderSvg,className:"svg-container me-2"}),t.jsxRuntimeExports.jsx("span",{className:"align-middle",children:e.upload.name}),n&&t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:tn.CheckSvg,className:"svg-container float-end text-success"}),!n&&t.jsxRuntimeExports.jsx("div",{role:"button","aria-label":"close",onClick:()=>e.cancelUpload(e.upload.id),className:"float-end description",children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:mt.CloseSvg})})]}),t.jsxRuntimeExports.jsx("div",{className:`${ro.progress} progress my-2`,children:t.jsxRuntimeExports.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 oo(e){var n;return(n=e.uploads)!=null&&n.length?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e.uploads.map((r,i)=>t.jsxRuntimeExports.jsx(io,{upload:r,cancelUpload:e.cancelUpload},i))}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{})}function so(e){return t.jsxRuntimeExports.jsxs("div",{className:"bg-gray-100 rounded p-2",children:[t.jsxRuntimeExports.jsx(t.SvgContainer,{className:"d-inline-block align-middle svg-container icon-purple me-2",svg:en.FileImgSvg}),t.jsxRuntimeExports.jsx("span",{className:"align-middle",children:e.file.get("name")}),t.jsxRuntimeExports.jsx("button",{className:"btn p-0 border-0 float-end",onClick:()=>e.deleteFile(e.file.get("id")),children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:Oe.DeleteSvg})})]})}function ao(e){return t.jsxRuntimeExports.jsx("div",{className:"d-flex flex-column gap-2",children:e.uploadedFiles.map(n=>t.jsxRuntimeExports.jsx(so,{file:n,deleteFile:e.deleteFile},n.id))})}const He="shared.feedbackReportBug",Je=t.LanguageService.encloseNamespace(He),uo={issue:"",stepsToReproduce:""},co=q.libExports.object().shape({issue:je().required(Ee("requiredError")),stepsToReproduce:je()}).noUnknown();function lo(e){const n=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{className:"form-group",children:[t.jsxRuntimeExports.jsx("label",{className:"form-label mb-1",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:He,phrase:"mixedMediaLabel"})}),t.jsxRuntimeExports.jsx("p",{className:"text-secondary font-size-sm",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:He,phrase:"mixedMediaDescription"})}),t.jsxRuntimeExports.jsx("div",{className:"mb-3",children:t.jsxRuntimeExports.jsx(to,{mimeType:t.FileExtensions.MIXED_MEDIA,onFilesAdded:e.onFilesAdded,imageUrl:e.previewImageUrl,uploadError:e.uploadError,acceptMultiple:!0})}),t.jsxRuntimeExports.jsx(oo,{uploads:e.uploadingFiles,cancelUpload:e.cancelUpload}),t.jsxRuntimeExports.jsx(ao,{uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile})]}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:Je("issuePlaceholder"),label:Je("issueLabel"),name:"issue",value:n.values.issue,showRequiredStar:!0}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:Je("stepsPlaceholder"),label:Je("stepsLabel"),name:"stepsToReproduce",value:n.values.stepsToReproduce}),t.jsxRuntimeExports.jsxs("div",{className:"rounded bg-light-yellow p-2 mb-3",children:[t.jsxRuntimeExports.jsx("p",{className:"fw-semibold mb-2",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:He,phrase:"help"})}),t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-1 mb-2",children:[t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:ni}),t.jsxRuntimeExports.jsx("a",{href:It[e.instanceRegion].website,target:"_blank",className:"text-underline",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:He,phrase:"visitHelpCentre"})})]}),t.jsxRuntimeExports.jsx("p",{className:"mb-2",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:He,phrase:"supportTeam"})}),t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-1 mb-2",children:[t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:ri}),t.jsxRuntimeExports.jsx("span",{children:It[e.instanceRegion].phone})]}),t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-1 mb-2",children:[t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:Oe.EmailSvg}),t.jsxRuntimeExports.jsx("span",{children:It[e.instanceRegion].email})]})]})]})}function fo(e){const{onFilesAdded:n,cancelUpload:r,uploadingFiles:i,uploadedFiles:a,deleteFile:o,...l}=e;return t.jsxRuntimeExports.jsx($e,{...l,initialValues:{...uo,...e.initialValues},validationSchema:co,submitText:Je("submit"),children:t.jsxRuntimeExports.jsx(lo,{onFilesAdded:n,previewImageUrl:ze.mediaPreview,cancelUpload:r,uploadingFiles:i,uploadedFiles:a,deleteFile:o,uploadError:e.uploadError,instanceRegion:e.instanceRegion})})}var Ae=(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))(Ae||{});function xt(e){switch(e){case Ae.Pink:return"pink";case Ae.Orange:return"orange";case Ae.Green:return"green";case Ae.Blue:return"blue";case Ae.Purple:return"purple";case Ae.Indigo:return"indigo";default:return"pink"}}const go="_avatar_rpeug_1",po={avatar:go};function mo(e){const{imageUrl:n,initials:r}=e,i={};return n&&(i.backgroundImage=`url('${n}')`),t.jsxRuntimeExports.jsx("div",{className:po.avatar,style:i,children:n?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:" "}):r})}function ho(e){return t.jsxRuntimeExports.jsx("svg",{...e,children:t.jsxRuntimeExports.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 xo="_svgContainer_kq46n_1",vo="_selection_kq46n_5",yo="_expander_kq46n_8",So="_iconContainer_kq46n_14",bo="_icon_kq46n_14",Eo="_bubble_kq46n_30",jo="_spinnerContainer_kq46n_46",Ro="_remove_kq46n_51",Io="_removeBubble_kq46n_60",ue={svgContainer:xo,selection:vo,expander:yo,iconContainer:So,icon:bo,bubble:Eo,spinnerContainer:jo,remove:Ro,removeBubble:Io},wo=t.LanguageService.encloseNamespace("shared.inputSelection");function _o(e){var n;switch(e.typeId){case t.MasterType.Classroom:return"text-teal-hover";case t.MasterType.ClassroomGroup:return`text-${xt((n=e.metadata)==null?void 0:n.colour)}-hover`}}function On(e){var r;let n=`${ue.svgContainer} ${ue.icon}`;return e.typeId===t.MasterType.Classroom?n+=" text-teal":n+=` text-${xt((r=e.metadata)==null?void 0:r.colour)}`,n}function Co(e){var i;const n=_o(e.selection),r=e.selection.typeId===t.MasterType.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===t.MasterType.User){const a=e.selection;return t.jsxRuntimeExports.jsx("div",{className:ue.svgContainer,children:t.jsxRuntimeExports.jsx(mo,{imageUrl:(i=a.avatar)==null?void 0:i.url,initials:t.UserHelper.getInitials(e.selection.name,e.selection.surname)})})}return t.jsxRuntimeExports.jsx(t.Tooltip,{title:wo(r?"emptyClassroom":"emptyGroup"),children:t.jsxRuntimeExports.jsx("div",{className:`align-items-center border border-white bg-white ${ue.iconContainer}`,children:t.jsxRuntimeExports.jsx(t.SvgContainer,{className:On(e.selection),svg:r?Oe.ClassroomsSvg:Oe.GroupSvg})})})}return e.hasExpanded?t.jsxRuntimeExports.jsx("div",{className:`d-flex align-items-center text-white ${ue.spinnerContainer} ${ue.svgContainer}`,children:t.jsxRuntimeExports.jsx(t.Spinner,{as:"div",size:"sm",animation:"border",role:"status"})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(t.DivButton,{className:`align-items-center cursor-pointer text-white border border-white rounded-circle ${ue.expander} ${n}`,onClick:e.onClickExpand,children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:ho,className:`d-flex align-items-center ${ue.svgContainer}`})}),t.jsxRuntimeExports.jsx("div",{className:`align-items-center border border-white bg-white ${ue.iconContainer}`,children:t.jsxRuntimeExports.jsx(t.SvgContainer,{className:On(e.selection),svg:r?Oe.ClassroomsSvg:Oe.GroupSvg})})]})}function Yt(e){var n;if(!e.typeId)return"ultramarine";switch(e.typeId){case t.MasterType.User:return typeof e.userType=="number"?e.userType===2?"ultramarine":"indigo":e.userType===t.UserGroup.Learner?"ultramarine":"indigo";case t.MasterType.Classroom:return"teal";case t.MasterType.ClassroomGroup:return xt((n=e.metadata)==null?void 0:n.colour)}}function Oo(e){var T,k,B;const n=Ze.MasterTypeHelper.isType(e.selection,t.MasterType.Classroom),r=Ze.MasterTypeHelper.isType(e.selection,t.MasterType.ClassroomGroup),i=e.onClickExpand&&(n||r),a=!!((T=e.selection.users||e.selection.enrolments)!=null&&T.count),o=!!((B=(k=e.selection.users)==null?void 0:k.data)!=null&&B.length),[l,h]=t.React.useState(!1),[b,d]=t.React.useState(i&&a);t.React.useEffect(()=>{d(i&&a)},[i,a]);function _(){h(!0),e.onClickExpand(e.selection.id)}if(o){const M=e.selection,N=Yt(e.selection);return t.jsxRuntimeExports.jsxs("div",{className:`d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-${N} text-${N} ${ue.bubble}`,children:[M.users.data.map(W=>t.jsxRuntimeExports.jsx(pt,{selection:W,colourVariant:N,hasStudentExperience:e.hasStudentExperience},`${W.id}:${e.selection.id}`)),t.jsxRuntimeExports.jsx(t.DivButton,{className:`cursor-pointer position-absolute text-${N} ${ue.removeBubble}`,onClick:()=>e.onClickRemove(e.selection),children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:mt.CloseSvg,className:`d-flex align-items-center ${ue.svgContainer}`})})]})}return t.jsxRuntimeExports.jsx(pt,{selection:e.selection,canExpand:b,hasExpanded:l,onClickExpand:_,onClickRemove:e.onClickRemove,colourVariant:Yt(e.selection),hasStudentExperience:e.hasStudentExperience})}function pt(e){const n=e.colourVariant||Yt(e.selection);let r=e.selection.name;return e.selection.typeId===t.MasterType.User&&(r=e.hasStudentExperience?t.UserHelper.getDisplayName(e.selection):t.UserHelper.getFullName(e.selection)),t.jsxRuntimeExports.jsxs("div",{className:`${ue.selection} bg-${n} rounded-pill text-${n} d-flex align-items-center me-1 mt-1 overflow-hidden`,children:[!e.hideExpander&&t.jsxRuntimeExports.jsx(Co,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),t.jsxRuntimeExports.jsx("span",{className:"mx-1 text-white text-truncate",children:r}),t.FunctionHelper.isFunction(e.onClickRemove)&&t.jsxRuntimeExports.jsx(t.DivButton,{className:`d-flex align-items-center cursor-pointer align-self-stretch text-white ${ue.remove}`,onClick:()=>e.onClickRemove(e.selection),children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:mt.CloseSvg,className:`d-flex align-items-center ${ue.svgContainer}`})})]})}const Po="_removeRecipient_3yabf_1",To="_recipientItem_3yabf_5",Fo="_showSpinner_3yabf_8",ko="_avatarContainer_3yabf_11",Do="_recipientDetails_3yabf_15",Ao="_recipientDetailsWithRemoveButton_3yabf_18",_e={removeRecipient:Po,recipientItem:To,showSpinner:Fo,avatarContainer:ko,recipientDetails:Do,recipientDetailsWithRemoveButton:Ao},Uo="shared.classroomGroupRecipientItemMetadata";function $o(e){var i,a;const n=((i=e.users)==null?void 0:i.count)??0,r=(a=e.classroom)==null?void 0:a.name;return r?t.LanguageService.getPhrase(Uo,"subheading",{classroomName:r,smartCount:n}):""}function Lo(e){var n;return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{className:`${_e.avatarContainer} d-inline-block`,children:t.jsxRuntimeExports.jsx(tn.IconCircle,{svg:Oe.GroupSvg,variant:xt((n=e.classroomGroup.metadata)==null?void 0:n.colour)})}),t.jsxRuntimeExports.jsxs("div",{className:e.detailsClassName,children:[t.jsxRuntimeExports.jsx("h4",{className:"font-size-normal fw-normal m-0",children:e.classroomGroup.name}),t.jsxRuntimeExports.jsx("p",{className:"text-secondary m-0",children:$o(e.classroomGroup)})]})]})}const No="shared.classroomRecipientItemMetadata";function qo(e){var r,i;const n=((r=e.users)==null?void 0:r.count)??((i=e.enrolments)==null?void 0:i.count);return Number.isInteger(n)?t.LanguageService.getPhrase(No,"subheading",{smartCount:n}):""}function Mo(e){return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{className:`${_e.avatarContainer} d-inline-block`,children:t.jsxRuntimeExports.jsx(tn.IconCircle,{svg:Oe.ClassroomsSvg,variant:"teal"})}),t.jsxRuntimeExports.jsxs("div",{className:e.detailsClassName,children:[t.jsxRuntimeExports.jsx("h4",{className:"font-size-normal fw-normal m-0",children:e.classroom.name}),t.jsxRuntimeExports.jsx("p",{className:"text-secondary m-0",children:qo(e.classroom)})]})]})}class Ho{constructor(n){const{length:r,separator:i,dictionaries:a,style:o,seed:l}=n;this.dictionaries=a,this.separator=i,this.length=r,this.style=o,this.seed=l}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
6
- Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);return this.dictionaries.slice(0,this.length).reduce((n,r)=>{let i=r[Math.floor((this.seed?(a=this.seed,(o=>{o=1831565813+(o|=0)|0;let l=Math.imul(o^o>>>15,1|o);return l=l+Math.imul(l^l>>>7,61|l)^l,((l^l>>>14)>>>0)/4294967296})(a)):Math.random())*r.length)]||"";var a;if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[o,...l]=i.split("");i=o.toUpperCase()+l.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return n?`${n}${this.separator}${i}`:`${i}`},"")}}const Pn={separator:"_",dictionaries:[]},Bo=e=>{const n=[...e&&e.dictionaries||Pn.dictionaries],r={...Pn,...e,length:e&&e.length||n.length,dictionaries:n};if(!e||!e.dictionaries||!e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new Ho(r).generate()};var Vo=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"],Wo=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];const zo="shared.analyticsUtils",Tn=t.LanguageService.encloseNamespace(zo);function Go(e){if(!e)return 0;let n=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);n=(n<<5)-n+i,n|=0}return Math.abs(n)}function Ko(e,n){const r=+`${e||Go(n)}${Math.floor(new Date().getMinutes()/5)}`;return{dictionaries:[Wo,Vo],separator:" ",length:2,style:"capital",seed:r}}function Fn(e,n){return e?n?Bo(Ko(e.id,e.sessionId)):t.UserHelper.getFullName(e)||Tn("anonUser"):Tn("anonUser")}const Qo="shared.userRecipientItemMetadata",Ct=t.LanguageService.encloseNamespace(Qo);function Yo(e){const n=t.UserHelper.getUserType(e),r=t.UserHelper.getUserRole(e);if(n===t.UserGroup.Staff)return r===t.UserRole.Admin?Ct("admin"):Ct("staff");const i=t.UserHelper.getYearGroup(e);return i!=null&&i.name&&i.name!=="Learners"?i.name:Ct("student")}function Xo({user:e,anonymiseUsers:n,showDisplayName:r}){var i;if(e.sessionId){const a=Fn(e,n),o=a.split(" ").filter(l=>!!l);return{name:a,surname:o.slice(1).join(" "),avatarUrl:null}}return{name:n?Fn(e,!0):r?t.UserHelper.getDisplayName(e):t.UserHelper.getFullName(e),surname:e.surname,avatarUrl:(i=e.avatar)==null?void 0:i.url}}fr.defaults={showSubText:!0};function fr(e){const{name:n,surname:r,avatarUrl:i}=Xo(e);return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{className:`${_e.avatarContainer} ${e.avatarClassName} d-inline-block flex-shrink-0`,children:t.jsxRuntimeExports.jsx(t.Avatar,{imageUrl:i,imageCdnUrl:e.imageCdnUrl,initials:t.UserHelper.getInitials(n,r),showAnonymousUser:!e.anonymiseUsers&&!!e.user.sessionId,anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:t.SvgContainerSize.Small})}),t.jsxRuntimeExports.jsxs("div",{className:e.detailsClassName,children:[t.jsxRuntimeExports.jsx("h4",{className:en.classNames("font-size-normal fw-normal m-0",e.nameClassName),children:n}),e.showSubText&&"id"in e.user&&t.jsxRuntimeExports.jsx("p",{className:"text-secondary m-0",children:e.getSubText?e.getSubText(e.user):Yo(e.user)})]})]})}const Jo="share.recipientItem",Ot=t.LanguageService.encloseNamespace(Jo);function Zo(e){switch(e){case t.MasterType.User:return Ot("removeUser");case t.MasterType.Classroom:return Ot("removeClassroom");case t.MasterType.ClassroomGroup:return Ot("removeGroup")}return null}function es(e){const[n,r]=t.React.useState(!1);let i=`${_e.recipientItem} d-flex`;n&&(i+=` ${_e.showSpinner}`);const a=`${e.removeRecipient?_e.recipientDetailsWithRemoveButton:_e.recipientDetails} d-inline-block ms-2`;function o(){r(!0),e.removeRecipient(e.entity.id,()=>r(!1))}return t.jsxRuntimeExports.jsxs("div",{className:i,children:[(()=>{if(Ze.MasterTypeHelper.isType(e.entity,t.MasterType.User))return t.jsxRuntimeExports.jsx(fr,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:a,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0});if(Ze.MasterTypeHelper.isType(e.entity,t.MasterType.Classroom))return t.jsxRuntimeExports.jsx(Mo,{classroom:e.entity,detailsClassName:a});if(Ze.MasterTypeHelper.isType(e.entity,t.MasterType.ClassroomGroup))return t.jsxRuntimeExports.jsx(Lo,{classroomGroup:e.entity,detailsClassName:a})})(),t.FunctionHelper.isFunction(e.removeRecipient)&&t.jsxRuntimeExports.jsx("div",{className:`${_e.removeRecipient} d-inline-flex justify-content-center align-items-center`,children:n?t.jsxRuntimeExports.jsx(t.Spinner,{as:"div",size:"sm",animation:"border",role:"status"}):t.jsxRuntimeExports.jsx(t.Tooltip,{title:Zo(e.entity.typeId),spanHack:!0,children:t.jsxRuntimeExports.jsx("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:o})})})]})}var Pt={},Tt,kn;function ts(){if(kn)return Tt;kn=1;function e(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=n.length;if(r.length!==i)return!1;for(var a=0;a<i;a++)if(n[a]!==r[a])return!1;return!0}return Tt=e,Tt}var Ft={},kt,Dn;function ns(){if(Dn)return kt;Dn=1;var e=function(){function n(r,i){var a=[],o=!0,l=!1,h=void 0;try{for(var b=r[Symbol.iterator](),d;!(o=(d=b.next()).done)&&(a.push(d.value),!(i&&a.length===i));o=!0);}catch(_){l=!0,h=_}finally{try{!o&&b.return&&b.return()}finally{if(l)throw h}}return a}return function(r,i){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return n(r,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return kt=function(n){var r=n.data,i=n.multiSection;function a(d){for(d===null?d=0:d++;d<r.length&&r[d]===0;)d++;return d===r.length?null:d}function o(d){for(d===null?d=r.length-1:d--;d>=0&&r[d]===0;)d--;return d===-1?null:d}function l(d){var _=e(d,2),T=_[0],k=_[1];return i?k===null||k===r[T]-1?(T=a(T),T===null?[null,null]:[T,0]):[T,k+1]:r===0||k===r-1?[null,null]:k===null?[null,0]:[null,k+1]}function h(d){var _=e(d,2),T=_[0],k=_[1];return i?k===null||k===0?(T=o(T),T===null?[null,null]:[T,r[T]-1]):[T,k-1]:r===0||k===0?[null,null]:k===null?[null,r-1]:[null,k-1]}function b(d){return l(d)[1]===null}return{next:l,prev:h,isLast:b}},kt}var st={exports:{}},Dt,An;function rs(){if(An)return Dt;An=1;var e=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(i){var a=Object.getOwnPropertyNames(i);return Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i))),a.filter(function(o){return e.call(i,o)})}return Dt=Object.assign||function(i,a){for(var o,l,h=n(i),b=1;b<arguments.length;b++){o=arguments[b],l=r(Object(o));for(var d=0;d<l.length;d++)h[l[d]]=o[l[d]]}return h},Dt}var Un;function is(){return Un||(Un=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function b(d,_){var T=[],k=!0,B=!1,M=void 0;try{for(var N=d[Symbol.iterator](),W;!(k=(W=N.next()).done)&&(T.push(W.value),!(_&&T.length===_));k=!0);}catch(U){B=!0,M=U}finally{try{!k&&N.return&&N.return()}finally{if(B)throw M}}return T}return function(d,_){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return b(d,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function i(b){return b&&b.__esModule?b:{default:b}}function a(b){if(Array.isArray(b)){for(var d=0,_=Array(b.length);d<b.length;d++)_[d]=b[d];return _}else return Array.from(b)}var o=rs(),l=i(o),h=function(d){return d};n.default=function(b){var d=Array.isArray(b)&&b.length===2?b:[b,null],_=r(d,2),T=_[0],k=_[1];return function(B){for(var M=arguments.length,N=Array(M>1?M-1:0),W=1;W<M;W++)N[W-1]=arguments[W];var U=N.map(function(K){return T[K]}).filter(h);return typeof U[0]=="string"||typeof k=="function"?{key:B,className:k?k.apply(void 0,a(U)):U.join(" ")}:{key:B,style:l.default.apply(void 0,[{}].concat(a(U)))}}},e.exports=n.default}(st,st.exports)),st.exports}var At={},Ut={},$n;function rn(){return $n||($n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function n(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(o){return typeof o}:n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(i)}function r(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(i===a)return!1;var l=Object.keys(i),h=Object.keys(a);if(l.length!==h.length)return!0;var b={},d,_;for(d=0,_=o.length;d<_;d++)b[o[d]]=!0;for(d=0,_=l.length;d<_;d++){var T=l[d],k=i[T],B=a[T];if(k!==B){if(!b[T]||k===null||B===null||n(k)!=="object"||n(B)!=="object")return!0;var M=Object.keys(k),N=Object.keys(B);if(M.length!==N.length)return!0;for(var W=0,U=M.length;W<U;W++){var K=M[W];if(k[K]!==B[K])return!0}}}return!1}}(Ut)),Ut}var Ln;function os(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(t.requireReact()),r=a(t.requirePropTypes()),i=a(rn());function a(R){return R&&R.__esModule?R:{default:R}}function o(){if(typeof WeakMap!="function")return null;var R=new WeakMap;return o=function(){return R},R}function l(R){if(R&&R.__esModule)return R;if(R===null||h(R)!=="object"&&typeof R!="function")return{default:R};var F=o();if(F&&F.has(R))return F.get(R);var O={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in R)if(Object.prototype.hasOwnProperty.call(R,y)){var c=L?Object.getOwnPropertyDescriptor(R,y):null;c&&(c.get||c.set)?Object.defineProperty(O,y,c):O[y]=R[y]}return O.default=R,F&&F.set(R,O),O}function h(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(O){return typeof O}:h=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},h(R)}function b(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function d(R,F){for(var O=0;O<F.length;O++){var L=F[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}function _(R,F,O){return F&&d(R.prototype,F),R}function T(R){return function(){var F=N(R),O;if(M()){var L=N(this).constructor;O=Reflect.construct(F,arguments,L)}else O=F.apply(this,arguments);return k(this,O)}}function k(R,F){return F&&(h(F)==="object"||typeof F=="function")?F:B(R)}function B(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}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 N(R){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},N(R)}function W(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),F&&U(R,F)}function U(R,F){return U=Object.setPrototypeOf||function(L,y){return L.__proto__=y,L},U(R,F)}function K(R,F,O){return F in R?Object.defineProperty(R,F,{value:O,enumerable:!0,configurable:!0,writable:!0}):R[F]=O,R}var Q=function(R){W(O,R);var F=T(O);function O(){return b(this,O),F.apply(this,arguments)}return _(O,[{key:"shouldComponentUpdate",value:function(y){return(0,i.default)(y,this.props)}},{key:"render",value:function(){var y=this.props,c=y.section,v=y.renderSectionTitle,S=y.theme,j=y.sectionKeyPrefix,I=v(c);return I?n.default.createElement("div",S("".concat(j,"title"),"sectionTitle"),I):null}}]),O}(n.Component);e.default=Q,K(Q,"propTypes",{section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired})}(At)),At}var $t={},Lt={},Nn;function ss(){return Nn||(Nn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(t.requireReact()),r=a(t.requirePropTypes()),i=a(rn());function a(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 l(c){if(c&&c.__esModule)return c;if(c===null||h(c)!=="object"&&typeof c!="function")return{default:c};var v=o();if(v&&v.has(c))return v.get(c);var S={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in c)if(Object.prototype.hasOwnProperty.call(c,I)){var A=j?Object.getOwnPropertyDescriptor(c,I):null;A&&(A.get||A.set)?Object.defineProperty(S,I,A):S[I]=c[I]}return S.default=c,v&&v.set(c,S),S}function h(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(S){return typeof S}:h=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},h(c)}function b(){return b=Object.assign||function(c){for(var v=1;v<arguments.length;v++){var S=arguments[v];for(var j in S)Object.prototype.hasOwnProperty.call(S,j)&&(c[j]=S[j])}return c},b.apply(this,arguments)}function d(c,v){var S=Object.keys(c);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(c);v&&(j=j.filter(function(I){return Object.getOwnPropertyDescriptor(c,I).enumerable})),S.push.apply(S,j)}return S}function _(c){for(var v=1;v<arguments.length;v++){var S=arguments[v]!=null?arguments[v]:{};v%2?d(Object(S),!0).forEach(function(j){L(c,j,S[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(S)):d(Object(S)).forEach(function(j){Object.defineProperty(c,j,Object.getOwnPropertyDescriptor(S,j))})}return c}function T(c,v){if(c==null)return{};var S=k(c,v),j,I;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(c);for(I=0;I<A.length;I++)j=A[I],!(v.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(c,j)&&(S[j]=c[j])}return S}function k(c,v){if(c==null)return{};var S={},j=Object.keys(c),I,A;for(A=0;A<j.length;A++)I=j[A],!(v.indexOf(I)>=0)&&(S[I]=c[I]);return S}function B(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function M(c,v){for(var S=0;S<v.length;S++){var j=v[S];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(c,j.key,j)}}function N(c,v,S){return v&&M(c.prototype,v),c}function W(c){return function(){var v=R(c),S;if(Q()){var j=R(this).constructor;S=Reflect.construct(v,arguments,j)}else S=v.apply(this,arguments);return U(this,S)}}function U(c,v){return v&&(h(v)==="object"||typeof v=="function")?v: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 Q(){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 R(c){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},R(c)}function F(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),v&&O(c,v)}function O(c,v){return O=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},O(c,v)}function L(c,v,S){return v in c?Object.defineProperty(c,v,{value:S,enumerable:!0,configurable:!0,writable:!0}):c[v]=S,c}var y=function(c){F(S,c);var v=W(S);function S(){var j;B(this,S);for(var I=arguments.length,A=new Array(I),z=0;z<I;z++)A[z]=arguments[z];return j=v.call.apply(v,[this].concat(A)),L(K(j),"storeItemReference",function(C){C!==null&&(j.item=C)}),L(K(j),"onMouseEnter",function(C){var H=j.props,p=H.sectionIndex,u=H.itemIndex;j.props.onMouseEnter(C,{sectionIndex:p,itemIndex:u})}),L(K(j),"onMouseLeave",function(C){var H=j.props,p=H.sectionIndex,u=H.itemIndex;j.props.onMouseLeave(C,{sectionIndex:p,itemIndex:u})}),L(K(j),"onMouseDown",function(C){var H=j.props,p=H.sectionIndex,u=H.itemIndex;j.props.onMouseDown(C,{sectionIndex:p,itemIndex:u})}),L(K(j),"onClick",function(C){var H=j.props,p=H.sectionIndex,u=H.itemIndex;j.props.onClick(C,{sectionIndex:p,itemIndex:u})}),j}return N(S,[{key:"shouldComponentUpdate",value:function(I){return(0,i.default)(I,this.props,["renderItemData"])}},{key:"render",value:function(){var I=this.props,A=I.isHighlighted,z=I.item,C=I.renderItem,H=I.renderItemData,p=T(I,["isHighlighted","item","renderItem","renderItemData"]);return delete p.sectionIndex,delete p.itemIndex,typeof p.onMouseEnter=="function"&&(p.onMouseEnter=this.onMouseEnter),typeof p.onMouseLeave=="function"&&(p.onMouseLeave=this.onMouseLeave),typeof p.onMouseDown=="function"&&(p.onMouseDown=this.onMouseDown),typeof p.onClick=="function"&&(p.onClick=this.onClick),n.default.createElement("li",b({role:"option"},p,{ref:this.storeItemReference}),C(z,_({isHighlighted:A},H)))}}]),S}(n.Component);e.default=y,L(y,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})}(Lt)),Lt}var qn;function as(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=h(t.requireReact()),r=o(t.requirePropTypes()),i=o(ss()),a=o(rn());function o(y){return y&&y.__esModule?y:{default:y}}function l(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return l=function(){return y},y}function h(y){if(y&&y.__esModule)return y;if(y===null||b(y)!=="object"&&typeof y!="function")return{default:y};var c=l();if(c&&c.has(y))return c.get(y);var v={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)){var I=S?Object.getOwnPropertyDescriptor(y,j):null;I&&(I.get||I.set)?Object.defineProperty(v,j,I):v[j]=y[j]}return v.default=y,c&&c.set(y,v),v}function b(y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(v){return typeof v}:b=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},b(y)}function d(){return d=Object.assign||function(y){for(var c=1;c<arguments.length;c++){var v=arguments[c];for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(y[S]=v[S])}return y},d.apply(this,arguments)}function _(y,c){var v=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);c&&(S=S.filter(function(j){return Object.getOwnPropertyDescriptor(y,j).enumerable})),v.push.apply(v,S)}return v}function T(y){for(var c=1;c<arguments.length;c++){var v=arguments[c]!=null?arguments[c]:{};c%2?_(Object(v),!0).forEach(function(S){O(y,S,v[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(v)):_(Object(v)).forEach(function(S){Object.defineProperty(y,S,Object.getOwnPropertyDescriptor(v,S))})}return y}function k(y,c){if(!(y instanceof c))throw new TypeError("Cannot call a class as a function")}function B(y,c){for(var v=0;v<c.length;v++){var S=c[v];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}function M(y,c,v){return c&&B(y.prototype,c),y}function N(y){return function(){var c=Q(y),v;if(K()){var S=Q(this).constructor;v=Reflect.construct(c,arguments,S)}else v=c.apply(this,arguments);return W(this,v)}}function W(y,c){return c&&(b(c)==="object"||typeof c=="function")?c:U(y)}function U(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}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 Q(y){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},Q(y)}function R(y,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(c&&c.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),c&&F(y,c)}function F(y,c){return F=Object.setPrototypeOf||function(S,j){return S.__proto__=j,S},F(y,c)}function O(y,c,v){return c in y?Object.defineProperty(y,c,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[c]=v,y}var L=function(y){R(v,y);var c=N(v);function v(){var S;k(this,v);for(var j=arguments.length,I=new Array(j),A=0;A<j;A++)I[A]=arguments[A];return S=c.call.apply(c,[this].concat(I)),O(U(S),"storeHighlightedItemReference",function(z){S.props.onHighlightedItemChange(z===null?null:z.item)}),S}return M(v,[{key:"shouldComponentUpdate",value:function(j){return(0,a.default)(j,this.props,["itemProps"])}},{key:"render",value:function(){var j=this,I=this.props,A=I.items,z=I.itemProps,C=I.renderItem,H=I.renderItemData,p=I.sectionIndex,u=I.highlightedItemIndex,g=I.getItemId,m=I.theme,s=I.keyPrefix,f=p===null?s:"".concat(s,"section-").concat(p,"-"),x=typeof z=="function";return n.default.createElement("ul",d({role:"listbox"},m("".concat(f,"items-list"),"itemsList")),A.map(function(E,P){var $=P===0,G=P===u,Y="".concat(f,"item-").concat(P),Z=x?z({sectionIndex:p,itemIndex:P}):z,ne=T({id:g(p,P),"aria-selected":G},m(Y,"item",$&&"itemFirst",G&&"itemHighlighted"),{},Z);return G&&(ne.ref=j.storeHighlightedItemReference),n.default.createElement(i.default,d({},ne,{sectionIndex:p,isHighlighted:G,itemIndex:P,item:E,renderItem:C,renderItemData:H}))}))}}]),v}(n.Component);e.default=L,O(L,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),O(L,"defaultProps",{sectionIndex:null})}($t)),$t}var Mn;function us(){return Mn||(Mn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(t.requireReact()),r=h(t.requirePropTypes()),i=h(ns()),a=h(is()),o=h(os()),l=h(as());function h(u){return u&&u.__esModule?u:{default:u}}function b(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return b=function(){return u},u}function d(u){if(u&&u.__esModule)return u;if(u===null||K(u)!=="object"&&typeof u!="function")return{default:u};var g=b();if(g&&g.has(u))return g.get(u);var m={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var x=s?Object.getOwnPropertyDescriptor(u,f):null;x&&(x.get||x.set)?Object.defineProperty(m,f,x):m[f]=u[f]}return m.default=u,g&&g.set(u,m),m}function _(u,g){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(u);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),m.push.apply(m,s)}return m}function T(u){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?_(Object(m),!0).forEach(function(s){I(u,s,m[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):_(Object(m)).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(m,s))})}return u}function k(u,g){return U(u)||W(u,g)||M(u,g)||B()}function B(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(u,g){if(u){if(typeof u=="string")return N(u,g);var m=Object.prototype.toString.call(u).slice(8,-1);if(m==="Object"&&u.constructor&&(m=u.constructor.name),m==="Map"||m==="Set")return Array.from(m);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return N(u,g)}}function N(u,g){(g==null||g>u.length)&&(g=u.length);for(var m=0,s=new Array(g);m<g;m++)s[m]=u[m];return s}function W(u,g){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(u)))){var m=[],s=!0,f=!1,x=void 0;try{for(var E=u[Symbol.iterator](),P;!(s=(P=E.next()).done)&&(m.push(P.value),!(g&&m.length===g));s=!0);}catch($){f=!0,x=$}finally{try{!s&&E.return!=null&&E.return()}finally{if(f)throw x}}return m}}function U(u){if(Array.isArray(u))return u}function K(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K=function(m){return typeof m}:K=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},K(u)}function Q(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function R(u,g){for(var m=0;m<g.length;m++){var s=g[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}function F(u,g,m){return g&&R(u.prototype,g),u}function O(u){return function(){var g=v(u),m;if(c()){var s=v(this).constructor;m=Reflect.construct(g,arguments,s)}else m=g.apply(this,arguments);return L(this,m)}}function L(u,g){return g&&(K(g)==="object"||typeof g=="function")?g:y(u)}function y(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}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 v(u){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},v(u)}function S(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),g&&j(u,g)}function j(u,g){return j=Object.setPrototypeOf||function(s,f){return s.__proto__=f,s},j(u,g)}function I(u,g,m){return g in u?Object.defineProperty(u,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[g]=m,u}var A={},z=function(g){return n.default.createElement("input",g)},C=function(g){var m=g.containerProps,s=g.children;return n.default.createElement("div",m,s)},H={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"},p=function(u){S(m,u);var g=O(m);function m(s){var f;return Q(this,m),f=g.call(this,s),I(y(f),"storeInputReference",function(x){x!==null&&(f.input=x);var E=f.props.inputProps.ref;E&&(typeof E=="function"?E(x):K(E)==="object"&&Object.prototype.hasOwnProperty.call(E,"current")&&(E.current=x))}),I(y(f),"storeItemsContainerReference",function(x){x!==null&&(f.itemsContainer=x)}),I(y(f),"onHighlightedItemChange",function(x){f.highlightedItem=x}),I(y(f),"getItemId",function(x,E){if(E===null)return null;var P=f.props.id,$=x===null?"":"section-".concat(x);return"react-autowhatever-".concat(P,"-").concat($,"-item-").concat(E)}),I(y(f),"onFocus",function(x){var E=f.props.inputProps;f.setState({isInputFocused:!0}),E.onFocus&&E.onFocus(x)}),I(y(f),"onBlur",function(x){var E=f.props.inputProps;f.setState({isInputFocused:!1}),E.onBlur&&E.onBlur(x)}),I(y(f),"onKeyDown",function(x){var E=f.props,P=E.inputProps,$=E.highlightedSectionIndex,G=E.highlightedItemIndex,Y=x.keyCode;switch(Y){case 40:case 38:{var Z=Y===40?"next":"prev",ne=f.sectionIterator[Z]([$,G]),ie=k(ne,2),se=ie[0],pe=ie[1];P.onKeyDown(x,{newHighlightedSectionIndex:se,newHighlightedItemIndex:pe});break}default:P.onKeyDown(x,{highlightedSectionIndex:$,highlightedItemIndex:G})}}),f.highlightedItem=null,f.state={isInputFocused:!1},f.setSectionsItems(s),f.setSectionIterator(s),f.setTheme(s),f}return F(m,[{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(x){return f.getSectionItems(x)}),this.sectionsLengths=this.sectionsItems.map(function(x){return x.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(x){return x===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,a.default)(f.theme)}},{key:"renderSections",value:function(){var f=this;if(this.allSectionsAreEmpty)return null;var x=this.theme,E=this.props,P=E.id,$=E.items,G=E.renderItem,Y=E.renderItemData,Z=E.renderSectionTitle,ne=E.highlightedSectionIndex,ie=E.highlightedItemIndex,se=E.itemProps;return $.map(function(pe,oe){var ve="react-autowhatever-".concat(P,"-"),ce="".concat(ve,"section-").concat(oe,"-"),le=oe===0;return n.default.createElement("div",x("".concat(ce,"container"),"sectionContainer",le&&"sectionContainerFirst"),n.default.createElement(o.default,{section:pe,renderSectionTitle:Z,theme:x,sectionKeyPrefix:ce}),n.default.createElement(l.default,{items:f.sectionsItems[oe],itemProps:se,renderItem:G,renderItemData:Y,sectionIndex:oe,highlightedItemIndex:ne===oe?ie:null,onHighlightedItemChange:f.onHighlightedItemChange,getItemId:f.getItemId,theme:x,keyPrefix:ve,ref:f.storeItemsListReference}))})}},{key:"renderItems",value:function(){var f=this.props.items;if(f.length===0)return null;var x=this.theme,E=this.props,P=E.id,$=E.renderItem,G=E.renderItemData,Y=E.highlightedSectionIndex,Z=E.highlightedItemIndex,ne=E.itemProps;return n.default.createElement(l.default,{items:f,itemProps:ne,renderItem:$,renderItemData:G,highlightedItemIndex:Y===null?Z:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:x,keyPrefix:"react-autowhatever-".concat(P,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var f=this.highlightedItem;if(f){var x=this.itemsContainer,E=f.offsetParent===x?f.offsetTop:f.offsetTop-x.offsetTop,P=x.scrollTop;E<P?P=E:E+f.offsetHeight>P+x.offsetHeight&&(P=E+f.offsetHeight-x.offsetHeight),P!==x.scrollTop&&(x.scrollTop=P)}}},{key:"render",value:function(){var f=this.theme,x=this.props,E=x.id,P=x.multiSection,$=x.renderInputComponent,G=x.renderItemsContainer,Y=x.highlightedSectionIndex,Z=x.highlightedItemIndex,ne=this.state.isInputFocused,ie=P?this.renderSections():this.renderItems(),se=ie!==null,pe=this.getItemId(Y,Z),oe="react-autowhatever-".concat(E),ve=T({role:"combobox","aria-haspopup":"listbox","aria-owns":oe,"aria-expanded":se},f("react-autowhatever-".concat(E,"-container"),"container",se&&"containerOpen"),{},this.props.containerProps),ce=$(T({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":oe,"aria-activedescendant":pe},f("react-autowhatever-".concat(E,"-input"),"input",se&&"inputOpen",ne&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),le=G({containerProps:T({id:oe,role:"listbox"},f("react-autowhatever-".concat(E,"-items-container"),"itemsContainer",se&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:ie});return n.default.createElement("div",ve,ce,le)}}]),m}(n.Component);e.default=p,I(p,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),I(p,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:z,renderItemsContainer:C,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:H})}(Ft)),Ft}var De={},Hn;function cs(){if(Hn)return De;Hn=1,Object.defineProperty(De,"__esModule",{value:!0}),De.mapToAutowhateverTheme=De.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"};De.defaultTheme=e;var n=function(i){var a={};for(var o in i)switch(o){case"suggestionsContainer":a.itemsContainer=i[o];break;case"suggestionsContainerOpen":a.itemsContainerOpen=i[o];break;case"suggestion":a.item=i[o];break;case"suggestionFirst":a.itemFirst=i[o];break;case"suggestionHighlighted":a.itemHighlighted=i[o];break;case"suggestionsList":a.itemsList=i[o];break;default:a[o]=i[o]}return a};return De.mapToAutowhateverTheme=n,De}var Bn;function ls(){return Bn||(Bn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=b(t.requireReact()),r=l(t.requirePropTypes()),i=l(ts()),a=l(us()),o=cs();function l(p){return p&&p.__esModule?p:{default:p}}function h(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return h=function(){return p},p}function b(p){if(p&&p.__esModule)return p;if(p===null||d(p)!=="object"&&typeof p!="function")return{default:p};var u=h();if(u&&u.has(p))return u.get(p);var g={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in p)if(Object.prototype.hasOwnProperty.call(p,s)){var f=m?Object.getOwnPropertyDescriptor(p,s):null;f&&(f.get||f.set)?Object.defineProperty(g,s,f):g[s]=p[s]}return g.default=p,u&&u.set(p,g),g}function d(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(g){return typeof g}:d=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},d(p)}function _(p,u){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(p);u&&(m=m.filter(function(s){return Object.getOwnPropertyDescriptor(p,s).enumerable})),g.push.apply(g,m)}return g}function T(p){for(var u=1;u<arguments.length;u++){var g=arguments[u]!=null?arguments[u]:{};u%2?_(Object(g),!0).forEach(function(m){O(p,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(g)):_(Object(g)).forEach(function(m){Object.defineProperty(p,m,Object.getOwnPropertyDescriptor(g,m))})}return p}function k(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function B(p,u){for(var g=0;g<u.length;g++){var m=u[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(p,m.key,m)}}function M(p,u,g){return u&&B(p.prototype,u),p}function N(p){return function(){var u=Q(p),g;if(K()){var m=Q(this).constructor;g=Reflect.construct(u,arguments,m)}else g=u.apply(this,arguments);return W(this,g)}}function W(p,u){return u&&(d(u)==="object"||typeof u=="function")?u:U(p)}function U(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}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 Q(p){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},Q(p)}function R(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),u&&F(p,u)}function F(p,u){return F=Object.setPrototypeOf||function(m,s){return m.__proto__=s,m},F(p,u)}function O(p,u,g){return u in p?Object.defineProperty(p,u,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[u]=g,p}var L=function(){return!0},y=function(u){return u.trim().length>0},c=function(u){var g=u.containerProps,m=u.children;return n.default.createElement("div",g,m)},v="suggestions-revealed",S="suggestions-updated",j="suggestion-selected",I="input-focused",A="input-changed",z="input-blurred",C="escape-pressed",H=function(p){R(g,p);var u=N(g);function g(m){var s,f=m.alwaysRenderSuggestions;return k(this,g),s=u.call(this),O(U(s),"onDocumentMouseDown",function(x){s.justClickedOnSuggestionsContainer=!1;for(var E=x.detail&&x.detail.target||x.target;E!==null&&E!==document;){if(E.getAttribute&&E.getAttribute("data-suggestion-index")!==null)return;if(E===s.suggestionsContainer){s.justClickedOnSuggestionsContainer=!0;return}E=E.parentNode}}),O(U(s),"storeAutowhateverRef",function(x){x!==null&&(s.autowhatever=x)}),O(U(s),"onSuggestionMouseEnter",function(x,E){var P=E.sectionIndex,$=E.itemIndex;s.updateHighlightedSuggestion(P,$),x.target===s.pressedSuggestion&&(s.justSelectedSuggestion=!0),s.justMouseEntered=!0,setTimeout(function(){s.justMouseEntered=!1})}),O(U(s),"highlightFirstSuggestion",function(){s.updateHighlightedSuggestion(s.props.multiSection?0:null,0)}),O(U(s),"onDocumentMouseUp",function(){s.pressedSuggestion&&!s.justSelectedSuggestion&&s.input.focus(),s.pressedSuggestion=null}),O(U(s),"onSuggestionMouseDown",function(x){s.justSelectedSuggestion||(s.justSelectedSuggestion=!0,s.pressedSuggestion=x.target)}),O(U(s),"onSuggestionsClearRequested",function(){var x=s.props.onSuggestionsClearRequested;x&&x()}),O(U(s),"onSuggestionSelected",function(x,E){var P=s.props,$=P.alwaysRenderSuggestions,G=P.onSuggestionSelected,Y=P.onSuggestionsFetchRequested;G&&G(x,E);var Z=s.props.shouldKeepSuggestionsOnSelect(E.suggestion);$||Z?Y({value:E.suggestionValue,reason:j}):s.onSuggestionsClearRequested(),s.resetHighlightedSuggestion()}),O(U(s),"onSuggestionClick",function(x){var E=s.props,P=E.alwaysRenderSuggestions,$=E.focusInputOnSuggestionClick,G=s.getSuggestionIndices(s.findSuggestionElement(x.target)),Y=G.sectionIndex,Z=G.suggestionIndex,ne=s.getSuggestion(Y,Z),ie=s.props.getSuggestionValue(ne);s.maybeCallOnChange(x,ie,"click"),s.onSuggestionSelected(x,{suggestion:ne,suggestionValue:ie,suggestionIndex:Z,sectionIndex:Y,method:"click"});var se=s.props.shouldKeepSuggestionsOnSelect(ne);P||se||s.closeSuggestions(),$===!0?s.input.focus():s.onBlur(),setTimeout(function(){s.justSelectedSuggestion=!1})}),O(U(s),"onBlur",function(){var x=s.props,E=x.inputProps,P=x.shouldRenderSuggestions,$=E.value,G=E.onBlur,Y=s.getHighlightedSuggestion(),Z=P($,z);s.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!Z}),G&&G(s.blurEvent,{highlightedSuggestion:Y})}),O(U(s),"onSuggestionMouseLeave",function(x){s.resetHighlightedSuggestion(!1),s.justSelectedSuggestion&&x.target===s.pressedSuggestion&&(s.justSelectedSuggestion=!1)}),O(U(s),"onSuggestionTouchStart",function(){s.justSelectedSuggestion=!0}),O(U(s),"onSuggestionTouchMove",function(){s.justSelectedSuggestion=!1,s.pressedSuggestion=null,s.input.focus()}),O(U(s),"itemProps",function(x){var E=x.sectionIndex,P=x.itemIndex;return{"data-section-index":E,"data-suggestion-index":P,onMouseEnter:s.onSuggestionMouseEnter,onMouseLeave:s.onSuggestionMouseLeave,onMouseDown:s.onSuggestionMouseDown,onTouchStart:s.onSuggestionTouchStart,onTouchMove:s.onSuggestionTouchMove,onClick:s.onSuggestionClick}}),O(U(s),"renderSuggestionsContainer",function(x){var E=x.containerProps,P=x.children,$=s.props.renderSuggestionsContainer;return $({containerProps:E,children:P,query:s.getQuery()})}),s.state={isFocused:!1,isCollapsed:!f,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},s.justPressedUpDown=!1,s.justMouseEntered=!1,s.pressedSuggestion=null,s}return M(g,[{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(s){var f=this.state.highlightedSuggestionIndex===0&&this.props.highlightFirstSuggestion&&!s.highlightFirstSuggestion;(0,i.default)(s.suggestions,this.props.suggestions)?s.highlightFirstSuggestion&&s.suggestions.length>0&&this.justPressedUpDown===!1&&this.justMouseEntered===!1?this.highlightFirstSuggestion():f&&this.resetHighlightedSuggestion():this.willRenderSuggestions(s,S)?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),f&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(s,f){var x=this.props,E=x.suggestions,P=x.onSuggestionHighlighted,$=x.highlightFirstSuggestion;if(!(0,i.default)(E,s.suggestions)&&E.length>0&&$){this.highlightFirstSuggestion();return}if(P){var G=this.getHighlightedSuggestion(),Y=f.highlightedSuggestion;G!=Y&&P({suggestion:G})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(s,f,x){var E=this;this.setState(function(P){var $=P.valueBeforeUpDown;return f===null?$=null:$===null&&typeof x<"u"&&($=x),{highlightedSectionIndex:s,highlightedSuggestionIndex:f,highlightedSuggestion:f===null?null:E.getSuggestion(s,f),valueBeforeUpDown:$}})}},{key:"resetHighlightedSuggestion",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setState(function(f){var x=f.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:s?null:x}})}},{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(s,f){var x=this.props,E=x.suggestions,P=x.multiSection,$=x.getSectionSuggestions;return P?$(E[s])[f]:E[f]}},{key:"getHighlightedSuggestion",value:function(){var s=this.state,f=s.highlightedSectionIndex,x=s.highlightedSuggestionIndex;return x===null?null:this.getSuggestion(f,x)}},{key:"getSuggestionValueByIndex",value:function(s,f){var x=this.props.getSuggestionValue;return x(this.getSuggestion(s,f))}},{key:"getSuggestionIndices",value:function(s){var f=s.getAttribute("data-section-index"),x=s.getAttribute("data-suggestion-index");return{sectionIndex:typeof f=="string"?parseInt(f,10):null,suggestionIndex:parseInt(x,10)}}},{key:"findSuggestionElement",value:function(s){var f=s;do{if(f.getAttribute&&f.getAttribute("data-suggestion-index")!==null)return f;f=f.parentNode}while(f!==null);throw console.error("Clicked element:",s),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(s,f,x){var E=this.props.inputProps,P=E.value,$=E.onChange;f!==P&&$(s,{newValue:f,method:x})}},{key:"willRenderSuggestions",value:function(s,f){var x=s.suggestions,E=s.inputProps,P=s.shouldRenderSuggestions,$=E.value;return x.length>0&&P($,f)}},{key:"getQuery",value:function(){var s=this.props.inputProps,f=s.value,x=this.state.valueBeforeUpDown;return(x===null?f:x).trim()}},{key:"render",value:function(){var s=this,f=this.props,x=f.suggestions,E=f.renderInputComponent,P=f.onSuggestionsFetchRequested,$=f.renderSuggestion,G=f.inputProps,Y=f.multiSection,Z=f.renderSectionTitle,ne=f.id,ie=f.getSectionSuggestions,se=f.theme,pe=f.getSuggestionValue,oe=f.alwaysRenderSuggestions,ve=f.highlightFirstSuggestion,ce=f.containerProps,le=this.state,Le=le.isFocused,Pe=le.isCollapsed,nt=le.highlightedSectionIndex,rt=le.highlightedSuggestionIndex,Ne=le.valueBeforeUpDown,w=oe?L:this.props.shouldRenderSuggestions,D=G.value,ee=G.onFocus,re=G.onKeyDown,ae=this.willRenderSuggestions(this.props,"render"),me=oe||Le&&!Pe&&ae,Re=me?x:[],Qe=T({},G,{onFocus:function(X){if(!s.justSelectedSuggestion&&!s.justClickedOnSuggestionsContainer){var de=w(D,I);s.setState({isFocused:!0,isCollapsed:!de}),ee&&ee(X),de&&P({value:D,reason:I})}},onBlur:function(X){if(s.justClickedOnSuggestionsContainer){s.input.focus();return}s.blurEvent=X,s.justSelectedSuggestion||(s.onBlur(),s.onSuggestionsClearRequested())},onChange:function(X){var de=X.target.value,ye=w(de,A);s.maybeCallOnChange(X,de,"type"),s.suggestionsContainer&&(s.suggestionsContainer.scrollTop=0),s.setState(T({},ve?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!ye})),ye?P({value:de,reason:A}):s.onSuggestionsClearRequested()},onKeyDown:function(X,de){var ye=X.keyCode;switch(ye){case 40:case 38:if(Pe)w(D,v)&&(P({value:D,reason:v}),s.revealSuggestions(),X.preventDefault());else if(x.length>0){var qe=de.newHighlightedSectionIndex,Fe=de.newHighlightedItemIndex,Xe;Fe===null?Xe=Ne===null?D:Ne:Xe=s.getSuggestionValueByIndex(qe,Fe),s.updateHighlightedSuggestion(qe,Fe,D),s.maybeCallOnChange(X,Xe,ye===40?"down":"up"),X.preventDefault()}s.justPressedUpDown=!0,setTimeout(function(){s.justPressedUpDown=!1});break;case 13:{if(X.keyCode===229)break;var vt=s.getHighlightedSuggestion();if(me&&!oe&&s.closeSuggestions(),vt!=null){X.preventDefault();var cn=pe(vt);s.maybeCallOnChange(X,cn,"enter"),s.onSuggestionSelected(X,{suggestion:vt,suggestionValue:cn,suggestionIndex:rt,sectionIndex:nt,method:"enter"}),s.justSelectedSuggestion=!0,setTimeout(function(){s.justSelectedSuggestion=!1})}break}case 27:{me&&X.preventDefault();var ln=me&&!oe;if(Ne===null){if(!ln){var yt="";s.maybeCallOnChange(X,yt,"escape"),w(yt,C)?P({value:yt,reason:C}):s.onSuggestionsClearRequested()}}else s.maybeCallOnChange(X,Ne,"escape");ln?(s.onSuggestionsClearRequested(),s.closeSuggestions()):s.resetHighlightedSuggestion();break}}re&&re(X)}}),Ye={query:this.getQuery()};return n.default.createElement(a.default,{multiSection:Y,items:Re,renderInputComponent:E,renderItemsContainer:this.renderSuggestionsContainer,renderItem:$,renderItemData:Ye,renderSectionTitle:Z,getSectionItems:ie,highlightedSectionIndex:nt,highlightedItemIndex:rt,containerProps:ce,inputProps:Qe,itemProps:this.itemProps,theme:(0,o.mapToAutowhateverTheme)(se),id:ne,ref:this.storeAutowhateverRef})}}]),g}(n.Component);e.default=H,O(H,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(u,g){var m=u[g];if(typeof m!="function")throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(u,g){var m=u[g];if(u.alwaysRenderSuggestions===!1&&typeof m!="function")throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(u,g){var m=u[g];if(!m)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(m,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(m,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(u,g){var m=u[g];if(u.multiSection===!0&&typeof m!="function")throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(u,g){var m=u[g];if(u.multiSection===!0&&typeof m!="function")throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),O(H,"defaultProps",{renderSuggestionsContainer:c,shouldRenderSuggestions:y,alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:o.defaultTheme,id:"1",containerProps:{}})}(Pt)),Pt}var Nt,Vn;function ds(){return Vn||(Vn=1,Nt=ls().default),Nt}var gr=ds();const fs=t.getDefaultExportFromCjs(gr),gs=br({__proto__:null,default:fs},[gr]),ps="_inputWithoutHighlight_1gh2d_1",ms="_suggestionsContainerOpen_1gh2d_5",hs="_sectionContainer_1gh2d_12",xs="_suggestionHighlighted_1gh2d_15",vs="_clearButton_1gh2d_18",ys="_inputWithLeftIcon_1gh2d_21",Ss="_inputWithRightIcon_1gh2d_24",bs="_inputWithTwoRightIcons_1gh2d_27",Es="_iconContainer_1gh2d_30",js="_leftIconContainer_1gh2d_35",Rs="_rightIconContainer_1gh2d_38",fe={inputWithoutHighlight:ps,suggestionsContainerOpen:ms,sectionContainer:hs,suggestionHighlighted:xs,clearButton:vs,inputWithLeftIcon:ys,inputWithRightIcon:Ss,inputWithTwoRightIcons:bs,iconContainer:Es,leftIconContainer:js,rightIconContainer:Rs};function Is(e,n,r,i,a){let o="form-control text-truncate";return r||(o+=` ${fe.inputWithoutHighlight}`),e==="left"&&(o+=` ${fe.inputWithLeftIcon}`),(e==="right"&&!n||e==="left"&&n||n)&&(o+=` ${fe.inputWithRightIcon}`),e==="right"&&n&&(o+=` ${fe.inputWithTwoRightIcons}`),a==="lg"&&(o+=" form-control-lg"),a==="sm"&&(o+=" form-control-sm"),i&&(o+=` ${i}`),o}function Wn(e){const n="d-inline-block svg-container";return t.FunctionHelper.isFunction(e)?n+" cursor-pointer":n}function ws(e){const{onClickSearchIcon:n,searchIconPlacement:r,showClearInputIcon:i,onClickClearInput:a,highlightOnFocus:o,className:l,formSize:h,...b}=e,d=()=>t.jsxRuntimeExports.jsx("div",{className:"d-inline-block",children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:Jn.SearchSvg,size:t.SvgContainerSize.Standard,onClick:n,className:Wn(n)})}),_=()=>t.jsxRuntimeExports.jsx("button",{className:`d-inline-block text-secondary ${fe.clearButton}`,onMouseUp:a,children:t.jsxRuntimeExports.jsx(t.SvgContainer,{svg:mt.CloseSvg,size:t.SvgContainerSize.Standard,className:Wn(a)})});return t.jsxRuntimeExports.jsxs("div",{className:`position-relative ${fe.inputContainer}`,children:[r==="left"&&t.jsxRuntimeExports.jsx("div",{className:`${fe.iconContainer} ${fe.leftIconContainer}`,children:t.jsxRuntimeExports.jsx(d,{})}),t.jsxRuntimeExports.jsx("input",{className:Is(r,i,o,l,h),...b}),(r==="right"||!!i)&&t.jsxRuntimeExports.jsxs("div",{className:`${fe.iconContainer} ${fe.rightIconContainer}`,children:[!!i&&t.jsxRuntimeExports.jsx(_,{}),r==="right"&&t.jsxRuntimeExports.jsx(d,{})]})]})}function We(e,n){return{recent:n,local:e,remote:[],generic:[]}}function on(e,n){return t.ObjectHelper.isObject(e)&&e.hasOwnProperty(n)&&Zn.TypeHelper.isString(e[n])}function sn(e,n,r,i){const a=e.trim().toLowerCase();return a.length<i?[]:n.filter(o=>!on(o,r)||!Zn.TypeHelper.isString(o[r])?!1:o[r].trim().toLowerCase().includes(a))}function _s(e,n,r,i,a,o){const l=t.FunctionHelper.isFunction(e)&&e(n);if(l){if(o){t.ajaxRequest({resource:l,type:t.HttpVerbs.POST,success:r,error:i,headers:a,data:o(n)});return}t.ajaxRequest({resource:l,type:t.HttpVerbs.GET,success:r,error:i,headers:a})}}function Be(e,n){e({...We([],[]),generic:[{type:n,generic:!0}]})}function zn(e,n,r){const i=t.FunctionHelper.isFunction(n.formatRemoteSuggestions)?n.formatRemoteSuggestions(e):e;if(!i.length&&n.getEmptyStateComponent){Be(r,"empty");return}r(a=>({...a,remote:i,generic:[]}))}function qt(e,n,r){return({value:i,reason:a})=>{var l;if((((l=e.allowableSuggestionFetchRequestedReasons)==null?void 0:l.includes(a))??!0)&&(i.length||r(),!(i.length<e.activationLength))){if(e.local){const h=t.FunctionHelper.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):sn(i,e.local,e.valueKey,e.activationLength);if(!h.length&&e.getEmptyStateComponent){Be(n,"empty");return}n(b=>({...b,local:h,generic:[]}))}if(typeof e.handleFetchSuggestions=="function"){e.replacePreviousRemoteSuggestions?n(h=>({...We([],[]),remote:h.remote})):Be(n,"loading"),e.handleFetchSuggestions(i,h=>zn(h,e,n),()=>Be(n,"errored"));return}e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?n(h=>({...We([],[]),remote:h.remote})):Be(n,"loading"),_s(e.getRemoteUrl,i,h=>zn(h,e,n),()=>{Be(n,"errored")},e.requestHeaders,e.getRemotePostBody))}}}function Cs(e,n){return on(n,e)?n[e]:""}function an(e,n){return on(n,e)?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:n[e]}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{})}function Os(e){function n(r){r.stopPropagation()}return t.jsxRuntimeExports.jsx("div",{className:`d-flex justify-content-center cursor-default ${e??""}`,onClick:n,children:t.jsxRuntimeExports.jsx(t.Spinner,{as:"span",animation:"border",role:"status"})})}function Ps(e,n,r,i,a,o){const l=k=>{const B=e[k];return B?B.map(M=>({...M,suggestionType:k})):[]},h=l("recent"),b=l("local"),d=l("remote"),_=l("generic");if(_.length)return[{data:_,suggestionType:"generic"}];if(t.FunctionHelper.isFunction(i))return i([...b,...d,...h]);const T=[];return b!=null&&b.length&&T.push({title:n,data:Ht(b,Mt("local",a)),suggestionType:"local"}),d!=null&&d.length&&T.push({title:n,data:Ht(d,Mt("remote",a)),suggestionType:"remote"}),h!=null&&h.length&&T.push({title:r,data:Ht(h,Mt("recent",a)),suggestionType:"recent"}),typeof o=="function"?o(T):T}function Mt(e,n){return typeof n=="number"||typeof n=="boolean"?n:n[e]||!1}function Ht(e,n){return typeof n=="boolean"||e.length<=n?e:e.slice(0,n)}function Ts(e){return e.data}function Fs(e,n){if(e.title)return t.jsxRuntimeExports.jsx("div",{className:`pb-1 ${n??""}`,children:t.jsxRuntimeExports.jsx("strong",{children:e.title})})}function ks(e){return{container:"position-relative",suggestionsContainerOpen:`bg-white py-1 border rounded ${fe.suggestionsContainerOpen}`,suggestionsList:"list-unstyled m-0",suggestion:`${e?"":"cursor-pointer"} py-1 px-2`,suggestionHighlighted:e?"":fe.suggestionHighlighted,sectionContainer:`border-bottom py-1 ${fe.sectionContainer}`}}function Ds(e,n){const r=typeof e=="function"?e(n):e,i=ks(n);return Object.assign(i,r)}function As(e,n,r,i,a){t.reactExports.useEffect(()=>{!e||e.current||(e.current={resetQuery:n,setQuery:r,focusInput:i,blurInput:a})},[e==null?void 0:e.current])}function Us(e){const[n,r]=t.useViewModel("lite:search:bar:focus",{focus:!1});return t.reactExports.useEffect(()=>{!n.focus||!(e!=null&&e.current)||(e.current.focus(),r({focus:!1}))},[n.focus]),{focusSearchBar:()=>r({focus:!0}),shouldFocus:n.focus}}const Gn="shared.searchBar",Se=t.FunctionHelper.isFunction;function $s(e){return e.renderAsForm?t.jsxRuntimeExports.jsx("form",{onSubmit:e.onSubmit,children:e.children}):t.jsxRuntimeExports.jsx("div",{className:"w-100",children:e.children})}pr.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};function pr(e){const n=We(e.initialLocalSuggestions,e.recentSearches),[r,i]=t.reactExports.useState(e.initialQuery||""),[a,o]=t.reactExports.useState(n),l=t.reactExports.useMemo(()=>Ps(a,e.suggestionsHeading,e.recentSearchHeading||t.LanguageService.getPhrase(Gn,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections),[a]);t.reactExports.useEffect(()=>{t.ObjectHelper.isEqual(n,a)||r&&r.length>=(e==null?void 0:e.activationLength)||o(n)},[n]),t.reactExports.useEffect(()=>{typeof e.onSuggestionUpdated=="function"&&e.onSuggestionUpdated(l)},[l]);const h=t.reactExports.useRef(null),b=t.reactExports.useRef(!1);Us(h);const[d,_]=t.reactExports.useState(e.initialQuery||""),[T,k]=t.reactExports.useState("none"),B=t.useMediaQuery(Sr.MediaQueryStrings.XS);t.reactExports.useEffect(()=>{!e.resetSuggestionsOnNoActivation||!r||r.length>=e.activationLength||M()},[r]),t.reactExports.useEffect(()=>{if(r.length)return;const C=We(e.initialLocalSuggestions,e.recentSearches);o(C)},[e.initialLocalSuggestions,e.recentSearches]),t.reactExports.useEffect(()=>{const C=e.initialQuery||"";r!==C&&(i(C),_(C))},[e.initialQuery]),t.reactExports.useEffect(()=>{!h.current||!e.autoFocusInput||h.current.focus()},[e.autoFocusInput]);const M=()=>{const C=We(e.initialLocalSuggestions,e.recentSearches);o(C)},N=()=>{i(""),_("")},W=()=>{var C;(C=h.current)==null||C.focus()},U=()=>{var C;(C=h.current)==null||C.blur()};As(e.controlsRef,N,i,W,U);const K=(C,{newValue:H,method:p})=>{p==="type"&&_(H),!(p==="escape"&&(k("none"),!(e!=null&&e.resetQueryOnEscape)))&&(["up","down"].includes(p)||(i(H),Se(e.onQueryChange)&&e.onQueryChange(H)))},Q=()=>{k("none")},R=C=>{C.preventDefault(),Se(e.onSubmit)&&e.onSubmit(r,h.current),e.clearQueryOnSelect&&N()},F=C=>{if(C.key==="Backspace"&&e.onBackspace&&!r){e.onBackspace();return}if(C.key==="ArrowUp"||C.key==="ArrowDown"){b.current=!0;return}},O=()=>{N(),e.resetSuggestionsOnClear&&M(),Se(e.onClickClearInput)&&e.onClickClearInput()},L=({suggestion:C})=>{if(T==="none"&&!C)return;b.current&&e.onArrowKeyUpOrDown&&(b.current=!1,e.onArrowKeyUpOrDown()),k(C?"suggestion":"custom")};function y(C){return Se(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(C):e.shouldUpdateQueryOnSelection}const c=t.reactExports.useMemo(()=>e.debounceTime?t.FunctionHelper.debounce(qt(e,o,M),e.debounceTime):qt(e,o,M),[e.debounceTime,...e.onSuggestionDependencies]);function v(C){return Se(e.renderSectionTitle)?e.renderSectionTitle(C,e.sectionTitleClassName):Fs(C,e.sectionTitleClassName)}function S(){return Se(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(r):e.renderSuggestionsOnInputFocus}function j(){e.onBlur&&e.onBlur(r)}function I(){e.onFocus&&e.onFocus(r)}function A(C){C!==null&&!h.current&&(h.current=C.input)}function z(){return typeof e.alwaysRenderSuggestions=="boolean"?e.alwaysRenderSuggestions:e.alwaysRenderSuggestionsWhenFocused&&r.length>=e.activationLength?document.activeElement===h.current:!1}return t.jsxRuntimeExports.jsx($s,{onSubmit:R,renderAsForm:!!e.renderAsForm,children:t.jsxRuntimeExports.jsx(gs,{ref:A,suggestions:l,onSuggestionsFetchRequested:c,onSuggestionHighlighted:L,onSuggestionsClearRequested:()=>{z()||M()},onSuggestionSelected:(C,{suggestion:H})=>{H.generic||(e.clearQueryOnSelect&&N(),e.onSuggestionSelected(H,h.current,C))},getSuggestionValue:C=>y(C)?Cs(e.valueKey,C):r,renderSuggestion:(C,H)=>{if(C.generic){if(C.type==="empty")return r.length>=e.activationLength&&Se(e.getEmptyStateComponent)?e.getEmptyStateComponent(r):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{});if(C.type==="errored"&&Se(e.getErrorStateComponent)){const p=qt(e,o,M),u=()=>p({value:r,reason:"input-changed"});return e.getErrorStateComponent(u)}if(C.type==="loading")return Os(e.loadingComponentClassName)}return Se(e.getSuggestionComponent)?e.getSuggestionComponent(C,H):an(e.valueKey,C)},renderSuggestionsContainer:C=>{const{ref:H,...p}=C.containerProps;if(!e.customScrollbarProps){const u={suggestions:a,query:r,isDropdownOpen:!!C.children};return t.jsxRuntimeExports.jsxs("div",{ref:H,...p,onMouseOut:Q,children:[C.children,e.getCreateComponent&&e.getCreateComponent({userInput:d,isActive:T==="custom",resetQuery:N,resetSuggestions:M,...u}),e.getFooterComponent&&e.getFooterComponent(u)]})}return t.jsxRuntimeExports.jsx(yr.Scrollbars,{ref:H,...e.customScrollbarProps,...p,children:C.children})},alwaysRenderSuggestions:z(),focusInputOnSuggestionClick:!B&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":`${e.id}Error`,"aria-label":e.label,placeholder:e.placeholder||t.LanguageService.getPhrase(Gn,"placeholder"),value:r,onChange:K,onKeyDown:F,autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&R,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!r.length,onClickClearInput:O,formSize:e.size,onBlur:j,onFocus:I,disabled:e.disabled},renderInputComponent:ws,theme:Ds(e.theme,!!a.generic.length),multiSection:!0,renderSectionTitle:v,getSectionSuggestions:Ts,...e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:S}:{}})})}const Ls=(e,n)=>{const[r,i]=t.React.useState(e);return t.React.useEffect(()=>{const a=setTimeout(()=>i(e),n);return()=>clearTimeout(a)},[e,n]),r},Ns="_emptyState_1lwjl_1",qs={emptyState:Ns},Ms="shared.typeaheadEmptyState";function Hs({query:e="",imageUrl:n}){function r(a){a.stopPropagation()}const i=Ls(e,300);return t.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center text-center",onClick:r,children:[t.jsxRuntimeExports.jsx("img",{alt:"",role:"presentation",src:n,className:`pb-2 ${qs.emptyState}`}),t.jsxRuntimeExports.jsx("h2",{role:"status",className:"h6",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Ms,phrase:"noResults",options:{query:i,smartCount:i.length}})})]})}const Bs="_emptyState_1lwjl_1",Vs={emptyState:Bs},Kn="shared.typeaheadErrorState";function Ws(e){function n(i){i.stopPropagation()}function r(i){i.stopPropagation(),e.onClickTryAgain()}return t.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center text-center",onClick:n,children:[t.jsxRuntimeExports.jsx("img",{alt:"",role:"presentation",src:e.imageUrl,className:`pb-2 ${Vs.emptyState}`}),t.jsxRuntimeExports.jsx("h2",{className:"h6",role:"alert",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Kn,phrase:"error"})}),t.jsxRuntimeExports.jsx(t.DivButton,{onClick:r,className:"btn btn-link info-link p-0",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Kn,phrase:"tryAgain"})})]})}const zs="_container_sxosy_1",Gs="_suggestionsContainerOpen_sxosy_11",Ks="_selectionContainer_sxosy_18",Qs="_sectionContainer_sxosy_28",at={container:zs,suggestionsContainerOpen:Gs,selectionContainer:Ks,sectionContainer:Qs},Ys="shared.tokenizedTypeahead";un.defaultProps={renderSuggestionsOnInputFocus:!0};function un(e){var n;return t.jsxRuntimeExports.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&&t.jsxRuntimeExports.jsx(t.SvgContainer,{className:"svg-container m-1",svg:Jn.SearchSvg}),t.jsxRuntimeExports.jsxs("div",{className:`${at.selectionContainer} d-flex flex-wrap align-items-center mt-n1`,children:[e.selections.map(r=>e.getInputTokenComponent?e.getInputTokenComponent(r):t.jsxRuntimeExports.jsx(Oo,{selection:r,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience},r.id)),t.jsxRuntimeExports.jsx(pr,{...e,onBackspace:()=>{e.selections.length&&e.removeSelection(t.ArrayHelper.last(e.selections))},recentSearchHeading:e.recentSearchHeading||t.LanguageService.getPhrase(Ys,"recentSearchHeading"),placeholder:(n=e.selections)!=null&&n.length?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:r=>e.getSuggestionComponent?e.getSuggestionComponent(r):t.jsxRuntimeExports.jsx(es,{entity:r,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience}),getEmptyStateComponent:r=>{if(e.getEmptyStateComponent)return e.getEmptyStateComponent(r);e.emptyStateImageUrl&&e.emptyStateImageUrl},getErrorStateComponent:r=>t.jsxRuntimeExports.jsx(Ws,{imageUrl:e.errorStateImageUrl,onClickTryAgain:r}),theme:{container:at.container,suggestionsContainerOpen:`bg-white py-1 rounded border mt-1 ${at.suggestionsContainerOpen}`,sectionContainer:`border-bottom py-1 ${at.sectionContainer}`},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]})]}),!!e.sharePermissionsDescription&&t.jsxRuntimeExports.jsx("span",{className:"px-2 text-secondary text-nowrap",children:e.sharePermissionsDescription})]})}const mr="shared.feedbackRequestLivestream",we=t.LanguageService.encloseNamespace(mr),Xs={topic:"",studentLevel:[],producerCompany:"",additionalInfo:""},Qn=q.libExports.string().max(ht,Ee("maxCharactersError")),Js=q.libExports.object().shape({producerCompany:Qn.required(()=>we("companyError")),topic:Qn,studentLevel:q.libExports.array(q.libExports.string()),additionalInfo:je()}).noUnknown();function Zs(e){const n=q.useFormikContextWrapper(),r=n.values.studentLevel.map(o=>e.audiences.find(l=>l.name===o))||[];function i(o){n.setFieldValue("studentLevel",t.ArrayHelper.addOrRemoveImmutable(n.values.studentLevel,o.name)),requestAnimationFrame(()=>n.setFieldTouched("studentLevel"))}function a(o,l){const h=l.find(d=>d.name===o);return sn(h?"":o,l,"name",0).filter(d=>!(r.find(_=>_.name===d.name)||d.name===(h==null?void 0:h.name)))}return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(q.FormField,{placeholder:we("companyPlaceholder"),label:we("companyLabel"),name:"producerCompany",value:n.values.producerCompany,showRequiredStar:!0}),t.jsxRuntimeExports.jsx(q.FormField,{placeholder:we("topicPlaceholder"),label:we("topicLabel"),name:"topic",value:n.values.topic}),t.jsxRuntimeExports.jsxs("div",{className:"form-group",children:[t.jsxRuntimeExports.jsx("label",{className:"form-label",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:mr,phrase:"audiencesLabel"})}),t.jsxRuntimeExports.jsx(un,{id:"audiences",placeholder:we("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:r,onSuggestionSelected:i,removeSelection:o=>i(o),errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:o=>t.jsxRuntimeExports.jsx(pt,{selection:{name:o.name,masterId:o.masterId},colourVariant:"teal",onClickRemove:l=>i(l),hideExpander:!0},o.name),getSuggestionComponent:o=>an("name",o),onSuggestionDependencies:[e.audiences,n.values.studentLevel,r],getLocalSuggestions:a,focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:()=>n.setFieldTouched("studentLevel"),className:`p-2 ${n.touched.studentLevel&&n.errors.studentLevel?"is-invalid":""}`}),n.touched.studentLevel&&n.errors.studentLevel&&t.jsxRuntimeExports.jsx(Zt.FormFeedback,{name:"audiences",children:n.errors.studentLevel})]}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:we("otherPlaceholder"),label:we("otherLabel"),name:"additionalInfo",value:n.values.additionalInfo})]})}function ea(e){return t.jsxRuntimeExports.jsx($e,{...e,initialValues:{...Xs,...e.initialValues},validationSchema:Js,children:t.jsxRuntimeExports.jsx(Zs,{audiences:e.audiences})})}const ta="_image_1d4la_1",na={image:ta},Xt="shared.feedbackBeforeRequesting",Bt=t.LanguageService.encloseNamespace(Xt);function ra(e){const[n,r]=t.React.useState(!1);return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center my-4",children:[t.jsxRuntimeExports.jsx("img",{className:`${na.image} mb-3`,src:ze.videoAlert}),t.jsxRuntimeExports.jsx("h4",{className:"mb-3",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Xt,phrase:"beforeRequesting"})}),t.jsxRuntimeExports.jsx("p",{children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Xt,phrase:"haveYouSearched",options:{exchangeUrl:`${e.exchangeTvUrl}/exchange`}})})]}),t.jsxRuntimeExports.jsxs(t.PopupButtons,{children:[t.jsxRuntimeExports.jsx(t.PopupButtons.Checkbox,{id:"confirmExchange",checked:n,onToggle:()=>r(!n),label:Bt("exchangeCheck")}),t.jsxRuntimeExports.jsx(t.PopupButtons.Cancel,{onClick:()=>e.setSelectedOption(null),text:Bt("back")}),t.jsxRuntimeExports.jsx(t.PopupButtons.Submit,{variant:"dark",text:Bt("continue"),disabled:!n,onClick:()=>e.setConfirmed(!0)})]})]})}const hr="shared.feedbackRequestVideo",J=t.LanguageService.encloseNamespace(hr),ia={videoRequestType:"",topic:"",studentLevel:[],videoTitle:"",seriesName:"",producerCompany:"",websiteOrTrailer:"",additionalInfo:""},be=()=>q.libExports.string().max(ht,Ee("maxCharactersError")),oa=q.libExports.object().shape({videoRequestType:q.libExports.string().required(J("videoRequestTypeRequiredError")),topic:be().when("videoRequestType",{is:e=>e==="videosTopic",then:be().required(J("topicRequiredError")),otherwise:be().notRequired()}),studentLevel:q.libExports.array(q.libExports.string()),videoTitle:be().when(["videoRequestType","seriesName"],{is:(e,n)=>e==="videoOrSeries"&&!n,then:be().required(J("videoRequiredError")),otherwise:be().notRequired()}),seriesName:be(),producerCompany:be(),websiteOrTrailer:be(),additionalInfo:je()}).noUnknown();function sa(e){const n=q.useFormikContextWrapper(),r=n.values.studentLevel.map(o=>{var l;return(l=e.audiences)==null?void 0:l.find(h=>h.name===o)})||[];function i(o){n.setFieldValue("studentLevel",t.ArrayHelper.addOrRemoveImmutable(n.values.studentLevel,o.name)),requestAnimationFrame(()=>n.setFieldTouched("studentLevel"))}function a(o,l){const h=l.find(d=>d.name===o);return sn(h?"":o,l,"name",0).filter(d=>!(r.find(_=>_.name===d.name)||d.name===(h==null?void 0:h.name)))}return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs(q.FormField,{as:"select",label:J("videoRequestTypeLabel"),name:"videoRequestType",value:n.values.videoRequestType,children:[t.jsxRuntimeExports.jsx("option",{value:"",disabled:!0,hidden:!0,children:J("videoRequestTypePlaceholder")}),t.jsxRuntimeExports.jsx("option",{value:"videosTopic",children:J("videosTopicType")}),t.jsxRuntimeExports.jsx("option",{value:"videoOrSeries",children:J("videoOrSeriesType")})]}),n.values.videoRequestType==="videosTopic"&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("videoTopicPlaceholder"),label:J("videoTopicLabel"),name:"topic",value:n.values.topic,showRequiredStar:!0}),t.jsxRuntimeExports.jsxs("div",{className:"form-group",children:[t.jsxRuntimeExports.jsx("label",{className:"form-label",children:t.jsxRuntimeExports.jsx(t.Text,{namespace:hr,phrase:"audiencesLabel"})}),t.jsxRuntimeExports.jsx(un,{id:"audiences",placeholder:J("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:r,onSuggestionSelected:i,removeSelection:o=>i(o),errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:o=>t.jsxRuntimeExports.jsx(pt,{selection:{name:o.name,masterId:o.masterId},colourVariant:"teal",onClickRemove:l=>i(l),hideExpander:!0},o.name),getSuggestionComponent:o=>an("name",o),onSuggestionDependencies:[e.audiences,n.values.studentLevel,r],getLocalSuggestions:a,focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:()=>n.setFieldTouched("studentLevel"),className:`p-2 ${n.touched.studentLevel&&n.errors.studentLevel?"is-invalid":""}`}),n.touched.studentLevel&&n.errors.studentLevel&&t.jsxRuntimeExports.jsx(Zt.FormFeedback,{name:"audiences",children:n.errors.studentLevel})]}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:J("otherPlaceholder"),label:J("otherLabel"),name:"additionalInfo",value:n.values.additionalInfo})]}),n.values.videoRequestType==="videoOrSeries"&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("videoTitlePlaceholder"),label:J("videoTitleLabel"),name:"videoTitle",value:n.values.videoTitle}),t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("seriesPlaceholder"),label:J("seriesLabel"),name:"seriesName",value:n.values.seriesName}),t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("companyPlaceholder"),label:J("companyLabel"),name:"producerCompany",value:n.values.producerCompany}),t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("videoTopicPlaceholder"),label:J("topicLabel"),name:"topic",value:n.values.topic}),t.jsxRuntimeExports.jsx(q.FormField,{placeholder:J("websiteOrTrailerPlaceholder"),label:J("websiteOrTrailerLabel"),name:"websiteOrTrailer",value:n.values.websiteOrTrailer}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:J("otherPlaceholder"),label:J("otherLabel"),name:"additionalInfo",value:n.values.additionalInfo})]})]})}function aa(e){const[n,r]=t.React.useState(!!e.skipBeforeRequesting),i=e.hasExchangeTvProduct&&!n;return t.jsxRuntimeExports.jsxs($e,{...e,initialValues:{...ia,...e.initialValues},validationSchema:oa,hideButtons:e.hasExchangeTvProduct&&!n,hideCancelButton:e.skipBeforeRequesting,children:[i&&t.jsxRuntimeExports.jsx(ra,{setConfirmed:r,setSelectedOption:e.setSelectedOption,exchangeTvUrl:e.exchangeTvUrl}),!i&&t.jsxRuntimeExports.jsx(sa,{audiences:e.audiences})]})}const Jt="shared.feedbackSuggestImprovement",Ve=t.LanguageService.encloseNamespace(Jt),ua={suggestion:"",importance:""},ca=q.libExports.object().shape({suggestion:je().required(Ee("requiredError")),importance:je()}).noUnknown();function la(e){const n=q.useFormikContextWrapper();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:Ve("suggestionPlaceholder"),label:Ve("suggestionLabel"),name:"suggestion",value:n.values.suggestion,showRequiredStar:!0}),t.jsxRuntimeExports.jsx(q.FormField,{as:"textarea",placeholder:Ve("whySuggestionPlaceholder"),label:Ve("whySuggestionLabel"),name:"importance",rows:5,value:n.values.importance}),t.jsxRuntimeExports.jsxs("p",{children:[t.jsxRuntimeExports.jsx(t.Text,{namespace:Jt,phrase:"contactSupport"})," ",t.jsxRuntimeExports.jsx("button",{className:"btn btn-link text-underline p-0",onClick:()=>e.setSelectedOption(V.RAISE_ISSUE),children:t.jsxRuntimeExports.jsx(t.Text,{namespace:Jt,phrase:"raiseIssue"})})]})]})}function da(e){return t.jsxRuntimeExports.jsx($e,{...e,initialValues:{...ua,...e.initialValues},validationSchema:ca,successImageUrl:ze.lightBulb,successHeading:Ve("successHeading"),successDescription:Ve("successDescription"),children:t.jsxRuntimeExports.jsx(la,{setSelectedOption:e.setSelectedOption})})}function $e(e){const n=t.React.useRef(null);function r(i){e.setFormState(a=>{var o;return{...a,...(o=n.current)==null?void 0:o.values}}),e.setSelectedOption(i)}return t.jsxRuntimeExports.jsx(q.FormWrapper,{onSubmit:e.onSubmit,initialValues:e.initialValues,validationSchema:e.validationSchema,validateOnMount:!0,innerRef:n,children:t.jsxRuntimeExports.jsxs(t.Form,{children:[e.formStage==="form"&&e.children,t.jsxRuntimeExports.jsx(Nr,{formStage:e.formStage,successImageUrl:e.successImageUrl,successHeading:e.successHeading,successDescription:e.successDescription}),!e.hideButtons&&t.jsxRuntimeExports.jsx(Ar,{setSelectedOption:r,submitText:e.submitText,formStage:e.formStage,closePopup:e.closePopup,hideCancelButton:e.hideCancelButton})]})})}function fa(e){const n={formStage:e.formStage,initialValues:e.initialValues,setFormState:e.setFormState,onSubmit:e.onSubmit,setSelectedOption:e.setSelectedOption,closePopup:e.closePopup};switch(e.selectedOption){case V.SUGGEST_IMPROVEMENT:return t.jsxRuntimeExports.jsx(da,{...n});case V.REPORT_BUG:return t.jsxRuntimeExports.jsx(fo,{...n,onFilesAdded:e.onFilesAdded,cancelUpload:e.cancelUpload,uploadingFiles:e.uploadingFiles,uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile,uploadError:e.uploadError,instanceRegion:e.instanceRegion});case V.REQUEST_VIDEO:return t.jsxRuntimeExports.jsx(aa,{...n,audiences:e.audiences,hasExchangeTvProduct:e.hasExchangeTvProduct,exchangeTvUrl:e.exchangeTvUrl,skipBeforeRequesting:e.skipBeforeRequesting,hideCancelButton:e.hideCancelButton});case V.REQUEST_LIVESTREAM:return t.jsxRuntimeExports.jsx(ea,{...n,audiences:e.audiences});case V.RAISE_ISSUE:return t.jsxRuntimeExports.jsx(ti,{...n});case V.GIVE_PRAISE:return t.jsxRuntimeExports.jsx(Wr,{...n});case V.OTHER:return t.jsxRuntimeExports.jsx(Yr,{...n})}}const xr="shared.giveFeedback",Me=t.LanguageService.encloseNamespace(xr),Yn=5,Xn=60,ga=1e6;function pa(e){var C,H;const n=dn.useAlerts(),r=t.useGetFetchAsync(),i=t.useBasicFetch(t.UserRequests.currentUser()),a=t.useBasicFetch(i.data&&t.CustomerRequests.customer(i.data.customerId)),o=t.useBasicFetch(i.data&&t.UserRequests.user(i.data.id)),[l,h]=t.React.useState(e.selectedOption),[b,d]=t.React.useState("form"),[_,T]=t.React.useState(null),k=dn.useService(t.SharedServices.MixedMediaUpload),B=Ir(()=>k.getCollection()),M=t.React.useRef(null),N=t.React.useRef(0),W=t.React.useRef([]),[U,K]=t.React.useState([]),[Q,R]=t.React.useState(""),F=e.product===t.ProductId.StreamableLearning?ge.StreamableLearning:ge.Subject,O=t.useBasicFetch(jr.presentation(F)),L=t.useBasicFetch(Er.presentationAudiences(null,F)),c=(C=t.useBasicFetch(t.ProductRequests.userProducts()).data)==null?void 0:C.find(p=>p.id===t.ProductId.Exchange);t.useListenOn(t.backboneExports.Radio.channel(t.SharedServiceChannels.MIXED_MEDIA_UPLOAD),t.UploadEventNames.UPLOAD_COMPLETE,S),Cr();function v(p,u){if(p.some(g=>g.size>Xn*ga)){R(Me("maxFileSizeUploadError",{limit:Xn}));return}if(p.length>Yn-B.length){R(Me("maxFilesUploadError",{limit:Yn}));return}if(p.some(g=>!t.Dropzone.isValidFile(g,t.FileExtensions.MIXED_MEDIA))){R(Me("invalidTypeUploadError"));return}R(""),N.current+=p.length,u&&(M.current=u),k.addFiles(p)}function S(p){const u=p.toJSON();if(W.current.push(u),N.current--,N.current>0)return;let g=W.current.length;W.current.forEach(m=>{setTimeout(()=>{g--;const s=k.getCollection().filter(f=>{var x;return((x=f.get("fileInfo"))==null?void 0:x.id)===m.fileInfo.id});k.getCollection().remove(s),K(f=>[...f,...s]),!(g>0)&&(t.AnalyticsHelper.logUserAction({fileInfo:m.fileInfo},{location:t.LocationContext.GiveFeedbackPopup,actionType:t.UserAction.Upload,entity:t.EntityType.MixedMedia,descriptor:t.AnalyticsHelper.mapInteractionType(M.current)}),n.success(Me("mixedMediaUploadSuccess")))})}),W.current=[]}function j(p){K(u=>u.filter(g=>g.id!==p))}function I(p){h(p),p&&t.AnalyticsHelper.logUserAction({type:p},{actionType:t.UserAction.Click,entity:t.EntityType.Feedback,location:t.LocationContext.GiveFeedbackPopup,workflowPhase:t.WorkflowPhase.Start})}function A(p){switch(p){case V.SUGGEST_IMPROVEMENT:return Ie.SuggestImprovement;case V.REPORT_BUG:return Ie.ReportBug;case V.REQUEST_VIDEO:return Ie.RequestVideo;case V.REQUEST_LIVESTREAM:return Ie.RequestLivestream;case V.GIVE_PRAISE:return Ie.GivePraise;case V.RAISE_ISSUE:return Ie.RaiseIssue;case V.OTHER:return Ie.Other}}async function z(p,u){var s,f,x,E,P,$;const g={type:A(l),user:ut.getUserInfo(i.data,a.data),tags:ut.getTags(i.data,e.product,!1,["give feedback",ct(l).toLowerCase(),(f=(s=O.data)==null?void 0:s.description)==null?void 0:f.toLowerCase().trim(),($=(P=(E=(x=o.data)==null?void 0:x.userProfile)==null?void 0:E.metadata)==null?void 0:P.jobTitle)==null?void 0:$.toLowerCase()].filter(Boolean))};let m={...p,currentPageUrl:t.LocationUtils.GetCurrentUrl()};l===V.REPORT_BUG&&U.length&&(m={...m,...ut.categorizeFiles(U)});try{await r(Rr.submitFeedback(g,m)),t.AnalyticsHelper.logUserAction({...g,...m},{actionType:t.UserAction.Submit,entity:t.EntityType.Feedback,location:t.LocationContext.GiveFeedbackPopup,workflowPhase:t.WorkflowPhase.Complete}),d("success")}catch{n.error(Me("error"))}finally{u()}}return t.jsxRuntimeExports.jsxs(t.Popup,{size:"lg",title:l?ct(l):Me("title"),closePopup:e.closePopup,backdrop:"static",children:[!l&&t.jsxRuntimeExports.jsx("p",{children:t.jsxRuntimeExports.jsx(t.Text,{namespace:xr,phrase:"description"})}),!l&&t.jsxRuntimeExports.jsx(kr,{onSelectOption:I,options:[V.SUGGEST_IMPROVEMENT,V.REPORT_BUG,e.product===t.ProductId.StreamableLearning?V.REQUEST_LIVESTREAM:V.REQUEST_VIDEO,V.GIVE_PRAISE,V.RAISE_ISSUE,V.OTHER]}),l&&t.jsxRuntimeExports.jsx(fa,{selectedOption:l,formStage:b,onSubmit:z,setSelectedOption:I,closePopup:e.closePopup,onFilesAdded:v,uploadingFiles:B,uploadedFiles:U,deleteFile:j,cancelUpload:p=>k.cancelUpload(p),audiences:L.data,uploadError:Q,initialValues:_,setFormState:T,instanceRegion:(H=i.data)==null?void 0:H.instanceRegion,hasExchangeTvProduct:!!c,exchangeTvUrl:c==null?void 0:c.url,skipBeforeRequesting:!!e.skipBeforeRequestingVideoStep,hideCancelButton:!!e.selectedOption})]})}exports.GiveFeedbackView=pa;
@@ -1,53 +0,0 @@
1
- import { j as a } from "./app-2U039aX_.js";
2
- function r(l) {
3
- return /* @__PURE__ */ a.jsx("svg", { ...l, children: /* @__PURE__ */ a.jsx(
4
- "path",
5
- {
6
- fill: "currentColor",
7
- d: "M4 6.462C4 6.207 4.21 6 4.47 6h15.06c.26 0 .47.207.47.462v10.892a.653.653 0 0 1-.659.646H4.66A.653.653 0 0 1 4 17.354zm1.723.461 5.967 5.12a.48.48 0 0 0 .62 0l5.967-5.12zm13.336.556-6.13 5.26a1.43 1.43 0 0 1-1.859 0l-6.129-5.26v9.598H19.06z"
8
- }
9
- ) });
10
- }
11
- function e(l) {
12
- return /* @__PURE__ */ a.jsx("svg", { ...l, children: /* @__PURE__ */ a.jsx(
13
- "path",
14
- {
15
- fill: "currentColor",
16
- fillRule: "evenodd",
17
- d: "M9.5 7A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7h4a.5.5 0 0 1 0 1h-1.14q0 .045-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1 1 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4m4 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5zm2.971 1H7.53l.853 9.545A.5.5 0 0 0 8.88 18h6.24a.5.5 0 0 0 .498-.456zm-7.43 2.537a.499.499 0 1 1 .994-.077l.424 5.503a.498.498 0 1 1-.994.077zM11.5 10.5a.5.5 0 0 1 1 0V16a.5.5 0 0 1-1 0zm2.962-.5c-.26 0-.477.2-.497.46l-.424 5.503a.499.499 0 1 0 .994.077l.424-5.503a.5.5 0 0 0-.497-.537",
18
- clipRule: "evenodd"
19
- }
20
- ) });
21
- }
22
- function n(l) {
23
- return /* @__PURE__ */ a.jsx(
24
- "svg",
25
- {
26
- ...l,
27
- children: /* @__PURE__ */ a.jsx(
28
- "path",
29
- {
30
- fill: "currentColor",
31
- d: "M16.367 7.964c.821-.63 1.453-1.642 1.453-2.78a.486.486 0 0 0-.477-.493h-2.482c-1.264 0-2.367.535-2.933 1.61A4.1 4.1 0 0 0 10.6 4.734a4.16 4.16 0 0 0-1.903-.732c-.263-.02-.689.284-.707.556-.02.272.375.607.637.626.106.01 2.35.231 2.814 2.92-.561-.124-.927-.449-2.3-.449-2.143 0-4.054 1.713-4.054 5.037 0 3.438 2.726 7.31 4.53 7.31 1.73 0 1.63-.506 2.384-.506.758 0 .65.505 2.384.505 1.805 0 4.53-3.868 4.53-7.309 0-2.563-1.114-4.105-2.547-4.727zm-1.506-2.187 1.86-.098c-.222 1.125-1.192 1.65-2.336 1.777l-1.761.198c.221-1.126 1.087-1.816 2.237-1.877m1.69 11.277c-.83 1.286-1.718 1.76-2.167 1.76-.842 0-1.107-.13-1.363-.257-.235-.116-.502-.248-1.02-.248-.519 0-.786.132-1.022.248-.256.127-.52.257-1.363.257-1 0-3.378-2.903-3.378-6.123 0-2.99 1.472-3.852 2.901-3.852 1.367 0 1.491.364 2.384.476.001.314.23.511.477.511.248 0 .478-.198.477-.51.9-.114 1.012-.477 2.384-.477 1.43 0 2.901.863 2.901 3.852 0 1.384-.315 2.974-1.211 4.363"
32
- }
33
- )
34
- }
35
- );
36
- }
37
- function o(l) {
38
- return /* @__PURE__ */ a.jsx("svg", { ...l, children: /* @__PURE__ */ a.jsx(
39
- "path",
40
- {
41
- fill: "currentColor",
42
- fillRule: "evenodd",
43
- d: "M15.527 12.013a2.507 2.507 0 1 0 0-5.013 2.507 2.507 0 0 0 0 5.013m0-1.002a1.504 1.504 0 1 1 0-3.008 1.504 1.504 0 0 1 0 3.008m-7.269 1.323a2.256 2.256 0 1 0 0-4.512 2.256 2.256 0 0 0 0 4.512m0-3.51a1.253 1.253 0 1 1 0 2.508 1.253 1.253 0 0 1 0-2.507M4.18 15.35c1.552-2.633 4.699-2.595 6.592-1.46a.502.502 0 0 1-.516.86c-1.588-.952-4.035-.888-5.212 1.11a.25.25 0 0 0 .01.285c.068.098.202.18.372.18h4.587a.501.501 0 1 1 0 1.004H5.426c-.496 0-.938-.242-1.195-.612a1.25 1.25 0 0 1-.051-1.367m9.045-2.03a6 6 0 0 1 2.302-.504c2.344 0 3.865 1.4 4.398 2.859.164.448.044.884-.225 1.19-.26.293-.653.464-1.064.464h-6.217a1.46 1.46 0 0 1-1.068-.457 1.22 1.22 0 0 1-.288-1.172c.351-1.254 1.265-1.978 2.162-2.38m.41.915c-.724.325-1.361.859-1.607 1.736q-.034.119.058.22c.07.075.191.135.333.135h6.217c.142 0 .254-.06.313-.126.048-.055.06-.11.035-.18-.397-1.084-1.556-2.2-3.457-2.2-.386 0-1.16.087-1.892.415",
44
- clipRule: "evenodd"
45
- }
46
- ) });
47
- }
48
- export {
49
- n as C,
50
- e as D,
51
- r as E,
52
- o as G
53
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./app-DcIbciDa.cjs");function r(l){return e.jsxRuntimeExports.jsx("svg",{...l,children:e.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M4 6.462C4 6.207 4.21 6 4.47 6h15.06c.26 0 .47.207.47.462v10.892a.653.653 0 0 1-.659.646H4.66A.653.653 0 0 1 4 17.354zm1.723.461 5.967 5.12a.48.48 0 0 0 .62 0l5.967-5.12zm13.336.556-6.13 5.26a1.43 1.43 0 0 1-1.859 0l-6.129-5.26v9.598H19.06z"})})}function a(l){return e.jsxRuntimeExports.jsx("svg",{...l,children:e.jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 7A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7h4a.5.5 0 0 1 0 1h-1.14q0 .045-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1 1 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4m4 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5zm2.971 1H7.53l.853 9.545A.5.5 0 0 0 8.88 18h6.24a.5.5 0 0 0 .498-.456zm-7.43 2.537a.499.499 0 1 1 .994-.077l.424 5.503a.498.498 0 1 1-.994.077zM11.5 10.5a.5.5 0 0 1 1 0V16a.5.5 0 0 1-1 0zm2.962-.5c-.26 0-.477.2-.497.46l-.424 5.503a.499.499 0 1 0 .994.077l.424-5.503a.5.5 0 0 0-.497-.537",clipRule:"evenodd"})})}function s(l){return e.jsxRuntimeExports.jsx("svg",{...l,children:e.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.367 7.964c.821-.63 1.453-1.642 1.453-2.78a.486.486 0 0 0-.477-.493h-2.482c-1.264 0-2.367.535-2.933 1.61A4.1 4.1 0 0 0 10.6 4.734a4.16 4.16 0 0 0-1.903-.732c-.263-.02-.689.284-.707.556-.02.272.375.607.637.626.106.01 2.35.231 2.814 2.92-.561-.124-.927-.449-2.3-.449-2.143 0-4.054 1.713-4.054 5.037 0 3.438 2.726 7.31 4.53 7.31 1.73 0 1.63-.506 2.384-.506.758 0 .65.505 2.384.505 1.805 0 4.53-3.868 4.53-7.309 0-2.563-1.114-4.105-2.547-4.727zm-1.506-2.187 1.86-.098c-.222 1.125-1.192 1.65-2.336 1.777l-1.761.198c.221-1.126 1.087-1.816 2.237-1.877m1.69 11.277c-.83 1.286-1.718 1.76-2.167 1.76-.842 0-1.107-.13-1.363-.257-.235-.116-.502-.248-1.02-.248-.519 0-.786.132-1.022.248-.256.127-.52.257-1.363.257-1 0-3.378-2.903-3.378-6.123 0-2.99 1.472-3.852 2.901-3.852 1.367 0 1.491.364 2.384.476.001.314.23.511.477.511.248 0 .478-.198.477-.51.9-.114 1.012-.477 2.384-.477 1.43 0 2.901.863 2.901 3.852 0 1.384-.315 2.974-1.211 4.363"})})}function t(l){return e.jsxRuntimeExports.jsx("svg",{...l,children:e.jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.527 12.013a2.507 2.507 0 1 0 0-5.013 2.507 2.507 0 0 0 0 5.013m0-1.002a1.504 1.504 0 1 1 0-3.008 1.504 1.504 0 0 1 0 3.008m-7.269 1.323a2.256 2.256 0 1 0 0-4.512 2.256 2.256 0 0 0 0 4.512m0-3.51a1.253 1.253 0 1 1 0 2.508 1.253 1.253 0 0 1 0-2.507M4.18 15.35c1.552-2.633 4.699-2.595 6.592-1.46a.502.502 0 0 1-.516.86c-1.588-.952-4.035-.888-5.212 1.11a.25.25 0 0 0 .01.285c.068.098.202.18.372.18h4.587a.501.501 0 1 1 0 1.004H5.426c-.496 0-.938-.242-1.195-.612a1.25 1.25 0 0 1-.051-1.367m9.045-2.03a6 6 0 0 1 2.302-.504c2.344 0 3.865 1.4 4.398 2.859.164.448.044.884-.225 1.19-.26.293-.653.464-1.064.464h-6.217a1.46 1.46 0 0 1-1.068-.457 1.22 1.22 0 0 1-.288-1.172c.351-1.254 1.265-1.978 2.162-2.38m.41.915c-.724.325-1.361.859-1.607 1.736q-.034.119.058.22c.07.075.191.135.333.135h6.217c.142 0 .254-.06.313-.126.048-.055.06-.11.035-.18-.397-1.084-1.556-2.2-3.457-2.2-.386 0-1.16.087-1.892.415",clipRule:"evenodd"})})}exports.ClassroomsSvg=s;exports.DeleteSvg=a;exports.EmailSvg=r;exports.GroupSvg=t;
@@ -1,51 +0,0 @@
1
- const c = {
2
- // Production values. For testing in development, change these to staging preso values
3
- PresentationIds: {
4
- DEFAULT: 1,
5
- AU_PRIMARY: 18,
6
- AU_SECONDARY: 9,
7
- AU_TERTIARY: 81,
8
- US_ELEMENTARY: 13,
9
- STREAMABLE_LEARNING: 68,
10
- ENG_PRIMARY: 16,
11
- ENG_SECONDARY: 47,
12
- SCT_PRIMARY: 12,
13
- SCT_SECONDARY: 24,
14
- UK_TERTIARY: 82,
15
- INT_PRIMARY: 19,
16
- INT_SECONDARY: 21,
17
- NZ_PRIMARY: 96,
18
- NZ_SECONDARY: 97
19
- },
20
- Libraries: {
21
- TWIG: "88117784",
22
- TIGTAG: "80333935"
23
- },
24
- Images: {
25
- Level_1: {
26
- TOPIC_BANNER: "https://img.clickviewapp.com/v2/banners/dlM73E",
27
- TOPIC_COVER: "https://img.clickviewapp.com/v2/covers/WAe8MP",
28
- TOPIC_TALL_POSTER: "https://img.clickviewapp.com/v2/tallposters/raRm7E",
29
- NEW_RELEASES_BANNER: "https://img.clickviewapp.com/v2/banners/3kzeZ2"
30
- },
31
- Level_2: {
32
- TOPIC_BANNER: "https://img.clickviewapp.com/v2/banners/WAeKvP",
33
- TOPIC_COVER: "https://img.clickviewapp.com/v2/covers/9DAZJv",
34
- TOPIC_TALL_POSTER: "https://img.clickviewapp.com/v2/tallposters/eKG2bq",
35
- NEW_RELEASES_BANNER: "https://img.clickviewapp.com/v2/banners/xyn5eP"
36
- },
37
- Level_3: {
38
- TOPIC_BANNER: "https://img.clickviewapp.com/v2/banners/dl1d0g",
39
- TOPIC_COVER: "https://img.clickviewapp.com/v2/covers/R0Pz7A",
40
- TOPIC_TALL_POSTER: "https://img.clickviewapp.com/v2/tallposters/8LYZ9R",
41
- NEW_RELEASES_BANNER: "https://img.clickviewapp.com/v2/banners/nKDyRj"
42
- },
43
- Level_4: {
44
- TOPIC_BANNER: "https://img.clickviewapp.com/v2/banners/vYJPP5",
45
- TOPIC_COVER: "https://img.clickviewapp.com/v2/covers/PGPLLP"
46
- }
47
- }
48
- };
49
- export {
50
- c as H
51
- };
@@ -1 +0,0 @@
1
- "use strict";const c={PresentationIds:{DEFAULT:1,AU_PRIMARY:18,AU_SECONDARY:9,AU_TERTIARY:81,US_ELEMENTARY:13,STREAMABLE_LEARNING:68,ENG_PRIMARY:16,ENG_SECONDARY:47,SCT_PRIMARY:12,SCT_SECONDARY:24,UK_TERTIARY:82,INT_PRIMARY:19,INT_SECONDARY:21,NZ_PRIMARY:96,NZ_SECONDARY:97},Libraries:{TWIG:"88117784",TIGTAG:"80333935"},Images:{Level_1:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/dlM73E",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/WAe8MP",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/raRm7E",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/3kzeZ2"},Level_2:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/WAeKvP",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/9DAZJv",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/eKG2bq",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/xyn5eP"},Level_3:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/dl1d0g",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/R0Pz7A",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/8LYZ9R",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/nKDyRj"},Level_4:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/vYJPP5",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/PGPLLP"}}};exports.HardCoded=c;
@@ -1 +0,0 @@
1
- "use strict";const r=require("./app-DcIbciDa.cjs"),a="shared.privateResourceError";class s extends r.ErrorPageError{constructor(){super(r.LanguageService.getPhrase(a,"title"))}get name(){return"PrivateResourceError"}get heading(){return r.LanguageService.getPhrase(a,"heading")}get description(){return r.LanguageService.getPhrase(a,"description")}}const i="shared.regionLockedResourceError";class c extends r.ErrorPageError{constructor(){super(r.LanguageService.getPhrase(i,"title"))}get name(){return"RegionLockedResourceError"}get heading(){return r.LanguageService.getPhrase(i,"heading")}get description(){return r.LanguageService.getPhrase(i,"description")}}const d={notFound:r.NotFoundError,forbidden:{rating:s,yearLevel:s,region:c,privacy:s},badRequest:r.UnspecifiedError,internalServerError:r.UnspecifiedError};function g(t,u={},n={}){if(!t)return;let e;typeof t=="number"?e=t:e=t.status;const o={...d,...u};if(e&&r.ErrorHelper.isStatusCodeError(e)){if(e===r.HttpStatus.InternalServer){n.internalServerError||r.ErrorHelper.throw(new r.UnspecifiedError);return}if(e===r.HttpStatus.NotFound){n.notFound||r.ErrorHelper.throw(new o.notFound);return}if(e===r.HttpStatus.Forbidden){n.forbidden||r.ErrorHelper.throw(new o.forbidden.privacy);return}n.badRequest||r.ErrorHelper.throw(new o.badRequest)}}exports.handleHttpError=g;
@@ -1,76 +0,0 @@
1
- import { c6 as g, L as t, q as o, aR as a, c7 as c, c8 as f } from "./app-2U039aX_.js";
2
- const i = "shared.privateResourceError";
3
- class u extends g {
4
- constructor() {
5
- super(t.getPhrase(i, "title"));
6
- }
7
- // @ts-ignore
8
- get name() {
9
- return "PrivateResourceError";
10
- }
11
- // @ts-ignore
12
- get heading() {
13
- return t.getPhrase(i, "heading");
14
- }
15
- // @ts-ignore
16
- get description() {
17
- return t.getPhrase(i, "description");
18
- }
19
- }
20
- const d = "shared.regionLockedResourceError";
21
- class p extends g {
22
- constructor() {
23
- super(t.getPhrase(d, "title"));
24
- }
25
- // @ts-ignore
26
- get name() {
27
- return "RegionLockedResourceError";
28
- }
29
- // @ts-ignore
30
- get heading() {
31
- return t.getPhrase(d, "heading");
32
- }
33
- // @ts-ignore
34
- get description() {
35
- return t.getPhrase(d, "description");
36
- }
37
- }
38
- const E = {
39
- notFound: f,
40
- forbidden: {
41
- rating: u,
42
- yearLevel: u,
43
- region: p,
44
- privacy: u
45
- },
46
- badRequest: c,
47
- internalServerError: c
48
- };
49
- function R(e, h = {}, n = {}) {
50
- if (!e)
51
- return;
52
- let r;
53
- typeof e == "number" ? r = e : r = e.status;
54
- const s = {
55
- ...E,
56
- ...h
57
- };
58
- if (r && o.isStatusCodeError(r)) {
59
- if (r === a.InternalServer) {
60
- n.internalServerError || o.throw(new c());
61
- return;
62
- }
63
- if (r === a.NotFound) {
64
- n.notFound || o.throw(new s.notFound());
65
- return;
66
- }
67
- if (r === a.Forbidden) {
68
- n.forbidden || o.throw(new s.forbidden.privacy());
69
- return;
70
- }
71
- n.badRequest || o.throw(new s.badRequest());
72
- }
73
- }
74
- export {
75
- R as h
76
- };
@@ -1 +0,0 @@
1
- "use strict";const i=require("./app-DcIbciDa.cjs");function r(e){return i.jsxRuntimeExports.jsx("svg",{...e,children:i.jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 1 1 1.414-1.414l2.244 2.244z",clipRule:"evenodd"})})}const s="_circle_15nxd_1",c="_img_15nxd_6",t={circle:s,img:c};n.defaultProps={textVariant:"white"};function n(e){return!e.imageUrl&&!e.svg?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{}):e.imageUrl?i.jsxRuntimeExports.jsx("div",{className:`${t.img} rounded-circle h-100 w-100`,style:{backgroundImage:`url(${e.imageUrl})`},children:" "}):i.jsxRuntimeExports.jsx("div",{className:`${t.circle} ${e.variant?`bg-${e.variant}`:""} text-${e.textVariant} rounded-circle h-100 w-100 ${e.svgWrapperClassName??""}`,children:i.jsxRuntimeExports.jsx(i.SvgContainer,{svg:e.svg,size:e.svgSize})})}exports.CheckSvg=r;exports.IconCircle=n;