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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/137-exchange-8c1b8716b3.chunk.css +25 -0
  3. package/dist/css/212-exchange-d71527fc65.chunk.css +1 -0
  4. package/dist/css/226-exchange-9ab9f14b3c.chunk.css +57 -0
  5. package/dist/css/291-exchange-be9d9f0cdb.chunk.css +11 -0
  6. package/dist/css/298-exchange-78ece5c7c5.chunk.css +37 -0
  7. package/dist/css/332-exchange-e4754ae27a.chunk.css +1 -0
  8. package/dist/css/494-exchange-02d7a0249c.chunk.css +2 -0
  9. package/dist/css/522-exchange-1387f35e92.chunk.css +14 -0
  10. package/dist/css/538-exchange-4cbfe56ba3.chunk.css +1 -0
  11. package/dist/css/589-exchange-fa098d9131.chunk.css +11 -0
  12. package/dist/css/611-exchange-cbf2bb5621.chunk.css +5 -0
  13. package/dist/css/669-exchange-e80e6c6649.chunk.css +10 -0
  14. package/dist/css/68-exchange-b5eaf8af44.chunk.css +35 -0
  15. package/dist/css/75-exchange-6d2304419c.chunk.css +5 -0
  16. package/dist/css/759-exchange-23bb5dd175.chunk.css +8 -0
  17. package/dist/css/777-exchange-6ecb1e7adc.chunk.css +85 -0
  18. package/dist/css/858-exchange-06944bdfa4.chunk.css +1 -0
  19. package/dist/css/904-exchange-0eab318199.chunk.css +40 -0
  20. package/dist/css/95-exchange-4cbfe56ba3.chunk.css +1 -0
  21. package/dist/css/lite-exchange-ed6bd260c5.css +14 -0
  22. package/dist/languages/en.json +1 -0
  23. package/dist/scripts/117-5eb5adc7a4-exchange.chunk.js +1 -0
  24. package/dist/scripts/127-6b0fb13bd1-exchange.chunk.js +1 -0
  25. package/dist/scripts/136-2395b8205f-exchange.chunk.js +2 -0
  26. package/dist/scripts/136-2395b8205f-exchange.chunk.js.LICENSE.txt +1 -0
  27. package/dist/scripts/137-86b96d7a66-exchange.chunk.js +1 -0
  28. package/dist/scripts/156-0b71dc58d7-exchange.chunk.js +1 -0
  29. package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +1 -0
  30. package/dist/scripts/173-3668db114a-exchange.chunk.js +1 -0
  31. package/dist/scripts/212-a17cfb8fd5-exchange.chunk.js +1 -0
  32. package/dist/scripts/226-d5778b4bb6-exchange.chunk.js +1 -0
  33. package/dist/scripts/267-d7e70afb4a-exchange.chunk.js +1 -0
  34. package/dist/scripts/291-7e85a6e844-exchange.chunk.js +1 -0
  35. package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +1 -0
  36. package/dist/scripts/312-69afcbbc39-exchange.chunk.js +1 -0
  37. package/dist/scripts/332-8947c93415-exchange.chunk.js +1 -0
  38. package/dist/scripts/414-567e121c75-exchange.chunk.js +2 -0
  39. package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +60 -0
  40. package/dist/scripts/442-5d2a98f10d-exchange.chunk.js +1 -0
  41. package/dist/scripts/455-ceeb969c54-exchange.chunk.js +1 -0
  42. package/dist/scripts/484-f6ef46e4ac-exchange.chunk.js +1 -0
  43. package/dist/scripts/490-60822ea52f-exchange.chunk.js +1 -0
  44. package/dist/scripts/494-de9338a4bc-exchange.chunk.js +2 -0
  45. package/dist/scripts/494-de9338a4bc-exchange.chunk.js.LICENSE.txt +1 -0
  46. package/dist/scripts/507-95a1785c1b-exchange.chunk.js +1 -0
  47. package/dist/scripts/522-ea8fb704eb-exchange.chunk.js +2 -0
  48. package/dist/scripts/522-ea8fb704eb-exchange.chunk.js.LICENSE.txt +1 -0
  49. package/dist/scripts/536-b915864d5f-exchange.chunk.js +1 -0
  50. package/dist/scripts/538-37852629be-exchange.chunk.js +2 -0
  51. package/dist/scripts/538-37852629be-exchange.chunk.js.LICENSE.txt +1 -0
  52. package/dist/scripts/558-9180a10bab-exchange.chunk.js +1 -0
  53. package/dist/scripts/589-17d73ab116-exchange.chunk.js +1 -0
  54. package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +1 -0
  55. package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +1 -0
  56. package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +1 -0
  57. package/dist/scripts/648-485af12c37-exchange.chunk.js +1 -0
  58. package/dist/scripts/659-e9ce44a428-exchange.chunk.js +1 -0
  59. package/dist/scripts/669-4a2b614ca9-exchange.chunk.js +1 -0
  60. package/dist/scripts/68-45fe6e7576-exchange.chunk.js +1 -0
  61. package/dist/scripts/725-64871f6063-exchange.chunk.js +1 -0
  62. package/dist/scripts/726-868a877381-exchange.chunk.js +1 -0
  63. package/dist/scripts/75-8efc5587e9-exchange.chunk.js +1 -0
  64. package/dist/scripts/759-f1a9db4868-exchange.chunk.js +1 -0
  65. package/dist/scripts/777-d35fa4eb89-exchange.chunk.js +2 -0
  66. package/dist/scripts/777-d35fa4eb89-exchange.chunk.js.LICENSE.txt +1 -0
  67. package/dist/scripts/782-518d95afbb-exchange.chunk.js +1 -0
  68. package/dist/scripts/831-8808647fc7-exchange.chunk.js +1 -0
  69. package/dist/scripts/851-df1d9024fc-exchange.chunk.js +2 -0
  70. package/dist/scripts/851-df1d9024fc-exchange.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/858-70085ed3b1-exchange.chunk.js +1 -0
  72. package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +1 -0
  73. package/dist/scripts/87-d569a1463e-exchange.chunk.js +1 -0
  74. package/dist/scripts/877-5b357aeb63-exchange.chunk.js +1 -0
  75. package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +1 -0
  76. package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +1 -0
  77. package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +1 -0
  78. package/dist/scripts/95-b964a57082-exchange.chunk.js +2 -0
  79. package/dist/scripts/95-b964a57082-exchange.chunk.js.LICENSE.txt +1 -0
  80. package/dist/scripts/bundle-b4b395ca83.min.js +2 -0
  81. package/dist/scripts/bundle-b4b395ca83.min.js.LICENSE.txt +108 -0
  82. package/package.json +3 -12
  83. package/typings/utils/imports.d.ts +1 -1
  84. package/dist/css/Actions-BPdg7JW4.css +0 -1
  85. package/dist/css/AddToLibraryView-BBV1d-ZI.css +0 -1
  86. package/dist/css/Caret-C2R4QydJ.css +0 -1
  87. package/dist/css/ExchangeSearchBar-DL_jCfRl.css +0 -1
  88. package/dist/css/ExchangeSearchResultsView-fap4f8w8.css +0 -1
  89. package/dist/css/FormField-CY0yvCW4.css +0 -1
  90. package/dist/css/GiveFeedbackView-CifDVjr-.css +0 -1
  91. package/dist/css/IconCircle-jbMisi9r.css +0 -1
  92. package/dist/css/LazyImage-CC5F5C8O.css +0 -1
  93. package/dist/css/LinkifyHelper-DI4l_5OJ.css +0 -1
  94. package/dist/css/PillTabSelector-DlOtoSz0.css +0 -1
  95. package/dist/css/PreviewVideoDetails-CLoNhAp2.css +0 -1
  96. package/dist/css/ProgramType-B57G3PZD.css +0 -1
  97. package/dist/css/RestrictionHelper-BiRz4h1c.css +0 -1
  98. package/dist/css/SearchFilters-DKLFGlDI.css +0 -1
  99. package/dist/css/TagItem-DD13UQOa.css +0 -1
  100. package/dist/css/TvAdFreeBadge-DnhNnDZN.css +0 -1
  101. package/dist/css/TvAddView-fs02hBfZ.css +0 -1
  102. package/dist/css/TvAlreadyAddedView-Dkh6sNpi.css +0 -1
  103. package/dist/css/TvBroadcastContentView-CDiJwtuL.css +0 -1
  104. package/dist/css/TvChannelBadge-BDOTXlob.css +0 -1
  105. package/dist/css/TvChannelView-DRlDmMhN.css +0 -1
  106. package/dist/css/TvChannelsView-w4TLT4f5.css +0 -1
  107. package/dist/css/TvProgramTimeBadge-zFa1fH-z.css +0 -1
  108. package/dist/css/TvProgramsView-Bt3pBBLn.css +0 -1
  109. package/dist/css/TvSearchBar-Ci6HCTb5.css +0 -1
  110. package/dist/css/TvSearchResultsView-DGyCCqtO.css +0 -1
  111. package/dist/css/UseFetchAll-BIeUeS4h.css +0 -1
  112. package/dist/css/UseGetMediaQueryString-CrSv-tYo.css +0 -1
  113. package/dist/css/UseSelectAllPages-C7XoyEPr.css +0 -1
  114. package/dist/css/VideoList-DJ07F3NX.css +0 -1
  115. package/dist/css/app-B9KW71K5.css +0 -1
  116. package/dist/css/useBreakpoints-CCsCPLDG.css +0 -1
  117. package/dist/en.json +0 -1
  118. package/dist/scripts/Actions-DU6xcKNt.js +0 -1
  119. package/dist/scripts/AddToLibraryView-BbpiFnD1.js +0 -1
  120. package/dist/scripts/Badge-kRGAgSgq.js +0 -1
  121. package/dist/scripts/BadgeListContainer-B-qdl_Qj.js +0 -1
  122. package/dist/scripts/ButtonGroup-Pz8uSjml.js +0 -1
  123. package/dist/scripts/Caret-BRrDlj-2.js +0 -1
  124. package/dist/scripts/ChevronDownSvg-PWL_4rOb.js +0 -1
  125. package/dist/scripts/ClassNameHelper-C1RD6ZYU.js +0 -1
  126. package/dist/scripts/CloseSvg-MoBnROf1.js +0 -1
  127. package/dist/scripts/CurationStatus-BlDVEZsX.js +0 -1
  128. package/dist/scripts/DevErrorView-CK5-Rxy-.js +0 -1
  129. package/dist/scripts/DialogView-im7-qx9i.js +0 -1
  130. package/dist/scripts/DownloadHelper-tNp3R89-.js +0 -1
  131. package/dist/scripts/DownloadVideoView-Dcsxo22U.js +0 -1
  132. package/dist/scripts/DragDropMoveWrapper-Dsd-8vE3.js +0 -1
  133. package/dist/scripts/ExchangeAddView-CwHPqfoQ.js +0 -1
  134. package/dist/scripts/ExchangeFolderView-BpMNAmMQ.js +0 -1
  135. package/dist/scripts/ExchangeMostRecentView-DQH8FDqI.js +0 -1
  136. package/dist/scripts/ExchangeNotFoundView-BxjMr4v3.js +0 -1
  137. package/dist/scripts/ExchangePreviewView-Od2pV8fa.js +0 -1
  138. package/dist/scripts/ExchangeRequests-CaMKspLi.js +0 -1
  139. package/dist/scripts/ExchangeSearchBar-BetVWbNL.js +0 -1
  140. package/dist/scripts/ExchangeSearchResultsView-GbfK9RDh.js +0 -2
  141. package/dist/scripts/ExchangeSeriesView-b1ayep0S.js +0 -1
  142. package/dist/scripts/ExchangeSuggestEditView-3CoGs1xA.js +0 -1
  143. package/dist/scripts/ExchangeTabs-CQC3f-18.js +0 -1
  144. package/dist/scripts/ExchangeUtils-BXtQ6ui-.js +0 -1
  145. package/dist/scripts/ExchangeView-DCrYAO5x.js +0 -1
  146. package/dist/scripts/FormButtons-Bgi1UFwH.js +0 -1
  147. package/dist/scripts/FormFeedback-CSSo249E.js +0 -1
  148. package/dist/scripts/FormField-BefWo_kh.js +0 -5
  149. package/dist/scripts/GiveFeedbackView-C05VDJBO.js +0 -7
  150. package/dist/scripts/GroupSvg-CF5_JUEf.js +0 -1
  151. package/dist/scripts/HardCoded-NS2B_WZd.js +0 -1
  152. package/dist/scripts/HttpErrorHandlers-CXQ82gVO.js +0 -1
  153. package/dist/scripts/IconCircle-Bl2iLV5f.js +0 -1
  154. package/dist/scripts/InstanceRegion-CJ3oIQlG.js +0 -1
  155. package/dist/scripts/LazyImage-BuPwkT8t.js +0 -1
  156. package/dist/scripts/LibraryRequests-CIFsh_TC.js +0 -1
  157. package/dist/scripts/LinkifyHelper-DXhtCX0t.js +0 -4
  158. package/dist/scripts/MasterTypeHelper-C89Dh71u.js +0 -1
  159. package/dist/scripts/MediaQueries-_sYSSSUN.js +0 -1
  160. package/dist/scripts/PartialLoadingHelper-jX9dOBvb.js +0 -1
  161. package/dist/scripts/PermissionFilterOption-pkzD5BEm.js +0 -1
  162. package/dist/scripts/PillTabSelector-0Eg1sgXj.js +0 -14
  163. package/dist/scripts/PreviewVideoDetails-DYcfSG9C.js +0 -362
  164. package/dist/scripts/ProgramType-ClR23Av6.js +0 -1
  165. package/dist/scripts/RatingRequests-DE77YS3s.js +0 -1
  166. package/dist/scripts/RedirectView-Bd2ocWHW.js +0 -1
  167. package/dist/scripts/RestrictionHelper-FFW66EYt.js +0 -1
  168. package/dist/scripts/ScrollHelper-DdBBQJML.js +0 -1
  169. package/dist/scripts/SearchFilters-FlVReO0V.js +0 -1
  170. package/dist/scripts/SearchSvg-BVG6NbDK.js +0 -1
  171. package/dist/scripts/SharedSearchHelper-OTwt6mVX.js +0 -1
  172. package/dist/scripts/TagItem-D-T5Jgxc.js +0 -1
  173. package/dist/scripts/TvAdFreeBadge-CK6vQXKI.js +0 -1
  174. package/dist/scripts/TvAdFreeRequestView-DI72pb_f.js +0 -1
  175. package/dist/scripts/TvAddView-B1D9QlK5.js +0 -1
  176. package/dist/scripts/TvAlreadyAddedView-DFqGZwQO.js +0 -1
  177. package/dist/scripts/TvBroadcastContentView-BdIK-pK2.js +0 -1
  178. package/dist/scripts/TvChannelBadge-pBwnbFcb.js +0 -1
  179. package/dist/scripts/TvChannelView-fMD7YYjb.js +0 -1
  180. package/dist/scripts/TvChannelsView-eH68B1en.js +0 -1
  181. package/dist/scripts/TvGuideView-CTuQRLzy.js +0 -1
  182. package/dist/scripts/TvHomeView-B_wgL0pd.js +0 -1
  183. package/dist/scripts/TvPreviewView-DG7HOmV0.js +0 -1
  184. package/dist/scripts/TvProgramTimeBadge-spEPk9Ci.js +0 -1
  185. package/dist/scripts/TvProgramsView-CIGHzdBW.js +0 -1
  186. package/dist/scripts/TvRadioDownloadView-BBjF31yx.js +0 -1
  187. package/dist/scripts/TvRequestProgramView-D4tAgJGb.js +0 -1
  188. package/dist/scripts/TvRequests-DGpJhsk0.js +0 -1
  189. package/dist/scripts/TvSearchBar-DeJpQCLg.js +0 -1
  190. package/dist/scripts/TvSearchResultsView-C2maqf2-.js +0 -1
  191. package/dist/scripts/TvTabs-CwSo_jRg.js +0 -1
  192. package/dist/scripts/TypeHelper-B668bf5B.js +0 -1
  193. package/dist/scripts/UseAlerts-CvkkojNb.js +0 -1
  194. package/dist/scripts/UseFetchAll-gFCX5FgS.js +0 -1
  195. package/dist/scripts/UseGetMediaQueryString-CtMZxiJN.js +0 -1
  196. package/dist/scripts/UseHandleDialogError-DyBOBdQw.js +0 -1
  197. package/dist/scripts/UseHandleObjectError-BX2Mxo9Q.js +0 -1
  198. package/dist/scripts/UseHover-CvNCFvZV.js +0 -1
  199. package/dist/scripts/UseSelectAllPages-lGahuUoo.js +0 -1
  200. package/dist/scripts/VideoHelper-CCZMG1XL.js +0 -1
  201. package/dist/scripts/VideoList-DqqHxoXh.js +0 -49
  202. package/dist/scripts/VideoRequests-vwphYsR4.js +0 -1
  203. package/dist/scripts/VideoSortSelect-DVdIHmhA.js +0 -1
  204. package/dist/scripts/VisibleOnSvg-BuD3Reup.js +0 -1
  205. package/dist/scripts/app-Lrh8TPTe.js +0 -147
  206. package/dist/scripts/getRegionInfo-BBAErHX7.js +0 -1
  207. package/dist/scripts/index-C9eYzTFT.js +0 -1
  208. package/dist/scripts/toLocalTime-pPGBAyPL.js +0 -1
  209. package/dist/scripts/useBreakpoints-BALX55hP.js +0 -1
  210. package/dist/scripts/useGetExchangeActions-BtGC0q85.js +0 -1
  211. package/dist/scripts/useGetTvActions-Cx_DXvlg.js +0 -1
  212. package/dist/scripts/useHandleRegionError-CaGlG48W.js +0 -1
  213. package/dist/scripts/usePreviewContext-B5fK7PxW.js +0 -1
  214. package/dist/scripts/useSelectedRegion-h9Rl12Z2.js +0 -1
  215. package/dist/scripts/useVerifiedEmailRequiredErrorHandler-BON6gc7P.js +0 -1
  216. package/vite-bundle-manifest.ts +0 -41
  217. package/vite-i18n-plugin.ts +0 -113
  218. package/vite.config.ts +0 -74
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 522-ea8fb704eb-exchange.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[522],{31453:(e,t,n)=>{function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return"";var r=t.filter(function(e){return!!e});return r.length?r.join(" "):""}n.d(t,{A:()=>r})},66090:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{O:()=>a});var a={isNumber:function(e){return a.isType(e,"number")},isString:function(e){return a.isType(e,"string")},isType:function(e,t){return r(e)===t}}},66122:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(32735);function a(e){return r.createElement("span",{id:"".concat(e.name,"Error"),className:"".concat(e.className," invalid-feedback d-block"),role:"status"},e.children)}},11904:(e,t,n)=>{n.d(t,{n:()=>S,W:()=>O});var r=n(32735),a=n(80247),o=n(50132),i=n(92802),c=n(79014),l=n(1048),s=n(28825),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function m(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,c=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return r.createElement(o.Z.Group,{className:"form-group"},r.createElement("div",{className:"form-check ".concat(i||"")},r.createElement(S,Object.assign({className:"form-check-input"},c)),r.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(n),htmlFor:c.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&r.createElement(r.Fragment,null,r.createElement("span",null," "),r.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var d=n(83914),p=n(83345),f={getCustomFormControlClassName:function(e,t,n,r,a,o){var c="";return c=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,i.u9)(t,n)&&(0,i.u9)(e,n)&&(c+=" is-invalid"),a&&(c+=" ".concat(a)),c}},g=n(35223);function v(e){var t=(0,i.u6)().values,n=l.t.get(t,e.fieldName);return"string"!=typeof n?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const b={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},E="shared.formField";function S(e){var t,n,o=e.children,s=e.showLoadingSpinner,u=y(e,["children","showLoadingSpinner"]),m=(t=r.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],f=m[1],v=c.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==u.type)return s?r.createElement("div",{className:"position-relative"},r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),v),r.createElement("div",{className:b.spinner},r.createElement(a.Z,{animation:"border",size:"sm"}))):r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),v);var E="position-relative ".concat(b.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(b.passwordContainerDisabled)),r.createElement("div",{className:E},r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(b.passwordInput," border-0 w-100 h-100 outline-none rounded")}),v),"password"===u.type&&r.createElement(d.x,{svgName:"password"===p?g.vn.VisibleOn:g.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(b.revealPassword),onClick:function(){f("password"===p?"text":"password")}}))}function O(e){var t=e.label,n=e.className,a=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,h=e.infoText,O=e.formSize,w=e.showOptionalLabel,C=e.formGroupClassname,I=e.labelClassName,x=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","formGroupClassname","labelClassName"]),N=(0,i.u6)(),j=N.errors,T=N.touched,k=function(){};if("checkbox"===x.type){var R=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(R.onChange=k),r.createElement(m,Object.assign({},R))}var A=Object.assign(Object.assign({},x),{className:f.getCustomFormControlClassName(j,T,x.name,O,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(A.onChange=k),r.createElement(o.Z.Group,{className:"form-group ".concat(C)},!!t&&r.createElement(o.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center ".concat(I)},t,c&&r.createElement("span",{className:"text-danger"},"*"),s&&r.createElement(d.x,{className:"svg-container text-secondary ".concat(b.infoTooltip),svgName:g.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),w&&r.createElement("span",{className:"text-secondary"}," ",r.createElement(p.x,{namespace:E,phrase:"optional"})),!!a&&!!x.maxLength&&r.createElement("div",{className:"ms-auto"},r.createElement(v,{fieldName:x.name,limit:x.maxLength}))),e.description&&r.createElement("p",null,e.description),r.createElement(S,Object.assign({},A,{"aria-errormessage":"".concat(x.name,"Error")})),!!h&&r.createElement(o.Z.Text,{className:"text-secondary"},h),r.createElement(i.Bc,{name:x.name},function(e){return r.createElement(o.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)}))}S.defaultProps={autoComplete:"off"},O.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>m,n:()=>u});var r=n(32735),a=n(92802),o=n(79014),i=n(1048);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function u(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,l=e.initialValues,u=e.onSubmit,m=s(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(n){Object.keys(t).forEach(function(r){t.hasOwnProperty(r)&&(i.t.isObject(n[r])?e(n[r]):null===t[r]&&delete t[r])})}(t),t}(l)):l,p={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:d,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,i=r.setFieldError,l=n&&e.validationSchema?e.validationSchema.cast(t):t;u(l,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.reset&&o(),e.errors)for(var t=0,n=Object.entries(e.errors);t<n.length;t++){var r=c(n[t],2),l=r[0],s=r[1];i(l,s)}a(!1)})},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function m(){return(0,a.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},75289:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(32735),a=n(83914);const o={circle:"Uxnsl",img:"BQ87Y"};function i(e){var t;return e.imageUrl||e.svgName?e.imageUrl?r.createElement("div",{className:"".concat(o.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):r.createElement("div",{className:"".concat(o.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},r.createElement(a.x,{svgName:e.svgName,size:e.svgSize})):r.createElement(r.Fragment,null)}i.defaultProps={textVariant:"white"}},19808:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},86764:(e,t,n)=>{var r;n.d(t,{r:()=>r}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(r||(r={}))},78417:(e,t,n)=>{var r;n.d(t,{r:()=>r}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},45778:(e,t,n)=>{n.d(t,{G:()=>a});var r=n(4594),a={isType:function(e,t){var n;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===r.E[t].toLowerCase()},isResource:function(e){return a.isType(e,r.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},81522:(e,t,n)=>{n.r(t),n.d(t,{GiveFeedbackView:()=>Rr});var r,a,o=n(32735),i=n(43823),c=n(53301),l=n.n(c),s=n(39202),u=n(23481),m=n(54150),d=n(32119),p=n(20354),f=n(49985),g=n(65858),v=n(29555),b=n(28046),h=n(77696),y=n(83345),E=n(52003),S=n(60735);!function(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"}(r||(r={})),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(a||(a={}));var O,w=n(12754),C=n(97395),I={presentationAudiences:function(e,t){var n=t||a.Subject.toLowerCase(),r={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:C._.urlBuilder("{gateway}/v1/users/me/audiences",r),publicUrl:C._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),r),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"{gateway}/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:C._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:a.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}};!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(O||(O={}));var x=n(62803),N=n(78417),j=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},T={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:C._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:C._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:C._.urlBuilder("{gateway}/v1/users/me/presentations/available",t),publicUrl:C._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:x.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:C._.urlBuilder("{gateway}/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:C._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"{gateway}/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,n){var r={type:n.toLowerCase(),contentRegion:t};return{url:C._.urlBuilder("/api/subjects/presentations/".concat(e),r),publicUrl:C._.urlBuilder("/api/subjects/presentations/".concat(e),r),key:"current:presentation:".concat(n.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var n={type:null==e?void 0:e.toLowerCase()};return{url:C._.urlBuilder("{gateway}/v1/users/me/presentations",n),publicUrl:C._.urlBuilder("/api/subjects/presentations/".concat(t),n),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:C._.urlBuilder("{gateway}/v1/users/me/classifications",{query:x.v.CLASSIFICATION_COLLECTION,type:a.Subject.toLowerCase()}),publicUrl:C._.urlBuilder("/api/subjects/classifications",{query:x.t.CLASSIFICATION_COLLECTION,type:a.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,n){return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e),{query:x.v.CLASSIFICATION(t)}),publicUrl:C._.urlBuilder("/api/subjects/classifications/".concat(e),{query:x.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}},path:function(e,t){var n={type:t};return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/path"),n),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},paths:function(e){return{url:"/api/subjects/classifications/".concat(e,"/paths"),key:"classification:".concat(e,":paths")}},children:function(e){return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/children"),{query:x.v.CLASSIFICATION_COLLECTION}),publicUrl:C._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:x.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var r="limit:100,orderbydesc:timestamp";n.length&&(r+=",".concat(j(n)));var a={query:"{".concat(r,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:N.r.StripMetadata};return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(O.PinnedVideos),a),publicUrl:C._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(O.PinnedVideos),a),key:"classification:".concat(e,":").concat(O.PinnedVideos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var r="limit:100,orderby:name";n.length&&(r+=",".concat(j(n)));var a={query:"{".concat(r,"}").concat(x.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:N.r.StripMetadata};return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(O.Playlists),a),publicUrl:C._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(O.Playlists),a),key:"classification:".concat(e,":").concat(O.Playlists,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter(function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url})})}}}},series:function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(j(n)));var a={query:"{".concat(r,"}").concat(x.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:N.r.StripMetadata};return{url:C._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(O.Series),a),publicUrl:C._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(O.Series),a),key:"classification:".concat(e,":").concat(O.Series,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter(function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url})})}}}},curriculumLinks:function(e,t){return{url:C._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:a.Curriculum.toLowerCase()}),publicUrl:C._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:a.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},subjectLinks:function(e,t){var n=C._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:a.Subject.toLowerCase()});return{url:n,publicUrl:n,key:"subject:links:".concat(e,":").concat(t),normalize:!1}},getMappedCurriculums:function(e,t){var n={type:a.Curriculum.toLowerCase()};return{url:C._.urlBuilder("{gateway}/v1/objects/".concat(e,"/presentations"),n),publicUrl:C._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},n),{pid:t})),key:"mapped:curriculums:".concat(e,":").concat(t.join(",")),normalize:!1}},regionAlternatives:function(e,t,n,r){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}},k=n(1666),R=n(99940),A={submitFeedback:function(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:R.k.POST,data:Object.assign(Object.assign({},e),t)}}},U=n(70145),F=n(31949),L=n(69883);function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _=n(35286),V=n(81886),B=n(16714),q=n(47663);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function D(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}var Q=u.T.encloseNamespace("shared.studentRestrictedDialogError"),Z=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=H(t),function(e,t){if(t&&("object"==G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,z()?Reflect.construct(t,n||[],H(e).constructor):t.apply(e,n))}(this,t,["Learner accessing feature that is for staff only"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"StudentRestrictedDialogError"}},{key:"dialogOptions",get:function(){return{title:Q("heading"),text:Q("description"),buttons:[{text:Q("close"),className:"btn btn-link",close:!0}]}}}])&&M(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(q.S),K=n(22902),X=n(57881),$=n(19808),Y=n(86613);function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ee,te={getUserInfo:function(e,t){return{id:e.id,username:e.username,email:e.email,userType:e.role===Y.i.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion,firstName:e.givenName,lastName:e.familyName}},mapInstanceRegionToTag:function(e){switch(e){case $.b.AU:return"au";case $.b.NZ:return"nz";case $.b.UK:return"uk";case $.b.US:return"us"}},getTags:function(e,t,n,r){var a,o=[t].concat(function(e){if(Array.isArray(e))return J(e)}(a=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());o.push(n?"student":"staff"),e.role===Y.i.Admin&&o.push("administrator");var i=te.mapInstanceRegionToTag(e.instanceRegion);return i&&o.push(i),o},categorizeFiles:function(e){return e.reduce(function(e,t){var n=t.get("fileInfo");return l().isValidFile(t.get("file"),b.l.VIDEO)?e.videoUrls.push(null==n?void 0:n.url):e.imageUrls.push(null==n?void 0:n.url),e},{imageUrls:[],videoUrls:[]})}},ne=n(11607),re=n(49439);!function(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"}(ee||(ee={}));var ae=u.T.encloseNamespace("shared.feedbackFormTitles"),oe=function(e){switch(e){case ee.SUGGEST_IMPROVEMENT:case ee.REPORT_BUG:case ee.REQUEST_VIDEO:case ee.REQUEST_LIVESTREAM:case ee.GIVE_PRAISE:case ee.RAISE_ISSUE:case ee.OTHER:return ae(e)}};function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function ce(e,t,n){return(t=function(e){var t=function(e){if("object"!=ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=ce(ce(ce(ce(ce(ce(ce({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"},ee.REQUEST_VIDEO,{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"}),ee.REQUEST_LIVESTREAM,{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"}),ee.SUGGEST_IMPROVEMENT,{default:"https://img.clickviewapp.com/v2/images/g7aR1l",hover:"https://img.clickviewapp.com/v2/images/zMR0Dk"}),ee.RAISE_ISSUE,{default:"https://img.clickviewapp.com/v2/images/5boW78",hover:"https://img.clickviewapp.com/v2/images/m6yRKr"}),ee.GIVE_PRAISE,{default:"https://img.clickviewapp.com/v2/images/nE1mdz",hover:"https://img.clickviewapp.com/v2/images/JjEnmR"}),ee.REPORT_BUG,{default:"https://img.clickviewapp.com/v2/images/AOdYpo",hover:"https://img.clickviewapp.com/v2/images/yro9NM"}),ee.OTHER,{default:"https://img.clickviewapp.com/v2/images/Eoaykj",hover:"https://img.clickviewapp.com/v2/images/wN59Zg"});const se={image:"_2jo0"};function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function me(e){var t,n,r=(t=(0,re.X)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1],c=le[e.option];return o.createElement(ne.L,{ref:a,className:"col-lg-4 col-sm-6 col-12",onClick:function(){return e.onSelectOption(e.option)}},o.createElement("div",{className:"d-flex flex-column align-items-center h-100 rounded border py-3 gap-2"},o.createElement("img",{className:se.image,src:i?c.hover:c.default,alt:oe(e.option)}),o.createElement("p",{className:"fw-semibold text-center mb-0"},oe(e.option))))}function de(e){return o.createElement("div",{className:"row g-2"},e.options.map(function(t){return o.createElement(me,{key:t,option:t,onSelectOption:e.onSelectOption})}))}var pe=n(92802),fe=n(82644),ge=n(13876),ve=u.T.encloseNamespace("shared.feedbackButtons");function be(e){var t=(0,fe.b)();return o.createElement(ge.u,null,"form"===e.formStage&&o.createElement(o.Fragment,null,!e.hideCancelButton&&o.createElement(ge.u.Cancel,{onClick:function(){return e.setSelectedOption(null)},text:ve("cancel")}),o.createElement(ge.u.Submit,{variant:"dark",text:e.submitText||ve("submit"),disabled:!t.isValid})),"success"===e.formStage&&o.createElement(ge.u.Cancel,{variant:"dark",text:ve("close"),onClick:e.closePopup}))}const he={successImage:"yp7vQ"};var ye=u.T.encloseNamespace("shared.feedbackFormState");function Ee(e){return"form"===e.formStage||"error"===e.formStage?o.createElement(o.Fragment,null):o.createElement("div",{className:"text-center"},o.createElement("div",{className:"mb-3"},o.createElement("img",{className:he.successImage,src:e.successImageUrl||le.mailSent})),o.createElement("h4",{className:"mb-3"},e.successHeading||ye("successHeading")),o.createElement("p",{className:"mb-3"},e.successDescription||ye("successDescription")))}var Se=n(5173),Oe=n(11904),we=u.T.encloseNamespace("shared.feedbackForm"),Ce=5e3,Ie=function(e){switch(e){case"requiredError":return we(e);case"minCharactersError":return we(e,{limit:10});case"maxCharactersError":return we("maxCharactersError",{limit:Ce})}},xe=function(){return Se.Z_().min(10,Ie("minCharactersError")).max(Ce,Ie("maxCharactersError"))},Ne=u.T.encloseNamespace("shared.feedbackGivePraise"),je={praise:""},Te=Se.Ry().shape({praise:xe().required(Ie("requiredError"))}).noUnknown();function ke(){var e=(0,fe.b)();return o.createElement(o.Fragment,null,o.createElement(Oe.W,{as:"textarea",placeholder:Ne("givePraisePlaceholder"),label:Ne("givePraiseLabel"),name:"praise",rows:5,value:e.values.praise,showRequiredStar:!0}))}function Re(e){return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},je),e.initialValues),validationSchema:Te,successImageUrl:le.heartHands,successHeading:Ne("successHeading"),successDescription:Ne("successDescription")}),o.createElement(ke,null))}var Ae=u.T.encloseNamespace("shared.feedbackOther"),Ue={feedback:""},Fe=Se.Ry().shape({feedback:xe().required(Ie("requiredError"))}).noUnknown();function Le(){var e=(0,fe.b)();return o.createElement(o.Fragment,null,o.createElement(Oe.W,{as:"textarea",placeholder:Ae("otherPlaceholder"),label:Ae("otherLabel"),name:"feedback",rows:5,value:e.values.feedback,showRequiredStar:!0}))}function Pe(e){return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},Ue),e.initialValues),validationSchema:Fe}),o.createElement(Le,null))}var _e=u.T.encloseNamespace("shared.feedbackRaiseIssue"),Ve={issue:""},Be=Se.Ry().shape({issue:xe().required(Ie("requiredError"))}).noUnknown();function qe(){var e=(0,fe.b)();return o.createElement(o.Fragment,null,o.createElement(Oe.W,{as:"textarea",placeholder:_e("raiseIssuePlaceholder"),label:_e("raiseIssueLabel"),name:"issue",rows:5,value:e.values.issue,showRequiredStar:!0}))}function Ge(e){return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},Ve),e.initialValues),validationSchema:Be}),o.createElement(qe,null))}var Me=n(83914);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function ze(e,t,n){return(t=function(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He,We=ze(ze(ze(ze({},$.b.AU,{phone:"02 9509 2600",email:"support@clickview.com.au",website:"https://www.clickviewsupport.com/hc"}),$.b.UK,{phone:"+44 (0)333 207 6595",email:"info@clickview.co.uk",website:"https://www.clickviewsupport.com/hc"}),$.b.NZ,{phone:"09 916 1156",email:"support@clickview.co.nz",website:"https://www.clickviewsupport.com/hc"}),$.b.US,{phone:"+1 312-292-9322",email:"info@clickvieweducation.com",website:"https://www.clickviewsupport.com/hc"}),Qe=n(35223),Ze=n(58591),Ke=n(66122);!function(e){e.FileSelect="file-select",e.DragDrop="drag-drop"}(He||(He={}));const Xe={fileDrop:"vdCUc",resourcePreview:"tZQbH"};function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ye="shared.feedbackFileUpload";function Je(e){var t=(0,Ze.uI)({onDrop:function(t){return e.onFilesAdded(t,He.DragDrop)},noClick:!0,noKeyboard:!0,multiple:!!e.acceptMultiple,noDragEventsBubbling:!0}),n=t.getRootProps,r=t.getInputProps,a=t.isDragActive,i=o.useRef(null),c=o.useCallback(function(e){e&&(i.current=e)},[]),l="".concat(Xe.fileDrop," text-center p-2 rounded-1");return e.uploadError&&(l+=" border-red"),a&&(l+=" border-blue bg-light-blue"),o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},n({className:l})),o.createElement("img",{className:Xe.resourcePreview,src:e.imageUrl,draggable:!1}),o.createElement("div",{className:"position-relative"},a&&o.createElement("p",{className:"position-absolute font-size-md translate-middle top-50 start-50 mb-0"},o.createElement(y.x,{namespace:Ye,phrase:"dropUpload"})),o.createElement("div",{className:a?"opacity-0":""},o.createElement("p",{className:"mb-0"},o.createElement(y.x,{namespace:Ye,phrase:"dragDrop"})),o.createElement("button",{type:"button",className:"btn btn-link text-underline p-0",onClick:function(){i.current.value=null,i.current.click()}},o.createElement(y.x,{namespace:Ye,phrase:"upload"})))),o.createElement("input",{type:"file",name:"fileUpload",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:c,onChange:function(t){return e.onFilesAdded(function(e){if(Array.isArray(e))return $e(e)}(n=t.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return $e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),He.FileSelect);var n},"aria-errormessage":"fileUploadError"}),o.createElement("input",Object.assign({},r()))),e.uploadError&&o.createElement(Ke.A,{name:"fileUpload"},e.uploadError))}const et={progress:"PeDF6"};function tt(e){var t=100===e.upload.progress;return o.createElement(o.Fragment,null,o.createElement("div",null,o.createElement(Me.x,{svgName:Qe.vn.Folder,className:"svg-container me-2"}),o.createElement("span",{className:"align-middle"},e.upload.name),t&&o.createElement(Me.x,{svgName:Qe.vn.Check,className:"svg-container float-end text-success"}),!t&&o.createElement("div",{role:"button","aria-label":"close",onClick:function(){return e.cancelUpload(e.upload.id)},className:"float-end description"},o.createElement(Me.x,{svgName:Qe.vn.Close}))),o.createElement("div",{className:"".concat(et.progress," progress my-2")},o.createElement("div",{className:"progress-bar bg-blue",role:"progressbar",style:{width:"".concat(e.upload.progress,"%")},"aria-valuenow":e.upload.progress,"aria-valuemin":0,"aria-valuemax":100})))}function nt(e){var t;return(null===(t=e.uploads)||void 0===t?void 0:t.length)?o.createElement(o.Fragment,null,e.uploads.map(function(t,n){return o.createElement(tt,{key:n,upload:t,cancelUpload:e.cancelUpload})})):o.createElement(o.Fragment,null)}function rt(e){return o.createElement("div",{className:"bg-gray-100 rounded p-2"},o.createElement(Me.x,{className:"d-inline-block align-middle svg-container icon-purple me-2",svgName:Qe.vn.FileImg}),o.createElement("span",{className:"align-middle"},e.file.get("name")),o.createElement("button",{className:"btn p-0 border-0 float-end",onClick:function(){return e.deleteFile(e.file.get("id"))}},o.createElement(Me.x,{svgName:Qe.vn.Delete})))}function at(e){return o.createElement("div",{className:"d-flex flex-column gap-2"},e.uploadedFiles.map(function(t){return o.createElement(rt,{key:t.id,file:t,deleteFile:e.deleteFile})}))}var ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},it="shared.feedbackReportBug",ct=u.T.encloseNamespace(it),lt={issue:"",stepsToReproduce:""},st=Se.Ry().shape({issue:xe().required(Ie("requiredError")),stepsToReproduce:xe()}).noUnknown();function ut(e){var t=(0,fe.b)();return o.createElement(o.Fragment,null,o.createElement("div",{className:"form-group"},o.createElement("label",{className:"form-label mb-1"},o.createElement(y.x,{namespace:it,phrase:"mixedMediaLabel"})),o.createElement("p",{className:"text-secondary font-size-sm"},o.createElement(y.x,{namespace:it,phrase:"mixedMediaDescription"})),o.createElement("div",{className:"mb-3"},o.createElement(Je,{mimeType:b.l.MIXED_MEDIA,onFilesAdded:e.onFilesAdded,imageUrl:e.previewImageUrl,uploadError:e.uploadError,acceptMultiple:!0})),o.createElement(nt,{uploads:e.uploadingFiles,cancelUpload:e.cancelUpload}),o.createElement(at,{uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile})),o.createElement(Oe.W,{as:"textarea",placeholder:ct("issuePlaceholder"),label:ct("issueLabel"),name:"issue",value:t.values.issue,showRequiredStar:!0}),o.createElement(Oe.W,{as:"textarea",placeholder:ct("stepsPlaceholder"),label:ct("stepsLabel"),name:"stepsToReproduce",value:t.values.stepsToReproduce}),o.createElement("div",{className:"rounded bg-light-yellow p-2 mb-3"},o.createElement("p",{className:"fw-semibold mb-2"},o.createElement(y.x,{namespace:it,phrase:"help"})),o.createElement("div",{className:"d-flex gap-1 mb-2"},o.createElement(Me.x,{svgName:Qe.vn.Link}),o.createElement("a",{href:We[e.instanceRegion].website,target:"_blank",className:"text-underline"},o.createElement(y.x,{namespace:it,phrase:"visitHelpCentre"}))),o.createElement("p",{className:"mb-2"},o.createElement(y.x,{namespace:it,phrase:"supportTeam"})),o.createElement("div",{className:"d-flex gap-1 mb-2"},o.createElement(Me.x,{svgName:Qe.vn.Phone}),o.createElement("span",null,We[e.instanceRegion].phone)),o.createElement("div",{className:"d-flex gap-1 mb-2"},o.createElement(Me.x,{svgName:Qe.vn.Email}),o.createElement("span",null,We[e.instanceRegion].email))))}function mt(e){var t=e.onFilesAdded,n=e.cancelUpload,r=e.uploadingFiles,a=e.uploadedFiles,i=e.deleteFile,c=ot(e,["onFilesAdded","cancelUpload","uploadingFiles","uploadedFiles","deleteFile"]);return o.createElement(br,Object.assign({},c,{initialValues:Object.assign(Object.assign({},lt),e.initialValues),validationSchema:st,submitText:ct("submit")}),o.createElement(ut,{onFilesAdded:t,previewImageUrl:le.mediaPreview,cancelUpload:n,uploadingFiles:r,uploadedFiles:a,deleteFile:i,uploadError:e.uploadError,instanceRegion:e.instanceRegion}))}var dt=n(75896),pt=n(79014),ft=n(4594),gt=n(76881),vt=n(37751);function bt(e){switch(e){case vt.R.Pink:return"pink";case vt.R.Orange:return"orange";case vt.R.Green:return"green";case vt.R.Blue:return"blue";case vt.R.Purple:return"purple";case vt.R.Indigo:return"indigo";default:return"pink"}}var ht=n(45778),yt=n(64818),Et=n(80247);const St={avatar:"srrS3"};function Ot(e){var t=e.imageUrl,n=e.initials,r={};return t&&(r.backgroundImage="url('".concat(t,"')")),o.createElement("div",{className:St.avatar,style:r},t?o.createElement(o.Fragment,null," "):n)}var wt=n(26354);const Ct={svgContainer:"laVU4",selection:"vEOCt",expander:"d1NHd",iconContainer:"rFH4W",icon:"BarYz",bubble:"HF0E8",spinnerContainer:"iKeXW",remove:"pyzCM",removeBubble:"mgt6Y"};var It=u.T.encloseNamespace("shared.inputSelection");function xt(e){var t,n="".concat(Ct.svgContainer," ").concat(Ct.icon);return e.typeId===ft.E.Classroom?n+=" text-teal":n+=" text-".concat(bt(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function Nt(e){var t,n=function(e){var t;switch(e.typeId){case ft.E.Classroom:return"text-teal-hover";case ft.E.ClassroomGroup:return"text-".concat(bt(null===(t=e.metadata)||void 0===t?void 0:t.colour),"-hover")}}(e.selection),r=e.selection.typeId===ft.E.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===ft.E.User){var a=e.selection;return o.createElement("div",{className:Ct.svgContainer},o.createElement(Ot,{imageUrl:null===(t=a.avatar)||void 0===t?void 0:t.url,initials:yt.l.getInitials(e.selection.name,e.selection.surname)}))}return o.createElement(wt.u,{title:It(r?"emptyClassroom":"emptyGroup")},o.createElement("div",{className:"align-items-center border border-white bg-white ".concat(Ct.iconContainer)},o.createElement(Me.x,{className:xt(e.selection),svgName:r?Qe.vn.Classrooms:Qe.vn.Group})))}return e.hasExpanded?o.createElement("div",{className:"d-flex align-items-center text-white ".concat(Ct.spinnerContainer," ").concat(Ct.svgContainer)},o.createElement(Et.Z,{as:"div",size:"sm",animation:"border",role:"status"})):o.createElement(o.Fragment,null,o.createElement(ne.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat(Ct.expander," ").concat(n),onClick:e.onClickExpand},o.createElement(Me.x,{svgName:Qe.vn.Plus,className:"d-flex align-items-center ".concat(Ct.svgContainer)})),o.createElement("div",{className:"align-items-center border border-white bg-white ".concat(Ct.iconContainer)},o.createElement(Me.x,{className:xt(e.selection),svgName:r?Qe.vn.Classrooms:Qe.vn.Group})))}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kt(e){var t;if(!e.typeId)return"ultramarine";switch(e.typeId){case ft.E.User:return"number"==typeof e.userType?2===e.userType?"ultramarine":"indigo":e.userType===gt.Y.Learner?"ultramarine":"indigo";case ft.E.Classroom:return"teal";case ft.E.ClassroomGroup:return bt(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function Rt(e){var t,n,r,a=ht.G.isType(e.selection,ft.E.Classroom),i=ht.G.isType(e.selection,ft.E.ClassroomGroup),c=e.onClickExpand&&(a||i),l=!!(null===(t=e.selection.users||e.selection.enrolments)||void 0===t?void 0:t.count),s=!!(null===(r=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length),u=jt(o.useState(!1),2),m=u[0],d=u[1],p=jt(o.useState(c&&l),2),f=p[0],g=p[1];if(o.useEffect(function(){g(c&&l)},[c,l]),s){var v=e.selection,b=kt(e.selection);return o.createElement("div",{className:"d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-".concat(b," text-").concat(b," ").concat(Ct.bubble)},v.users.data.map(function(t){return o.createElement(At,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:b,hasStudentExperience:e.hasStudentExperience})}),o.createElement(ne.L,{className:"cursor-pointer position-absolute text-".concat(b," ").concat(Ct.removeBubble),onClick:function(){return e.onClickRemove(e.selection)}},o.createElement(Me.x,{svgName:Qe.vn.Close,className:"d-flex align-items-center ".concat(Ct.svgContainer)})))}return o.createElement(At,{selection:e.selection,canExpand:f,hasExpanded:m,onClickExpand:function(){d(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:kt(e.selection),hasStudentExperience:e.hasStudentExperience})}function At(e){var t=e.colourVariant||kt(e.selection),n=e.selection.name;return e.selection.typeId===ft.E.User&&(n=e.hasStudentExperience?yt.l.getDisplayName(e.selection):yt.l.getFullName(e.selection)),o.createElement("div",{className:"".concat(Ct.selection," bg-").concat(t," rounded-pill text-").concat(t," d-flex align-items-center me-1 mt-1 overflow-hidden")},!e.hideExpander&&o.createElement(Nt,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),o.createElement("span",{className:"mx-1 text-white text-truncate"},n),pt.q.isFunction(e.onClickRemove)&&o.createElement(ne.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat(Ct.remove),onClick:function(){return e.onClickRemove(e.selection)}},o.createElement(Me.x,{svgName:Qe.vn.Close,className:"d-flex align-items-center ".concat(Ct.svgContainer)})))}var Ut=n(75289);const Ft={removeRecipient:"mCbMC",recipientItem:"kdcb0",showSpinner:"xH6Mu",avatarContainer:"Zcpg3",recipientDetails:"v5EmV",recipientDetailsWithRemoveButton:"_V928"};var Lt="shared.classroomGroupRecipientItemMetadata";function Pt(e){var t;return o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(Ft.avatarContainer," d-inline-block")},o.createElement(Ut.f,{svgName:Qe.vn.Group,variant:bt(null===(t=e.classroomGroup.metadata)||void 0===t?void 0:t.colour)})),o.createElement("div",{className:e.detailsClassName},o.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroomGroup.name),o.createElement("p",{className:"text-secondary m-0"},function(e){var t,n,r,a=null!==(n=null===(t=e.users)||void 0===t?void 0:t.count)&&void 0!==n?n:0,o=null===(r=e.classroom)||void 0===r?void 0:r.name;return o?u.T.getPhrase(Lt,"subheading",{classroomName:o,smartCount:a}):""}(e.classroomGroup))))}var _t="shared.classroomRecipientItemMetadata";function Vt(e){return o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(Ft.avatarContainer," d-inline-block")},o.createElement(Ut.f,{svgName:Qe.vn.Classrooms,variant:"teal"})),o.createElement("div",{className:e.detailsClassName},o.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroom.name),o.createElement("p",{className:"text-secondary m-0"},(i=null!==(r=null===(n=(t=e.classroom).users)||void 0===n?void 0:n.count)&&void 0!==r?r:null===(a=t.enrolments)||void 0===a?void 0:a.count,Number.isInteger(i)?u.T.getPhrase(_t,"subheading",{smartCount:i}):""))));var t,n,r,a,i}var Bt=n(31453),qt=n(76198),Gt=u.T.encloseNamespace("shared.analyticsUtils");function Mt(e,t){return e?t?(0,qt._8)((n=e.id,r=e.sessionId,a=+"".concat(n||function(e){if(!e)return 0;for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}(r)).concat(Math.floor((new Date).getMinutes()/5)),{dictionaries:[qt.O9,qt.yd],separator:" ",length:2,style:"capital",seed:a})):e.deleted?Gt("deleted"):yt.l.getFullName(e)||Gt("anonUser"):Gt("anonUser");var n,r,a}var Dt=n(29427),zt=u.T.encloseNamespace("shared.userRecipientItemMetadata");function Ht(e){var t=function(e){var t,n=e.user,r=e.anonymiseUsers,a=e.showDisplayName;if(n.sessionId||n.deleted){var o=Mt(n,r),i=o.split(" ").filter(function(e){return!!e});return{name:o,surname:i.slice(1).join(" "),avatarUrl:null}}return{name:r?Mt(n,!0):a?yt.l.getDisplayName(n):yt.l.getFullName(n),surname:n.surname,avatarUrl:null===(t=n.avatar)||void 0===t?void 0:t.url}}(e),n=t.name,r=t.surname,a=t.avatarUrl;return o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(Ft.avatarContainer," ").concat(e.avatarClassName," d-inline-block flex-shrink-0")},o.createElement(Dt.q,{imageUrl:a,imageCdnUrl:e.imageCdnUrl,initials:yt.l.getInitials(n,r),showAnonymousUser:!(e.anonymiseUsers||!e.user.sessionId&&!e.user.deleted),anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:Me.S.Small})),o.createElement("div",{className:e.detailsClassName},o.createElement("h4",{className:(0,Bt.A)("font-size-normal fw-normal m-0",e.nameClassName)},n),e.showSubText&&"id"in e.user&&o.createElement("p",{className:"text-secondary m-0"},e.getSubText?e.getSubText(e.user):function(e){var t=yt.l.getUserType(e),n=yt.l.getUserRole(e);if(t===gt.Y.Staff)return n===Y.i.Admin?zt("admin"):zt("staff");var r=yt.l.getYearGroup(e);return(null==r?void 0:r.name)&&"Learners"!==r.name?r.name:zt("student")}(e.user))))}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ht.defaults={showSubText:!0};var Qt=u.T.encloseNamespace("share.recipientItem");function Zt(e){switch(e){case ft.E.User:return Qt("removeUser");case ft.E.Classroom:return Qt("removeClassroom");case ft.E.ClassroomGroup:return Qt("removeGroup")}return null}function Kt(e){var t,n,r=(t=o.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Wt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wt(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1],c="".concat(Ft.recipientItem," d-flex");a&&(c+=" ".concat(Ft.showSpinner));var l="".concat(e.removeRecipient?Ft.recipientDetailsWithRemoveButton:Ft.recipientDetails," d-inline-block ms-2");return o.createElement("div",{className:c},ht.G.isType(e.entity,ft.E.User)?o.createElement(Ht,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:l,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0}):ht.G.isType(e.entity,ft.E.Classroom)?o.createElement(Vt,{classroom:e.entity,detailsClassName:l}):ht.G.isType(e.entity,ft.E.ClassroomGroup)?o.createElement(Pt,{classroomGroup:e.entity,detailsClassName:l}):void 0,pt.q.isFunction(e.removeRecipient)&&o.createElement("div",{className:"".concat(Ft.removeRecipient," d-inline-flex justify-content-center align-items-center")},a?o.createElement(Et.Z,{as:"div",size:"sm",animation:"border",role:"status"}):o.createElement(wt.u,{title:Zt(e.entity.typeId),spanHack:!0},o.createElement("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:function(){i(!0),e.removeRecipient(e.entity.id,function(){return i(!1)})}}))))}var Xt=n(8952),$t=n(42648),Yt=n(1048);const Jt={inputWithoutHighlight:"cKcry",suggestionsContainerOpen:"avM9L",sectionContainer:"u35Wz",suggestionHighlighted:"gFitp",clearButton:"TAoT9",inputWithLeftIcon:"Rt24D",inputWithRightIcon:"pxKzq",inputWithTwoRightIcons:"Oerjh",iconContainer:"h8OBl",leftIconContainer:"L5mrV",rightIconContainer:"V23aG"};var en=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function tn(e,t,n,r,a){var o="form-control text-truncate";return n||(o+=" ".concat(Jt.inputWithoutHighlight)),"left"===e&&(o+=" ".concat(Jt.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t||t)&&(o+=" ".concat(Jt.inputWithRightIcon)),"right"===e&&t&&(o+=" ".concat(Jt.inputWithTwoRightIcons)),"lg"===a&&(o+=" form-control-lg"),"sm"===a&&(o+=" form-control-sm"),r&&(o+=" ".concat(r)),o}function nn(e){var t="d-inline-block svg-container";return pt.q.isFunction(e)?t+" cursor-pointer":t}function rn(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.showClearInputIcon,a=e.onClickClearInput,i=e.highlightOnFocus,c=e.className,l=e.formSize,s=en(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return o.createElement("div",{className:"d-inline-block"},o.createElement(Me.x,{svgName:Qe.vn.Search,size:Me.S.Standard,onClick:t,className:nn(t)}))};return o.createElement("div",{className:"position-relative ".concat(Jt.inputContainer)},"left"===n&&o.createElement("div",{className:"".concat(Jt.iconContainer," ").concat(Jt.leftIconContainer)},o.createElement(u,null)),o.createElement("input",Object.assign({className:tn(n,r,i,c,l)},s)),("right"===n||!!r)&&o.createElement("div",{className:"".concat(Jt.iconContainer," ").concat(Jt.rightIconContainer)},!!r&&o.createElement(function(){return o.createElement("button",{className:"d-inline-block text-secondary ".concat(Jt.clearButton),onMouseUp:a},o.createElement(Me.x,{svgName:Qe.vn.Close,size:Me.S.Standard,className:nn(a)}))},null),"right"===n&&o.createElement(u,null)))}var an,on=n(86764),cn=n(3747),ln=n(2948),sn=n(66090);function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function mn(e){return function(e){if(Array.isArray(e))return pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){if(e){if("string"==typeof e)return pn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fn(e,t,n){return(t=function(e){var t=function(e){if("object"!=un(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==un(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){return fn(fn(fn(fn({},an.Recent,t),an.Local,e),an.Remote,[]),an.Generic,[])}function vn(e,t){return Yt.t.isObject(e)&&e.hasOwnProperty(t)&&sn.O.isString(e[t])}function bn(e,t,n,r){var a=e.trim().toLowerCase();return a.length<r?[]:t.filter(function(e){return!(!vn(e,n)||!sn.O.isString(e[n]))&&e[n].trim().toLowerCase().includes(a)})}function hn(e,t){e(Object.assign(Object.assign({},gn([],[])),fn({},an.Generic,[{type:t,generic:!0}])))}function yn(e,t,n){var r=pt.q.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;r.length||!t.getEmptyStateComponent?n(function(e){return Object.assign(Object.assign({},e),fn(fn({},an.Remote,r),an.Generic,[]))}):hn(n,"empty")}function En(e,t,n){return function(r){var a,o,i=r.value,c=r.reason;if((null===(o=null===(a=e.allowableSuggestionFetchRequestedReasons)||void 0===a?void 0:a.includes(c))||void 0===o||o)&&(i.length||n(),!(i.length<e.activationLength))){if(e.local){var l=pt.q.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):bn(i,e.local,e.valueKey,e.activationLength);if(!l.length&&e.getEmptyStateComponent)return void hn(t,"empty");t(function(e){return Object.assign(Object.assign({},e),fn(fn({},an.Local,l),an.Generic,[]))})}if("function"==typeof e.handleFetchSuggestions)return e.replacePreviousRemoteSuggestions?t(function(e){return Object.assign(Object.assign({},gn([],[])),fn({},an.Remote,e.remote))}):hn(t,"loading"),void e.handleFetchSuggestions(i,function(n){return yn(n,e,t)},function(){return hn(t,"errored")});var s,u,m,d,f,g,v;e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t(function(e){return Object.assign(Object.assign({},gn([],[])),fn({},an.Remote,e.remote))}):hn(t,"loading"),s=e.getRemoteUrl,u=i,m=function(n){return yn(n,e,t)},d=function(){hn(t,"errored")},f=e.requestHeaders,g=e.getRemotePostBody,(v=pt.q.isFunction(s)&&s(u))&&(g?p.a.ajaxRequest({resource:v,type:R.k.POST,success:m,error:d,headers:f,data:g(u)}):p.a.ajaxRequest({resource:v,type:R.k.GET,success:m,error:d,headers:f})))}}}function Sn(e,t){return vn(t,e)?o.createElement(o.Fragment,null,t[e]):o.createElement(o.Fragment,null)}function On(e,t){return"number"==typeof t||"boolean"==typeof t?t:t[e]||!1}function wn(e,t){return"boolean"==typeof t||e.length<=t?e:e.slice(0,t)}function Cn(e){return e.data}function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||xn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Generic="generic"}(an||(an={}));var jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Tn="shared.searchBar",kn=pt.q.isFunction;function Rn(e){return e.renderAsForm?o.createElement("form",{onSubmit:e.onSubmit},e.children):o.createElement("div",{className:"w-100"},e.children)}function An(e){var t=gn(e.initialLocalSuggestions,e.recentSearches),n=In(o.useState(e.initialQuery||""),2),r=n[0],a=n[1],i=In(o.useState(t),2),c=i[0],l=i[1],s=o.useMemo(function(){return function(e,t,n,r,a,o){var i=function(t){var n=e[t];return n?n.map(function(e){return Object.assign(Object.assign({},e),{suggestionType:t})}):[]},c=i(an.Recent),l=i(an.Local),s=i(an.Remote),u=i(an.Generic);if(u.length)return[{data:u,suggestionType:an.Generic}];if(pt.q.isFunction(r))return r([].concat(mn(l),mn(s),mn(c)));var m=[];return(null==l?void 0:l.length)&&m.push({title:t,data:wn(l,On(an.Local,a)),suggestionType:an.Local}),(null==s?void 0:s.length)&&m.push({title:t,data:wn(s,On(an.Remote,a)),suggestionType:an.Remote}),(null==c?void 0:c.length)&&m.push({title:n,data:wn(c,On(an.Recent,a)),suggestionType:an.Recent}),"function"==typeof o?o(m):m}(c,e.suggestionsHeading,e.recentSearchHeading||u.T.getPhrase(Tn,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections)},[c]);o.useEffect(function(){Yt.t.isEqual(t,c)||r&&r.length>=(null==e?void 0:e.activationLength)||l(t)},[t]),o.useEffect(function(){"function"==typeof e.onSuggestionUpdated&&e.onSuggestionUpdated(s)},[s]);var m=o.useRef(null),d=o.useRef(!1);!function(e){var t,n,r=(t=(0,ln.D)("lite:search:bar:focus",{focus:!1}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||dn(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1];o.useEffect(function(){a.focus&&(null==e?void 0:e.current)&&(e.current.focus(),i({focus:!1}))},[a.focus]),a.focus}(m);var p=In(o.useState(e.initialQuery||""),2),f=p[0],g=p[1],v=In(o.useState("none"),2),b=v[0],h=v[1],y=(0,cn.a)(on.r.XS);o.useEffect(function(){e.resetSuggestionsOnNoActivation&&r&&(r.length>=e.activationLength||E())},[r]),o.useEffect(function(){if(!r.length){var t=gn(e.initialLocalSuggestions,e.recentSearches);l(t)}},[e.initialLocalSuggestions,e.recentSearches]),o.useEffect(function(){var t=e.initialQuery||"";r!==t&&(a(t),g(t))},[e.initialQuery]),o.useEffect(function(){m.current&&e.autoFocusInput&&m.current.focus()},[e.autoFocusInput]);var E=function(){var t=gn(e.initialLocalSuggestions,e.recentSearches);l(t)},S=function(){a(""),g("")};!function(e,t,n,r,a){o.useEffect(function(){e&&!e.current&&(e.current={resetQuery:t,setQuery:n,focusInput:r,blurInput:a})},[null==e?void 0:e.current])}(e.controlsRef,S,a,function(){var e;null===(e=m.current)||void 0===e||e.focus()},function(){var e;null===(e=m.current)||void 0===e||e.blur()});var O,w,C,I,x,N=function(){h("none")},j=function(t){t.preventDefault(),kn(e.onSubmit)&&e.onSubmit(r,m.current),e.clearQueryOnSelect&&S()},T=o.useMemo(function(){return e.debounceTime?pt.q.debounce(En(e,l,E),e.debounceTime):En(e,l,E)},[e.debounceTime].concat(function(e){if(Array.isArray(e))return Nn(e)}(O=e.onSuggestionDependencies)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(O)||xn(O)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));function k(){return"boolean"==typeof e.alwaysRenderSuggestions?e.alwaysRenderSuggestions:!!(e.alwaysRenderSuggestionsWhenFocused&&r.length>=e.activationLength)&&document.activeElement===m.current}return o.createElement(Rn,{onSubmit:j,renderAsForm:!!e.renderAsForm},o.createElement(Xt,Object.assign({ref:function(e){null===e||m.current||(m.current=e.input)},suggestions:s,onSuggestionsFetchRequested:T,onSuggestionHighlighted:function(t){var n=t.suggestion;("none"!==b||n)&&(d.current&&e.onArrowKeyUpOrDown&&(d.current=!1,e.onArrowKeyUpOrDown()),h(n?"suggestion":"custom"))},onSuggestionsClearRequested:function(){k()||E()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.generic||(e.clearQueryOnSelect&&S(),e.onSuggestionSelected(r,m.current,t))},getSuggestionValue:function(t){return function(t){return kn(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}(t)?function(e,t){return vn(t,e)?t[e]:""}(e.valueKey,t):r},renderSuggestion:function(t,n){if(t.generic){if("empty"===t.type)return r.length>=e.activationLength&&kn(e.getEmptyStateComponent)?e.getEmptyStateComponent(r):o.createElement(o.Fragment,null);if("errored"===t.type&&kn(e.getErrorStateComponent)){var a=En(e,l,E);return e.getErrorStateComponent(function(){return a({value:r,reason:"input-changed"})})}if("loading"===t.type)return i=e.loadingComponentClassName,o.createElement("div",{className:"d-flex justify-content-center cursor-default ".concat(null!=i?i:""),onClick:function(e){e.stopPropagation()}},o.createElement(Et.Z,{as:"span",animation:"border",role:"status"}))}var i;return kn(e.getSuggestionComponent)?e.getSuggestionComponent(t,n):Sn(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,a=n.ref,i=jn(n,["ref"]);if(!e.customScrollbarProps){var l={suggestions:c,query:r,isDropdownOpen:!!t.children};return o.createElement("div",Object.assign({ref:a},i,{onMouseOut:N}),t.children,e.getCreateComponent&&e.getCreateComponent(Object.assign({userInput:f,isActive:"custom"===b,resetQuery:S,resetSuggestions:E},l)),e.getFooterComponent&&e.getFooterComponent(l))}return o.createElement($t.ZP,Object.assign({ref:a},e.customScrollbarProps,i),t.children)},alwaysRenderSuggestions:k(),focusInputOnSuggestionClick:!y&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":"".concat(e.id,"Error"),"aria-label":e.label,placeholder:e.placeholder||u.T.getPhrase(Tn,"placeholder"),value:r,onChange:function(t,n){var r=n.newValue,o=n.method;"type"===o&&g(r),("escape"!==o||(h("none"),null==e?void 0:e.resetQueryOnEscape))&&(["up","down"].includes(o)||(a(r),kn(e.onQueryChange)&&e.onQueryChange(r)))},onKeyDown:function(t){"Backspace"!==t.key||!e.onBackspace||r?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(d.current=!0):e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&j,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!r.length,onClickClearInput:function(){S(),e.resetSuggestionsOnClear&&E(),kn(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size,onBlur:function(){e.onBlur&&e.onBlur(r)},onFocus:function(){e.onFocus&&e.onFocus(r)},disabled:e.disabled},renderInputComponent:rn,theme:(w=e.theme,C=!!c.generic.length,I="function"==typeof w?w(C):w,x=function(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(Jt.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":Jt.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(Jt.sectionContainer)}}(C),Object.assign(x,I)),multiSection:!0,renderSectionTitle:function(t){return kn(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):function(e,t){if(e.title)return o.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},o.createElement("strong",null,e.title))}(t,e.sectionTitleClassName)},getSectionSuggestions:Cn},e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return kn(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(r):e.renderSuggestionsOnInputFocus}}:{})))}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}An.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};var Fn=function(e,t){var n,r,a=(n=o.useState(e),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Un(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Un(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],c=a[1];return o.useEffect(function(){var n=setTimeout(function(){return c(e)},t);return function(){return clearTimeout(n)}},[e,t]),i};const Ln={emptyState:"bKTf0"};var Pn="shared.typeaheadEmptyState";function _n(e){var t=e.query,n=void 0===t?"":t,r=e.imageUrl,a=Fn(n,300);return o.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},o.createElement("img",{alt:"",role:"presentation",src:r,className:"pb-2 ".concat(Ln.emptyState)}),o.createElement("h2",{role:"status",className:"h6"},o.createElement(y.x,{namespace:Pn,phrase:"noResults",options:{query:a,smartCount:a.length}})))}const Vn={emptyState:"k5mEG"};var Bn="shared.typeaheadErrorState";function qn(e){return o.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},o.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(Vn.emptyState)}),o.createElement("h2",{className:"h6",role:"alert"},o.createElement(y.x,{namespace:Bn,phrase:"error"})),o.createElement(ne.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},o.createElement(y.x,{namespace:Bn,phrase:"tryAgain"})))}const Gn={container:"Dc3kX",suggestionsContainerOpen:"c5t3e",selectionContainer:"kFjoN",sectionContainer:"mLrE3"};var Mn="shared.tokenizedTypeahead";function Dn(e){var t;return o.createElement("div",{className:"form-control h-auto d-flex align-items-top position-relative ".concat(e.hideIcon?"":"py-1 px-0"," ").concat(e.className)},!e.hideIcon&&o.createElement(Me.x,{className:"svg-container m-1",svgName:Qe.vn.Search}),o.createElement("div",{className:"".concat(Gn.selectionContainer," d-flex flex-wrap align-items-center mt-n1")},e.selections.map(function(t){return e.getInputTokenComponent?e.getInputTokenComponent(t):o.createElement(Rt,{key:t.id,selection:t,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience})}),o.createElement(An,Object.assign({},e,{onBackspace:function(){e.selections.length&&e.removeSelection(dt.m.last(e.selections))},recentSearchHeading:e.recentSearchHeading||u.T.getPhrase(Mn,"recentSearchHeading"),placeholder:(null===(t=e.selections)||void 0===t?void 0:t.length)?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:function(t){return e.getSuggestionComponent?e.getSuggestionComponent(t):o.createElement(Kt,{entity:t,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience})},getEmptyStateComponent:function(t){if(e.getEmptyStateComponent)return e.getEmptyStateComponent(t);e.emptyStateImageUrl&&o.createElement(_n,{query:t,imageUrl:e.emptyStateImageUrl})},getErrorStateComponent:function(t){return o.createElement(qn,{imageUrl:e.errorStateImageUrl,onClickTryAgain:t})},theme:{container:Gn.container,suggestionsContainerOpen:"bg-white py-1 rounded border mt-1 ".concat(Gn.suggestionsContainerOpen),sectionContainer:"border-bottom py-1 ".concat(Gn.sectionContainer)},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]}))),!!e.sharePermissionsDescription&&o.createElement("span",{className:"px-2 text-secondary text-nowrap"},e.sharePermissionsDescription))}Dn.defaultProps={renderSuggestionsOnInputFocus:!0};var zn="shared.feedbackRequestLivestream",Hn=u.T.encloseNamespace(zn),Wn={topic:"",studentLevel:[],producerCompany:"",additionalInfo:""},Qn=Se.Z_().max(Ce,Ie("maxCharactersError")),Zn=Se.Ry().shape({producerCompany:Qn.required(function(){return Hn("companyError")}),topic:Qn,studentLevel:Se.IX(Se.Z_()),additionalInfo:xe()}).noUnknown();function Kn(e){var t=(0,fe.b)(),n=t.values.studentLevel.map(function(t){return e.audiences.find(function(e){return e.name===t})})||[];function r(e){t.setFieldValue("studentLevel",dt.m.addOrRemoveImmutable(t.values.studentLevel,e.name)),requestAnimationFrame(function(){return t.setFieldTouched("studentLevel")})}return o.createElement(o.Fragment,null,o.createElement(Oe.W,{placeholder:Hn("companyPlaceholder"),label:Hn("companyLabel"),name:"producerCompany",value:t.values.producerCompany,showRequiredStar:!0}),o.createElement(Oe.W,{placeholder:Hn("topicPlaceholder"),label:Hn("topicLabel"),name:"topic",value:t.values.topic}),o.createElement("div",{className:"form-group"},o.createElement("label",{className:"form-label"},o.createElement(y.x,{namespace:zn,phrase:"audiencesLabel"})),o.createElement(Dn,{id:"audiences",placeholder:Hn("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:r,removeSelection:function(e){return r(e)},errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:function(e){return o.createElement(At,{key:e.name,selection:{name:e.name,masterId:e.masterId},colourVariant:"teal",onClickRemove:function(e){return r(e)},hideExpander:!0})},getSuggestionComponent:function(e){return Sn("name",e)},onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:function(e,t){var r=t.find(function(t){return t.name===e});return bn(r?"":e,t,"name",0).filter(function(e){return!n.find(function(t){return t.name===e.name})&&e.name!==(null==r?void 0:r.name)})},focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:function(){return t.setFieldTouched("studentLevel")},className:"p-2 ".concat(t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":"")}),t.touched.studentLevel&&t.errors.studentLevel&&o.createElement(Ke.A,{name:"audiences"},t.errors.studentLevel)),o.createElement(Oe.W,{as:"textarea",placeholder:Hn("otherPlaceholder"),label:Hn("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo}))}function Xn(e){return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},Wn),e.initialValues),validationSchema:Zn}),o.createElement(Kn,{audiences:e.audiences}))}const $n={image:"SdHLR"};function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Jn="shared.feedbackBeforeRequesting",er=u.T.encloseNamespace(Jn);function tr(e){var t,n,r=(t=o.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yn(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1];return o.createElement(o.Fragment,null,o.createElement("div",{className:"d-flex flex-column align-items-center my-4"},o.createElement("img",{className:"".concat($n.image," mb-3"),src:le.videoAlert}),o.createElement("h4",{className:"mb-3"},o.createElement(y.x,{namespace:Jn,phrase:"beforeRequesting"})),o.createElement("p",null,o.createElement(y.x,{namespace:Jn,phrase:"haveYouSearched",options:{exchangeUrl:"".concat(e.exchangeTvUrl,"/exchange")}}))),o.createElement(ge.u,null,o.createElement(ge.u.Checkbox,{id:"confirmExchange",checked:a,onToggle:function(){return i(!a)},label:er("exchangeCheck")}),o.createElement(ge.u.Cancel,{onClick:function(){return e.setSelectedOption(null)},text:er("back")}),o.createElement(ge.u.Submit,{variant:"dark",text:er("continue"),disabled:!a,onClick:function(){return e.setConfirmed(!0)}})))}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rr,ar="shared.feedbackRequestVideo",or=u.T.encloseNamespace(ar);!function(e){e.VideosTopic="videosTopic",e.VideoOrSeries="videoOrSeries"}(rr||(rr={}));var ir={videoRequestType:"",topic:"",studentLevel:[],videoTitle:"",seriesName:"",producerCompany:"",websiteOrTrailer:"",additionalInfo:""},cr=function(){return Se.Z_().max(Ce,Ie("maxCharactersError"))},lr=Se.Ry().shape({videoRequestType:Se.Z_().required(or("videoRequestTypeRequiredError")),topic:cr().when("videoRequestType",{is:function(e){return e===rr.VideosTopic},then:cr().required(or("topicRequiredError")),otherwise:cr().notRequired()}),studentLevel:Se.IX(Se.Z_()),videoTitle:cr().when(["videoRequestType","seriesName"],{is:function(e,t){return e===rr.VideoOrSeries&&!t},then:cr().required(or("videoRequiredError")),otherwise:cr().notRequired()}),seriesName:cr(),producerCompany:cr(),websiteOrTrailer:cr(),additionalInfo:xe()}).noUnknown();function sr(e){var t=(0,fe.b)(),n=t.values.studentLevel.map(function(t){var n;return null===(n=e.audiences)||void 0===n?void 0:n.find(function(e){return e.name===t})})||[];function r(e){t.setFieldValue("studentLevel",dt.m.addOrRemoveImmutable(t.values.studentLevel,e.name)),requestAnimationFrame(function(){return t.setFieldTouched("studentLevel")})}return o.createElement(o.Fragment,null,o.createElement(Oe.W,{as:"select",label:or("videoRequestTypeLabel"),name:"videoRequestType",value:t.values.videoRequestType},o.createElement("option",{value:"",disabled:!0,hidden:!0},or("videoRequestTypePlaceholder")),o.createElement("option",{value:rr.VideosTopic},or("videosTopicType")),o.createElement("option",{value:rr.VideoOrSeries},or("videoOrSeriesType"))),t.values.videoRequestType===rr.VideosTopic&&o.createElement(o.Fragment,null,o.createElement(Oe.W,{placeholder:or("videoTopicPlaceholder"),label:or("videoTopicLabel"),name:"topic",value:t.values.topic,showRequiredStar:!0}),o.createElement("div",{className:"form-group"},o.createElement("label",{className:"form-label"},o.createElement(y.x,{namespace:ar,phrase:"audiencesLabel"})),o.createElement(Dn,{id:"audiences",placeholder:or("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:r,removeSelection:function(e){return r(e)},errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:function(e){return o.createElement(At,{key:e.name,selection:{name:e.name,masterId:e.masterId},colourVariant:"teal",onClickRemove:function(e){return r(e)},hideExpander:!0})},getSuggestionComponent:function(e){return Sn("name",e)},onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:function(e,t){var r=t.find(function(t){return t.name===e});return bn(r?"":e,t,"name",0).filter(function(e){return!n.find(function(t){return t.name===e.name})&&e.name!==(null==r?void 0:r.name)})},focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:function(){return t.setFieldTouched("studentLevel")},className:"p-2 ".concat(t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":"")}),t.touched.studentLevel&&t.errors.studentLevel&&o.createElement(Ke.A,{name:"audiences"},t.errors.studentLevel)),o.createElement(Oe.W,{as:"textarea",placeholder:or("otherPlaceholder"),label:or("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})),t.values.videoRequestType===rr.VideoOrSeries&&o.createElement(o.Fragment,null,o.createElement(Oe.W,{placeholder:or("videoTitlePlaceholder"),label:or("videoTitleLabel"),name:"videoTitle",value:t.values.videoTitle}),o.createElement(Oe.W,{placeholder:or("seriesPlaceholder"),label:or("seriesLabel"),name:"seriesName",value:t.values.seriesName}),o.createElement(Oe.W,{placeholder:or("companyPlaceholder"),label:or("companyLabel"),name:"producerCompany",value:t.values.producerCompany}),o.createElement(Oe.W,{placeholder:or("videoTopicPlaceholder"),label:or("topicLabel"),name:"topic",value:t.values.topic}),o.createElement(Oe.W,{placeholder:or("websiteOrTrailerPlaceholder"),label:or("websiteOrTrailerLabel"),name:"websiteOrTrailer",value:t.values.websiteOrTrailer}),o.createElement(Oe.W,{as:"textarea",placeholder:or("otherPlaceholder"),label:or("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})))}function ur(e){var t,n,r=(t=o.useState(!!e.skipBeforeRequesting),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return nr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1],c=e.hasExchangeTvProduct&&!a;return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},ir),e.initialValues),validationSchema:lr,hideButtons:e.hasExchangeTvProduct&&!a,hideCancelButton:e.skipBeforeRequesting}),c&&o.createElement(tr,{setConfirmed:i,setSelectedOption:e.setSelectedOption,exchangeTvUrl:e.exchangeTvUrl}),!c&&o.createElement(sr,{audiences:e.audiences}))}var mr="shared.feedbackSuggestImprovement",dr=u.T.encloseNamespace(mr),pr={suggestion:"",importance:""},fr=Se.Ry().shape({suggestion:xe().required(Ie("requiredError")),importance:xe()}).noUnknown();function gr(e){var t=(0,fe.b)();return o.createElement(o.Fragment,null,o.createElement(Oe.W,{as:"textarea",placeholder:dr("suggestionPlaceholder"),label:dr("suggestionLabel"),name:"suggestion",value:t.values.suggestion,showRequiredStar:!0}),o.createElement(Oe.W,{as:"textarea",placeholder:dr("whySuggestionPlaceholder"),label:dr("whySuggestionLabel"),name:"importance",rows:5,value:t.values.importance}),o.createElement("p",null,o.createElement(y.x,{namespace:mr,phrase:"contactSupport"})," ",o.createElement("button",{className:"btn btn-link text-underline p-0",onClick:function(){return e.setSelectedOption(ee.RAISE_ISSUE)}},o.createElement(y.x,{namespace:mr,phrase:"raiseIssue"}))))}function vr(e){return o.createElement(br,Object.assign({},e,{initialValues:Object.assign(Object.assign({},pr),e.initialValues),validationSchema:fr,successImageUrl:le.lightBulb,successHeading:dr("successHeading"),successDescription:dr("successDescription")}),o.createElement(gr,{setSelectedOption:e.setSelectedOption}))}function br(e){var t=o.useRef(null);return o.createElement(fe.n,{onSubmit:e.onSubmit,initialValues:e.initialValues,validationSchema:e.validationSchema,validateOnMount:!0,innerRef:t},o.createElement(pe.l0,null,"form"===e.formStage&&e.children,o.createElement(Ee,{formStage:e.formStage,successImageUrl:e.successImageUrl,successHeading:e.successHeading,successDescription:e.successDescription}),!e.hideButtons&&o.createElement(be,{setSelectedOption:function(n){e.setFormState(function(e){var n;return Object.assign(Object.assign({},e),null===(n=t.current)||void 0===n?void 0:n.values)}),e.setSelectedOption(n)},submitText:e.submitText,formStage:e.formStage,closePopup:e.closePopup,hideCancelButton:e.hideCancelButton})))}function hr(e){var t={formStage:e.formStage,initialValues:e.initialValues,setFormState:e.setFormState,onSubmit:e.onSubmit,setSelectedOption:e.setSelectedOption,closePopup:e.closePopup};switch(e.selectedOption){case ee.SUGGEST_IMPROVEMENT:return o.createElement(vr,Object.assign({},t));case ee.REPORT_BUG:return o.createElement(mt,Object.assign({},t,{onFilesAdded:e.onFilesAdded,cancelUpload:e.cancelUpload,uploadingFiles:e.uploadingFiles,uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile,uploadError:e.uploadError,instanceRegion:e.instanceRegion}));case ee.REQUEST_VIDEO:return o.createElement(ur,Object.assign({},t,{audiences:e.audiences,hasExchangeTvProduct:e.hasExchangeTvProduct,exchangeTvUrl:e.exchangeTvUrl,skipBeforeRequesting:e.skipBeforeRequesting,hideCancelButton:e.hideCancelButton}));case ee.REQUEST_LIVESTREAM:return o.createElement(Xn,Object.assign({},t,{audiences:e.audiences}));case ee.RAISE_ISSUE:return o.createElement(Ge,Object.assign({},t));case ee.GIVE_PRAISE:return o.createElement(Re,Object.assign({},t));case ee.OTHER:return o.createElement(Pe,Object.assign({},t))}}function yr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var l=r&&r.prototype instanceof c?r:c,s=Object.create(l.prototype);return Er(s,"_invoke",function(n,r,a){var o,c,l,s=0,u=a||[],m=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,l=e,d.n=n,i}};function p(n,r){for(c=n,l=r,t=0;!m&&s&&!a&&t<u.length;t++){var a,o=u[t],p=d.p,f=o[2];n>3?(a=f===r)&&(l=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=e):o[0]<=p&&((a=n<2&&p<o[1])?(c=0,d.v=r,d.n=o[1]):p<f&&(a=n<3||o[0]>r||r>f)&&(o[4]=n,o[5]=r,d.n=f,c=0))}if(a||n>1)return i;throw m=!0,r}return function(a,u,f){if(s>1)throw TypeError("Generator is already running");for(m&&1===u&&p(u,f),c=u,l=f;(t=c<2?e:l)||!m;){o||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(s=2,o){if(c||(a="next"),t=o[a]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),c=1);o=e}else if((t=(m=d.n<0)?l:n.call(r,d))!==i)break}catch(t){o=e,c=1,l=t}finally{s=1}}return{value:t,done:m}}}(n,a,o),!0),s}var i={};function c(){}function l(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Er(t={},r,function(){return this}),t),m=s.prototype=c.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Er(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e}return l.prototype=s,Er(m,"constructor",s),Er(s,"constructor",l),l.displayName="GeneratorFunction",Er(s,a,"GeneratorFunction"),Er(m),Er(m,a,"Generator"),Er(m,r,function(){return this}),Er(m,"toString",function(){return"[object Generator]"}),(yr=function(){return{w:o,m:d}})()}function Er(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Er=function(e,t,n,r){if(t)a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){Er(e,t,function(e){return this._invoke(t,n,e)})};o("next",0),o("throw",1),o("return",2)}},Er(e,t,n,r)}function Sr(e){return function(e){if(Array.isArray(e))return Cr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||wr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wr(e,t){if(e){if("string"==typeof e)return Cr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cr(e,t):void 0}}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ir=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function c(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,c)}l((r=r.apply(e,t||[])).next())})},xr="shared.giveFeedback",Nr=u.T.encloseNamespace(xr),jr=5,Tr=60,kr=1e6;function Rr(e){var t,n,c,u,O,C=(0,L.Z)(),x=(0,m.useGetFetchAsync)(),N=p.a.useBasicFetch(F.N.currentUser()),j=p.a.useBasicFetch(N.data&&k.h.customer(N.data.customerId)),R=p.a.useBasicFetch(N.data&&F.N.user(N.data.id)),q=Or(o.useState(e.selectedOption),2),G=q[0],M=q[1],D=Or(o.useState("form"),2),z=D[0],H=D[1],W=Or(o.useState(null),2),Q=W[0],$=W[1],Y=(0,d.G)(S.D.MixedMediaUpload),J=function(e,t){var n,r,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=(r=o.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(r,a)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return o.useEffect(function(){var n=e();if(n)return n.off("add remove change"),n.on("add remove change",function(){c(function(e){return!e})}),t&&n.on("remove",t),function(){n.off("add remove change")}},i),null===(n=e())||void 0===n?void 0:n.toJSON()}(function(){return Y.getCollection()},null),ne=o.useRef(null),re=o.useRef(0),ae=o.useRef([]),ie=Or(o.useState([]),2),ce=ie[0],le=ie[1],se=Or(o.useState(""),2),ue=se[0],me=se[1],pe=e.product===w.x.StreamableLearning?a.StreamableLearning:a.Subject,fe=p.a.useBasicFetch(T.presentation(pe)),ge=p.a.useBasicFetch(I.presentationAudiences(null,pe)),ve=null===(t=p.a.useBasicFetch(U.h.userProducts()).data)||void 0===t?void 0:t.find(function(e){return e.id===w.x.Exchange});function be(e){M(e),e&&f.k.logUserAction({type:e},{actionType:g.Vw.Click,entity:g.py.Feedback,location:g.LZ.GiveFeedbackPopup,workflowPhase:g.eu.Start})}function he(e){switch(e){case ee.SUGGEST_IMPROVEMENT:return r.SuggestImprovement;case ee.REPORT_BUG:return r.ReportBug;case ee.REQUEST_VIDEO:return r.RequestVideo;case ee.REQUEST_LIVESTREAM:return r.RequestLivestream;case ee.GIVE_PRAISE:return r.GivePraise;case ee.RAISE_ISSUE:return r.RaiseIssue;case ee.OTHER:return r.Other}}return(0,_.L)(i.Radio.channel(E.Q4.MIXED_MEDIA_UPLOAD),v.S.UPLOAD_COMPLETE,function(e){var t=e.toJSON();if(ae.current.push(t),re.current--,!(re.current>0)){var n=ae.current.length;ae.current.forEach(function(e){setTimeout(function(){n--;var t=Y.getCollection().filter(function(t){var n;return(null===(n=t.get("fileInfo"))||void 0===n?void 0:n.id)===e.fileInfo.id});Y.getCollection().remove(t),le(function(e){return[].concat(Sr(e),Sr(t))}),n>0||(f.k.logUserAction({fileInfo:e.fileInfo},{location:g.LZ.GiveFeedbackPopup,actionType:g.Vw.Upload,entity:g.py.MixedMedia,descriptor:f.k.mapInteractionType(ne.current)}),C.success(Nr("mixedMediaUploadSuccess")))})}),ae.current=[]}}),c=(0,K.T)(),u=c.hasPermissions,O=c.isLoaded,o.useEffect(function(){if(O&&u(B.C.StudentExperience)){var e=new Z;X.Y.logError(e),V.Q.Ry.throw(e)}},[O]),o.createElement(h.G,{size:"lg",title:G?oe(G):Nr("title"),closePopup:e.closePopup,backdrop:"static"},!G&&o.createElement("p",null,o.createElement(y.x,{namespace:xr,phrase:"description"})),!G&&o.createElement(de,{onSelectOption:be,options:[ee.SUGGEST_IMPROVEMENT,ee.REPORT_BUG,e.product===w.x.StreamableLearning?ee.REQUEST_LIVESTREAM:ee.REQUEST_VIDEO,ee.GIVE_PRAISE,ee.RAISE_ISSUE,ee.OTHER]}),G&&o.createElement(hr,{selectedOption:G,formStage:z,onSubmit:function(t,n){var r,a,o,i,c,l;return Ir(this,void 0,void 0,yr().m(function u(){var m,d;return yr().w(function(u){for(;;)switch(u.n){case 0:return m={type:he(G),user:te.getUserInfo(N.data,j.data),tags:te.getTags(N.data,e.product,!1,["give feedback",oe(G).toLowerCase(),null===(a=null===(r=fe.data)||void 0===r?void 0:r.description)||void 0===a?void 0:a.toLowerCase().trim(),null===(l=null===(c=null===(i=null===(o=R.data)||void 0===o?void 0:o.userProfile)||void 0===i?void 0:i.metadata)||void 0===c?void 0:c.jobTitle)||void 0===l?void 0:l.toLowerCase()].filter(Boolean))},d=Object.assign(Object.assign({},t),{currentPageUrl:s.Ab.GetCurrentUrl()}),G===ee.REPORT_BUG&&ce.length&&(d=Object.assign(Object.assign({},d),te.categorizeFiles(ce))),u.p=1,u.n=2,x(A.submitFeedback(m,d));case 2:f.k.logUserAction(Object.assign(Object.assign({},m),d),{actionType:g.Vw.Submit,entity:g.py.Feedback,location:g.LZ.GiveFeedbackPopup,workflowPhase:g.eu.Complete}),H("success"),u.n=4;break;case 3:u.p=3,u.v,C.error(Nr("error"));case 4:return u.p=4,n(),u.f(4);case 5:return u.a(2)}},u,null,[[1,3,4,5]])}))},setSelectedOption:be,closePopup:e.closePopup,onFilesAdded:function(e,t){e.some(function(e){return e.size>Tr*kr})?me(Nr("maxFileSizeUploadError",{limit:Tr})):e.length>jr-J.length?me(Nr("maxFilesUploadError",{limit:jr})):e.some(function(e){return!l().isValidFile(e,b.l.MIXED_MEDIA)})?me(Nr("invalidTypeUploadError")):(me(""),re.current+=e.length,t&&(ne.current=t),Y.addFiles(e))},uploadingFiles:J,uploadedFiles:ce,deleteFile:function(e){le(function(t){return t.filter(function(t){return t.id!==e})})},cancelUpload:function(e){return Y.cancelUpload(e)},audiences:ge.data,uploadError:ue,initialValues:Q,setFormState:$,instanceRegion:null===(n=N.data)||void 0===n?void 0:n.instanceRegion,hasExchangeTvProduct:!!ve,exchangeTvUrl:null==ve?void 0:ve.url,skipBeforeRequesting:!!e.skipBeforeRequestingVideoStep,hideCancelButton:!!e.selectedOption}))}}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[536],{9719:(e,t,r)=>{r.d(t,{F:()=>c});var n=r(32735),o=r(35223),a=r(83914);var i=function(e){switch(e){case"up":return"JAT0R";case"down":return"ld41u";case"right":return"HHkPe";case"left":return"jZTRR"}};function c(e){return n.createElement(a.x,{svgName:o.vn.Caret,className:"".concat(i(e.direction)," svg-container d-inline-block ").concat(e.className)})}c.defaultProps={direction:"right"}},40320:(e,t,r)=>{r.d(t,{w:()=>c});var n=r(32735),o=r(65294);const a="fVSzb";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=n.memo(function(e){var t,r,c=e.forceLoad,l=e.extraClasses,u=void 0===l?"":l,s=e.errorFallbackImageSrc,f=e.preventLoad,m=void 0!==f&&f,d=e.errorFallbackImageClassName,p=e.src,y=e.alt,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),v=(0,o.Y)({rootMargin:"500px"}),g=v.ref,h=v.inView,w=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=w[0],E=w[1];function S(){return O&&s?s:e.src}if(n.useEffect(function(){if((c||h)&&!m){var e=new Image;return e.onerror=function(){E(!0),s&&(e.src=s)},e.src=p,function(){return e.onerror=null}}},[h,m]),O&&!s)return n.createElement(n.Fragment,null);if(!g)return n.createElement("img",Object.assign({className:"".concat(a," ").concat(u," ").concat(O&&d||""),alt:y,src:S()},b));var j=Object.assign(Object.assign({alt:y},b),!h&&!c||m?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:S()});return c||(j.ref=g),n.createElement("img",Object.assign({className:"".concat(a," ").concat(u," ").concat(O&&d||"")},j))})},83665:(e,t,r)=>{r.d(t,{r:()=>f});var n=r(32735),o=r(49985),a=r(28825),i=r(16831),c=r(11607),l=r(83914);const u={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function s(e){return n.createElement(n.Fragment,null,!!e.tab.svgName&&n.createElement("div",{className:e.tab.name?"pe-1":""},n.createElement(l.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&n.createElement("div",{className:"ps-2"},n.createElement(i.C,{type:i.g.Count,data:e.tab.count})))}function f(e){var t;return n.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},n.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(u.pillTabSelector,"\n ").concat(e.borderRadius?u.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map(function(e,t){return n.createElement("li",{className:"\n p-0 ".concat(u.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?u.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?n.createElement(a.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(u.tabLink,"\n ")},n.createElement(s,{tab:e})):n.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(u.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},n.createElement(s,{tab:e})))})))}f.defaultProps={borderRadius:"lg"}},69834:(e,t,r)=>{r.d(t,{r:()=>k});var n=r(50242),o=r(81886),a=r(67058),i=r(23481),c=r(64364);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p="shared.privateResourceError",y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=m(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}(this,t,[i.T.getPhrase(p,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(p,"heading")}},{key:"description",get:function(){return i.T.getPhrase(p,"description")}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var E="shared.regionLockedResourceError",S=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=w(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],w(e).constructor):t.apply(e,r))}(this,t,[i.T.getPhrase(E,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(E,"heading")}},{key:"description",get:function(){return i.T.getPhrase(E,"description")}}])&&v(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H),j=r(49075),A={notFound:a.d,forbidden:{rating:y,yearLevel:y,region:S,privacy:y},badRequest:j._,internalServerError:j._};function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a;a="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},A),t);a&&o.Q.Ry.isStatusCodeError(a)&&(a!==n.o.InternalServer?a!==n.o.NotFound?a!==n.o.Forbidden?r.badRequest||o.Q.Ry.throw(new i.badRequest):r.forbidden||o.Q.Ry.throw(new i.forbidden.privacy):r.notFound||o.Q.Ry.throw(new i.notFound):r.internalServerError||o.Q.Ry.throw(new j._))}}},65294:(e,t,r)=>{r.d(t,{Y:()=>a});var n=r(34152);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.prevent,i=r.rootMargin,c=r.triggerOnce,l=void 0===c||c,u=(e=(0,n.YD)({triggerOnce:l,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1],m=u[2];return!0!==a&&void 0!==window.IntersectionObserver||(f=!0,s=null),{ref:s,inView:f,initialized:!!m}}},20223:(e,t,r)=>{r.d(t,{h:()=>f});var n=r(32735),o=r(28825),a=r(83345),i=r(73818),c=r(82329),l=r(55667),u=r(55812),s="tv.infoAlert";function f(e){var t;return n.createElement("div",{className:"mb-3"},n.createElement("div",null,e.dateRange&&n.createElement(n.Fragment,null,n.createElement(o.F,{appLink:{application:c.O.TV,action:i.e.Tv.BROADCAST_CONTENT,args:[null===(t=e.region)||void 0===t?void 0:t.code]},className:"text-info"},n.createElement("p",{className:"fw-semibold mb-0 me-2"},n.createElement(a.x,{namespace:s,phrase:"programsAvailable"}),u.a.getFormattedDateRange((0,l.h)(e.dateRange.startDate,e.dateRange.timeZone),(0,l.h)(e.dateRange.endDate,e.dateRange.timeZone)))))))}},65972:(e,t,r)=>{r.d(t,{B:()=>c});var n=r(32735),o=r(14965),a=r(55667);const i={programTimeBadge:"Avu4L",small:"a1Wkd",hover:"fbzDz"};function c(e){var t=e.program.timeZone||e.program.region.timeZone,r=(0,a.h)(e.program.startTime,t),c=(0,a.h)(e.program.stopTime,t);return n.createElement("div",{className:"".concat(i.programTimeBadge," ").concat(e.small?"".concat(i.small," align-items-end"):"align-items-center"," ").concat(e.hover?i.hover:""," ").concat(e.className||""," d-flex bg-white text-nowrap border border-dark rounded-pill px-2")},n.createElement("span",null,e.showDate&&"".concat(o.O.format(r,"D MMM")," @ "),o.O.format(r,"hh:mma"),e.showEndTime&&" - ".concat(o.O.format(c,"hh:mma"))))}},32530:(e,t,r)=>{r.d(t,{Y:()=>p});var n=r(32735),o=r(81886),a=r(23481),i=r(65858),c=r(83665),l=r(73818),u=r(82329),s="tv.tvTabs",f=a.T.encloseNamespace(s),m={channels:{application:u.O.TV,action:l.e.Tv.CHANNELS},programs:{application:u.O.TV,action:l.e.Tv.PROGRAMS},tvGuide:{application:u.O.TV,action:l.e.Tv.TV_GUIDE}},d={actionType:i.Vw.Click,entity:i.py.Url,location:i.LZ.MagicTabs};function p(e){var t=e.active,r=e.currentRegion,i=[{name:f("channels"),appLink:Object.assign(Object.assign({},m.channels),{args:[null==r?void 0:r.code]}),active:"channels"===t,analyticsData:{name:f("channels"),url:o.Q.C$.getHref(m.channels)},analyticsOptions:d},{name:f("programs"),appLink:Object.assign(Object.assign({},m.programs),{args:[null==r?void 0:r.code]}),active:"programs"===t,analyticsData:{name:a.T.getPhrase(s,"programs"),url:o.Q.C$.getHref(m.programs)},analyticsOptions:d}];return e.showTvGuide&&i.push({name:f("tvGuide"),appLink:Object.assign(Object.assign({},m.tvGuide),{args:[null==r?void 0:r.code]}),active:"tv-guide"===t,analyticsData:{name:f("tvGuide"),url:o.Q.C$.getHref(m.tvGuide)},analyticsOptions:d}),n.createElement("div",{className:"mb-3"},n.createElement(c.r,{tabs:i}))}},8519:(e,t,r)=>{r.d(t,{e:()=>l});var n=r(32735),o=r(50242),a=r(81886),i=r(20470),c=r(69834);function l(e,t){n.useEffect(function(){e.hasCompleted&&(e.data||(e.hasError&&(0,c.r)(e.statusCode),t?a.Q.Ry.throw(new i.x):(0,c.r)(o.o.BadRequest)))},[e.hasCompleted,e.data])}},38463:(e,t,r)=>{var n;r.d(t,{v:()=>n}),function(e){e[e.Video=0]="Video",e[e.Audio=1]="Audio"}(n||(n={}))},83852:(e,t,r)=>{r.d(t,{E:()=>c});var n=r(32735),o=r(9719);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return n.createElement("ul",{className:"striped-list list-unstyled no-full-width"},e.children)}c.Header=function(e){var t=a(n.useState(!1),2),r=t[0],i=t[1],c=a(n.useState({}),2),l=c[0],u=c[1],s=a(n.useState(0),2),f=s[0],m=s[1],d=n.useRef(null),p=n.useRef(null),y=n.useRef(null),b=n.useRef(null);return n.useEffect(function(){var e;if(r){var t=Math.ceil(null===(e=d.current)||void 0===e?void 0:e.getBoundingClientRect().height),n=0===l.opacity;n&&m(t),n&&f&&(u({position:"relative"}),b.current=window.requestAnimationFrame(function(){return u({maxHeight:f,opacity:1})}))}},[r,f,l.maxHeight]),n.useEffect(function(){return function(){window.clearTimeout(p.current),window.clearTimeout(y.current),window.cancelAnimationFrame(b.current)}},[]),n.createElement("li",{className:"position-relative"},n.createElement("div",{className:"cursor-pointer d-flex align-items-center py-2 px-3",onClick:function(){r?(u({maxHeight:0,opacity:1}),m(0),p.current=window.setTimeout(function(){return i(!1)},400)):(i(!0),y.current=window.setTimeout(function(){u({maxHeight:"max-content",opacity:0,position:"absolute"})}))}},n.createElement("div",{className:"ms-1"},n.createElement(o.F,{direction:r?"down":"right"})),n.createElement("span",{className:"".concat(r?"fw-semibold":""," user-select-none ms-2")},e.title)),r&&n.createElement("div",{className:"bg-white"},n.createElement("div",{ref:d,className:"".concat("nJDL6"),style:l},e.children)))}},87732:(e,t,r)=>{r.d(t,{s:()=>a});var n=r(32735);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(){return n.createElement(n.Fragment,null,n.createElement("ul",{className:"list-unstyled"},(e=Array(20),function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,t){return n.createElement("li",{key:t,className:"".concat(t%2==0?"partial-loading-background":""," d-flex w-100 p-2")},n.createElement("div",{className:"svg-container"}),n.createElement("span",null," "))})));var e}},34152:(e,t,r)=>{r.d(t,{YD:()=>u});var n=r(32735),o=(Object.defineProperty,new Map),a=new WeakMap,i=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:l,observer:u,elements:s}=function(e){const t=function(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(r=e.root,r?(a.has(r)||(i+=1,a.set(r,i.toString())),a.get(r)):"0"):e[t]}`;var r}).toString()}(e);let r=o.get(t);if(!r){const n=new Map;let a;const i=new IntersectionObserver(t=>{t.forEach(t=>{var r;const o=t.isIntersecting&&a.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach(e=>{e(o,t)})})},e);a=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},o.set(t,r)}return r}(r),f=s.get(e)||[];return s.has(e)||s.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(s.delete(e),u.unobserve(e)),0===s.size&&(u.disconnect(),o.delete(l))}}function u({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:a,triggerOnce:i,skip:c,initialInView:u,fallbackInView:s,onChange:f}={}){var m;const[d,p]=n.useState(null),y=n.useRef(),[b,v]=n.useState({inView:!!u,entry:void 0});y.current=f,n.useEffect(()=>{if(c||!d)return;let n;return n=l(d,(e,t)=>{v({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&i&&n&&(n(),n=void 0)},{root:a,rootMargin:o,threshold:e,trackVisibility:r,delay:t},s),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,d,a,o,i,c,r,s,t]);const g=null==(m=b.entry)?void 0:m.target,h=n.useRef();d||!g||i||c||h.current===g||(h.current=g,v({inView:!!u,entry:void 0}));const w=[p,b.inView,b.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 538-37852629be-exchange.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[538],{92869:(e,t,r)=>{r.d(t,{t:()=>o});var n=r(43823),i=r(95846),o={preventScrollTop:function(){n.Radio.channel(i.G.SHELL).trigger("prevent:scroll:top")}}},27898:(e,t,r)=>{r.d(t,{Q:()=>v,z:()=>m});var n=r(23481),i=r(75896),o=r(1048);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||u(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var d={"featured-result":1,"topic-list":8,company:8,"playlist-with-videos":1,"series-with-videos":1,"series-thumbnail":1,"playlist-thumbnail":1,"video-item":1,"companies-and-topics":16},m="curriculumCode",v={flattenResults:function(e){return e?e.results?Object.assign(Object.assign({},e),{results:i.m.flatten(e.results)}):Object.assign(Object.assign({},e),{results:[]}):null},getContextualSearchQueryParams:function(e){return e&&e.get("filterParam")?(t={},r=e.get("filterParam"),n=e.get("filterValue"),(r=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t):{};var t,r,n},mapMaxScoreToSearchResults:function(e,t){return e.map(function(e){return t?Object.assign(Object.assign({},e),{_maxScore:t}):e})},groupResults:function(e,t,r,i,a){var s,m;if(!(null==e?void 0:e.length)&&!(null===(s=null==t?void 0:t.results)||void 0===s?void 0:s.length)&&!(null===(m=null==r?void 0:r.results)||void 0===m?void 0:m.length))return[];var v,f,y,g,h=function(e){if(Array.isArray(e))return e}(g=e)||u(g)||l(g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=h[0],E=h.slice(1),O=a.xs||a.sm,j=function(e,t,r,i,a){var l,s,u,m,v,f,y,g=a?"playlist-thumbnail":"playlist-with-videos",h=a?"series-thumbnail":"series-with-videos",b=[{type:"companies-and-topics",items:null!==(v=[].concat(c(null!==(s=null===(l=null==r?void 0:r.results)||void 0===l?void 0:l.slice(0,d.company))&&void 0!==s?s:[]),c(null!==(m=null===(u=null==t?void 0:t.results)||void 0===u?void 0:u.slice(0,d["topic-list"]))&&void 0!==m?m:[])))&&void 0!==v?v:[]},{type:"featured-result",items:o.t.isEmpty(i)?[]:[i]},{type:"video-item",items:[]},{type:"video-item",items:[]},{type:"video-item",items:[]},{type:g,items:[]},{type:h,items:[]},{heading:n.T.getPhrase("sharedSearch.utils","relatedTopics"),type:"topic-list",items:null!==(y=null===(f=null==t?void 0:t.results)||void 0===f?void 0:f.slice(d["topic-list"],2*d["topic-list"]))&&void 0!==y?y:[]}],E=!1;return null==e||e.forEach(function(e){var t=p(e,a);if(!e._featured||E||"video"!==e._index)if(b[2].items.length<d["video-item"]&&"video-item"===t)b[2].items.push(e);else if(b[3].items.length<d["video-item"]&&"video-item"===t)b[3].items.push(e);else if(b[4].items.length<d["video-item"]&&"video-item"===t)b[4].items.push(e);else if(b[5].items.length<d[g]&&t===g)b[5].items.push(e);else if(b[6].items.length<d[h]&&t===h)b[6].items.push(e);else{var r=b[b.length-1];if((null==r?void 0:r.type)===t){var n=d[t];r.items.length>=n?b.push({type:t,items:[e]}):r.items.push(e)}else b.push({type:t,items:[e]})}else E=!0}),b.filter(function(e){var t;return null===(t=e.items)||void 0===t?void 0:t.length})}(b,t,r,i,O);return(null==E?void 0:E.length)?(f=j,y=O,(v=E)?(v.forEach(function(e){var t=f[f.length-1],r=!0;e.forEach(function(e){var n=p(e,y);if(r&&t.type===n)t.items.length>=d[n]?(r=!1,f.push({type:n,items:[e]})):t.items.push(e);else{var i=f[f.length-1];(null==i?void 0:i.type)===n?i.items.length>=d[n]?f.push({type:n,items:[e]}):i.items.push(e):f.push({type:n,items:[e]})}})}),f):f):j}};function p(e,t){var r;return"video"===e._index||"interactive"===e._index||"clip"===e._index?"video-item":"series"===e._index?(null===(r=e.tallPoster)||void 0===r?void 0:r.id)&&!t?"series-with-videos":"series-thumbnail":"classification"===e._index?"topic-list":"playlist"===e._index?t?"playlist-thumbnail":"playlist-with-videos":void 0}},23201:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(32735),i=r(92802),o=r(2102),a=r(83345),c=r(33936),l="shared.formButtons";function s(e){var t=(0,i.u6)(),r=(0,c.l)(t);return n.createElement(o.m,{variant:e.variant||"primary",type:"submit",disabled:!r,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?n.createElement(n.Fragment,null,e.submitText):n.createElement(a.x,{namespace:l,phrase:e.isNew?"create":"save"}))}},66122:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(32735);function i(e){return n.createElement("span",{id:"".concat(e.name,"Error"),className:"".concat(e.className," invalid-feedback d-block"),role:"status"},e.children)}},5960:(e,t,r)=>{var n,i;r.d(t,{X:()=>n}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(n||(n={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(i||(i={}))},78417:(e,t,r)=>{var n;r.d(t,{r:()=>n}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},78681:(e,t,r)=>{r.d(t,{Z:()=>n});var n={ratings:function(e){return{url:"/api/domain/v2/me/ratings",key:"ratings:".concat(e),formatData:function(t){var r=t.sort(function(e,t){return e.value-t.value});return e?r:r.filter(function(e){return"E"!==e.code})}}}}},32299:(e,t,r)=>{r.d(t,{R:()=>f});var n,i=r(99940),o=r(97395),a=r(62803),c=r(5960),l=r(4594),s=r(78417);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(n||(n={}));var u=r(68140),d=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.VIDEO})},m=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,_rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},v=function(e){return o._.urlBuilder("{gateway}/v1/objects",{"query.video":a.v.VIDEO_COLLECTION,"query.clip":a.v.CLIP_COLLECTION,"query.interactive":a.v.INTERACTIVE_COLLECTION,id:e})},p=function(e){var t=e.videoId,r=e.context,i=e.collectionId,c=e.moviesAndTv,l={videoId:t,limit:e.limit,query:a.v.VIDEO_COLLECTION};return r&&(r===n.Widget?l["context.widgetId"]=i:(l["context.collectionType"]=r,l["context.collectionId"]=i)),c&&(l["context.moviesAndTv"]=!0),o._.urlBuilder("{gateway}/v1/suggestions/related-videos",l)},f={video:function(e,t){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.VIDEO,permissionFilterOption:t}),publicUrl:o._.urlBuilder("/api/objects/".concat(e),{query:a.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,r,n){return{url:m(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:r,error:n}},sharedVideo:function(e,t,r,n){return{url:d(e,t),key:"shared:video:".concat(e),success:r,error:n}},myVideos:function(e,t){var r=a.v.VIDEO_COLLECTION,n=a.v.CLIP_COLLECTION,i=a.v.INTERACTIVE,u="videos[".concat(r,"]{libraries.typeid:").concat(l.E.WorkspaceCollection,"}"),d="clips[".concat(n,"]"),m="interactives[".concat(i,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),v={query:"(".concat(u,"|").concat(d,"|").concat(m,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(v.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),v),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:v(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:v(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,r,n,o){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:i.k.PUT,data:t,success:r,error:n,always:o}},videoRatings:function(e,t){var r=e.map(function(e){return"id=".concat(e)});if(r.length)return{url:"/api/domain/v2/objects?query=rating&".concat(r.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map(function(e){return"id=".concat(e)}).length)return{url:o._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),publicUrl:o._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(l.E.Video).concat(t.map(function(e){return"&objectId=".concat(e)}).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,r){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:i.k.DELETE,success:t,error:r,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,r,n,o){var a=e.map(function(e){return"videoIds=".concat(e)}).join("&"),c=["categoryId=".concat(r),"".concat(a)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(r),type:i.k.DELETE,success:n,error:o,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,r=e.context,n=e.collectionId,i=e.moviesAndTv;return{url:p(e),key:"related:videos:".concat(t,":").concat(r,":").concat(n,":").concat(i)}},collectionVideos:function(e,t,r,n,i,l){var d=u.d.getVideoSortParam(t),m=a.v.VIDEO_COLLECTION,v=a.v.CLIP_COLLECTION,p=a.v.INTERACTIVE,f="videos[".concat(m,"]"),y="clips[".concat(v,"]"),g="interactives[".concat(p,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),h=Object.assign({query:"(".concat(f,"|").concat(y,"|").concat(g,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:s.r.FilterOut},r?{cursor:r}:{}),b=["folder","videos",e,r,t].filter(function(e){return!!e}).join(":");return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),h),key:b,success:n,error:i,always:l}},pointsOfInterest:function(e,t,r,n,i){var a={query:"{limit:100}",cursor:t};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),a),publicUrl:o._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),a),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:r,error:n,always:i}},regionAlternatives:function(e,t,r,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:r,always:n}}}},83145:(e,t,r)=>{r.d(t,{U:()=>u});var n=r(99940),i=r(97395),o=r(75896),a=r(27898),c=r(62803),l=r(78417),s=r(68140),u={exchange:function(){return{url:i._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:0}),key:"exchange",normalize:!1,formatData:function(e){return o.m.first(e).data}}},categories:function(){return{url:i._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:2}),key:"exchange:categories",normalize:!1,formatData:function(e){return o.m.first(e).children}}},folderVideos:function(e,t,r){var n=s.d.getVideoSortParam(t),o=(n?"{".concat(n,",libraries.typeid:18}"):"")+c.v.VIDEO_COLLECTION;return{url:i._.urlBuilder("{gateway}/v1/objects/".concat(e,"/videos"),{cursor:r,query:o,permissionFilterOption:l.r.StripMetadata}),key:["folder","videos",e,r,t].filter(function(e){return!!e}).join(":")}},seriesVideos:function(e,t,r){var n=s.d.getVideoSortParam(t),o=(n?"{".concat(n,",libraries.typeid:18}"):"")+c.v.VIDEO_COLLECTION;return{url:i._.urlBuilder("{gateway}/v1/collections/".concat(e,"/videos"),{query:o,cursor:r}),key:["series","videos",e,r,t].filter(function(e){return!!e}).join(":")}},mostRecentVideos:function(e,t){var r="{orderByDesc:timestamp}"+c.v.VIDEO_COLLECTION;return{url:i._.urlBuilder("{gateway}/v1/collections/".concat(e,"/videos"),{query:r,cursor:t}),key:["mostRecent","videos",e,t].filter(function(e){return!!e}).join(":")}},addVideo:function(e,t){return{key:"add:video:exchange",url:"{gateway}/v1/users/me/add-videos",data:{libraryId:e,objectId:t},type:n.k.POST,invalidationKeys:"videos:".concat(t,":")}},suggestEdit:function(e,t){return{key:"suggest:an:edit",url:"{gateway}/v1/videos/".concat(e,"/suggest-edit"),data:t,type:n.k.POST}},search:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o="search:".concat(e,":").concat(t,":").concat(n);o+=Object.keys(r).map(function(e){return r[e]}).join(";");var c=Object.assign({},Object.assign({index:t,cursor:null!=n?n:void 0,query:e},r));return{url:i._.urlBuilder("{gateway}/v3/search/exchange",c),key:o,formatData:function(e){var t,r,n,i=e.totalResults,o=null!==(r=null===(t=null==e?void 0:e.results)||void 0===t?void 0:t.filter(function(e){var t,r,n,o,a,c,l,s;if("series"!==e._index&&"playlist"!==e._index)return!0;if("playlist"===e._index){var u=e;return!!((null===(r=null===(t=u.clips)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)||(null===(o=null===(n=u.interactives)||void 0===n?void 0:n.data)||void 0===o?void 0:o.length)||(null===(c=null===(a=u.videos)||void 0===a?void 0:a.data)||void 0===c?void 0:c.length))||(i--,!1)}return 0!==(null===(s=null===(l=e.videos)||void 0===l?void 0:l.data)||void 0===s?void 0:s.length)||(i--,!1)}))&&void 0!==r?r:[];e.results=o,e.totalResults=i;var c=null===(n=o[0])||void 0===n?void 0:n._score;return Object.assign(Object.assign({},e),{results:a.Q.mapMaxScoreToSearchResults(o,c)})}}}}},95716:(e,t,r)=>{r.d(t,{M:()=>a});var n=r(2948),i=r(75795);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r,a,c=(r=(0,n.D)("exchange:preview:".concat(e),t?i.O.getPreviousRoute():void 0),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(r,a)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],s=c[1];return{previewContext:l,clearPreviewContext:function(){return s(void 0)}}}},61060:(e,t,r)=>{r.r(t),r.d(t,{ExchangeSuggestEditView:()=>ee});var n=r(32735),i=r(23481),o=r(92869),a=r(81886),c=r(20354),l=r(49985),s=r(65858),u=r(77696),d=r(92802),m=r(33795),v=r.n(m),p=r(14965),f=r(23201),y=r(11904),g=r(82644),h=r(13876),b=r(50132),E=r(83345),O="shared.flagRemovalRadio",j=i.T.encloseNamespace(O);function w(){var e=(0,d.u6)();return n.createElement("div",{className:"mb-3"},n.createElement("label",{className:"form-label"},n.createElement(E.x,{namespace:O,phrase:"flagRemovalReasonLabel"}),n.createElement("span",{className:"text-danger"},"*")),[j("nonEducational"),j("poorQuality"),j("offensive"),j("copyright"),j("ageAppropriate"),j("audio"),j("other")].map(function(t,r){return n.createElement(b.Z.Check,{type:"radio",key:r,label:t,name:t,id:"flag-".concat(r),onChange:function(){return function(t){e.setFieldValue("suggestion",t)}(t)},checked:e.values.suggestion===t,className:"mb-2"})}))}var S=r(79469),C=r(11607),k=r(66122);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var T="shared.suggestEditForm";function _(e){var t=(0,d.u6)(),r=x(n.useState(),2),i=r[0],o=r[1],a=x(n.useState(!1),2),c=a[0],l=a[1];return n.createElement("div",{className:"form-group"},n.createElement("label",{className:"form-label"},n.createElement(E.x,{namespace:T,phrase:"suggestLabel"})),n.createElement("div",{"aria-describedby":"suggestEditRatingError"},n.createElement(S.Z,null,e.ratings.map(function(r){return n.createElement(C.L,{key:r.id,onClick:function(){return function(r){var n=(null==t?void 0:t.values.property)&&e.metadataValue===r.name;t.setFieldValue("suggestion",n?"":r.name),o(r),l(n)}(r)},className:"btn ".concat(r.id===(null==i?void 0:i.id)?"btn-dark":"btn-outline-dark")},r.code)}))),c&&n.createElement(k.A,{name:"suggestEditRating"},n.createElement(E.x,{namespace:T,phrase:"ratingError"})))}var P,A=r(5173),R=i.T.encloseNamespace("shared.suggestEditValidation");!function(e){e.VideoTitle="video title",e.Description="description",e.Rating="rating",e.SeriesTitle="series title",e.Season="season number",e.EpisodeNumber="episode number",e.BroadcastDate="broadcast date",e.Channel="channel",e.ProductionYear="production year",e.Distributors="distributors",e.ProductionCompanies="production companies",e.Directors="directors",e.Producers="producers",e.FlagRemoval="flag for removal",e.Other="other"}(P||(P={}));var V={VideoTitle:{name:P.VideoTitle,property:"name"},Description:{name:P.Description,property:"description"},Rating:{name:P.Rating,property:"rating.name"},SeriesTitle:{name:P.SeriesTitle,property:"series.name"},Season:{name:P.Season,property:"season.number"},EpisodeNumber:{name:P.EpisodeNumber,property:"episodeNumber"},BroadcastDate:{name:P.BroadcastDate,property:"dateBroadcast"},Channel:{name:P.Channel,property:"channel.name"},ProductionYear:{name:P.ProductionYear,property:"productionYear"},Distributors:{name:P.Distributors,property:"distributors",collection:!0},ProductionCompanies:{name:P.ProductionCompanies,property:"productionCompanies",collection:!0},Directors:{name:P.Directors,property:"directors",collection:!0},Producers:{name:P.Producers,property:"producers",collection:!0},FlagRemoval:{name:P.FlagRemoval},Other:{name:P.Other}};function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var N="shared.suggestEditForm",D=i.T.encloseNamespace(N),F={property:"",suggestion:"",reason:"",currentValue:""};function B(e){var t,r,i,o,a=null===(t=e.ratings)||void 0===t?void 0:t.filter(function(e){return e.code}),c=(0,d.u6)(),l=(i=n.useState(),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(i,o)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],u=l[1],m=null==c?void 0:c.values.property;return n.useEffect(function(){var t=function(){var t=V[m];if(!t||!t.property)return null;var r=v()(e.video,t.property);return!r||t.collection&&!r.data.length?D("none"):(t.collection&&(r=r.data.map(function(e){return e.name}).join(", ")),"BroadcastDate"===m?p.O.format(r,"D MMMM YYYY"):r)}();c.setValues({property:m,reason:"",suggestion:"",currentValue:t||""}),c.setTouched({}),u(t)},[m]),n.createElement(d.l0,null,n.createElement(y.W,{as:"select",label:D("metadataLabel"),id:"property",name:"property",value:m,className:"text-capitalize",showRequiredStar:!0},n.createElement("option",{value:""},D("metadataPlaceholder")),Object.keys(V).map(function(e,t){return n.createElement("option",{key:t,value:e},V[e].name)})),m&&n.createElement(n.Fragment,null,s&&n.createElement(n.Fragment,null,n.createElement("p",{className:"fw-semibold mb-0"},n.createElement(E.x,{namespace:N,phrase:"currentValueLabel"})," ",n.createElement("span",null,null===(r=V[m])||void 0===r?void 0:r.name)),n.createElement("p",null,s)),"Rating"===m&&n.createElement(_,{ratings:a,metadataValue:s}),"FlagRemoval"===m&&n.createElement(w,null),"Rating"!==m&&"FlagRemoval"!==m&&n.createElement(y.W,{label:D("suggestLabel"),placeholder:D("suggestPlaceholder"),type:"text",id:"suggestion",name:"suggestion",value:null==c?void 0:c.values.suggestion,showRequiredStar:!0}),"FlagRemoval"===m?n.createElement(y.W,{label:D("flagRemovalCommentsLabel"),placeholder:D("flagRemovalCommentsPlaceholder"),type:"text",id:"reason",name:"reason",value:null==c?void 0:c.values.reason}):n.createElement(y.W,{label:D("reasonLabel"),placeholder:D("reasonPlaceholder"),type:"text",id:"reason",name:"reason",value:null==c?void 0:c.values.reason,showRequiredStar:!0})),n.createElement(h.u,null,n.createElement(h.u.Cancel,{text:D("cancel"),onClick:e.closePopup,variant:"link"}),n.createElement(f.A,{variant:"dark",submitText:D("submit")})))}function q(e){return n.createElement(g.n,{initialValues:F,validationSchema:(0,A.Ry)().shape({property:(0,A.Z_)().required(R("metadata")),reason:(0,A.Z_)().when("property",{is:function(e){return"FlagRemoval"===e},then:(0,A.Z_)().notRequired(),otherwise:(0,A.Z_)().required(R("reason"))}),suggestion:(0,A.Z_)().required(R("suggestion")),currentValue:(0,A.Z_)()}),onSubmit:e.onClickSubmit},n.createElement(B,Object.assign({},e)))}var M=r(39151),U=r(78681),Z=r(31949),z=r(32299),G=r(69883),Y=r(1071),$=r(83145),W=r(95716);function X(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof c?n:c,s=Object.create(l.prototype);return Q(s,"_invoke",function(r,n,i){var o,c,l,s=0,u=i||[],d=!1,m={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return o=t,c=0,l=e,m.n=r,a}};function v(r,n){for(c=r,l=n,t=0;!d&&s&&!i&&t<u.length;t++){var i,o=u[t],v=m.p,p=o[2];r>3?(i=p===n)&&(l=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=e):o[0]<=v&&((i=r<2&&v<o[1])?(c=0,m.v=n,m.n=o[1]):v<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,m.n=p,c=0))}if(i||r>1)return a;throw d=!0,n}return function(i,u,p){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,p),c=u,l=p;(t=c<2?e:l)||!d;){o||(c?c<3?(c>1&&(m.n=-1),v(c,l)):m.n=l:m.v=l);try{if(s=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(d=m.n<0)?l:r.call(n,m))!==a)break}catch(t){o=e,c=1,l=t}finally{s=1}}return{value:t,done:d}}}(r,i,o),!0),s}var a={};function c(){}function l(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Q(t={},n,function(){return this}),t),d=s.prototype=c.prototype=Object.create(u);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Q(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,Q(d,"constructor",s),Q(s,"constructor",l),l.displayName="GeneratorFunction",Q(s,i,"GeneratorFunction"),Q(d),Q(d,i,"Generator"),Q(d,n,function(){return this}),Q(d,"toString",function(){return"[object Generator]"}),(X=function(){return{w:o,m}})()}function Q(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Q=function(e,t,r,n){if(t)i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var o=function(t,r){Q(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},Q(e,t,r,n)}var K=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function c(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,c)}l((n=n.apply(e,t||[])).next())})},H="exchange.suggestEdit",J=i.T.encloseNamespace(H);function ee(e){var t=c.a.useGetFetchAsync(),r=(0,G.Z)(),i=(0,Y.b)(),d=i.loading,m=i.handleGenerateReportError,v=c.a.useBasicFetch(M.L.config()),p=c.a.useBasicFetch(Z.N.currentUser()),f=c.a.useBasicFetch(z.R.video(e.videoId)),y=c.a.useBasicFetch(U.Z.ratings()),g=(0,W.M)(e.videoId,!1),h=g.previewContext,b=g.clearPreviewContext;function O(){e.closePopup(),(null==h?void 0:h.appLink)&&(o.t.preventScrollTop(),a.Q.C$.trigger(h.appLink),b())}return v.hasCompleted&&p.hasCompleted&&f.hasCompleted&&y.hasCompleted?n.createElement(u.G,{title:J("title"),closePopup:O,showLoadingSpinner:d},n.createElement("p",null,n.createElement(E.x,{namespace:H,phrase:"description"})),n.createElement(q,{video:f.data,ratings:y.data,closePopup:O,onClickSubmit:function(e,n){return K(this,void 0,void 0,X().m(function i(){var o;return X().w(function(i){for(;;)switch(i.n){case 0:return i.p=0,i.n=1,t($.U.suggestEdit(f.data.id,e));case 1:r.success(J("success")),O(),l.k.logUserAction({id:f.data.id,name:f.data.name},{actionType:s.Vw.Submit,entity:s.py.Video,descriptor:s.XX.SuggestEdit,location:s.LZ.Popup,workflowPhase:s.eu.Complete}),i.n=3;break;case 2:i.p=2,o=i.v,m(o,J("error"),J("noEmailError"));case 3:return i.p=3,n(),i.f(3);case 4:return i.a(2)}},i,null,[[0,2,3,4]])}))}})):n.createElement(n.Fragment,null)}},79469:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(95685),i=r.n(n),o=r(32735),a=r(46304),c=r(74512);const l=o.forwardRef(({bsPrefix:e,size:t,vertical:r=!1,className:n,role:o="group",as:l="div",...s},u)=>{const d=(0,a.vE)(e,"btn-group");let m=d;return r&&(m=`${d}-vertical`),(0,c.jsx)(l,{...s,ref:u,role:o,className:i()(n,m,t&&`${d}-${t}`)})});l.displayName="ButtonGroup";const s=l}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[558],{32119:(e,t,r)=>{r.d(t,{G:()=>o});var n=r(32735),a=r(71365);function o(e){var t,r;return t=e,r=a.u.getInstance(t),n.useEffect(function(){return function(){a.u.releaseInstance(t)}}),r}},11904:(e,t,r)=>{r.d(t,{n:()=>w,W:()=>E});var n=r(32735),a=r(80247),o=r(50132),i=r(92802),c=r(79014),l=r(1048),s=r(28825),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function f(e){var t=e.label,r=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,c=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(o.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(w,Object.assign({className:"form-check-input"},c)),n.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(r),htmlFor:c.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=r(83914),p=r(83345),d={getCustomFormControlClassName:function(e,t,r,n,a,o){var c="";return c=function(e,t){var r="";return r="select"===e?"form-select":"form-control","sm"===t&&(r+=" ".concat(r,"-sm")),"lg"===t&&(r+=" ".concat(r,"-lg")),r}(o,n),(0,i.u9)(t,r)&&(0,i.u9)(e,r)&&(c+=" is-invalid"),a&&(c+=" ".concat(a)),c}},b=r(35223);function y(e){var t=(0,i.u6)().values,r=l.t.get(t,e.fieldName);return"string"!=typeof r?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},r.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},O="shared.formField";function w(e){var t,r,o=e.children,s=e.showLoadingSpinner,u=g(e,["children","showLoadingSpinner"]),f=(t=n.useState(e.type),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1],y=c.q.isFunction(o)?function(e){return o(e)}:n.Children.count(o)?o:null;if("password"!==u.type)return s?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y),n.createElement("div",{className:h.spinner},n.createElement(a.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y);var O="position-relative ".concat(h.passwordContainer);return u.className&&(O+=" ".concat(u.className)),u.disabled&&(O+=" ".concat(h.passwordContainerDisabled)),n.createElement("div",{className:O},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===u.type&&n.createElement(m.x,{svgName:"password"===p?b.vn.VisibleOn:b.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){d("password"===p?"text":"password")}}))}function E(e){var t=e.label,r=e.className,a=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,v=e.infoText,E=e.formSize,S=e.showOptionalLabel,j=e.formGroupClassname,N=e.labelClassName,x=g(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","formGroupClassname","labelClassName"]),P=(0,i.u6)(),C=P.errors,k=P.touched,L=function(){};if("checkbox"===x.type){var T=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(T.onChange=L),n.createElement(f,Object.assign({},T))}var I=Object.assign(Object.assign({},x),{className:d.getCustomFormControlClassName(C,k,x.name,E,r,"string"==typeof e.as?e.as:null)});return e.disabled&&(I.onChange=L),n.createElement(o.Z.Group,{className:"form-group ".concat(j)},!!t&&n.createElement(o.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center ".concat(N)},t,c&&n.createElement("span",{className:"text-danger"},"*"),s&&n.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:b.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),S&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(p.x,{namespace:O,phrase:"optional"})),!!a&&!!x.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(y,{fieldName:x.name,limit:x.maxLength}))),e.description&&n.createElement("p",null,e.description),n.createElement(w,Object.assign({},I,{"aria-errormessage":"".concat(x.name,"Error")})),!!v&&n.createElement(o.Z.Text,{className:"text-secondary"},v),n.createElement(i.Bc,{name:x.name},function(e){return n.createElement(o.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)}))}w.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,r)=>{r.d(t,{b:()=>f,n:()=>u});var n=r(32735),a=r(92802),o=r(79014),i=r(1048);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function u(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,l=e.initialValues,u=e.onSubmit,f=s(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(r){Object.keys(t).forEach(function(n){t.hasOwnProperty(n)&&(i.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])})}(t),t}(l)):l,p={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},f,{initialValues:m,onSubmit:function(t,n){var a=n.setSubmitting,o=n.resetForm,i=n.setFieldError,l=r&&e.validationSchema?e.validationSchema.cast(t):t;u(l,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.reset&&o(),e.errors)for(var t=0,r=Object.entries(e.errors);t<r.length;t++){var n=c(r[t],2),l=n[0],s=n[1];i(l,s)}a(!1)})},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function f(){return(0,a.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},69883:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(79976),a=r(60139),o=r(32119);function i(){var e=(0,o.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})},info:function(t,r){e.createAlert({heading:t,message:r,type:a.NK.Info})}}}},1071:(e,t,r)=>{r.d(t,{b:()=>E});var n=r(81886),a=r(20354),o=r(12754),i=r(23481),c=r(97395),l=r(47663);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var b="shared.verifiedEmailError",y=function(e){function t(e,r,n){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t,["VerifiedEmailRequiredError"])).message=e,a.liteUrl=r,a.hasLite=n,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"VerifiedEmailRequiredError"}},{key:"dialogOptions",get:function(){var e=c._.safeUrlConcat(this.liteUrl,"settings/account");return{title:i.T.getPhrase(b,"heading"),text:this.hasLite?"".concat(this.message," ").concat(i.T.getPhrase(b,"visitSettings",{href:e})):this.message,buttons:[{text:i.T.getPhrase(b,"close"),className:"btn btn-dark",success:!0}]}}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(l.S),h=r(39151),v=r(69883),g=r(70145),O=r(31949),w=function(){var e,t=a.a.useBasicFetch(O.N.currentUser()),r=a.a.useBasicFetch((null===(e=t.data)||void 0===e?void 0:e.isAuthenticated)&&g.h.userProducts()),n=!r.hasCompleted;return{hasProduct:function(e){var t;return!n&&!r.hasError&&!!(null===(t=r.data)||void 0===t?void 0:t.length)&&r.data.some(function(t){return t.id===e})},products:r,isLoadingProducts:n}};function E(){var e=(0,v.Z)(),t=w(),r=t.hasProduct,i=t.isLoadingProducts,c=a.a.useBasicFetch(h.L.config());return{handleGenerateReportError:function(t,a,i){var l;t.responseJSON&&"no-email"===(null===(l=t.responseJSON)||void 0===l?void 0:l.type)?n.Q.Ry.throw(new y(i,c.data.liteUrl,r(o.x.Primary))):e.error(a)},loading:!c.hasCompleted||i}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[589],{85897:(e,t,r)=>{r.r(t),r.d(t,{TvProgramsView:()=>q});var a=r(32735),n=r(50242),i=r(23481),o=r(20354),l=r(14965),c=r(69834),s=r(39151),u=r(91286),m=r(87348),d=r(60980),f=r(83852),p=r(87732),v=r(73818),h=r(82329),g=r(20223),y=r(48963),b=r(27418),E=r(32530),w=r(5353),C=r(8519),O=r(87439),T=r(55667),k=r(81886),A=r(65858),N=r(83665);const S={pillTabSelector:"TgUPp"};var M=["#","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],x={actionType:A.Vw.Click,entity:A.py.Url,location:A.LZ.MagicTabs};function j(e){var t=e.startsWith,r=e.region,n=t;"0"===n&&(n="#");var i=M.map(function(e){var t=e;"#"===t&&(t="0");var a={application:h.O.TV,action:v.e.Tv.PROGRAMS,args:[null==r?void 0:r.code],params:{startsWith:t}};return{name:e,appLink:a,active:n===e,analyticsData:{name:e,url:k.Q.C$.getHref(a)},analyticsOptions:x}});return a.createElement("div",{className:"mb-3"},a.createElement(N.r,{tabs:i,className:S.pillTabSelector}))}var L=r(75896),P=r(28825),R=r(40320),U=r(65972),D=r(38463);const I={dateContainer:"kH_fS",hover:"NHUGO",channelLogo:"PvYl9",channelLogoContainer:"UcNgi",programsContainer:"Lin4C",date:"BplGJ",itemContainer:"krLO9",badgeWrapper:"xqehq",thumbnail:"sDxNC"};function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function F(e){function t(t){var r=L.m.findWhere(e.channels,{name:t});return null==r?void 0:r.logoUrl}return a.createElement("div",{className:"mb-2"},e.groupedPrograms.map(function(r){var n=B(r,2),i=n[0],o=n[1];return a.createElement("div",{className:"border-top d-flex pt-3 pb-2",key:i},a.createElement("div",{className:"".concat(I.channelLogoContainer," flex-shrink-0 mb-3")},a.createElement("img",{src:t(i),alt:i,className:"".concat(I.channelLogo," ms-4")})),a.createElement("div",{className:"w-100"},o.map(function(t){var r=B(t,2),n=r[0],i=r[1];return a.createElement(V,{key:n,date:n,programs:i,tvPreviewUrls:e.tvPreviewUrls})})))}))}function V(e){var t,r,n,i=B(a.useState(),2),o=i[0],c=i[1];function s(e){switch(e.programType){case D.v.Video:return{application:h.O.TV,action:v.e.Tv.PREVIEW,args:[e.regionCode,e.id]};case D.v.Audio:return{application:h.O.TV,action:v.e.Tv.RADIO_DOWNLOAD,args:[e.id]}}}return a.createElement("div",{className:"".concat(I.dateContainer," ").concat(o?I.hover:""," py-2 px-3 rounded")},a.createElement("div",{key:e.date,className:"d-flex align-items-center"},a.createElement("div",{className:"".concat(I.thumbnail," flex-shrink-0 me-3 partial-loading-background rounded")},a.createElement(R.w,{src:(t=o||e.programs[0],r=e.tvPreviewUrls[t.regionCode],n=t.globalId.split("-").join(""),"".concat(r,"/thumbnail/").concat(n,".jpg")),alt:l.O.format(e.date,"D MMM"),extraClasses:"w-100 rounded"})),a.createElement("p",{className:"".concat(I.date," fw-semibold flex-shrink-0 mb-0")},l.O.format(e.date,"D MMM"),":"),a.createElement("div",{className:"".concat(I.programsContainer," d-flex flex-wrap")},e.programs.map(function(e){return a.createElement("div",{key:e.id,onMouseEnter:function(){return c(e)},onMouseLeave:function(){return c(null)}},a.createElement(P.F,{appLink:s(e),key:e.id,className:"text-decoration-none"},a.createElement(U.B,{program:e,showEndTime:!0,small:!0})))}))))}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return l}}(e,t)||Y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var H=i.T.encloseNamespace("tv.programs"),Z=/^[a-zA-Z]/;function q(e){var t,r=e.startsWith||"A",i=o.a.useBasicFetch(s.L.config()),k=o.a.useBasicFetch(w.i.region(e.region)),A=o.a.useBasicFetch(w.i.regions()),N=o.a.useBasicFetch(w.i.dateRange(e.region)),S=o.a.useBasicFetch(k.data&&w.i.channels(k.data.code)),x=o.a.useBasicFetch(k.data&&N.data&&w.i.programsByLetter(k.data.code,r,N.data.startDate,N.data.endDate)),L=(0,O.K)().setRegion,P=(0,m.Q)().showTvGuide,R=a.useMemo(function(){var t;if(!(null===(t=x.data)||void 0===t?void 0:t.length))return[];var r={};x.data.forEach(function(t){"0"===e.startsWith&&Z.test(t.title)||(r[t.title]||(r[t.title]=[]),r[t.title].push(t))});var a=Object.entries(r),n=(a=a.sort(function(e,t){return G(e,1)[0]<G(t,1)[0]?-1:1})).map(function(e){var t=G(e,2),r=t[0],a=t[1].reduce(function(e,t){var r=t.channelName;e[r]||(e[r]={});var a=(0,T.h)(t.startTime,t.timeZone),n=l.O.format(a,"YYYY-MM-DD");return e[r][n]||(e[r][n]=[]),e[r][n].push(t),e},{}),n=Object.entries(a).map(function(e){var t=G(e,2),r=t[0],a=t[1];return[r,Object.entries(a)]});return[r,n]});return n},[x.data]);[].concat((t=M,function(e){if(Array.isArray(e))return _(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["0"]).includes(r)||(0,c.r)(n.o.BadRequest),(0,C.e)(k),(0,u.v)([A,x]),(0,d.M)({title:H("title")});var U=k.hasCompleted&&A.hasCompleted&&N.hasCompleted&&x.hasCompleted&&i.hasCompleted;return a.createElement(a.Fragment,null,a.createElement(b.u,{region:k.data}),a.createElement("div",{className:"d-flex justify-content-between"},a.createElement(E.Y,{active:"programs",currentRegion:k.data,showTvGuide:P}),a.createElement(y.R,{currentRegion:k.data,regions:A.data,appLink:{application:h.O.TV,action:v.e.Tv.PROGRAMS,params:{startsWith:r}},onClick:L})),a.createElement(g.h,{dateRange:N.data,region:k.data}),a.createElement(j,{startsWith:r,region:k.data}),U?a.createElement(a.Fragment,null,a.createElement(f.E,null,R.map(function(e,t){var r=G(e,2),n=r[0],o=r[1];return a.createElement(f.E.Header,{key:t,title:n},a.createElement(F,{groupedPrograms:o,channels:S.data,tvPreviewUrls:i.data.tvPreviewUrls}))}))):a.createElement(p.s,null))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[601],{40601:(e,r,c)=>{c.r(r),c.d(r,{NotFoundView:()=>a});var n=c(32735),i=c(25112);function a(e){var r=e.error;return n.createElement(i.ErrorView,{error:r})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[611],{83665:(e,t,n)=>{n.d(t,{r:()=>p});var r=n(32735),a=n(49985),o=n(28825),i=n(16831),c=n(11607),l=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return r.createElement(r.Fragment,null,!!e.tab.svgName&&r.createElement("div",{className:e.tab.name?"pe-1":""},r.createElement(l.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&r.createElement("div",{className:"ps-2"},r.createElement(i.C,{type:i.g.Count,data:e.tab.count})))}function p(e){var t;return r.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},r.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map(function(e,t){return r.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?r.createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n ")},r.createElement(u,{tab:e})):r.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&a.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},r.createElement(u,{tab:e})))})))}p.defaultProps={borderRadius:"lg"}},69834:(e,t,n)=>{n.d(t,{r:()=>k});var r=n(50242),a=n(81886),o=n(67058),i=n(23481),c=n(64364);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var d="shared.privateResourceError",b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,[i.T.getPhrase(d,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(d,"heading")}},{key:"description",get:function(){return i.T.getPhrase(d,"description")}}])&&s(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c.H);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var O="shared.regionLockedResourceError",T=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=E(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}(this,t,[i.T.getPhrase(O,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(O,"heading")}},{key:"description",get:function(){return i.T.getPhrase(O,"description")}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c.H),R=n(49075),j={notFound:o.d,forbidden:{rating:b,yearLevel:b,region:T,privacy:b},badRequest:R._,internalServerError:R._};function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},j),t);o&&a.Q.Ry.isStatusCodeError(o)&&(o!==r.o.InternalServer?o!==r.o.NotFound?o!==r.o.Forbidden?n.badRequest||a.Q.Ry.throw(new i.badRequest):n.forbidden||a.Q.Ry.throw(new i.forbidden.privacy):n.notFound||a.Q.Ry.throw(new i.notFound):n.internalServerError||a.Q.Ry.throw(new R._))}}},20223:(e,t,n)=>{n.d(t,{h:()=>p});var r=n(32735),a=n(28825),o=n(83345),i=n(73818),c=n(82329),l=n(55667),s=n(55812),u="tv.infoAlert";function p(e){var t;return r.createElement("div",{className:"mb-3"},r.createElement("div",null,e.dateRange&&r.createElement(r.Fragment,null,r.createElement(a.F,{appLink:{application:c.O.TV,action:i.e.Tv.BROADCAST_CONTENT,args:[null===(t=e.region)||void 0===t?void 0:t.code]},className:"text-info"},r.createElement("p",{className:"fw-semibold mb-0 me-2"},r.createElement(o.x,{namespace:u,phrase:"programsAvailable"}),s.a.getFormattedDateRange((0,l.h)(e.dateRange.startDate,e.dateRange.timeZone),(0,l.h)(e.dateRange.endDate,e.dateRange.timeZone)))))))}},32530:(e,t,n)=>{n.d(t,{Y:()=>d});var r=n(32735),a=n(81886),o=n(23481),i=n(65858),c=n(83665),l=n(73818),s=n(82329),u="tv.tvTabs",p=o.T.encloseNamespace(u),f={channels:{application:s.O.TV,action:l.e.Tv.CHANNELS},programs:{application:s.O.TV,action:l.e.Tv.PROGRAMS},tvGuide:{application:s.O.TV,action:l.e.Tv.TV_GUIDE}},m={actionType:i.Vw.Click,entity:i.py.Url,location:i.LZ.MagicTabs};function d(e){var t=e.active,n=e.currentRegion,i=[{name:p("channels"),appLink:Object.assign(Object.assign({},f.channels),{args:[null==n?void 0:n.code]}),active:"channels"===t,analyticsData:{name:p("channels"),url:a.Q.C$.getHref(f.channels)},analyticsOptions:m},{name:p("programs"),appLink:Object.assign(Object.assign({},f.programs),{args:[null==n?void 0:n.code]}),active:"programs"===t,analyticsData:{name:o.T.getPhrase(u,"programs"),url:a.Q.C$.getHref(f.programs)},analyticsOptions:m}];return e.showTvGuide&&i.push({name:p("tvGuide"),appLink:Object.assign(Object.assign({},f.tvGuide),{args:[null==n?void 0:n.code]}),active:"tv-guide"===t,analyticsData:{name:p("tvGuide"),url:a.Q.C$.getHref(f.tvGuide)},analyticsOptions:m}),r.createElement("div",{className:"mb-3"},r.createElement(c.r,{tabs:i}))}},87572:(e,t,n)=>{n.r(t),n.d(t,{TvGuideView:()=>O});var r=n(32735),a=n(23481),o=n(20354),i=n(74097),c=n(83345),l=n(39151),s=n(87348),u=n(60980),p=n(35223),f=n(73818),m=n(82329),d=n(20223),b=n(48963),y=n(27418),v=n(32530),g=n(5353),h=n(87439),E="tv.tvGuide",w=a.T.encloseNamespace(E);function O(e){var t=o.a.useBasicFetch(l.L.config()),n=o.a.useBasicFetch(g.i.region(e.region)),a=o.a.useBasicFetch(g.i.dateRange(e.region)),O=o.a.useBasicFetch(g.i.regions()),T=(0,h.K)().setRegion,R=(0,s.Q)().showTvGuide;return(0,u.M)({title:w("title")}),r.createElement(r.Fragment,null,r.createElement(y.u,{region:n.data}),r.createElement(d.h,{dateRange:a.data,region:n.data}),r.createElement("div",{className:"d-flex justify-content-between"},r.createElement(v.Y,{active:"tv-guide",currentRegion:n.data,showTvGuide:R}),r.createElement(b.R,{currentRegion:n.data,regions:O.data,appLink:{application:m.O.TV,action:f.e.Tv.CHANNELS},onClick:T})),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement("h1",{className:"h4"},r.createElement(c.x,{namespace:E,phrase:"title"})),r.createElement("p",null,r.createElement(c.x,{namespace:E,phrase:"paragraph1"})),r.createElement("p",null,r.createElement(c.x,{namespace:E,phrase:"paragraph2"})),r.createElement("p",null,r.createElement(c.x,{namespace:E,phrase:"paragraph3"})),t.data&&r.createElement(i.h,{href:"".concat(t.data.onlineUrl,"/login?returnUrl=/tv/guide"),openInNewTab:!0,svgName:p.vn.NewWindow,className:"btn btn-dark"},r.createElement(c.x,{namespace:E,phrase:"cta"})))))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[619],{88619:(e,n,c)=>{c.r(n),c.d(n,{RedirectView:()=>l});var i=c(32735),t=c(81886),a=c(37802),r=c(73818),g=c(82329);function l(){var e=(0,a.r)(null),n=e.exchangeTvProductOption,c=e.isLoadingSettings;return i.useEffect(function(){c||("tv"!==n?t.Q.C$.trigger({application:g.O.EXCHANGE,action:r.e.Exchange.INDEX}):t.Q.C$.trigger({application:g.O.TV,action:r.e.Tv.INDEX}))},[n,c]),i.createElement(i.Fragment,null)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[648],{80489:e=>{var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,i){return"number"!=typeof i||t[e]?i:i+"px"}},17333:(e,t,i)=>{var r=i(90758),o=i(66777),n={float:"cssFloat"},l=i(80489);function a(e,t,i){var a=n[t];if(void 0===a&&(a=function(e){var t=o(e),i=r(t);return n[t]=n[e]=n[i]=i,i}(t)),a){if(void 0===i)return e.style[a];e.style[a]=l(a,i)}}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i])}(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,i){return t[i]=a(e,i||""),t},{}):a(e,t||"")}},62930:function(e){(function(){var t,i,r,o,n,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},i=process.hrtime,o=(t=function(){var e;return 1e9*(e=i())[0]+e[1]})(),l=1e9*process.uptime(),n=o-l):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},90758:e=>{var t=null,i=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),n=i.length;n>=0;n--){var l=i[n]+o;if(l in r)return l}return!1}},48729:(e,t,i)=>{for(var r=i(62930),o="undefined"==typeof window?i.g:window,n=["moz","webkit"],l="AnimationFrame",a=o["request"+l],u=o["cancel"+l]||o["cancelRequest"+l],s=0;!a&&s<n.length;s++)a=o[n[s]+"Request"+l],u=o[n[s]+"Cancel"+l]||o[n[s]+"CancelRequest"+l];if(!a||!u){var c=0,d=0,h=[],f=1e3/60;a=function(e){if(0===h.length){var t=r(),i=Math.max(0,f-(t-c));c=i+t,setTimeout(function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(i))}return h.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}},11305:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e};t.renderViewDefault=function(e){return n.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement("div",r({style:o},i))},t.renderTrackVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement("div",r({style:o},i))},t.renderThumbHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",r({style:o},i))},t.renderThumbVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",r({style:o},i))};var o,n=(o=i(32735))&&o.__esModule?o:{default:o};function l(e,t){var i={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r]);return i}},3845:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),n=i(48729),l=m(n),a=m(i(17333)),u=i(32735),s=m(i(60216)),c=m(i(71175)),d=m(i(33961)),h=m(i(63417)),f=m(i(11478)),v=m(i(37723)),p=i(2211),g=i(11305);function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i=t.__proto__||Object.getPrototypeOf(t)).call.apply(i,[this,e].concat(o)));return l.getScrollLeft=l.getScrollLeft.bind(l),l.getScrollTop=l.getScrollTop.bind(l),l.getScrollWidth=l.getScrollWidth.bind(l),l.getScrollHeight=l.getScrollHeight.bind(l),l.getClientWidth=l.getClientWidth.bind(l),l.getClientHeight=l.getClientHeight.bind(l),l.getValues=l.getValues.bind(l),l.getThumbHorizontalWidth=l.getThumbHorizontalWidth.bind(l),l.getThumbVerticalHeight=l.getThumbVerticalHeight.bind(l),l.getScrollLeftForOffset=l.getScrollLeftForOffset.bind(l),l.getScrollTopForOffset=l.getScrollTopForOffset.bind(l),l.scrollLeft=l.scrollLeft.bind(l),l.scrollTop=l.scrollTop.bind(l),l.scrollToLeft=l.scrollToLeft.bind(l),l.scrollToTop=l.scrollToTop.bind(l),l.scrollToRight=l.scrollToRight.bind(l),l.scrollToBottom=l.scrollToBottom.bind(l),l.handleTrackMouseEnter=l.handleTrackMouseEnter.bind(l),l.handleTrackMouseLeave=l.handleTrackMouseLeave.bind(l),l.handleHorizontalTrackMouseDown=l.handleHorizontalTrackMouseDown.bind(l),l.handleVerticalTrackMouseDown=l.handleVerticalTrackMouseDown.bind(l),l.handleHorizontalThumbMouseDown=l.handleHorizontalThumbMouseDown.bind(l),l.handleVerticalThumbMouseDown=l.handleVerticalThumbMouseDown.bind(l),l.handleWindowResize=l.handleWindowResize.bind(l),l.handleScroll=l.handleScroll.bind(l),l.handleDrag=l.handleDrag.bind(l),l.handleDragEnd=l.handleDragEnd.bind(l),l.state={didMountUniversal:!1},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,i=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,n=e.scrollWidth,l=void 0===n?0:n,a=e.scrollHeight,u=void 0===a?0:a,s=e.clientWidth,c=void 0===s?0:s,d=e.clientHeight,h=void 0===d?0:d;return{left:i/(l-c)||0,top:o/(u-h)||0,scrollLeft:i,scrollTop:o,scrollWidth:l,scrollHeight:u,clientWidth:c,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,r=this.view,o=r.scrollWidth,n=r.clientWidth,l=(0,f.default)(this.trackHorizontal),a=Math.ceil(n/o*l);return l<=a?0:t||Math.max(a,i)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,r=this.view,o=r.scrollHeight,n=r.clientHeight,l=(0,v.default)(this.trackVertical),a=Math.ceil(n/o*l);return l<=a?0:t||Math.max(a,i)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,i=t.scrollWidth,r=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(i-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,i=t.scrollHeight,r=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(i-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.addEventListener("mouseenter",this.handleTrackMouseEnter),i.addEventListener("mouseleave",this.handleTrackMouseLeave),i.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.removeEventListener("mouseenter",this.handleTrackMouseEnter),i.removeEventListener("mouseleave",this.handleTrackMouseLeave),i.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,i=this.props,r=i.onScroll,o=i.onScrollFrame;r&&r(e),this.update(function(e){var i=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=i,t.viewScrollTop=r,o&&o(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),n=Math.abs(r-i)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(n)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),n=Math.abs(r-i)-o/2;this.view.scrollTop=this.getScrollTopForOffset(n)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(i-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(i-o)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=h.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,i=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&l.default.cancel(this.requestFrame),this.requestFrame=(0,l.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,i=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var n=o.scrollLeft,l=o.clientWidth,u=o.scrollWidth,s=(0,f.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),h={width:c,transform:"translateX("+n/(u-l)*(s-c)+"px)"},p=o.scrollTop,g=o.clientHeight,m=o.scrollHeight,y=(0,v.default)(this.trackVertical),b=this.getThumbVerticalHeight(),k={height:b,transform:"translateY("+p/(m-g)*(y-b)+"px)"};if(r){var w={visibility:u>l?"visible":"hidden"},T={visibility:m>g?"visible":"hidden"};(0,a.default)(this.trackHorizontal,w),(0,a.default)(this.trackVertical,T)}(0,a.default)(this.thumbHorizontal,h),(0,a.default)(this.thumbVertical,k)}i&&i(o),"function"==typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),i=this.props,o=(i.onScroll,i.onScrollFrame,i.onScrollStart,i.onScrollStop,i.onUpdate,i.renderView),n=i.renderTrackHorizontal,l=i.renderTrackVertical,a=i.renderThumbHorizontal,s=i.renderThumbVertical,h=i.tagName,f=(i.hideTracksWhenNotNeeded,i.autoHide),v=(i.autoHideTimeout,i.autoHideDuration),g=(i.thumbSize,i.thumbMinSize,i.universal),m=i.autoHeight,y=i.autoHeightMin,b=i.autoHeightMax,k=i.style,w=i.children,T=function(e,t){var i={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r]);return i}(i,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,H=r({},p.containerStyleDefault,m&&r({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),k),M=r({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&r({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),m&&g&&!S&&{minHeight:y,maxHeight:b},g&&!S&&p.viewStyleUniversalInitial),D={transition:"opacity "+v+"ms",opacity:0},z=r({},p.trackHorizontalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"}),L=r({},p.trackVerticalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"});return(0,u.createElement)(h,r({},T,{style:H,ref:function(t){e.container=t}}),[(0,u.cloneElement)(o({style:M}),{key:"view",ref:function(t){e.view=t}},w),(0,u.cloneElement)(n({style:z}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(a({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(l({style:L}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=y,y.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},y.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},2211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},42648:(e,t,i)=>{"use strict";t.$B=void 0;var r,o=(r=i(3845))&&r.__esModule?r:{default:r};t.ZP=o.default,t.$B=o.default},37723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,i=getComputedStyle(e),r=i.paddingTop,o=i.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},11478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,i=getComputedStyle(e),r=i.paddingLeft,o=i.paddingRight;return t-parseFloat(r)-parseFloat(o)}},33961:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!1!==n)return n;if("undefined"!=typeof document){var e=document.createElement("div");(0,o.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),n=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else n=0;return n||0};var r,o=(r=i(17333))&&r.__esModule?r:{default:r},n=!1},71175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},63417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},66777:(e,t,i)=>{var r=i(2690);e.exports=function(e){return r(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}},38278:e=>{e.exports=function(e){return t.test(e)?e.toLowerCase():i.test(e)?(function(e){return e.replace(o,function(e,t){return t?" "+t:""})}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(n,function(e,t,i){return t+" "+i.toLowerCase().split("").join(" ")})}(e).toLowerCase():e.toLowerCase()};var t=/\s/,i=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/,o=/[\W_]+(.|$)/g,n=/(.)([A-Z]+)/g},2690:(e,t,i)=>{var r=i(38278);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}}}]);