@clickview/streamable-learning 0.15.1-rc.0 → 0.15.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/bundles.json +4 -0
  2. package/dist/css/1067-streamable-learning-629bbd0a42.chunk.css +8 -0
  3. package/dist/css/1437-streamable-learning-4e8b60a4ff.chunk.css +12 -0
  4. package/dist/css/2146-streamable-learning-2d8c1745cf.chunk.css +13 -0
  5. package/dist/css/2967-streamable-learning-a004e2d423.chunk.css +4 -0
  6. package/dist/css/2987-streamable-learning-b5d226bbb6.chunk.css +5 -0
  7. package/dist/css/3498-streamable-learning-8c9306617b.chunk.css +2 -0
  8. package/dist/css/4018-streamable-learning-e5335c9805.chunk.css +6 -0
  9. package/dist/css/4109-streamable-learning-8f682301c6.chunk.css +1 -0
  10. package/dist/css/4254-streamable-learning-e493f4a027.chunk.css +2 -0
  11. package/dist/css/5594-streamable-learning-18a676a2f8.chunk.css +48 -0
  12. package/dist/css/6533-streamable-learning-57edcfcad7.chunk.css +6 -0
  13. package/dist/css/719-streamable-learning-7133f6f383.chunk.css +10 -0
  14. package/dist/css/7272-streamable-learning-ca6ff5e866.chunk.css +3 -0
  15. package/dist/css/7303-streamable-learning-cf56e2be0a.chunk.css +88 -0
  16. package/dist/css/7545-streamable-learning-16b4fe0f3a.chunk.css +22 -0
  17. package/dist/css/7694-streamable-learning-35adffc1e3.chunk.css +9 -0
  18. package/dist/css/7730-streamable-learning-55cdf7ecba.chunk.css +2 -0
  19. package/dist/css/8069-streamable-learning-d400800d3e.chunk.css +32 -0
  20. package/dist/css/9638-streamable-learning-9e6986fa70.chunk.css +5 -0
  21. package/dist/css/9861-streamable-learning-7ae7bbdf80.chunk.css +78 -0
  22. package/dist/css/9908-streamable-learning-850d8debe8.chunk.css +13 -0
  23. package/dist/css/streamable-learning-9f5a620058.css +21 -0
  24. package/dist/languages/en.json +1 -0
  25. package/dist/scripts/1067-8f45d4c0c4-streamable-learning.chunk.js +1 -0
  26. package/dist/scripts/1437-aced338a12-streamable-learning.chunk.js +1 -0
  27. package/dist/scripts/1661-b235a2d101-streamable-learning.chunk.js +1 -0
  28. package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js +2 -0
  29. package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js.LICENSE.txt +9 -0
  30. package/dist/scripts/2012-3194a5bd39-streamable-learning.chunk.js +1 -0
  31. package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +1 -0
  32. package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +1 -0
  33. package/dist/scripts/2146-05b86ba590-streamable-learning.chunk.js +1 -0
  34. package/dist/scripts/2215-9a0bd573d8-streamable-learning.chunk.js +2 -0
  35. package/dist/scripts/2215-9a0bd573d8-streamable-learning.chunk.js.LICENSE.txt +1 -0
  36. package/dist/scripts/2676-7762258774-streamable-learning.chunk.js +2 -0
  37. package/dist/scripts/2676-7762258774-streamable-learning.chunk.js.LICENSE.txt +1 -0
  38. package/dist/scripts/2700-15cd0e4a48-streamable-learning.chunk.js +1 -0
  39. package/dist/scripts/2861-e66f927434-streamable-learning.chunk.js +1 -0
  40. package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +1 -0
  41. package/dist/scripts/2967-4209d1c930-streamable-learning.chunk.js +1 -0
  42. package/dist/scripts/2987-66f91261bd-streamable-learning.chunk.js +1 -0
  43. package/dist/scripts/3093-dc5701881b-streamable-learning.chunk.js +1 -0
  44. package/dist/scripts/339-75d7ad2471-streamable-learning.chunk.js +1 -0
  45. package/dist/scripts/3498-2099b4714e-streamable-learning.chunk.js +1 -0
  46. package/dist/scripts/370-cc0e747219-streamable-learning.chunk.js +1 -0
  47. package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +1 -0
  48. package/dist/scripts/3958-7d615280bd-streamable-learning.chunk.js +1 -0
  49. package/dist/scripts/4018-9c3a893cd9-streamable-learning.chunk.js +2 -0
  50. package/dist/scripts/4018-9c3a893cd9-streamable-learning.chunk.js.LICENSE.txt +1 -0
  51. package/dist/scripts/4064-5f3be1a2ea-streamable-learning.chunk.js +1 -0
  52. package/dist/scripts/4109-fdf1494406-streamable-learning.chunk.js +1 -0
  53. package/dist/scripts/4254-5cb6b89e64-streamable-learning.chunk.js +1 -0
  54. package/dist/scripts/487-20924d38f3-streamable-learning.chunk.js +1 -0
  55. package/dist/scripts/5173-a67ee71a21-streamable-learning.chunk.js +1 -0
  56. package/dist/scripts/5446-588d118d63-streamable-learning.chunk.js +1 -0
  57. package/dist/scripts/5594-8fc2f58dcd-streamable-learning.chunk.js +1 -0
  58. package/dist/scripts/625-654fffada2-streamable-learning.chunk.js +1 -0
  59. package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +1 -0
  60. package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js +2 -0
  61. package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js.LICENSE.txt +105 -0
  62. package/dist/scripts/6533-1921070558-streamable-learning.chunk.js +1 -0
  63. package/dist/scripts/6909-31e9162346-streamable-learning.chunk.js +1 -0
  64. package/dist/scripts/7102-c2772fda5e-streamable-learning.chunk.js +1 -0
  65. package/dist/scripts/719-d7e4c6456e-streamable-learning.chunk.js +2 -0
  66. package/dist/scripts/719-d7e4c6456e-streamable-learning.chunk.js.LICENSE.txt +1 -0
  67. package/dist/scripts/7272-c7d7094d8c-streamable-learning.chunk.js +1 -0
  68. package/dist/scripts/7303-c6d37c3ad8-streamable-learning.chunk.js +2 -0
  69. package/dist/scripts/7303-c6d37c3ad8-streamable-learning.chunk.js.LICENSE.txt +1 -0
  70. package/dist/scripts/7545-9045e9952b-streamable-learning.chunk.js +1 -0
  71. package/dist/scripts/7694-7fdcc5dc43-streamable-learning.chunk.js +2 -0
  72. package/dist/scripts/7694-7fdcc5dc43-streamable-learning.chunk.js.LICENSE.txt +1 -0
  73. package/dist/scripts/7730-af616f4052-streamable-learning.chunk.js +1 -0
  74. package/dist/scripts/7897-83ecf29c44-streamable-learning.chunk.js +1 -0
  75. package/dist/scripts/7925-28c7dfa1ff-streamable-learning.chunk.js +1 -0
  76. package/dist/scripts/8069-f88756e557-streamable-learning.chunk.js +1 -0
  77. package/dist/scripts/8352-2c3d85bae1-streamable-learning.chunk.js +1 -0
  78. package/dist/scripts/8598-2184349983-streamable-learning.chunk.js +2 -0
  79. package/dist/scripts/8598-2184349983-streamable-learning.chunk.js.LICENSE.txt +32 -0
  80. package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +1 -0
  81. package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +1 -0
  82. package/dist/scripts/9531-6e0529dcb6-streamable-learning.chunk.js +1 -0
  83. package/dist/scripts/9638-617862d0d0-streamable-learning.chunk.js +1 -0
  84. package/dist/scripts/9861-d9334d38b7-streamable-learning.chunk.js +2 -0
  85. package/dist/scripts/9861-d9334d38b7-streamable-learning.chunk.js.LICENSE.txt +1 -0
  86. package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js +2 -0
  87. package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js.LICENSE.txt +1 -0
  88. package/dist/scripts/bundle-992dd782bb.min.js +2 -0
  89. package/dist/scripts/bundle-992dd782bb.min.js.LICENSE.txt +108 -0
  90. package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js +2 -0
  91. package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt +21 -0
  92. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1661],{47673:(e,t,n)=>{n.d(t,{C:()=>f});var a=n(32735),r=n(86073),i=n(54610),o=n(1164),s=n(67453),c=n(45778),l=n(85473);const u={imageStyle:"FFgf3",imageTypeResource:"z4O5p",fallBackImage:"Xy4zX"};var d={width:200,resizeType:i.Nq.Cover};function m(e){var t;return c.G.isResource(e)?e.metadata.type===o.L.Pdf||(null===(t=e.pdf)||void 0===t?void 0:t.url)?i.__.Pdf:i.__.Thumbnails:i.__.Link}function f(e){var t,n,f,p=null,v=0;c.G.isResource(e.resource)&&(p=e.resource.metadata,v=null!==(f=null===(n=null===(t=e.resource.thumbnail)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.rotation)&&void 0!==f?f:0);var g=function(e,t){var n,a,l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,f=m(t);if("thumbnail"in t&&(null===(n=t.thumbnail)||void 0===n?void 0:n.url))return s.j.createUrl(null===(a=t.thumbnail)||void 0===a?void 0:a.url,Object.assign({},u));var p=r._.safeUrlConcat(e,"/v1/previews");return c.G.isResource(t)?f===i.__.Pdf?t.metadata.type===o.L.Pdf?s.j.createResourceImage(p,t.url,Object.assign({},u)):s.j.createResourceImage(p,null===(l=t.pdf)||void 0===l?void 0:l.url,Object.assign({},u)):t.metadata.type!==o.L.Zip?s.j.createUrl(t.url,{size:i.h2.Medium,resizeType:i.Nq.Cover}):"/images/zip-resource.png":s.j.createResourceImage(p,t.url,Object.assign({},u))}(e.imageCdnUrl,e.resource,e.dynamicRatioImageOptions);return a.createElement(l.Z,{data:g,imageType:m(e.resource),imageStyle:{transform:"rotate(".concat(v,"deg)")},alt:e.resource.name,errorFallbackImageSrc:e.imageErrorFallbackUrl,errorFallbackImageClassName:u.fallBackImage,imageClassName:(null==p?void 0:p.type)===o.L.Image?"".concat(u.imageTypeResource," ").concat(u.imageStyle):"",preload:e.preloadImage,preventLoad:!e.preloadImage})}},55827:(e,t,n)=>{n.d(t,{l:()=>i});var a=n(32735),r=n(66869);function i(e){return e.hideDescription&&e.hideHeading?a.createElement(a.Fragment,null):e.isPreviewing?a.createElement(r.B,{name:e.name,description:e.description}):a.createElement("div",{className:"curated-widget-header"},!e.hideHeading&&a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"1.5rem",width:"12rem"}}),!e.hideDescription&&a.createElement("div",{className:"partial-loading-background curated-widget-description",style:{height:"1.434375rem",width:"16rem"}}))}},5281:(e,t,n)=>{n.d(t,{k:()=>N,x:()=>x});var a=n(32735),r=n(23481),i=n(91967),o=n(82182),s=n(81886),c=n(92582),l=n(66869),u=n(29420),d=n(43872),m=n(53855),f=n(31069),p=n(54610),v=n(10841),g=n(79967),y=n(49439),b=n(65294),h=n(26154),w=n(49542),E=n(61871),j=n(92644),k=n(31309),I=n(52993);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 a,r,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(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)?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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var S="shared.fixedWidget",x=12;function N(e){var t,n=e.analyticsData,O=void 0===n?{}:n,N=e.getWidgetItemAnalyticsData,P=void 0===N?function(){}:N,R=C(a.useState(null),2),A=R[0],L=R[1],T=C(a.useState(null),2),z=T[0],D=T[1],B=C(a.useState(0),2),F=B[0],U=B[1],_=C(a.useReducer(E.CU,E.eS,E.m0),2),M=_[0],V=_[1],G=a.useRef(null),W=C((0,y.X)(),2),H=W[0],Z=W[1],q=C(a.useState(!1),2),$=q[0],X=q[1],K=C(a.useState(!1),2),J=K[0],Y=K[1];(0,j.iV)(e.controlsRef,V);var Q=(0,b.Y)({prevent:!e.lazyLoad}),ee=Q.ref,te=Q.inView,ne=(0,j.$5)(e,V,te);function ae(t){var n,a=e.prefetched?e.collection:ne.data;if(!a)return[];var r=i.q.isFunction(e.setData)?e.setData(a):a;return null!==(n=null==r?void 0:r.slice(0,t))&&void 0!==n?n:[]}var re=ae(e.limitTotalItems?x:1/0),ie=M.offset===re.length,oe=(0,g.k)(),se=(0,u.T)({type:"fixed",state:M,containerRef:G}),ce=se.onFocusWidget,le=se.onBlurWidget,ue=se.isTabbing,de=se.getFixedAttributes,me=se.focusNext,fe=se.focusPrev;function pe(){return"scroll"===e.touchBehavior&&o.V.isTabletOrMobile()}a.useEffect((function(){V({type:v.n.Resize,payload:{breakpoints:oe}})}),[oe]),a.useEffect((function(){if(e.prefetched){var t=e.type;t===h.l9.ResourcesTile&&(t=h.l9.Row),V({type:v.n.Init,payload:{breakpoints:oe,type:t,contents:e.contents,totalItems:re.length}})}}),[null===(t=e.collection)||void 0===t?void 0:t.length,e.prefetched]);var ve={type:M.type,collectionSize:re.length,contents:e.contents},ge=(0,j.lv)(e,(null==ne?void 0:ne.data)||e.collection);if(null==ne?void 0:ne.hasError)return a.createElement(a.Fragment,null);if(!e.prefetched&&!(null==ne?void 0:ne.data)){var ye=e.partialComponent||k.j;return a.createElement("div",{ref:ee},a.createElement(ye,null))}if(!re.length||re.length<e.minimumItemCount)return a.createElement(a.Fragment,null);var be=e.childComponent,he=function(t){return Object.assign({id:null==ge?void 0:ge.id,name:null==ge?void 0:ge.name,direction:t===v.n.Next?"right":"left"},e.analyticsData)},we=!(!e.appLink||!ie)&&!!e.limitTotalItems&&ae(1/0).length>re.length,Ee=pe()||e.hideButtons,je=M.offset===M.viewableItems,ke=re.length<=M.offset,Ie=M.viewableItems<re.length;return a.createElement("div",{className:"mx-n4 mb-n3"},a.createElement("div",{className:pe()?"pb-3 overflow-hidden":"px-4 pb-3 overflow-hidden"},!e.hideName&&a.createElement("div",{className:pe()?"px-4":""},a.createElement(l.B,{name:ge.name,description:ge.description,appLink:(0,j.LU)(e.appLink,ge),onClick:e.onClick,analyticsData:Object.assign({id:null==ge?void 0:ge.id,name:null==ge?void 0:ge.name},e.analyticsData),analyticsOptions:w.d.getSliderHeadingAnalyticsOptions(),showSeeMoreLink:Ie,content:re,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})),a.createElement("div",{ref:H,className:"position-relative mx-n1 ".concat(pe()?"".concat(I.Z.mobileScroll," px-4"):""," ").concat(e.hideBleedingContent?"overflow-hidden-x":"")},!Ee&&a.createElement(a.Fragment,null,!e.hideBleedingContent&&!$&&!je&&a.createElement("div",{className:I.Z.leftOverflowGradient}),a.createElement(m.W,{direction:m.f.Left,onClick:function(){fe(),V({type:v.n.Previous}),c.k.logUserAction(he(v.n.Previous),w.d.getSliderAnalyticsOptions()),i.q.isFunction(e.onPrevious)&&e.onPrevious()},hide:!!e.hideButtons||(0,j.yZ)($,Z,M.offset,M.viewableItems,re.length,ue),contents:e.contents,className:e.leftWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea,state:M})),a.createElement(d.V,{position:M.position,positionType:f.C.Percentage,onTouchMove:"drag"===e.touchBehavior&&(0,j.p$)(M,G,z,D,A,L,U),onTouchEnd:"drag"===e.touchBehavior&&(0,j.mE)(G,L,F,U,V,e.onNext,e.onPrevious),ref:G,percentageDragged:F},re.map((function(t,n){return a.createElement("li",Object.assign({key:"".concat(t.id,":").concat(n),onFocus:function(){return ce(n)},onBlur:le,className:I.Z.widgetItemWrapper},de(n)),a.createElement(be,Object.assign({data:t,collectionAppLink:e.appLink,getAppLink:e.getChildAppLink?function(){return e.getChildAppLink(t)}:function(){return null},context:ve,preloadImage:(0,j.eM)(M,re)(t),thumbnailSize:e.thumbnailSize||p.h2.Medium,analyticsData:Object.assign(Object.assign({widgetId:ge.id,widgetName:ge.name,itemIndex:n},O),P(t)),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),w.d.getSliderItemAnalyticsOptions()),onHover:function(e){pe()||window.setTimeout((function(){!function(e,t){if(re.length===M.viewableItems)return X(e),void Y(e);t+1!==re.length?0!==t?(t+1-M.offset%M.viewableItems)%M.viewableItems!=0?(t-M.offset%M.viewableItems)%M.viewableItems!=0||X(e):Y(e):X(e):Y(e)}(e,n)}),e?0:200)}},e.extraChildComponentProps)))})),pe()&&a.createElement("div",{className:"ps-4"})),!Ee&&a.createElement(a.Fragment,null,a.createElement(m.W,{direction:m.f.Right,onClick:function(){we?s.Q.C$.trigger((0,j.LU)(e.appLink,ge)):(me(),V({type:v.n.Next}),c.k.logUserAction(he(v.n.Next),w.d.getSliderAnalyticsOptions()),i.q.isFunction(e.onNext)&&e.onNext())},hide:!!e.hideButtons||(0,j.DK)(J,Z,M.offset,M.viewableItems,re.length,we,ue),contents:e.contents,hoverText:we&&r.T.getPhrase(S,"seeMore"),className:e.rightWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea,state:M}),!e.hideBleedingContent&&!J&&!ke&&a.createElement("div",{className:I.Z.rightOverflowGradient})))))}N.defaultProps={type:h.l9.Row,minimumItemCount:0,extraChildComponentProps:{},touchBehavior:"scroll"}},61871:(e,t,n)=>{n.d(t,{CU:()=>l,eS:()=>o,m0:()=>u});var a=n(10841),r=n(26154),i=n(92644),o={offset:0,viewableItems:4,position:0,totalItems:0,contents:null,type:r.l9.Row},s=function(e){var t=e.viewableItems,n=e.offset,a=e.position,r=e.totalItems-n;return r%t==0||r>t?{position:a-100,offset:n+t}:r<t?{position:a-r/t*100,offset:n+r}:{position:a,offset:n}},c=function(e){var t=e.viewableItems,n=e.offset,a=e.position,r=n-t;return r%t==0||r>t?{position:a+100,offset:n-t}:r<t?{position:a+r/t*100,offset:n-r}:{position:a,offset:n}};function l(e,t){var n=t.type,r=t.payload,o=void 0===r?{}:r;switch(n){case a.n.Next:return Object.assign(Object.assign({},e),s(e));case a.n.Previous:return Object.assign(Object.assign({},e),c(e));case a.n.JumpToIndex:return Object.assign(Object.assign({},e),{offset:o.offset,position:-100*(o.offset-1)});case a.n.Resize:var l=(0,i.Wl)(e.contents)(o.breakpoints,e.type,e.totalItems);return Object.assign(Object.assign({},e),{position:0,offset:l,viewableItems:l});case a.n.Init:var d=(0,i.Wl)(o.contents)(o.breakpoints,o.type,o.totalItems);return u(Object.assign(Object.assign({},e),{offset:d,viewableItems:d,type:o.type,contents:o.contents,totalItems:o.totalItems,position:0}));case a.n.Update:return Object.assign(Object.assign({},e),{totalItems:o.totalItems});default:return e}}function u(e){return Object.assign(Object.assign({},o),e)}},92644:(e,t,n)=>{n.d(t,{$5:()=>m,DK:()=>F,LU:()=>p,Wl:()=>g,eM:()=>f,iV:()=>U,lv:()=>v,mE:()=>D,p$:()=>T,yZ:()=>B});var a=n(32735),r=n(91967),i=n(1048),o=n(28400),s=n(58704),c=n(10841),l=n(79967),u=n(26154),d=n(5281);function m(e,t,n){var o,s=e.collection;s&&!i.t.isEmpty(s)||e.prefetched||(o=e.fetch(n),s=o.data);var m=r.q.isFunction(e.setData)&&s?e.setData(s):s,f=m,p=(0,l.k)();return a.useEffect((function(){if(s&&!i.t.isEmpty(s)){e.limitTotalItems&&(f=m.length>d.x?m.slice(0,d.x):m);var n=e.type;n===u.l9.ResourcesTile&&(n=u.l9.Row),t({type:c.n.Init,payload:{totalItems:f.length,breakpoints:p,type:n,contents:e.contents}})}}),[null==m?void 0:m.length]),o}function f(e,t){for(var n=e.offset,a=e.viewableItems,r=n,i=[],o=0;o<r+a;o++)i.push(o);return function(e){var n=t.indexOf(e);return i.includes(n)}}function p(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,o.m.slugify(t.name)]})}function v(e,t){var n=e.id,a=e.name,r=e.description,i={};return Array.isArray(t)?{id:n,name:a,description:r}:(e.id&&(i.id=n),e.name&&(i.name=a),e.description&&(i.description=r),Object.assign(Object.assign({},t),i))}function g(e){switch(e){case s.z.Playlists:return y;case s.z.Videos:return w;case s.z.RecentActivities:return E;case s.z.FeedVideos:return j;case s.z.Subjects:return k;case s.z.InteractivesV2:return O;case s.z.Interactives:return I;case s.z.ClipsV2:return S;case s.z.Clips:return C;case s.z.PlayPageResources:return x;case s.z.PlayPageResourcesV2:return N;case s.z.DashboardResources:return w;case s.z.Libraries:case s.z.Folders:return h;case s.z.Ratings:return A;case s.z.SpecialEvents:return L;case s.z.Companies:return b;case s.z.SmallSeries:return R;case s.z.Series:default:return P}}function y(e,t,n){var a=5;return e.xs?a=2:e.sm?a=3:e.md&&(a=4),n<a&&(a=n),a}function b(e,t,n){var a=8;return e.xs||e.sm?a=4:e.md&&(a=6),n<a&&(a=n),a}function h(e,t,n){var a=3;return e.xs||e.sm?a=1:e.md?a=2:e.lg&&(a=3),n<a&&(a=n),a}function w(e,t,n){var a=4;return e.xs&&(a=1),e.sm&&(a=2),(e.md||e.lg)&&(a=3),t===u.l9.LargeRow&&a>3&&(a=3),n<a&&(a=n),a}function E(e,t,n){var a=4;return e.xs&&(a=2),e.sm&&(a=3),n<a&&(a=n),a}function j(e,t,n){return 1}function k(e,t,n){if(t===u.l9.LargeRow){var a=5;return e.xs?a=2:e.sm?a=3:e.md&&(a=4),n<a&&(a=n),a}var r=6;return e.xs?r=2:e.sm?r=3:e.md?r=4:e.lg?r=5:(e.xl||e.xxl)&&(r=6),n<r&&(r=n),r}function I(e,t,n){var a=3;return(e.md||e.sm)&&(a=2),e.xs&&(a=1),n<Math.ceil(a)&&(a=n),a}function C(e,t,n){var a=3;return(e.md||e.sm)&&(a=2),e.xs&&(a=1),n<Math.ceil(a)&&(a=n),a}function O(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function S(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function x(e,t,n){var a=4;return e.sm&&(a=3),e.xs&&(a=2),n<a&&(a=n),a}function N(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function P(e,t,n){var a=4;return e.xs?a=2:e.sm&&(a=3),n<a&&(a=n),a}function R(e,t,n){var a=6;return e.xs?a=2:e.sm?a=3:e.md?a=4:e.lg&&(a=5),n<a&&(a=n),a}function A(e,t,n){if(n<4)return n;var a=5;return(e.xs||e.sm)&&(a=3),(e.md||e.lg)&&(a=4),4===n&&(e.xs||e.sm)&&(a=3),n<a&&(a=n),a}function L(e,t,n){var a=6;return e.xs&&(a=2),e.sm&&(a=3),e.md&&(a=4),e.lg&&(a=5),(e.xl||e.xxl)&&(a=6),n<a&&(a=n),a}function T(e,t,n,a,r,i,o){return function(s){var c=s.touches.item(0).clientX;r||(t.current.style.transition="",a(t.current.getBoundingClientRect().width),i(c));var l=(r-c)/n*100;(l<0&&e.offset===e.viewableItems||l>0&&e.offset===e.totalItems)&&(l=0),o(l)}}var z=7.5;function D(e,t,n,a,r,i,o){return function(){if(e.current.style.transition="transform .4s ease-in-out",t(null),Math.abs(n)>=z){var s=n>0?c.n.Next:c.n.Previous;r({type:s}),n>0&&i?i():n<0&&o&&o()}a(0)}}function B(e,t,n,a,r,i){return!!e||r<=a||(t?n===a:!i||n===a)}function F(e,t,n,a,r,i,o){return!!e||r<=a||n!==a&&(t?!i&&r<=n:!o||n===r)}function U(e,t){a.useEffect((function(){e&&!e.current&&(e.current={jumpToIndex:function(e){return t({type:c.n.JumpToIndex,payload:{offset:e+1}})}})}),[null==e?void 0:e.current])}},31309:(e,t,n)=>{n.d(t,{j:()=>s});var a=n(32735),r=n(55827),i=n(79967),o=n(52993);function s(e){for(var t,n,o=(t=e.size,(n=(0,i.k)()).xs?{itemCount:1,colSize:12}:n.sm?{itemCount:2,colSize:6}:n.md||n.lg?{itemCount:3,colSize:4}:{itemCount:"sm"===t?4:3,colSize:"sm"===t?3:4}),s=o.itemCount,c=o.colSize,l=e.childComponent,u=[],d=0;d<s;d++)u.push(a.createElement(l,{key:d,colSize:c}));return a.createElement("div",{className:"widget"},a.createElement(r.l,{hideHeading:e.hideHeading,hideDescription:e.hideDescription,name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row g-0 mx-n1"},u))}s.defaultProps={size:"sm",childComponent:function(e){var t=e.colSize;return a.createElement("div",{className:"col-".concat(t," px-1")},a.createElement("div",{className:"".concat(o.Z.partialItem," partial-loading-background rounded-3")}))}}},11518:(e,t,n)=>{n.d(t,{j7:()=>r.j,kM:()=>a.k});var a=n(5281),r=(n(61871),n(31309))},84342:(e,t,n)=>{n.d(t,{s:()=>j,R:()=>k});var a=n(32735),r=n(39202),i=n(92582),o=n(65858),s=n(57408),c=n(11607),l=n(47673),u=n(83914),d=n(97663),m=n(64444),f=n(1948),p=n(71063),v=n(4594),g=n(1164),y=n(79967),b=n(45778),h=n(54297),w=n(35223);const E={imageStyle:"I9E5O",item:"tqUFn",dashboard:"o7j7p",playPage:"V2RwX",aspectRatio:"OnJDH",outerContainer:"CIFy7",innerContainer:"oUZPD",actions:"jzGAm",titleBelow:"Cpjs3",thumbnailContainer:"EDiGi",titleAbove:"e9ejn",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL",download:"fbb_e"};function j(e){var t,n,r,i,o=null;"metadata"in e.data&&(o=e.data.metadata);var s=b.G.isType(e.data,v.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:E.aspectRatio},a.createElement("div",{className:E.outerContainer},a.createElement("div",{className:function(t){var n,a="\n d-flex flex-column align-items-center justify-content-end rounded-3 h-100\n position-relative ".concat(function(e){switch(e){case"atom-guide":return E.atomGuide;case"student-activity":return E.studentActivity;case"teacher-pack":return E.teacherPack;case"additional-materials":return E.additionalMaterials;default:return E.userUploaded}}(t)," ").concat(E.innerContainer);return(null===(n=e.theme)||void 0===n?void 0:n.containerClass)?a+=" ".concat(e.theme.containerClass):a+=" pt-3 px-3",e.applyHoverState&&(a+=" ".concat(E.hoverState)),a}(null==o?void 0:o.resourceType)},"above"===e.titlePosition&&a.createElement(m.u,{title:e.data.name},a.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(E.text)},a.createElement("span",{className:"clamp-1"},e.data.name))),a.createElement("div",{className:"\n ".concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.thumbnailContainerClass)&&void 0!==n?n:""," w-75 overflow-hidden \n ").concat(E.thumbnailContainer," ").concat("above"===e.titlePosition?E.titleAbove:""," \n ").concat(E.imageStyle,"\n ")},a.createElement(l.C,{resource:e.data,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.imageErrorFallbackUrl,preloadImage:e.preloadImage})),s&&e.onClickDownload&&"normal"===e.actionBehaviour&&a.createElement("div",{className:E.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(E.download," d-flex align-items-center justify-content-center")},a.createElement(u.x,{svgName:w.vn.Download}))),!e.hideTypeBadge&&s&&a.createElement(f.y,{typeId:v.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(E.titleBelow)},b.G.isType(e.data,v.E.Resource)&&!!(null===(i=null===(r=e.data)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.resourceType)&&a.createElement(d.m,null,h.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}j.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var k=a.memo((function(e){var t,n,c,l,u=(t=e.data,n=e.actionBehaviour,l=(0,y.k)(),"public"===n||!l.xs&&!l.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===g.L.Image||(t.metadata.type===g.L.Pdf?!!t.url:!!(null===(c=t.pdf)||void 0===c?void 0:c.url)))),d=Object.assign(Object.assign({},e.analyticsData),e.data),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:o.Vw.Click,entity:e.data.typeId===v.E.Resource?o.py.Resource:o.py.Link});function f(){i.k.logUserAction(d,m)}var b,h=Object.assign(Object.assign({},e),{applyHoverState:u||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(E.item," ").concat("play-page"===e.location?E.playPage:E.dashboard," ").concat(p.M.RESOURCE_ITEM_SELECTOR)},(b="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:b,onClick:f},a.createElement(j,Object.assign({},h))):u?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(b," cursor-pointer d-inline"),onClick:function(){f(),r.C$.trigger(e.getAppLink(e.data))}},a.createElement(j,Object.assign({},h))):a.createElement(s.F,{appLink:e.getAppLink(e.data),className:b,analyticsData:d,analyticsOptions:m},a.createElement(j,Object.assign({},h))):e.data.url?a.createElement("a",{href:e.data.url,className:b,onClick:f},a.createElement(j,Object.assign({},h))):a.createElement("div",{className:b},a.createElement(j,Object.assign({},h)))))}))},58704:(e,t,n)=>{var a;n.d(t,{z:()=>a}),function(e){e.Videos="videos",e.FeedVideos="feed videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.Interactives="interactives",e.Clips="clips",e.PlayPageResources="play page resources",e.DashboardResources="dashboard resources",e.Libraries="Libraries",e.Folders="Folders",e.RecentActivities="recent activities",e.SmallSeries="small series",e.Companies="companies",e.Ratings="ratings",e.SpecialEvents="special events",e.InteractivesV2="interactives v2",e.ClipsV2="clips v2",e.PlayPageResourcesV2="playpage resources v2"}(a||(a={}))},61699:(e,t,n)=>{n.d(t,{o:()=>l});var a=n(99940),r=n(97395);function i(e){return 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 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)?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.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=n(62803).v.CLASSIFICATION_COLLECTION,c=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},l={availablePresentations:function(e){return{url:c(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,n,r){return{url:(i=e.id,"/api/domain/v1/subjects/presentations/".concat(i)),key:"set:".concat(t,":presentation"),type:a.k.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentation:".concat(t.toLocaleLowerCase()),"subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences","widgets:v3","content:update:videos","content:updates"],success:n,error:r};var i},allSubjectPreferences:function(){return{url:"/api/domain/v1/subjects/preferences?query=".concat(s,"&type=subject"),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:"/api/domain/v1/subjects/classifications/following?query=".concat(s),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,n,r){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:subjects",data:e,type:a.k.POST,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])}},unfollowSubjects:function(e,t,n,o){return{url:(s=e,r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:s})),key:"unfollow:subjects",type:a.k.DELETE,success:t,error:n,always:o,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])};var s},allLevelPreferences:function(){return{url:"/api/domain/v1/subjects/audiences?type=subject",key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:"/api/domain/v1/subjects/audiences/following",key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,n,r){return{url:"/api/domain/v1/subjects/audiences/following",key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,a=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){a.find((function(t){return t.masterId===e.masterId}))||a.push(e)})),{"my:level:preferences":a}}},type:a.k.POST,success:t,error:n,always:r}},unfollowLevels:function(e,t,n,o){return{url:(s=e.map((function(e){return e.masterId})),r._.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:s})),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,a=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){if(a.find((function(t){return t.masterId===e.masterId}))){var t=a.findIndex((function(t){return t.masterId===e.masterId}));a=[].concat(i(a.slice(0,t)),i(a.slice(t+1)))}})),{"my:level:preferences":a}}},type:a.k.DELETE,success:t,error:n,always:o};var s}}},54297:(e,t,n)=>{n.d(t,{C:()=>a});var a={getResourceTypeName:function(e){switch(e){case"additional-materials":return"Additional Materials";case"atom-guide":return"ATOM Guide";case"teacher-pack":return"Teacher Pack";case"student-activity":return"Student Activity";default:return"N/A"}}}},6117:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(39202),r=n(14292),i=n(97395);function o(e){return o="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},o(e)}var s={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||a.C$.getCurrentAppLink(),s=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},r=!0,(a=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(a=t))in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n));var n,a,r}),{});return Object.keys(e).reduce((function(t,a){return a in n&&(t[a]=e[a]),t}),{})}(n.params,e.allowedParams),c=a.C$.getHref(Object.assign(Object.assign({},n),{params:s}));return"function"==typeof e.hrefTransformer&&(c=e.hrefTransformer(c)),i._.safeUrlConcat(t,c)}}},52993:(e,t,n)=>{n.d(t,{Z:()=>a});const a={rightOverflowGradient:"tAbzW",leftOverflowGradient:"JXtNs",partialItem:"iNH_I",mobileScroll:"bDcOS",widgetItemWrapper:"cAFYH"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 1934-3a87d81fd0-streamable-learning.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1934],{51934:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r="undefined"!=typeof window&&void 0!==window.document,h=r?window:{},s=!!r&&"ontouchstart"in h.document.documentElement,c=!!r&&"PointerEvent"in h,l="cropper",d="all",p="crop",m="move",u="zoom",g="e",f="w",v="s",w="n",b="ne",x="nw",y="se",M="sw",C="".concat(l,"-crop"),D="".concat(l,"-disabled"),k="".concat(l,"-hidden"),B="".concat(l,"-hide"),O="".concat(l,"-invisible"),T="".concat(l,"-modal"),E="".concat(l,"-move"),W="".concat(l,"Action"),N="".concat(l,"Preview"),H="crop",L="move",z="none",Y="crop",X="cropend",R="cropmove",S="cropstart",A="dblclick",j=c?"pointerdown":s?"touchstart":"mousedown",P=c?"pointermove":s?"touchmove":"mousemove",I=c?"pointerup pointercancel":s?"touchend touchcancel":"mouseup",U="ready",q="resize",$="wheel",_="zoom",Q="image/jpeg",K=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Z=/^data:/,G=/^data:image\/jpeg;base64,/,V=/^img|canvas$/i,F={viewMode:0,dragMode:H,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},J=Number.isNaN||h.isNaN;function tt(t){return"number"==typeof t&&!J(t)}var et=function(t){return t>0&&t<1/0};function it(t){return void 0===t}function at(e){return"object"===t(e)&&null!==e}var nt=Object.prototype.hasOwnProperty;function ot(t){if(!at(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&nt.call(i,"isPrototypeOf")}catch(t){return!1}}function rt(t){return"function"==typeof t}var ht=Array.prototype.slice;function st(t){return Array.from?Array.from(t):ht.call(t)}function ct(t,e){return t&&rt(e)&&(Array.isArray(t)||tt(t.length)?st(t).forEach((function(i,a){e.call(t,i,a,t)})):at(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var lt=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return at(t)&&i.length>0&&i.forEach((function(e){at(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},dt=/\.\d*(?:0|9){12}\d*$/;function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return dt.test(t)?Math.round(t*e)/e:t}var mt=/^width|height|left|top|marginLeft|marginTop$/;function ut(t,e){var i=t.style;ct(e,(function(t,e){mt.test(e)&&tt(t)&&(t="".concat(t,"px")),i[e]=t}))}function gt(t,e){if(e)if(tt(t.length))ct(t,(function(t){gt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function ft(t,e){e&&(tt(t.length)?ct(t,(function(t){ft(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function vt(t,e,i){e&&(tt(t.length)?ct(t,(function(t){vt(t,e,i)})):i?gt(t,e):ft(t,e))}var wt=/([a-z\d])([A-Z])/g;function bt(t){return t.replace(wt,"$1-$2").toLowerCase()}function xt(t,e){return at(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(bt(e)))}function yt(t,e,i){at(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(bt(e)),i)}var Mt=/\s\s*/,Ct=function(){var t=!1;if(r){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});h.addEventListener("test",i,a),h.removeEventListener("test",i,a)}return t}();function Dt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(!Ct){var o=t.listeners;o&&o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,n,a)}))}function kt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(a.once&&!Ct){var o=t.listeners,r=void 0===o?{}:o;n=function(){delete r[e][i],t.removeEventListener(e,n,a);for(var o=arguments.length,h=new Array(o),s=0;s<o;s++)h[s]=arguments[s];i.apply(t,h)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],a),r[e][i]=n,t.listeners=r}t.addEventListener(e,n,a)}))}function Bt(t,e,i){var a;return rt(Event)&&rt(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function Ot(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Tt=h.location,Et=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Wt(t){var e=t.match(Et);return null!==e&&(e[1]!==Tt.protocol||e[2]!==Tt.hostname||e[3]!==Tt.port)}function Nt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Ht(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];tt(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),tt(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),tt(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),tt(i)&&1!==i&&r.push("scaleX(".concat(i,")")),tt(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function Lt(t,e){var i=t.pageX,a=t.pageY,o={endX:i,endY:a};return e?o:n({startX:i,startY:a},o)}function zt(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=et(a),r=et(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}var Yt=String.fromCharCode;var Xt=/^data:.*,/;function Rt(t){var e,i=new DataView(t);try{var a,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,h=2;h+1<r;){if(255===i.getUint8(h)&&225===i.getUint8(h+1)){n=h;break}h+=1}if(n){var s=n+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=Yt(t.getUint8(n));return a}(i,n+4,4)){var c=i.getUint16(s);if(((a=18761===c)||19789===c)&&42===i.getUint16(s+2,a)){var l=i.getUint32(s+4,a);l>=8&&(o=s+l)}}}if(o){var d,p,m=i.getUint16(o,a);for(p=0;p<m;p+=1)if(d=o+12*p+2,274===i.getUint16(d,a)){d+=8,e=i.getUint16(d,a),i.setUint16(d,1,a);break}}}catch(t){e=1}return e}var St={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper;gt(a,k),ft(t,k);var n={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};this.containerData=n,ut(a,{width:n.width,height:n.height}),gt(t,k),ft(a,k)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};c.left=(t.width-h)/2,c.top=(t.height-s)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=lt({},e),this.initialCanvasData=lt({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var d=zt({aspectRatio:h,width:c,height:l});c=d.width,l=d.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e)if(r>(s?0:1)){var p=a.width-n.width,m=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,m),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,m),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,m),n.maxTop=Math.max(0,m))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,ut(this.canvas,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);lt(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),ut(this.image,lt({width:i.width,height:i.height},Ht(lt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=lt({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),d*h>l?d=l/h:l=d*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,d),o.maxWidth=l,o.maxHeight=d}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&yt(this.face,W,i.width>=e.width&&i.height>=e.height?m:d),ut(this.cropBox,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Bt(this.element,Y,this.getData())}},At={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,ct(r,(function(t){var i=document.createElement("img");yt(t,N,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){ct(this.previews,(function(t){var e=xt(t,N);ut(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(at(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(bt(e)))}(t,N)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ut(this.viewBoxImage,lt({width:o,height:r},Ht(lt({translateX:-h,translateY:-s},t)))),ct(this.previews,(function(e){var i=xt(e,N),c=i.width,l=i.height,d=c,p=l,m=1;a&&(p=n*(m=c/a)),n&&p>l&&(d=a*(m=l/n),p=l),ut(e,{width:d,height:p}),ut(e.getElementsByTagName("img")[0],lt({width:o*m,height:r*m},Ht(lt({translateX:-h*m,translateY:-s*m},t))))})))}},jt={bind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&kt(t,S,e.cropstart),rt(e.cropmove)&&kt(t,R,e.cropmove),rt(e.cropend)&&kt(t,X,e.cropend),rt(e.crop)&&kt(t,Y,e.crop),rt(e.zoom)&&kt(t,_,e.zoom),kt(i,j,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&kt(i,$,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&kt(i,A,this.onDblclick=this.dblclick.bind(this)),kt(t.ownerDocument,P,this.onCropMove=this.cropMove.bind(this)),kt(t.ownerDocument,I,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&kt(window,q,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&Dt(t,S,e.cropstart),rt(e.cropmove)&&Dt(t,R,e.cropmove),rt(e.cropend)&&Dt(t,X,e.cropend),rt(e.crop)&&Dt(t,Y,e.crop),rt(e.zoom)&&Dt(t,_,e.zoom),Dt(i,j,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Dt(i,$,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Dt(i,A,this.onDblclick),Dt(t.ownerDocument,P,this.onCropMove),Dt(t.ownerDocument,I,this.onCropEnd),e.responsive&&Dt(window,q,this.onResize)}},Pt={resize:function(){var t=this.options,e=this.container,i=this.containerData,a=Number(t.minContainerWidth)||200,n=Number(t.minContainerHeight)||100;if(!(this.disabled||i.width<=a||i.height<=n)){var o,r,h=e.offsetWidth/i.width;1===h&&e.offsetHeight===i.height||(t.restore&&(o=this.getCanvasData(),r=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(ct(o,(function(t,e){o[e]=t*h}))),this.setCropBoxData(ct(r,(function(t,e){r[e]=t*h})))))}},dblclick:function(){var t,e;this.disabled||this.options.dragMode===z||this.setDragMode((t=this.dragBox,e=C,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?L:H))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(tt(e)&&1!==e||tt(i)&&0!==i||t.ctrlKey))){var a,n=this.options,o=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){o[t.identifier]=Lt(t)})):o[t.pointerId||0]=Lt(t),a=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?u:xt(t.target,W),K.test(a)&&!1!==Bt(this.element,S,{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,a===p&&(this.cropping=!0,gt(this.dragBox,T)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==Bt(this.element,R,{originalEvent:t,action:e})&&(t.changedTouches?ct(t.changedTouches,(function(t){lt(i[t.identifier]||{},Lt(t,!0))})):lt(i[t.pointerId||0]||{},Lt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,vt(this.dragBox,T,this.cropped&&this.options.modal)),Bt(this.element,X,{originalEvent:t,action:e}))}}},It={change:function(t){var e,i=this.options,a=this.canvasData,o=this.containerData,r=this.cropBoxData,h=this.pointers,s=this.action,c=i.aspectRatio,l=r.left,C=r.top,D=r.width,B=r.height,O=l+D,T=C+B,E=0,W=0,N=o.width,H=o.height,L=!0;!c&&t.shiftKey&&(c=D&&B?D/B:1),this.limited&&(E=r.minLeft,W=r.minTop,N=E+Math.min(o.width,a.width,a.left+a.width),H=W+Math.min(o.height,a.height,a.top+a.height));var z=h[Object.keys(h)[0]],Y={x:z.endX-z.startX,y:z.endY-z.startY},X=function(t){switch(t){case g:O+Y.x>N&&(Y.x=N-O);break;case f:l+Y.x<E&&(Y.x=E-l);break;case w:C+Y.y<W&&(Y.y=W-C);break;case v:T+Y.y>H&&(Y.y=H-T)}};switch(s){case d:l+=Y.x,C+=Y.y;break;case g:if(Y.x>=0&&(O>=N||c&&(C<=W||T>=H))){L=!1;break}X(g),(D+=Y.x)<0&&(s=f,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case w:if(Y.y<=0&&(C<=W||c&&(l<=E||O>=N))){L=!1;break}X(w),B-=Y.y,C+=Y.y,B<0&&(s=v,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case f:if(Y.x<=0&&(l<=E||c&&(C<=W||T>=H))){L=!1;break}X(f),D-=Y.x,l+=Y.x,D<0&&(s=g,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case v:if(Y.y>=0&&(T>=H||c&&(l<=E||O>=N))){L=!1;break}X(v),(B+=Y.y)<0&&(s=w,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case b:if(c){if(Y.y<=0&&(C<=W||O>=N)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c}else X(w),X(g),Y.x>=0?O<N?D+=Y.x:Y.y<=0&&C<=W&&(L=!1):D+=Y.x,Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=M,C-=B=-B,l-=D=-D):D<0?(s=x,l-=D=-D):B<0&&(s=y,C-=B=-B);break;case x:if(c){if(Y.y<=0&&(C<=W||l<=E)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c,l+=r.width-D}else X(w),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y<=0&&C<=W&&(L=!1):(D-=Y.x,l+=Y.x),Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=y,C-=B=-B,l-=D=-D):D<0?(s=b,l-=D=-D):B<0&&(s=M,C-=B=-B);break;case M:if(c){if(Y.x<=0&&(l<=E||T>=H)){L=!1;break}X(f),D-=Y.x,l+=Y.x,B=D/c}else X(v),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y>=0&&T>=H&&(L=!1):(D-=Y.x,l+=Y.x),Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=b,C-=B=-B,l-=D=-D):D<0?(s=y,l-=D=-D):B<0&&(s=x,C-=B=-B);break;case y:if(c){if(Y.x>=0&&(O>=N||T>=H)){L=!1;break}X(g),B=(D+=Y.x)/c}else X(v),X(g),Y.x>=0?O<N?D+=Y.x:Y.y>=0&&T>=H&&(L=!1):D+=Y.x,Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=x,C-=B=-B,l-=D=-D):D<0?(s=M,l-=D=-D):B<0&&(s=b,C-=B=-B);break;case m:this.move(Y.x,Y.y),L=!1;break;case u:this.zoom(function(t){var e=n({},t),i=[];return ct(t,(function(t,a){delete e[a],ct(e,(function(e){var a=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(a*a+n*n),s=(Math.sqrt(o*o+r*r)-h)/h;i.push(s)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(h),t),L=!1;break;case p:if(!Y.x||!Y.y){L=!1;break}e=Ot(this.cropper),l=z.startX-e.left,C=z.startY-e.top,D=r.minWidth,B=r.minHeight,Y.x>0?s=Y.y>0?y:b:Y.x<0&&(l-=D,s=Y.y>0?M:x),Y.y<0&&(C-=B),this.cropped||(ft(this.cropBox,k),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}L&&(r.width=D,r.height=B,r.left=l,r.top=C,this.action=s,this.renderCropBox()),ct(h,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Ut={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gt(this.dragBox,T),ft(this.cropBox,k),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=lt({},this.initialImageData),this.canvasData=lt({},this.initialCanvasData),this.cropBoxData=lt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(lt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ft(this.dragBox,T),gt(this.cropBox,k)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ct(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ft(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gt(this.cropper,D)),this},destroy:function(){var t=this.element;return t[l]?(t[l]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(it(t)?t:a+Number(t),it(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(tt(t)&&(i.left=t,a=!0),tt(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===Bt(this.element,_,{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var d=this.pointers,p=Ot(this.cropper),m=d&&Object.keys(d).length?function(t){var e=0,i=0,a=0;return ct(t,(function(t){var n=t.startX,o=t.startY;e+=n,i+=o,a+=1})),{pageX:e/=a,pageY:i/=a}}(d):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((m.pageX-p.left-n.left)/o),n.top-=(l-r)*((m.pageY-p.top-n.top)/r)}else ot(e)&&tt(e.x)&&tt(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return tt(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,tt(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(tt(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(tt(t)&&(i.scaleX=t,a=!0),tt(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(ct(t,(function(e,i){t[i]=e/r})),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&ot(t)){var o=!1;e.rotatable&&tt(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(tt(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),tt(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;tt(t.x)&&(n.left=t.x*r+a.left),tt(t.y)&&(n.top=t.y*r+a.top),tt(t.width)&&(n.width=t.width*r),tt(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?lt({},this.containerData):{}},getImageData:function(){return this.sized?lt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&ct(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&ot(t)&&(tt(t.left)&&(e.left=t.left),tt(t.top)&&(e.top=t.top),tt(t.width)?(e.width=t.width,e.height=t.width/i):tt(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ot(t)&&(tt(t.left)&&(a.left=t.left),tt(t.top)&&(a.top=t.top),tt(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),tt(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=function(t,e,i,a){var n=e.aspectRatio,r=e.naturalWidth,h=e.naturalHeight,s=e.rotate,c=void 0===s?0:s,l=e.scaleX,d=void 0===l?1:l,p=e.scaleY,m=void 0===p?1:p,u=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=a.fillColor,w=void 0===v?"transparent":v,b=a.imageSmoothingEnabled,x=void 0===b||b,y=a.imageSmoothingQuality,M=void 0===y?"low":y,C=a.maxWidth,D=void 0===C?1/0:C,k=a.maxHeight,B=void 0===k?1/0:k,O=a.minWidth,T=void 0===O?0:O,E=a.minHeight,W=void 0===E?0:E,N=document.createElement("canvas"),H=N.getContext("2d"),L=zt({aspectRatio:u,width:D,height:B}),z=zt({aspectRatio:u,width:T,height:W},"cover"),Y=Math.min(L.width,Math.max(z.width,g)),X=Math.min(L.height,Math.max(z.height,f)),R=zt({aspectRatio:n,width:D,height:B}),S=zt({aspectRatio:n,width:T,height:W},"cover"),A=Math.min(R.width,Math.max(S.width,r)),j=Math.min(R.height,Math.max(S.height,h)),P=[-A/2,-j/2,A,j];return N.width=pt(Y),N.height=pt(X),H.fillStyle=w,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(c*Math.PI/180),H.scale(d,m),H.imageSmoothingEnabled=x,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(o(P.map((function(t){return Math.floor(pt(t))}))))),H.restore(),N}(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),n=a.x,r=a.y,h=a.width,s=a.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(n*=c,r*=c,h*=c,s*=c);var l=h/s,d=zt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=zt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=zt({aspectRatio:l,width:t.width||(1!==c?i.width:h),height:t.height||(1!==c?i.height:s)}),u=m.width,g=m.height;u=Math.min(d.width,Math.max(p.width,u)),g=Math.min(d.height,Math.max(p.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=pt(u),f.height=pt(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,u,g);var w=t.imageSmoothingEnabled,b=void 0===w||w,x=t.imageSmoothingQuality;v.imageSmoothingEnabled=b,x&&(v.imageSmoothingQuality=x);var y,M,C,D,k,B,O=i.width,T=i.height,E=n,W=r;E<=-h||E>O?(E=0,y=0,C=0,k=0):E<=0?(C=-E,E=0,k=y=Math.min(O,h+E)):E<=O&&(C=0,k=y=Math.min(h,O-E)),y<=0||W<=-s||W>T?(W=0,M=0,D=0,B=0):W<=0?(D=-W,W=0,B=M=Math.min(T,s+W)):W<=T&&(D=0,B=M=Math.min(s,T-W));var N=[E,W,y,M];if(k>0&&B>0){var H=u/h;N.push(C*H,D*H,k*H,B*H)}return v.drawImage.apply(v,[i].concat(o(N.map((function(t){return Math.floor(pt(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||it(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===H,o=e.movable&&t===L;t=n||o?t:z,e.dragMode=t,yt(i,W,t),vt(i,C,n),vt(i,E,o),e.cropBoxMovable||(yt(a,W,t),vt(a,C,n),vt(a,E,o))}return this}},qt=h.Cropper,$t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!V.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=lt({},F,ot(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i=t,n=[{key:"noConflict",value:function(){return window.Cropper=qt,t}},{key:"setDefaults",value:function(t){lt(F,ot(t)&&t)}}],(a=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[l]){if(e[l]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n,o=this;if(t){this.url=t,this.imageData={};var r=this.element,h=this.options;if(h.rotatable||h.scalable||(h.checkOrientation=!1),h.checkOrientation&&window.ArrayBuffer)if(Z.test(t))G.test(t)?this.read((e=t.replace(Xt,""),i=atob(e),a=new ArrayBuffer(i.length),ct(n=new Uint8Array(a),(function(t,e){n[e]=i.charCodeAt(e)})),a)):this.clone();else{var s=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=c,s.onerror=c,s.ontimeout=c,s.onprogress=function(){s.getResponseHeader("content-type")!==Q&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},h.checkCrossOrigin&&Wt(t)&&r.crossOrigin&&(t=Nt(t)),s.open("GET",t),s.responseType="arraybuffer",s.withCredentials="use-credentials"===r.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=Rt(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(Yt.apply(null,st(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,Q);var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&Wt(e)&&(i||(i="anonymous"),a=Nt(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),gt(n,B),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent),a=function(e,i){lt(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else a(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat(l,"-container")),r=o.querySelector(".".concat(l,"-canvas")),h=o.querySelector(".".concat(l,"-drag-box")),s=o.querySelector(".".concat(l,"-crop-box")),c=s.querySelector(".".concat(l,"-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat(l,"-view-box")),this.face=c,r.appendChild(i),gt(t,k),a.insertBefore(o,t.nextSibling),this.isImg||ft(i,B),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,gt(s,k),e.guides||gt(s.getElementsByClassName("".concat(l,"-dashed")),k),e.center||gt(s.getElementsByClassName("".concat(l,"-center")),k),e.background&&gt(o,"".concat(l,"-bg")),e.highlight||gt(c,O),e.cropBoxMovable&&(gt(c,E),yt(c,W,d)),e.cropBoxResizable||(gt(s.getElementsByClassName("".concat(l,"-line")),k),gt(s.getElementsByClassName("".concat(l,"-point")),k)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),rt(e.ready)&&kt(t,U,e.ready,{once:!0}),Bt(t,U)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),ft(this.element,k))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&e(i.prototype,a),n&&e(i,n),t;var i,a,n}();return lt($t.prototype,St,At,jt,Pt,It,Ut),$t}()}}]);
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Cropper.js v1.5.6
3
+ * https://fengyuanchen.github.io/cropperjs
4
+ *
5
+ * Copyright 2015-present Chen Fengyuan
6
+ * Released under the MIT license
7
+ *
8
+ * Date: 2019-10-04T04:33:48.372Z
9
+ */
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2012],{16107:(e,n,r)=>{r.d(n,{w:()=>c});var t=r(32735),a=r(65294);const i="fVSzb";function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var c=t.memo((function(e){var n,r,c=e.forceLoad,u=e.extraClasses,l=void 0===u?"":u,s=e.errorFallbackImageSrc,f=e.preventLoad,d=void 0!==f&&f,m=e.errorFallbackImageClassName,p=e.src,v=e.alt,A=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(r[t[a]]=e[t[a]])}return r}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),y=(0,a.Y)({rootMargin:"500px"}),g=y.ref,h=y.inView,b=(n=t.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(c.push(t.value),c.length!==n);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(n,r)||function(e,n){if(e){if("string"==typeof e)return o(e,n);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,n):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.")}()),S=b[0],I=b[1];function P(){return S&&s?s:e.src}if(t.useEffect((function(){if((c||h)&&!d){var e=new Image;return e.onerror=function(){I(!0),s&&(e.src=s)},e.src=p,function(){return e.onerror=null}}}),[h,d]),S&&!s)return t.createElement(t.Fragment,null);if(!g)return t.createElement("img",Object.assign({className:"".concat(i," ").concat(l," ").concat(S&&m||""),alt:v,src:P()},A));var w=Object.assign(Object.assign({alt:v},A),!h&&!c||d?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:P()});return c||(w.ref=g),t.createElement("img",Object.assign({className:"".concat(i," ").concat(l," ").concat(S&&m||"")},w))}))},69454:(e,n,r)=>{r.d(n,{T:()=>d});var t=r(75896),a=r(1048),i=r(55171);function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(c.push(t.value),c.length!==n);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);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)?c(e,n):void 0}}(e,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.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var u=/\d/,l={yearsAndGradesBuilder:function(e){var n=e.map((function(e){return e.name})).join(" "),r=n.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],t=n.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!u.test(e.name)})),i=t.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(i+="s"),a&&r.length)return"".concat(i," ").concat(a.name.charAt(0)," - ").concat(r.pop());var o=function(e){var n,r,t,a,i=!1,o=[];for(e=e.sort((function(e,n){return e-n})),t=0;t<e.length;t++)a=t+1,i||(n=e[t]),r=e[a],e[t]+1===r?i=!0:i?(o.push("".concat(n," - ").concat(e[t])),i=!1):(o.push("".concat(e[t])),i=!1);return o}(r);return"".concat(i," ").concat(o.join(", "))},internationalSecondaryBuilder:function(e){return l.englandSecondaryBuilder(e)},scotlandPrimaryBuilder:function(e){var n=t.m.first(e),r=t.m.last(e),a=o(n.name.split(" "),1)[0],i=o(r.name.split(" "),1)[0];return"First"===a&&(a="1st"),"First"===i&&(i="1st"),"Second"===a&&(a="2nd"),"Second"===i&&(i="2nd"),a===i?"".concat(a," Level"):"".concat(a," - ").concat(i," Level")},internationalPrimaryBuilder:function(e){var n=t.m.first(e),r=t.m.last(e);if(n.name===r.name)return n.name;var a=o(n.name.split(" "),1)[0],i=o(r.name.split(" "),1)[0];return"Lower"===a&&(a="Low"),"Lower"===i&&(i="Low"),"Middle"===a&&(a="Mid"),"Middle"===i&&(i="Mid"),"".concat(a," - ").concat(i," Pri")},englandSecondaryBuilder:function(e){var n=t.m.first(e),r=t.m.last(e);return n.name===r.name?n.name:"Advanced"===r.name?"lower"===o(n.name.split(" "),1)[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},scotlandSecondaryBuilder:function(e){var n=t.m.first(e),r=t.m.last(e);return n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level"},englandPrimaryBuilder:function(e){var n=t.m.first(e),r=t.m.last(e),a=t.m.first(n.name.split(" ")),i=t.m.first(r.name.split(" ")),o=n.name.split(" ").find((function(e){return!isNaN(+e)})),c=r.name.split(" ").find((function(e){return!isNaN(+e)}));if(n===r)return"Key"===a||"Reception"===a?n.name:"".concat(a," KS").concat(o);var u="",l="";return u="Reception"===a?"R":"KS".concat(o),l="KS".concat(c),"Lower"===a&&"Upper"===i?"L ".concat(u," - U ").concat(l):("Lower"===a&&(u="Lower ".concat(u)),"Upper"===i&&(l="Upper ".concat(l)),"Key"===i&&(l=r.name),"".concat(u," - ").concat(l))}},s=/([0-9]+)/gi,f=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,n){var r=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return n.filter((function(e){return r.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var n="";switch(+t.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:case i.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];n=l.yearsAndGradesBuilder(e);break;case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];n=l.internationalSecondaryBuilder(e);break;case i.e.PresentationIds.INTERNATIONAL_PRIMARY:n=l.internationalPrimaryBuilder(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:n=l.scotlandPrimaryBuilder(e);break;case i.e.PresentationIds.ENGLISH_SECONDARY:n=l.englandSecondaryBuilder(e);break;case i.e.PresentationIds.SCOTLAND_SECONDARY:n=l.scotlandSecondaryBuilder(e);break;case i.e.PresentationIds.ENGLAND_PRIMARY:n=l.englandPrimaryBuilder(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return n?{name:n}:null},sortMembersWithDuplicateNamesByAudience:function(e){var n=function(e){return e.length?(e.forEach((function(e){var a=+t.m.first(e.name.match(s));if(!n)return n=e,void(r=a);a<r&&(n=e)})),n):null;var n,r},r={},a=[];return e.forEach((function(e){if(!r[e.name])return r[e.name]=1,void a.push(e);a.push(e),r[e.name]++;var t=a.splice(a.length-r[e.name]).sort((function(e,r){var t=n(e.subjectPresentationAudiences.data),a=n(r.subjectPresentationAudiences.data);if(!t&&a)return 1;if(!a)return-1;var i=t.name.localeCompare(a.name);return 0===i?i:i>0?-1:1}));a=a.concat(t)})),a},getActiveAudiencesFromParams:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(n)&&!a.t.isEmpty(n)&&e&&e.length&&d.shouldShowAudiences(e)){var r=n.a;if(r){"string"==typeof r&&(r=[r]);var t=function(e){return e.replace(f,"").toLowerCase()},i=r.reduce((function(e,n){return e[t(n)]=n,e}),{});return e.filter((function(e){return i[t(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2042],{52214:(t,e,r)=>{"use strict";r.d(e,{aN:()=>o});var i=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var i,n,s;if(Array.isArray(e)){if((i=e.length)!=r.length)return!1;for(n=i;0!=n--;)if(!t(e[n],r[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((i=(s=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=i;0!=n--;){var o=s[n];if(!t(e[o],r[o]))return!1}return!0}return e!=e&&r!=r};const n="__googleMapsScriptId";var s;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(s||(s={}));class o{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:s,id:a=n,language:h,libraries:l=[],mapIds:f,nonce:u,region:c,retries:p=3,url:g="https://maps.googleapis.com/maps/api/js",version:d}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=s,this.id=a||n,this.language=h,this.libraries=l,this.mapIds=f,this.nonce=u,this.region=c,this.retries=p,this.url=g,this.version=d,o.instance){if(!i(this.options,o.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(o.instance.options)}`);return o.instance}o.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?s.FAILURE:this.done?s.SUCCESS:this.loading?s.LOADING:s.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}},33003:t=>{t.exports=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(t,e){var r=t[0],i=t[1],n=t[2],s=t[3];i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&n|~i&s)+e[0]-680876936|0)<<7|r>>>25)+i|0)&i|~r&n)+e[1]-389564586|0)<<12|s>>>20)+r|0)&r|~s&i)+e[2]+606105819|0)<<17|n>>>15)+s|0)&s|~n&r)+e[3]-1044525330|0)<<22|i>>>10)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&n|~i&s)+e[4]-176418897|0)<<7|r>>>25)+i|0)&i|~r&n)+e[5]+1200080426|0)<<12|s>>>20)+r|0)&r|~s&i)+e[6]-1473231341|0)<<17|n>>>15)+s|0)&s|~n&r)+e[7]-45705983|0)<<22|i>>>10)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&n|~i&s)+e[8]+1770035416|0)<<7|r>>>25)+i|0)&i|~r&n)+e[9]-1958414417|0)<<12|s>>>20)+r|0)&r|~s&i)+e[10]-42063|0)<<17|n>>>15)+s|0)&s|~n&r)+e[11]-1990404162|0)<<22|i>>>10)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&n|~i&s)+e[12]+1804603682|0)<<7|r>>>25)+i|0)&i|~r&n)+e[13]-40341101|0)<<12|s>>>20)+r|0)&r|~s&i)+e[14]-1502002290|0)<<17|n>>>15)+s|0)&s|~n&r)+e[15]+1236535329|0)<<22|i>>>10)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&s|n&~s)+e[1]-165796510|0)<<5|r>>>27)+i|0)&n|i&~n)+e[6]-1069501632|0)<<9|s>>>23)+r|0)&i|r&~i)+e[11]+643717713|0)<<14|n>>>18)+s|0)&r|s&~r)+e[0]-373897302|0)<<20|i>>>12)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&s|n&~s)+e[5]-701558691|0)<<5|r>>>27)+i|0)&n|i&~n)+e[10]+38016083|0)<<9|s>>>23)+r|0)&i|r&~i)+e[15]-660478335|0)<<14|n>>>18)+s|0)&r|s&~r)+e[4]-405537848|0)<<20|i>>>12)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&s|n&~s)+e[9]+568446438|0)<<5|r>>>27)+i|0)&n|i&~n)+e[14]-1019803690|0)<<9|s>>>23)+r|0)&i|r&~i)+e[3]-187363961|0)<<14|n>>>18)+s|0)&r|s&~r)+e[8]+1163531501|0)<<20|i>>>12)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i&s|n&~s)+e[13]-1444681467|0)<<5|r>>>27)+i|0)&n|i&~n)+e[2]-51403784|0)<<9|s>>>23)+r|0)&i|r&~i)+e[7]+1735328473|0)<<14|n>>>18)+s|0)&r|s&~r)+e[12]-1926607734|0)<<20|i>>>12)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i^n^s)+e[5]-378558|0)<<4|r>>>28)+i|0)^i^n)+e[8]-2022574463|0)<<11|s>>>21)+r|0)^r^i)+e[11]+1839030562|0)<<16|n>>>16)+s|0)^s^r)+e[14]-35309556|0)<<23|i>>>9)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i^n^s)+e[1]-1530992060|0)<<4|r>>>28)+i|0)^i^n)+e[4]+1272893353|0)<<11|s>>>21)+r|0)^r^i)+e[7]-155497632|0)<<16|n>>>16)+s|0)^s^r)+e[10]-1094730640|0)<<23|i>>>9)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i^n^s)+e[13]+681279174|0)<<4|r>>>28)+i|0)^i^n)+e[0]-358537222|0)<<11|s>>>21)+r|0)^r^i)+e[3]-722521979|0)<<16|n>>>16)+s|0)^s^r)+e[6]+76029189|0)<<23|i>>>9)+n|0,i=((i+=((n=((n+=((s=((s+=((r=((r+=(i^n^s)+e[9]-640364487|0)<<4|r>>>28)+i|0)^i^n)+e[12]-421815835|0)<<11|s>>>21)+r|0)^r^i)+e[15]+530742520|0)<<16|n>>>16)+s|0)^s^r)+e[2]-995338651|0)<<23|i>>>9)+n|0,i=((i+=((s=((s+=(i^((r=((r+=(n^(i|~s))+e[0]-198630844|0)<<6|r>>>26)+i|0)|~n))+e[7]+1126891415|0)<<10|s>>>22)+r|0)^((n=((n+=(r^(s|~i))+e[14]-1416354905|0)<<15|n>>>17)+s|0)|~r))+e[5]-57434055|0)<<21|i>>>11)+n|0,i=((i+=((s=((s+=(i^((r=((r+=(n^(i|~s))+e[12]+1700485571|0)<<6|r>>>26)+i|0)|~n))+e[3]-1894986606|0)<<10|s>>>22)+r|0)^((n=((n+=(r^(s|~i))+e[10]-1051523|0)<<15|n>>>17)+s|0)|~r))+e[1]-2054922799|0)<<21|i>>>11)+n|0,i=((i+=((s=((s+=(i^((r=((r+=(n^(i|~s))+e[8]+1873313359|0)<<6|r>>>26)+i|0)|~n))+e[15]-30611744|0)<<10|s>>>22)+r|0)^((n=((n+=(r^(s|~i))+e[6]-1560198380|0)<<15|n>>>17)+s|0)|~r))+e[13]+1309151649|0)<<21|i>>>11)+n|0,i=((i+=((s=((s+=(i^((r=((r+=(n^(i|~s))+e[4]-145523070|0)<<6|r>>>26)+i|0)|~n))+e[11]-1120210379|0)<<10|s>>>22)+r|0)^((n=((n+=(r^(s|~i))+e[2]+718787259|0)<<15|n>>>17)+s|0)|~r))+e[9]-343485551|0)<<21|i>>>11)+n|0,t[0]=r+t[0]|0,t[1]=i+t[1]|0,t[2]=n+t[2]|0,t[3]=s+t[3]|0}function i(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function n(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function s(t){var e,n,s,o,a,h,l=t.length,f=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)r(f,i(t.substring(e-64,e)));for(n=(t=t.substring(e-64)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<n;e+=1)s[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(r(f,s),e=0;e<16;e+=1)s[e]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(o[2],16),h=parseInt(o[1],16)||0,s[14]=a,s[15]=h,r(f,s),f}function o(t){var r,i="";for(r=0;r<4;r+=1)i+=e[t>>8*r+4&15]+e[t>>8*r&15];return i}function a(t){var e;for(e=0;e<t.length;e+=1)t[e]=o(t[e]);return t.join("")}function h(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function l(t){var e,r=[],i=t.length;for(e=0;e<i-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function f(){this.reset()}return a(s("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(e,r){var i,n,s,o,a=this.byteLength,h=t(e,a),l=a;return undefined!==r&&(l=t(r,a)),h>l?new ArrayBuffer(0):(i=l-h,n=new ArrayBuffer(i),s=new Uint8Array(n),o=new Uint8Array(this,h,i),s.set(o),n)}}(),f.prototype.append=function(t){return this.appendBinary(h(t)),this},f.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,n=this._buff.length;for(e=64;e<=n;e+=64)r(this._hash,i(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},f.prototype.end=function(t){var e,r,i=this._buff,n=i.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n;e+=1)s[e>>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(s,n),r=a(this._hash),t&&(r=l(r)),this.reset(),r},f.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},f.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},f.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},f.prototype._finish=function(t,e){var i,n,s,o=e;if(t[o>>2]|=128<<(o%4<<3),o>55)for(r(this._hash,t),o=0;o<16;o+=1)t[o]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(i[2],16),s=parseInt(i[1],16)||0,t[14]=n,t[15]=s,r(this._hash,t)},f.hash=function(t,e){return f.hashBinary(h(t),e)},f.hashBinary=function(t,e){var r=a(s(t));return e?l(r):r},f.ArrayBuffer=function(){this.reset()},f.ArrayBuffer.prototype.append=function(t){var e,i,s,o,a,h=(i=this._buff.buffer,s=t,o=!0,(a=new Uint8Array(i.byteLength+s.byteLength)).set(new Uint8Array(i)),a.set(new Uint8Array(s),i.byteLength),o?a:a.buffer),l=h.length;for(this._length+=t.byteLength,e=64;e<=l;e+=64)r(this._hash,n(h.subarray(e-64,e)));return this._buff=e-64<l?new Uint8Array(h.buffer.slice(e-64)):new Uint8Array(0),this},f.ArrayBuffer.prototype.end=function(t){var e,r,i=this._buff,n=i.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n;e+=1)s[e>>2]|=i[e]<<(e%4<<3);return this._finish(s,n),r=a(this._hash),t&&(r=l(r)),this.reset(),r},f.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.ArrayBuffer.prototype.getState=function(){var t,e=f.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},f.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var r,i=t.length,n=new ArrayBuffer(i),s=new Uint8Array(n);for(r=0;r<i;r+=1)s[r]=t.charCodeAt(r);return e?s:n}(t.buff,!0),f.prototype.setState.call(this,t)},f.ArrayBuffer.prototype.destroy=f.prototype.destroy,f.ArrayBuffer.prototype._finish=f.prototype._finish,f.ArrayBuffer.hash=function(t,e){var i=a(function(t){var e,i,s,o,a,h,l=t.length,f=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)r(f,n(t.subarray(e-64,e)));for(i=(t=e-64<l?t.subarray(e-64):new Uint8Array(0)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)s[e>>2]|=t[e]<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(r(f,s),e=0;e<16;e+=1)s[e]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(o[2],16),h=parseInt(o[1],16)||0,s[14]=a,s[15]=h,r(f,s),f}(new Uint8Array(t)));return e?l(i):i},f}()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2087],{2087:(e,a,r)=>{r.r(a),r.d(a,{DevErrorView:()=>x});var l=r(32735),s=r(95685),n=r.n(s),t=r(80638),i=r(36177),c=r(46304),o=r(11425),m=r(74512);const d=(0,o.Z)("h4");d.displayName="DivStyledAsH4";const v=l.forwardRef((({className:e,bsPrefix:a,as:r=d,...l},s)=>(a=(0,c.vE)(a,"alert-heading"),(0,m.jsx)(r,{ref:s,className:n()(e,a),...l}))));v.displayName="AlertHeading";const f=v;var u=r(67901);const h=l.forwardRef((({className:e,bsPrefix:a,as:r=u.Z,...l},s)=>(a=(0,c.vE)(a,"alert-link"),(0,m.jsx)(r,{ref:s,className:n()(e,a),...l}))));h.displayName="AlertLink";const E=h;var b=r(66067),k=r(9619);const w=l.forwardRef(((e,a)=>{const{bsPrefix:r,show:l=!0,closeLabel:s="Close alert",closeVariant:o,className:d,children:v,variant:f="primary",onClose:u,dismissible:h,transition:E=b.Z,...w}=(0,t.Ch)(e,{show:"onClose"}),N=(0,c.vE)(r,"alert"),g=(0,i.Z)((e=>{u&&u(!1,e)})),x=!0===E?b.Z:E,p=(0,m.jsxs)("div",{role:"alert",...x?void 0:w,ref:a,className:n()(d,N,f&&`${N}-${f}`,h&&`${N}-dismissible`),children:[h&&(0,m.jsx)(k.Z,{onClick:g,"aria-label":s,variant:o}),v]});return x?(0,m.jsx)(x,{unmountOnExit:!0,...w,ref:void 0,in:l,children:p}):l?p:null}));w.displayName="Alert";const N=Object.assign(w,{Link:E,Heading:f});var g=r(79612);function x(e){var a=e.error;return(0,g.M)({title:"Dev Error"}),a?l.createElement("div",{className:"px-3"},l.createElement("h1",null,a.name),l.createElement(N,{variant:"danger"},l.createElement("h2",null,a.message)),l.createElement(N,{variant:"warning"},l.createElement("h3",null,"Call stack"),l.createElement("code",null,a.stack))):l.createElement(l.Fragment,null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2146],{10587:(e,a,t)=>{t.d(a,{y:()=>l});var r=t(54610);function n(e){return n="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},n(e)}function i(e,a,t){return(a=function(e){var a=function(e,a){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(a)?a:a+""}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var l=i(i(i(i(i(i(i(i(i({},r.__.Thumbnails,{width:1280,height:720}),r.__.Banners,{width:1200,height:222}),r.__.Covers,{width:512,height:512}),r.__.Posters,{width:1e3,height:1500}),r.__.TallPosters,{width:1080,height:1920}),r.__.HeroBanners,{width:1920,height:640}),r.__.None,{width:1,height:1}),r.__.Avatars,{width:256,height:256}),r.__.Logos,{width:128,height:128})},78446:(e,a,t)=>{t.r(a),t.d(a,{ProfileDetailsView:()=>$});var r=t(32735),n=t(70680),i=t(23481),l=t(20354),o=t(92582),c=t(65858),s=t(54610),u=t(39151),m=t(99940),d={uploadBase64Image:function(e,a,t,r){return{url:"/api/image/upload?type=".concat(e),key:"upload:image",data:a,type:m.k.POST,success:t,always:r}}},p=t(31949),f=t(69883),g=t(97395),v=t(83345),h=t(44645),y=t(51934),b=t.n(y),E=t(58960),N=t(13876),_=t(10587);function w(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,l,o=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(o.push(r.value),o.length!==a);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw n}}return o}}(e,a)||function(e,a){if(e){if("string"==typeof e)return k(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,a):void 0}}(e,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.")}()}function k(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=Array(a);t<a;t++)r[t]=e[t];return r}var S=i.T.encloseNamespace("shared.imageCropper"),I=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function C(e){var a=w(r.useState(!1),2),t=a[0],n=a[1],i=w(r.useState(!1),2),l=i[0],o=i[1],c=r.useRef(),s=r.useRef();return r.useEffect((function(){var a=new Image;a.src=e.src;var t=c.current.offsetWidth/a.width,r=_.y[e.imageType],i={viewMode:2,autoCropArea:1,ready:function(){return n(!0)}};return r&&(i.minCropBoxWidth=r.width*t,i.minCropBoxHeight=r.height*t,i.aspectRatio=r.width/r.height),s.current=new(b())(c.current,i),function(){s.current.destroy()}}),[]),r.createElement(E.G,{title:S("title"),closePopup:e.closePopup,size:e.popupSize},r.createElement("div",null,r.createElement("img",{src:e.src,alt:e.alt,ref:c,className:"img img-fluid"})),r.createElement(N.u,null,r.createElement(N.u.Cancel,{onClick:e.closePopup}),r.createElement(N.u.Submit,{onClick:function(){if(t){var a=s.current.getCroppedCanvas().toDataURL(function(e){var a=e.match(I);if(a)return a[1]}(e.src));o(!0),e.onClickCrop(a,e.closePopup)}},text:S("crop"),variant:"dark",showSpinner:l})))}C.defaultProps={popupSize:"lg"};var x={renderCropper:function(e){var a=(0,h.s)(document.getElementById("dialog-region"));a.render(r.createElement(C,Object.assign({},e,{closePopup:function(){return a.unmount()}})))}},P=t(67453),A=t(91967),T={onFileSelect:function(e,a,t,r){if(a&&a.length)if(a.length>1)alert("Please only select one file");else{var n=a[0];if(n.type.startsWith("image/")){var i=new FileReader;i.addEventListener("load",(function(){return T.onReaderLoad(i,e,t,r)})),i.readAsDataURL(n)}else alert("Please select an image file")}},onReaderLoad:function(e,a,t,r){var n,i,l=new Image;l.src=e.result;var o=null!==(n=null==r?void 0:r.width)&&void 0!==n?n:_.y[a].width,c=null!==(i=null==r?void 0:r.height)&&void 0!==i?i:_.y[a].height;l.addEventListener("load",(function(){T.isImageValid(a,l,r)&&A.q.isFunction(t)?t(l):alert("Image too small: minimum dimensions are ".concat(o," x ").concat(c))}))},isImageValid:function(e,a,t){var r,n,i=null!==(r=null==t?void 0:t.width)&&void 0!==r?r:_.y[e].width,l=null!==(n=null==t?void 0:t.height)&&void 0!==n?n:_.y[e].height;return!(i&&a.width<i||l&&a.height<l)},mapImageTypeToString:function(e){switch(e){case s.__.Avatars:return"avatars";case s.__.Thumbnails:return"thumbnails";case s.__.Logos:return"logos";case s.__.Covers:return"covers";case s.__.Posters:return"posters";case s.__.TallPosters:return"tallposters";case s.__.HeroBanners:return"herobanners";case s.__.None:default:return""}}},U=t(64818);const R={profileImage:"e1vsK"};var L="settings.editAvatar";function j(e){var a,t,n,i,l=r.useRef(null),o=(null===(a=e.user.avatar)||void 0===a?void 0:a.url)?e.user.avatar.url:(n=e.imageCdnUrl,i=U.l.getInitials(e.user.name,e.user.surname),P.j.createUrl(g._.safeUrlConcat(n,"/v1/profile-images?initials=".concat(i)),{size:s.h2.Medium}));return r.createElement(v.D.Provider,{value:L},r.createElement("div",{className:"col-auto form-group d-flex flex-column align-items-center ps-4"},r.createElement("label",{className:"align-self-start"},r.createElement(v.x,{phrase:"profileImage"})),r.createElement("img",{className:"img img-fluid rounded ".concat(R.profileImage," mb-2"),alt:"User avatar",src:o}),r.createElement("button",{className:"btn btn-outline-dark px-3 text-center",onClick:function(){l.current.value=null,l.current.click(null)}},r.createElement(v.x,{phrase:"uploadImage"})),r.createElement("input",{type:"file",className:"file-select d-none",multiple:!1,accept:"image/jpg,image/jpeg,image/png",ref:l,onChange:function(a){var t;(t=a.target.files)&&t[0]&&T.onFileSelect(s.__.Avatars,t,(function(a){x.renderCropper({src:a.src,alt:"",onClickCrop:function(a,t){return e.onSelectImage(function(e){return e.split(",")[1]}(a),t)},imageType:s.__.Avatars})}))}}),!!(null===(t=e.user.avatar)||void 0===t?void 0:t.url)&&r.createElement("button",{className:"btn btn-link text-center",onClick:e.onClickRemoveImage},r.createElement(v.x,{phrase:"removeImage"}))))}var F=t(92802),B=t(23201),Z=t(1269),q=t(82644),D=t(5173),O=i.T.encloseNamespace("settings.editProfileDetailsForm"),V=(0,D.Ry)().shape({firstName:(0,D.Z_)().max(255,(function(){return O("nameExceeds")})).required((function(){return O("nameRequired")})).default("").trim(),surname:(0,D.Z_)().max(255,(function(){return O("surnameExceeds")})).required((function(){return O("surnameRequired")})).default("").trim(),username:(0,D.Z_)().max(255,(function(){return O("usernameExceeds")})).default("").trim(),displayName:(0,D.Z_)().max(255,(function(){return O("displayNameExceeds")})).default("").trim()}),W=i.T.encloseNamespace("settings.editProfileDetailsForm");function z(e){var a,t;return r.createElement(q.n,{initialValues:{firstName:e.user.name,surname:e.user.surname,username:e.user.username,displayName:null!==(t=null===(a=e.user.metadata)||void 0===a?void 0:a.displayName)&&void 0!==t?t:""},validationSchema:V,onSubmit:e.onClickSave},r.createElement(F.l0,null,r.createElement(Z.W,{label:W("firstName"),type:"text",name:"firstName",id:"firstName",placeholder:W("firstNamePlaceholder"),autoFocus:!0,showRequiredStar:!0}),r.createElement(Z.W,{label:W("lastName"),type:"text",name:"surname",id:"surname",placeholder:W("lastNamePlaceholder"),showRequiredStar:!0}),r.createElement(Z.W,{label:W("displayName"),type:"text",name:"displayName",id:"displayName",placeholder:W("displayNamePlaceholder"),infoTooltip:W("displayNameTooltip")}),r.createElement(Z.W,{label:W("username"),type:"text",name:"username",id:"username",placeholder:W("usernamePlaceholder"),showRequiredStar:!0,disabled:!0,infoTooltip:W("usernameTooltip")}),r.createElement(B.A,{variant:"dark",submitText:W("saveChanges"),isNew:!1})))}var M=t(81803),G=t(68192);const H={partialLabel:"Z_3rS",partialInput:"B0iyg",partialSubmit:"MZM6I",partialAvatar:"iqthe",partialUploadImage:"qmeIF"};function Y(){return r.createElement("div",{className:"row g-0"},r.createElement("div",{className:"col-4"},r.createElement("div",{className:"form-group"},r.createElement("div",{className:"partial-loading-background ".concat(H.partialLabel)}),r.createElement("div",{className:"partial-loading-background ".concat(H.partialInput)})),r.createElement("div",{className:"form-group"},r.createElement("div",{className:"partial-loading-background ".concat(H.partialLabel)}),r.createElement("div",{className:"partial-loading-background ".concat(H.partialInput)})),r.createElement("div",{className:"form-group"},r.createElement("div",{className:"partial-loading-background ".concat(H.partialLabel)}),r.createElement("div",{className:"partial-loading-background ".concat(H.partialInput)})),r.createElement("div",{className:"partial-loading-background ".concat(H.partialSubmit)})),r.createElement("div",{className:"form-group d-flex flex-column align-items-center ps-4"},r.createElement("div",{className:"partial-loading-background align-self-start ".concat(H.partialLabel)}),r.createElement("div",{className:"partial-loading-background mb-2 ".concat(H.partialAvatar)}),r.createElement("div",{className:"partial-loading-background mx-3 ".concat(H.partialUploadImage)})))}var K=i.T.encloseNamespace("settings.profileDetails");function $(){var e=(0,n.I0)(),a=(0,f.Z)(),t=l.a.useBasicFetch(p.N.currentUser()),i=l.a.useBasicFetch(t.data&&G.N.getUser(t.data.id)),m=l.a.useBasicFetch(u.L.config());return r.createElement(M.d,{heading:K("heading"),breadcrumbs:[K("breadcrumb")]},t.data&&i.data&&m.data?r.createElement("div",{className:"row g-0"},r.createElement("div",{className:"col-4"},r.createElement(z,{user:i.data,onClickSave:function(r,n){var s=Object.assign(Object.assign({},r),{customerId:t.data.customerId,masterRole:i.data.userProfile.role,userId:i.data.id,userType:i.data.userType,masterYearGroup:i.data.masterYearGroup,displayName:r.displayName||null,username:i.data.username});l.a.fetch(e,G.N.updateUser(s,t.data.id,(function(){o.k.logUserAction(s,{location:c.LZ.Settings,actionType:c.Vw.Edit,workflowPhase:c.eu.Complete,entity:c.py.User}),a.success(K("success"))}),(function(){a.error(K("error"))}),n))}})),r.createElement(j,{user:i.data,onSelectImage:function(r,n){l.a.fetch(e,d.uploadBase64Image(s.__.Avatars,r,(function(r){!function(r,n){l.a.fetch(e,G.N.updateAvatar(r.id,t.data.id,(function(){o.k.logUserAction({id:t.data.id,avatarId:r.id,avatarUrl:r.location},{actionType:c.Vw.Associate,workflowPhase:c.eu.Complete,location:c.LZ.Settings,entity:c.py.User,descriptor:c.iF.Avatar}),n(),a.success(K("avatarUploadSuccess"))}),(function(){a.error(K("avatarUploadError"))})))}(r,n)}),(function(){a.error(K("avatarUploadError"))})))},onClickRemoveImage:function(){l.a.fetch(e,G.N.deleteAvatar(i.data.avatar.id,t.data.id,(function(){o.k.logUserAction({id:t.data.id,avatarId:i.data.avatar.id},{actionType:c.Vw.Dissociate,workflowPhase:c.eu.Complete,location:c.LZ.Settings,entity:c.py.User,descriptor:c.iF.Avatar}),a.success(K("avatarDeleteSuccess"))}),(function(){a.error(K("avatarDeleteError"))})))},imageCdnUrl:m.data.imageCdnUrl})):r.createElement(Y,null))}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 2215-9a0bd573d8-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2215],{92869:(t,e,r)=>{r.d(e,{t:()=>a});var n=r(43823),o=r(95846),a={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},53374:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(32735);function o(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var a=n.forwardRef((function(t,e){var r=t.onClickClear,a=t.showClearButton,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary"),role:"button",onClick:r},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},68293:(t,e,r)=>{r.d(e,{B:()=>d});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:a},c=r(66122);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var s="OTHER";function f(t,e){return e.includes(t)?t:t?s:""}function d(t){var e,r,o=t.error,u=t.onChange,d=(e=t.countryCode,r=null==e?void 0:e.toLowerCase(),i[r]||a),p=f(t.initialValue,d),y=l(n.useState(p),2),m=y[0],h=y[1],v=l(n.useState(p===s?t.initialValue:""),2),g=v[0],b=v[1];n.useEffect((function(){h(f(t.initialValue,d))}),[t.initialValue]);var w=m===s;return n.createElement("div",{className:"form-group"},n.createElement("label",{htmlFor:t.id,className:t.labelClassName},"Job title:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("div",{className:"mb-2"},n.createElement("select",{id:t.id,name:t.id,className:"form-select ".concat("lg"===t.size?"form-select-lg":""," ").concat(m.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:m,placeholder:"Role",onChange:function(t){h(t.target.value),b(""),u(t.target.value===s?"":t.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-secondary"},t.placeholder?t.placeholder:n.createElement(n.Fragment,null,"What do you do?")),d.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:s,className:"text-dark"},"Other")),!!o&&!w&&n.createElement(c.A,{name:t.id},o)),w&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control ".concat("lg"===t.size?"form-select-lg":""," ").concat(!!o&&"is-invalid"),type:"text",value:g,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){b(t.target.value),u(t.target.value)}}),!!o&&n.createElement(c.A,{name:t.id},o)))}},47464:(t,e,r)=>{r.d(e,{l:()=>_});var n=r(32735),o=r(65858),a=r(53374),i=r(57900),c=r(45157),l=r(86664),u=r(52214);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t,e)||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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t){return new u.aN({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function p(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=s(n.useState(!1),2),o=r[0],a=r[1],i=s(n.useState(d(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(d(e))}return n.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:o,onGoogleApiReady:u}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t){var e,r,o=p({apiKey:t.googleApiKey}).scriptLoaded,a=(e=n.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(e,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 n.useEffect((function(){o&&c(new google.maps.places.AutocompleteService)}),[o]),i}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var v="us",g="country:placeholder:text";function b(t){var e,r,o=t.apiKey,a=t.geoLocation,u=t.makeRequest,s=void 0===u||u,f=t.template,d=void 0===f?"E.g. [placeholder]":f,p=t.templateKey,y=void 0===p?"[placeholder]":p,b=m({googleApiKey:o}),w=n.useState((function(){return function(t){var e=l.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(g,":").concat(null==t?void 0:t.countryCode))||void 0)}(a)})),S=(r=2,function(t){if(Array.isArray(t))return t}(e=w)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(e,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.")}()),E=S[0],O=S[1];function j(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),O(t)}return n.useEffect((function(){if(!E&&b&&s){var t=(null==a?void 0:a.countryCode)||v,e={input:String.fromCharCode(96+c.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};b.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[c.Y.getRandomInt(t.length)].description;j(d.replace(y,n),r)}else j(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[E,b,a,s]),E}var w=r(73525);function S(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var O={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=S(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=S(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}}};function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var x={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},C=r(28329);function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var k=r(11607);function A(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}var N=r(52202);function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(t){var e=t.predictions,r=t.getPlaceInfo,o=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," ").concat(o-1===e?N.Z.selected:""),key:t.place_id,onKeyDown:function(e){return"Enter"===e.key&&r(t)},onMouseDown:function(){return r(t)},onClick:function(){return r(t)}},t.description)})))}function _(t){var e,r,i,c,l,u,s=n.useRef(),f=P(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],y=f[1],h=P(n.useState(!1),2),v=h[0],g=h[1],S=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),E=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=m({googleApiKey:t.apiKey}),l=(0,C.N)(o,300),u=(e=n.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(t,e):void 0}}(e,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.")}()),s=u[0],f=u[1];function d(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return n.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},d)}else f(void 0)}),[l,a,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=O.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:v,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),I=E.localityPredicitions,_=E.getPlaceInfo,F=function(t){var e,r,o=(e=n.useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(e,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.")}()),a=o[0],i=o[1],c=p(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=O.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=x[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),H(t)}}),D=F.placeDetails,G=F.onClickGetCurrentLocation,K=window.navigator.geolocation?1:0,R=(0,w.M)({onSelected:function(t){if(I)if(t!==I.length){var e=I[t];e&&J(e)}else X()},itemCount:null!==(r=(null==I?void 0:I.length)+K)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),Z=R.selectedIndex,z=R.onKeyDown,M=R.containerRef,U=R.hide,B=R.onBlur,V=R.onFocus,$=P(n.useState(),2),q=$[0],H=$[1];function Y(e){var r,n,o;q&&H(void 0),v||g(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearData(),y(e)}function W(e){t.setData({schoolLocality:e.locality,country:e.country,province:e.province,schoolPostCode:e.postalCode,longitude:e.longitude,latitude:e.latitude}),e.locality&&y(e.locality)}function J(t){v&&g(!1),_(t,s,W)}function X(e){var r;null==e||e.preventDefault(),g(!1),G(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(D)}),[D]);var Q,tt=(null==I?void 0:I.length)&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),et=window.navigator.geolocation&&!(null===(u=null===(l=t.data)||void 0===l?void 0:l.schoolLocality)||void 0===u?void 0:u.length),rt=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat(N.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(N.Z.large)),n.createElement("div",{className:nt},n.createElement("label",{className:rt,htmlFor:"locality-input"},"ZIP code or city",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{type:"text",value:d,onChange:function(t){return Y(t.currentTarget.value)},id:"locality-input",className:(Q="form-control","lg"===t.size&&(Q+=" form-control-lg"),!tt||U?"".concat(Q," ").concat(N.Z.input):"".concat(Q," ").concat(N.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:S||"Loading...",disabled:t.disabled||!S,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:z,onFocus:V,onBlur:B}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(N.Z.dropdown," ").concat(U?"d-none":"")},!!tt&&n.createElement("div",{className:N.Z.suggestionContainer,ref:M},n.createElement(T,{predictions:I,getPlaceInfo:J,selectedIndex:Z}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," px-1 ").concat(Z-1===I.length?N.Z.selected:""),onClick:X},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(A,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(N.Z.useMyLocation)},n.createElement("button",{onClick:X,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(A,null),"Use my current location")),!!q&&n.createElement("div",{className:"text-danger p-2"},q)))}},76530:(t,e,r)=>{r.d(e,{X:()=>A});var n=r(32735),o=r(80247),a=r(53374),i=r(99940);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&s(o,r.prototype),o}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var d=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=f(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e,[n])).body=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(l(Error));function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(T([])));j&&j!==r&&n.call(j,i)&&(E=j);var x=S.prototype=b.prototype=Object.create(E);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==p(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=A(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=S,o(x,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(L.prototype),u(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var m=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function h(t){var e={method:i.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,a=t.url;return e.method===i.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var v={asyncFetch:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new d(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=h(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(){b=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",y="executing",m="completed",h={};function v(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(T([])));j&&j!==r&&n.call(j,i)&&(E=j);var x=S.prototype=v.prototype=Object.create(E);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==g(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=A(c,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(g(e)+" is not iterable")}return w.prototype=S,o(x,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(L.prototype),u(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}var w={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),v.fetch({url:t,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=b().mark((function r(){return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",v.asyncFetch({url:t.createProspect,method:i.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return v.asyncFetch({url:t.prospectLookups(e)})}},S=r(73525),E=r(11607),O=r(28329),j=r(52202);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(t,e)||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 C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function L(t){var e=t.filteredSchoolsList,r=t.getSchoolName,o=t.onSchoolSuggestionClick,a=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(E.L,{className:"".concat(j.Z.suggestionItem," ").concat(a-1===e?j.Z.selected:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&o(t)},onMouseDown:function(){return o(t)},onClick:function(){return o(t)}},r(t)," ",n.createElement("br",null),n.createElement("small",{className:"text-secondary"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function k(t){return n.createElement("div",{className:"info-link ".concat(j.Z.suggestionItem," ").concat(j.Z.noSuggestion," ").concat(t.selected?j.Z.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function A(t){var e,r,i=n.useRef(),c=x(n.useState(!0),2),l=c[0],u=c[1],s=x(n.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),f=s[0],d=s[1],p=x(n.useState(),2),y=p[0],m=p[1],h=(0,O.N)(f,250),v=(0,S.M)({onSelected:function(e){if(y||e)if(e!==y.length){var r=y[e];r&&G(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==y?void 0:y.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,E=v.containerRef,C=v.hide,A=v.onBlur,N=v.onFocus,P=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),I=l&&!P,T=!l&&!P&&(null==y?void 0:y.length)<5,_=(null==y?void 0:y.length)&&!P;function F(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function D(e){if(t.data.latitude||t.data.longitude){u(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),w.search(t.searchUrl,r,(function(t){return m(t)}),null,(function(){return u(!1)}))}else u(!1)}function G(e){d(K(e)),t.setData({prospectId:e.id,schoolName:e.name,schoolPostCode:e.postCode,schoolType:e.prospectType,province:e.province,city:e.city,country:e.countryCode})}function K(t){return t.name}n.useEffect((function(){P||(h.length?!P&&h.length>1&&h===f&&D(h):D())}),[h,P]);var R=(_||I||T)&&!t.disabled&&!C,Z="form-control ".concat(R?j.Z.inputFocused:j.Z.input),z="form-group position-relative";return"lg"===t.size&&(Z+=" form-control-lg",z+=" ".concat(j.Z.large)),n.createElement("div",{className:z},n.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{id:"school-input",value:f,onChange:function(t){return F(t.currentTarget.value)},ref:i,className:Z,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){F(""),i.current.focus()},onKeyDown:b,onFocus:N,onBlur:A}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(j.Z.dropdown," ").concat(C?"d-none":"")},n.createElement("div",{className:"".concat(j.Z.suggestionContainer," ").concat(R?"":"d-none"),ref:E},_?n.createElement(L,{filteredSchoolsList:y,onSchoolSuggestionClick:G,getSchoolName:K,selectedIndex:g}):I&&n.createElement("div",{className:"".concat(j.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!I&&T&&n.createElement(k,{selected:g===y.length+1,handleNoSuggestion:function(){return t.onClickNoSuggestions(f)}}))))}},76153:(t,e,r)=>{r.d(e,{F:()=>f});var n=r(63093),o=r(33003),a=r.n(o);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u={secondary:"Secondary","primary & secondary":"Primary & Secondary",k12:"Primary & Secondary",primary:"Primary",special:"Special",university:"University",middle:"Middle","fe college":"FE College","high school":"Secondary",elementary:"Primary","middle school":"Middle",tafe:"TAFE",college:"FE College","sixth form college":"Sixth Form College"},s={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},f={hashedEmail:function(t){var e=t.trim().toLowerCase();return a().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=c(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r,n,o,a=c(e,2),l=a[0],u=a[1];return Object.assign(Object.assign({},t),(r={},n=l,o=u===Object(u)?f.removeEmptyKeys(u):u,(n=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{})},getEventTopic:function(){return"Free Trial Request"},getSource:function(){return"cv_product_trial_requested"},getProductFormEventType:function(){return n.ProductFormEvent.FormSubmission},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return u[e]||t}},parseProvince:function(t){return t.length?s[t.toLowerCase()]||t:""}}},73525:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(32735);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=o(n.useState(0),2),r=e[0],a=e[1],i=n.useRef(),c=o(n.useState(!1),2),l=c[0],u=c[1];function s(){var t;i.current&&(null===(t=i.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var n=r+1;return n>t.itemCount&&(n=1),a(n),void s()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var o=r-1;return o<=0&&(o=t.itemCount),a(o),void s()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(r-1);a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},66122:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(32735);function o(t){return n.createElement("span",{id:"".concat(t.name,"Error"),className:"".concat(t.className," invalid-feedback d-block"),role:"status"},t.children)}},1269:(t,e,r)=>{r.d(e,{n:()=>S,W:()=>E});var n=r(32735),o=r(80247),a=r(50132),i=r(92802),c=r(91967),l=r(1048),u=r(57408),s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function f(t){var e=t.label,r=t.checkboxLabelClassName,o=t.checkboxLabelFontWeight,i=t.className,c=s(t,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(a.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(S,Object.assign({className:"form-check-input"},c)),n.createElement(a.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===o?"fw-normal":""," \n ").concat(r),htmlFor:c.id},e),t.checkboxAppLink&&t.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:t.checkboxAppLink,className:"info-link"},t.checkboxAppLinkText))))}var d=r(83914),p=r(83345),y={getCustomFormControlClassName:function(t,e,r,n,o,a){var c="";return c=function(t,e){var r="";return r="select"===t?"form-select":"form-control","sm"===e&&(r+=" ".concat(r,"-sm")),"lg"===e&&(r+=" ".concat(r,"-lg")),r}(a,n),(0,i.u9)(e,r)&&(0,i.u9)(t,r)&&(c+=" is-invalid"),o&&(c+=" ".concat(o)),c}},m=r(35223);function h(t){var e=(0,i.u6)().values[t.fieldName];return"string"!=typeof e?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},e.length,"/",t.limit," characters")}const v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},w="shared.formField";function S(t){var e,r,a=t.children,u=t.showLoadingSpinner,s=b(t,["children","showLoadingSpinner"]),f=(e=n.useState(t.type),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(e,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],y=f[1],h=c.q.isFunction(a)?function(t){return a(t)}:n.Children.count(a)?a:null;if("password"!==s.type)return u?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h),n.createElement("div",{className:v.spinner},n.createElement(o.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h);var w="position-relative ".concat(v.passwordContainer);return s.className&&(w+=" ".concat(s.className)),s.disabled&&(w+=" ".concat(v.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:p,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),h),"password"===s.type&&n.createElement(d.x,{svgName:"password"===p?m.vn.VisibleOn:m.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){y("password"===p?"text":"password")}}))}function E(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,E=t.formSize,O=t.showOptionalLabel,j=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,i.u6)(),C=x.errors,L=x.touched,k=function(){};if("checkbox"===j.type){var A=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(A.onChange=k),n.createElement(f,Object.assign({},A))}var N=Object.assign(Object.assign({},j),{className:y.getCustomFormControlClassName(C,L,j.name,E,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(N.onChange=k),n.createElement(a.Z.Group,{className:"form-group"},!!e&&n.createElement(a.Z.Label,{htmlFor:j.id,className:"d-flex align-items-center"},e,c&&n.createElement("span",{className:"text-danger"},"*"),u&&n.createElement(d.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:m.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(p.x,{namespace:w,phrase:"optional"})),!!o&&!!j.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(h,{fieldName:j.name,limit:j.maxLength}))),n.createElement(S,Object.assign({},N,{"aria-errormessage":"".concat(j.name,"Error")})),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:j.name},(function(t){return n.createElement(a.Z.Control.Feedback,{id:"".concat(j.name,"Error"),type:"invalid",role:"status"},t)})))}S.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(t,e,r)=>{r.d(e,{b:()=>s,n:()=>u});var n=r(32735),o=r(92802),a=r(91967),i=r(1048);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var l=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function u(t){var e=t.castInitialValues,r=t.castValuesOnSubmit,u=t.initialValues,s=t.onSubmit,f=l(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=e&&t.validationSchema?t.validationSchema.cast(function(t){if(!t)return{};var e=i.t.deepClone(t);return function t(r){Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&(i.t.isObject(r[n])?t(r[n]):null===e[n]&&delete e[n])}))}(e),e}(u)):u,p={allowInitialSubmit:t.allowInitialSubmit};return n.createElement(o.J9,Object.assign({enableReinitialize:!0},f,{initialValues:d,onSubmit:function(e,n){var o=n.setSubmitting,a=n.resetForm,i=n.setFieldError,l=r&&t.validationSchema?t.validationSchema.cast(e):e;s(l,(function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&a(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var u=(t=l[n],e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t,e)||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];i(s,f)}o(!1)}))},initialStatus:p}),a.q.isFunction(t.children)?function(e){return t.children(e)}:n.Children.count(t.children)?t.children:null)}function s(){return(0,o.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7822:(t,e,r)=>{r.d(e,{D:()=>o});var n=r(99940),o={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:n.k.POST,data:{email:t}}},prospectLookups:function(t){return{url:"{gateway}/v1/prospects/".concat(t,"/lookups"),key:"prospect:lookup:".concat(t)}}}},7614:(t,e,r)=>{var n;r.d(e,{_:()=>n}),function(t){t.LivestreamBooking="sl_product_livestream",t.ContactUs="sl_marketing_form_contact_us"}(n||(n={}))},91975:(t,e,r)=>{var n;r.d(e,{J:()=>n}),function(t){t.ContactUs="Contact us",t.LivestreamBooking="Livestream booking"}(n||(n={}))},93015:(t,e,r)=>{r.d(e,{k:()=>a});var n=r(70624),o=r(60735);function a(){return{client:t=(0,n.G)(o.D.BrazeClient),logFormSubmission:function(e){var r=e.user,n=e.additionalData,o=e.source,a=e.eventType,i=e.topic,c=e.callback,l=function(t,e){return Object.assign(Object.assign({},t),{custom:Object.assign(Object.assign({},null==t?void 0:t.custom),{topic:e.topic,source:e.source})})}(r,{source:o,topic:i});t.setUserInit(l),t.logFormEvent({eventType:a,additionalData:n,callback:c})}};var t}},6117:(t,e,r)=>{r.d(e,{f:()=>c});var n=r(39202),o=r(14292),a=r(97395);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var t=new URLSearchParams(window.location.search);return"true"===(null==t?void 0:t.get("isBot"))},getCanonicalLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o.A.GetCurrentOrigin(),r=(null==t?void 0:t.customAppLink)||n.C$.getCurrentAppLink(),c=function(t,e){if(!(null==e?void 0:e.length)||"string"==typeof t||!t)return{};var r=e.reduce((function(t,e){return Object.assign(Object.assign({},t),(r={},o=!0,(n=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n=e))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r));var r,n,o}),{});return Object.keys(t).reduce((function(e,n){return n in r&&(e[n]=t[n]),e}),{})}(r.params,t.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof t.hrefTransformer&&(l=t.hrefTransformer(l)),a._.safeUrlConcat(e,l)}}},52202:(t,e,r)=>{r.d(e,{Z:()=>n});const n={baseText:"KL3Q_",inputFocused:"I6wQy",dropdown:"oI3z7",suggestionContainer:"Y78ea",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",large:"b0Mz9",input:"ChY5L",selected:"snnHR",useMyLocation:"dwmvC"}}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 2676-7762258774-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2676],{92676:(t,e,r)=>{r.r(e),r.d(e,{BrazeClientService:()=>m,BrazeNewIamEvent:()=>g});var n=r(63093),i=r(81886),o=r(72688),a=r(99504),u=r(52003),s=r(60735);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new A(n||[]);return i(a,"_invoke",{value:j(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v="suspendedStart",y="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function k(){}var O={};f(O,a,(function(){return this}));var C=Object.getPrototypeOf,E=C&&C(C(D([])));E&&E!==r&&n.call(E,a)&&(O=E);var L=k.prototype=b.prototype=Object.create(O);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,u){var s=p(t[i],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var i=v;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=z(u,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?g:y,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=g,n.method="throw",n.arg=c.arg)}}}function z(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,z(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(c(e)+" is not iterable")}return w.prototype=k,i(L,"constructor",{value:k,configurable:!0}),i(k,"constructor",{value:w,configurable:!0}),w.displayName=f(k,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,f(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},_(x.prototype),f(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new x(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(L),f(L,s,"Generator"),f(L,a,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var g="braze:new:iam",m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,(i=[{key:"name",get:function(){return s.D.BrazeClient}},{key:"channelName",get:function(){return u.Q4.BRAZE}},{key:"clientInstance",get:function(){if(this.ready)return this.brazeClient}},{key:"initialize",value:function(){var t,e;(null===(t=this.options.eventOptions)||void 0===t?void 0:t.logUtmParameters)&&(this.utmParameters=a.F.getUtmParameters()),(null===(e=this.options.eventOptions)||void 0===e?void 0:e.logAttributionData)&&(this.attributionData=o.N.getDecodedAttributionData()),this.setup()}},{key:"isReady",get:function(){return this.ready&&this.options.client.shouldInitialize}},{key:"setup",value:function(){var t,e=this,r=this.options.context;if(this.iamQueue=[],this.brazeClient=new n.BrazeClient({apiOptions:this.getInstanceOptions(),allowAnonymous:!1,shouldInitialize:this.options.client.shouldInitialize,subscriptions:{subscribeToInAppMessage:function(t){return e.subscribeToInAppMessage(t)}}}),r.user.isAuthenticated&&this.options.client.shouldInitialize){var i=this.getBrazeUser(r.user);(null===(t=this.options.geoLocation)||void 0===t?void 0:t.countryCode)&&(i.country=this.options.geoLocation.countryCode),this.setUser(i)}this.ready=!0}},{key:"setUser",value:function(t){this.brazeClient.setUser(t)}},{key:"setUserInit",value:function(t){this.brazeClient.setUserInit(t)}},{key:"getBrazeUser",value:function(t){return{email:t.email,firstName:t.givenName,lastName:t.familyName,custom:{masterId:t.id}}}},{key:"getInstanceOptions",value:function(){return{productName:this.options.client.productName,productVersion:this.options.client.version,apiKey:this.options.client.apiKey,baseUrl:this.options.client.baseUrl,enableLogging:!1,automaticallyShowInAppMessages:!1,allowUserSuppliedJavascript:!0}}},{key:"subscribeToInAppMessage",value:function(t){var e,r;if((null===(r=null===(e=this.options)||void 0===e?void 0:e.subscriptions)||void 0===r?void 0:r.inAppMessage)&&!t.isControl){var n=this.getChannel();this.iamQueue.push(t),n.trigger(g)}}},{key:"getContentCards",value:function(){var t,e,r,n,i;return e=this,r=void 0,n=void 0,i=l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=this.brazeClient.card)||void 0===t?void 0:t.getContentCards();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})),new(n||(n=Promise))((function(t,o){function a(t){try{s(i.next(t))}catch(t){o(t)}}function u(t){try{s(i.throw(t))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,u)}s((i=i.apply(e,r||[])).next())}))}},{key:"logContentCardDismissal",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logDismissal(t)}},{key:"logContentCardClick",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logClick(t)}},{key:"logContentCardImpressions",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logImpressions(t)}},{key:"logFormEvent",value:function(t){var e=this.hydrateAdditionalData(t);this.brazeClient.event.logForm(e)}},{key:"logAnalyticsEvent",value:function(t){var e=this.hydrateAdditionalData(t);this.brazeClient.event.logAnalytics(e)}},{key:"logEvent",value:function(t){var e=this.hydrateAdditionalData(t);return this.brazeClient.event.log(e)}},{key:"showInAppMessage",value:function(t,e,r){return this.brazeClient.bam.show(t,e,r)}},{key:"handleInAppMessages",value:function(t){if(this.iamQueue.length)for(;this.iamQueue.length;){var e=this.iamQueue.pop();if(!e)return;t(e)}}},{key:"hydrateAdditionalData",value:function(t){var e,r,n=t.additionalData||{};return this.utmParameters&&(n.utms=this.utmParameters),(null===(e=this.attributionData)||void 0===e?void 0:e.originalReferrer)&&(n.original_referrer=this.attributionData.originalReferrer),(null===(r=this.attributionData)||void 0===r?void 0:r.internalReferrer)&&(n.internal_referrer=this.attributionData.internalReferrer),Object.assign(Object.assign({},t),{additionalData:n})}}])&&f(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(i.Q.t6)}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2700],{99105:(e,t,a)=>{a.d(t,{x:()=>w,N:()=>k});var n=a(32735),r=a(57900),o=a(81886),l=a(2948),i=a(1048),c=a(23481),s=a(91967);const u={disabled:"pERi4",disabledHighlighted:"AxyWm"};var m=c.T.encloseNamespace("shared.audienceItem");function d(e){var t=e.audience,a=e.highlight,r=e.setAudience,o=e.isDisabled,l=e.extraClasses,i=function(e,t){return e?t?"".concat(u.disabledHighlighted," text-light"):"bg-gray-900 text-light":t?"".concat(u.disabled," text-secondary"):"bg-light"}(a,o),c="rounded-pill d-inline-block me-1 user-select-none ".concat(o?"cursor-default":"cursor-pointer"," ").concat(i," ").concat(l);return n.createElement("button",{className:c,onClick:function(){!o&&s.q.isFunction(r)&&r(t,!a)},role:"checkbox","aria-checked":a,"aria-label":"".concat(m("ariaFilter")," ").concat(t.name)},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}d.defaultProps={extraClasses:""};var b=a(11607),f=a(83345),p=a(64444),v=a(38143),g=a(5859);function h(e,t){if(e){if("string"==typeof e)return y(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var E="subjects.audienceFilter";function w(e){var t,a,c=e.audiences,s=e.activeAudiences,u=e.appLink,m=e.disabled||!u,g=(t=(0,l.D)(v.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,l,i=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.call(a)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,a)||h(t,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];function w(e,t){var a;if(!m){var n,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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.")}()}(null!==(a=null==s?void 0:s.map((function(e){return e.name})))&&void 0!==a?a:[]),[e.name]):s.map((function(e){return e.name})).filter((function(t){return t!==e.name}));o.Q.C$.trigger(Object.assign(Object.assign({},u),{params:(n=i.t.omit(u.params,["a"]),r.length?Object.assign({},n,{a:r}):n)}),{replace:!0})}}return n.useEffect((function(){e.disablePersist||g(s)}),[s]),c&&c.length?n.createElement(p.u,{title:e.tooltip,spanHack:!0},n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},c.map((function(e){return n.createElement(d,{key:e.masterId,audience:e,highlight:!m&&!!(null==s?void 0:s.find((function(t){return t.masterId===e.masterId}))),setAudience:w,isDisabled:m})})),!m&&!!s&&!!Object.keys(s).length&&n.createElement(b.L,{className:"info-link d-inline-block ms-1",onClick:function(){if(!m){var e=i.t.omit(u.params,["a"]);o.Q.C$.trigger(Object.assign(Object.assign({},u),{params:e}),{replace:!0})}}},n.createElement(f.x,{namespace:E,phrase:"clear"})))):n.createElement(n.Fragment,null)}var N=g.u.getPartialLoadingItems({numItems:6}),k=function(){return n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},N.map((function(e,t){var a=e.width;return n.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:"&nbsp"},style:{width:a}})})))}},70275:(e,t,a)=>{a.d(t,{a:()=>h});var n=a(32735),r=a(23481),o=a(75902),l=a(35223);function i(e){return i="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},i(e)}function c(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=c(c(c({},o.GL.Archived,{svgName:l.vn.Archive,svgColorClassName:"text-secondary",actionName:"Archive",statusName:"Archived"}),o.GL.Draft,{svgName:l.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),o.GL.Published,{svgName:l.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),u=a(83914),m=a(26154);const d={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function b(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(d.badge);switch(e.status){case m.GL.Published:t+=" ".concat(d.published);break;case m.GL.Archived:t+=" ".concat(d.archived);break;case m.GL.Draft:t+=" ".concat(e.darkMode?d.draftDark:d.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function f(e){var t=s[e.status],a=t.statusName,r=t.svgName;return n.createElement("div",{className:b(e)},n.createElement(u.x,{svgName:r}),n.createElement("div",null,a))}var p=a(10731);const v={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var g=r.T.encloseNamespace("shared.classificationPreviewBanner");function h(e){return n.createElement("div",{className:"".concat(v.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},n.createElement("div",{className:"position-absolute d-flex ".concat(v.badgeWrapper)},n.createElement(f,{status:e.status,wrapperClassName:"".concat(v.badge),darkMode:!0})),n.createElement("div",{className:"flex-grow-1"},n.createElement("h1",{className:"text-center my-3 h5"},n.createElement(p.V,{emoji:"👀"}),g("topic"===e.type?"topicTitle":"companyTitle"))))}},75553:(e,t,a)=>{a.d(t,{p:()=>S,v:()=>L});var n=a(32735),r=a(110),o=a(12788),l={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},i=a(79878),c=a(39880),s=a(64887),u=a(23481),m=a(57408),d=a(83914),b=a(35223),f="shared.backButton";function p(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,o=t.color,l=t.extraClasses,i=t.textShadow,c=a?u.T.getPhrase(f,"backTo",{backToName:a}):u.T.getPhrase(f,"back"),s="black"===o?"":"text-white",p=i?"text-shadow":"";return n.createElement(m.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(l," ").concat(s," ").concat(p)},n.createElement(d.x,{svgName:b.vn.ChevronLeft,size:d.S.Medium}),n.createElement("span",{className:"ms-1"},c))}p.defaultProps={color:"black",extraClasses:""};var v=a(16107),g=a(83345),h=a(10587),y=a(94232),E=a(54610),w=a(79967),N=a(67453);const k={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var C="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function x(e){return e.length<160?"h1":k.headingLarge}var S=n.memo((function(e){var t,a,o,u,m=e.heading,d=e.banner,b=e.imageCdnUrl,f=e.actions,h=e.sortComponent,S=e.blockColourClass,L=e.specialEvent,D=n.useContext(y.n),_=(0,w.k)().xxl?1920:1200,O=n.useMemo((function(){if(!L||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return L.endDate?L.startDate<=t&&L.endDate>=t:L.startDate===t}),[L]),j=e.imageOptions||{width:_,ratio:C,resizeType:E.Nq.Cover},I=!!d&&!!b&&N.j.createBannerUrl(d,{fallbackBaseUrl:b,fallbackCategoryName:m,type:E.__.Banners},j),A={className:"banner banner-header ".concat(e.bannerClassName),style:I?{backgroundImage:"url('".concat(I,"')")}:{}};!d&&S&&(delete A.style,A.className+=" ".concat(S));var M=e.detailsComponent;return l.renderInPortalIfExists(n.createElement("header",Object.assign({},A),n.createElement("div",{className:"container ".concat(k.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(p,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(k.bannerContent," px-2 ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?k.bannerContentWithLogo:""))},!!L&&n.createElement("div",{className:"position-relative ".concat(k.specialEventContainer)},n.createElement(c.s,{body:{type:L.endDate?"range":"day",text:L.endDate?"".concat(r.O.format(L.startDate,"DD"),"-").concat(r.O.format(L.endDate,"DD")):r.O.format(L.startDate,"DD")},month:function(e){return e.endDate?r.O.isSame(e.startDate,e.endDate,"month")?r.O.format(e.startDate,"MMMM"):"".concat(r.O.format(e.startDate,"MMM")," - ").concat(r.O.format(e.endDate,"MMM")):r.O.format(e.startDate,"MMMM")}(L),theme:e.calendarTheme})),n.createElement("div",null,O&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(g.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(i.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&n.createElement("div",{className:"".concat(k.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(a=e.logo)||void 0===a?void 0:a.url)&&n.createElement(v.w,{src:N.j.createUrl(null===(o=e.logo)||void 0===o?void 0:o.url,{size:E.h2.Medium})})),n.createElement("h1",{className:"text-white text-shadow pe-3 position-static ".concat(k.heading," ").concat(x(m)," ").concat(e.alignLogoLeft?"w-50":"")},m,M&&n.createElement(M,null)))),!!f&&n.createElement("div",{className:k.actionsContainer},n.createElement(s.e,{actions:f,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(u=e.logo)||void 0===u?void 0:u.url)&&n.createElement("div",{className:k.logoContainer},n.createElement("img",{src:N.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==D?void 0:D.container)}),(function(e,t){var a,n;return e.actions===t.actions&&e.heading===t.heading&&(null===(a=e.logo)||void 0===a?void 0:a.url)===(null===(n=t.logo)||void 0===n?void 0:n.url)}));function L(){var e=n.useContext(y.n);return l.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(k.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>p,b2:()=>v});var n=a(32735),r=a(23481),o=a(57408),l=a(86764),i=a(3747),c=a(5859),s=a(35223),u=a(83914);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,l,i=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.call(a)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var b=r.T.encloseNamespace("shared.breadcrumbComponent"),f=n.forwardRef((function(e,t){var a=e.breadcrumb,r=a.name,l=a.appLink,i=a.active,c=e.withBackIcon,m=r,d=null;return m.length>48&&(m=r.slice(0,48)+"...",d=r),n.createElement("li",{className:"breadcrumb-item".concat(i?" active":""),title:d},i?n.createElement("strong",null,m):n.createElement(o.F,{appLink:l,ref:t},c&&n.createElement(u.x,{svgName:s.vn.ChevronLeft,size:u.S.Small}),n.createElement("span",{className:c?"ms-2":""},m)))})),p=function(e){var t=e.breadcrumbs,a=(0,i.a)(l.r.XS),r=(null==t?void 0:t.length)||0,o=m(n.useState(!1),2),c=o[0],s=o[1],u=m(n.useState(!1),2),d=u[0],p=u[1],v=n.useRef();if(n.useEffect((function(){var e,a=null!==(e=null==t?void 0:t.reduce((function(e,t){return e+t.name.length}),0))&&void 0!==e?e:0;r>4&&a>64&&s(!0)}),[null==t?void 0:t.length]),n.useLayoutEffect((function(){var e;d&&(null===(e=v.current)||void 0===e||e.focus())}),[v.current,d]),!r||a&&r<2)return n.createElement(n.Fragment,null);if(a)return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(f,{breadcrumb:t[r-2],withBackIcon:!0})));var g=n.createElement(f,{breadcrumb:t[0]}),h=r>2?n.createElement(f,{breadcrumb:t[1]}):n.createElement(n.Fragment,null),y=r>3?n.createElement(f,{breadcrumb:t[r-2]}):n.createElement(n.Fragment,null),E=r>1?n.createElement(f,{breadcrumb:t[r-1]}):n.createElement(n.Fragment,null),w=t.slice(2,r-2);return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},g,h,c?n.createElement("li",{className:"breadcrumb-item"},n.createElement("button",{className:"btn-link",onClick:function(){s(!1),p(!0)},"aria-label":b("expand")},"...")):w.map((function(e,t){return n.createElement(f,{key:t,breadcrumb:e,ref:0===t?v:null})})),y,E))},v=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,i.a)(l.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},c.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},10587:(e,t,a)=>{a.d(t,{y:()=>l});var n=a(54610);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)}function o(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var l=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2861],{72861:(t,e,n)=>{n.d(e,{e:()=>C,Q:()=>R});var i=n(32735),r=n(91967),a=n(82182),o=n(75896),l=n(1048),c=n(92582),s=n(66869),u=n(29420),d=n(43872),f=n(53855),m=n(31069),g=n(10841),h=n(81514),p=n(65294),y=n(10038),v=n(5859),b=n(49542),E=function(t,e,n){return function(){t.container.current&&(t.container.current.style.transition=""),e({type:g.n.Resize,payload:{elementRefs:t,mediaQuery:n}})}},P=function(t){return function(){t.current&&(t.current.style.transition="transform .4s ease-in-out")}},S=function(t,e,n,i,r){return function(a){var o=a.clientX,l=i;l||(l=Object.assign(Object.assign({},e),{initialMouseX:o}),r(l),t.current.style.transition=""),n({type:g.n.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},O=function(t,e){return function(){t.current.style.transition="transform .4s ease-in-out",e(null)}},L=n(14244);const j={itemSpacing:"fDc_6",header:"WMgSZ",mobileScroll:"aLSzv",leftGradient:"YheD1",leftGradientNoPadding:"Vl2_g",leftButton:"ISepF",leftButtonNoPadding:"N4rAS",rightGradient:"i9XEE",rightGradientNoPadding:"APhNv",rightButton:"OxM84",rightButtonNoPadding:"nmSQo"};function A(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(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.")}()}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,e)||w(t,e)||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(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function C(t){var e=t.childComponent,n=t.staticChildren,v=t.getWidgetItemAnalyticsData,w=void 0===v?function(){}:v,B=N(i.useReducer(L.E,L.C),2),C=B[0],x=B[1],M=N(i.useState(null),2),k=M[0],I=M[1],D={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)},G=(0,h.V)(),X=a.V.isTabletOrMobile(),W=(0,u.T)({type:"dynamic",state:C,containerRef:D.container,mediaQuery:G}),T=W.dynamicAttributes,_=W.focusNext,Q=W.focusPrev,z=W.onFocusWidget,F=W.onBlurWidget;(0,y.H)(E(D,x,G),P(D.container),[G]);var V=(0,p.Y)({prevent:!t.lazyLoad}),U=V.ref,$=V.inView,H=t.collection;if(!t.collection&&r.q.isFunction(t.fetch)){var Y=t.fetch($);H=Y.data}i.useEffect((function(){H&&!l.t.isEmpty(H)&&x({type:g.n.Init,payload:{elementRefs:D,mediaQuery:G}})}),[H]);var q=i.useMemo((function(){var r,a;if(H){var l=null!==(r=null==n?void 0:n.filter((function(t){return"start"===t.position})))&&void 0!==r?r:[],c=null!==(a=null==n?void 0:n.filter((function(t){return"end"===t.position})))&&void 0!==a?a:[],s=H.map((function(n,r){var a;n===o.m.first(H)&&(null==l?void 0:l.length)&&(a=D.firstElement),n!==o.m.last(H)||(null==c?void 0:c.length)||(a=D.lastElement);var s=r+1===H.length;return i.createElement("li",Object.assign({id:n.id,key:n.id,ref:a,onFocus:function(){return z(r)},onBlur:function(){return F()},className:"".concat(j.itemSpacing," ").concat(t.childClassName||""," ").concat(s&&X?"pe-4":"")},T[n.id]),i.createElement(e,Object.assign({getChildAppLink:t.getChildAppLink,data:n,getSubtitle:t.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:r},t.analyticsData),w(n)),analyticsOptions:Object.assign(Object.assign({},null==t?void 0:t.analyticsOptions),b.d.getSliderItemAnalyticsOptions())},t.childComponentProps)))}));return l.length&&(s=[].concat(A(l.map((function(e,n){var r=e.component;return i.createElement("li",{key:"first-widget-component:".concat(n),ref:0===n?D.firstElement:null,className:"".concat(j.itemSpacing," ").concat(t.childClassName||"")},i.createElement(r,null))}))),A(s))),c.length&&(s=[].concat(A(s),A(c.map((function(e,n){var r=e.component;return i.createElement("li",{key:"end-widget-component:".concat(n),ref:n===c.length-1?D.lastElement:null,className:"".concat(j.itemSpacing," ").concat(t.childClassName||"")},i.createElement(r,null))}))))),i.createElement(i.Fragment,null,s)}}),[H,T,C.offset,G].concat(A(t.widgetDataDeps||[])));if(H&&!H.length&&!(null==n?void 0:n.length))return i.createElement(i.Fragment,null);if(!H||l.t.isEmpty(H))return i.createElement("div",{ref:U},i.createElement(R,{partialLoadingComponent:t.partialLoadingComponent,partialLoadingOptions:t.partialLoadingOptions}));var Z=function(e){return Object.assign(Object.assign({},t.analyticsData),{id:t.id,name:t.heading,direction:e===g.n.Next?"right":"left"})},J=X||t.hideButtons;return i.createElement("div",{className:"".concat(t.noNegativePadding?"":"mx-n4")},i.createElement("div",{className:"px-4 ".concat(j.header)},i.createElement(s.B,{name:t.heading,description:t.description,appLink:t.headingAppLink,showSeeMoreLink:!!t.headingAppLink})),i.createElement("div",{className:"position-relative"},i.createElement("div",{className:"".concat(t.noNegativePadding?"":"px-4"," py-3 my-n3 position-relative ").concat(X?j.mobileScroll:"overflow-hidden-x")},i.createElement("div",{className:"position-relative ".concat(t.hideButtons?"overflow-hidden-x":"")},!J&&i.createElement(f.W,{direction:f.f.Left,onClick:function(){Q(),x({type:g.n.Previous}),c.k.logUserAction(Z(g.n.Previous),b.d.getSliderAnalyticsOptions())},leftButtonClassName:"".concat(j.leftButton," ").concat(t.noNegativePadding?j.leftButtonNoPadding:""),leftGradientClassName:"".concat(j.leftGradient," ").concat(t.noNegativePadding?j.leftGradientNoPadding:""),hide:C.hideLeftButton,useGradientBackdrop:!0}),i.createElement(d.V,{position:C.offset,positionType:m.C.Pixels,onDrag:S(D.container,C,x,k,I),onDragEnd:O(D.container,I),ref:D.container},q),!J&&i.createElement(f.W,{direction:f.f.Right,onClick:function(){_(),x({type:g.n.Next}),c.k.logUserAction(Z(g.n.Next),b.d.getSliderAnalyticsOptions())},hide:C.hideRightButton,rightButtonClassName:"".concat(j.rightButton," ").concat(t.noNegativePadding?j.rightButtonNoPadding:""),rightGradientClassName:"".concat(j.rightGradient," ").concat(t.noNegativePadding?j.rightGradientNoPadding:""),useGradientBackdrop:!0})))))}C.defaultProps={heading:"",description:"",childComponentProps:{}};var R=function(t){var e=t.partialLoadingComponent,n=t.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},v.u.getPartialLoadingItems(n).map((function(t,n){return i.createElement(e,{key:n})})))}},14244:(t,e,n)=>{n.d(e,{C:()=>o,E:()=>f});var i=n(86764),r=n(10841);function a(t){return t===i.r.XS?200:t===i.r.SM||t===i.r.MD?350:500}var o={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},l=function(t){var e=t.elementRefs,n=e.container,i=e.lastElement;if(!(null==n?void 0:n.current)||!(null==i?void 0:i.current))return o;var r=n.current.getBoundingClientRect(),l=r.left,c=r.right,s=l,u=i.current.getBoundingClientRect().right,d=c-u;return Object.assign(Object.assign({},o),{containerLeftPosition:l,containerRightPosition:c,firstElementPosition:s,lastElementPosition:u,hideRightButton:u<c,leftOffsetLimit:d,maxSlideDistance:a(t.mediaQuery)})},c=function(t){var e=l(Object.assign(Object.assign({},t),t.elementRefs));return Object.assign(Object.assign({},e),{maxSlideDistance:a(t.mediaQuery)})},s=function(t){var e=t.firstElementPosition,n=t.lastElementPosition,i=t.maxSlideDistance,r=t.offset,a=t.containerRightPosition,o=n-a>=i?i:n-a;return{firstElementPosition:e-o,lastElementPosition:n-o,offset:r-o,hideRightButton:n-o===a,hideLeftButton:!1}},u=function(t){var e=t.containerLeftPosition,n=t.firstElementPosition,i=t.lastElementPosition,r=t.maxSlideDistance,a=t.offset,o=n+r<=e,l=o?r:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:i+l,offset:a+l,hideLeftButton:!o||n+l===e,hideRightButton:!1}},d=function(t,e){var n=e.widgetSnapshot,i=e.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-i,a=n.offset-r,o=n.firstElementPosition-r,l=n.lastElementPosition-r,c=!1,s=!1;return o>t.containerLeftPosition&&(a=0,o=t.containerLeftPosition,l=t.lastElementPosition,c=!0),l<=t.containerRightPosition&&(a=t.leftOffsetLimit,o=t.containerLeftPosition-Math.abs(t.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}};function f(t,e){switch(e.type){case r.n.Init:return Object.assign(Object.assign({},t),l(e.payload));case r.n.Resize:return Object.assign(Object.assign({},t),c(e.payload));case r.n.Next:return Object.assign(Object.assign({},t),s(t));case r.n.Previous:return Object.assign(Object.assign({},t),u(t));case r.n.Drag:return Object.assign(Object.assign({},t),d(t,e.payload));default:return t}}},81514:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(86764),r=n(3747);function a(){var t=(0,r.a)(i.r.XS),e=(0,r.a)(i.r.SM),n=(0,r.a)(i.r.MD),a=(0,r.a)(i.r.LG),o=(0,r.a)(i.r.XL),l=(0,r.a)(i.r.XXL),c=i.r.LG;return t&&(c=i.r.XS),e&&(c=i.r.SM),n&&(c=i.r.MD),a&&(c=i.r.LG),o&&(c=i.r.XL),l&&(c=i.r.XXL),c}},10038:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(32735);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=function(){t(),window.clearTimeout(n),n=window.setTimeout(e,100)};i.useEffect((function(){return window.addEventListener("resize",e?l:t),function(){return window.removeEventListener("resize",e?l:t)}}),function(t){if(Array.isArray(t))return r(t)}(a=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):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.")}())}},5859:(t,e,n)=>{function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{u:()=>a});var r={numItems:5,minWidth:50,maxWidth:100},a={getPartialLoadingItems:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},r),e);return(t=Array(n.numItems),function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*n.maxWidth),n.minWidth),"px")}}))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2877],{22877:(_,e,n)=>{var i=n(6680).qC;e.__esModule=!0,e.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?i:i.apply(null,arguments)},e.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(_){return _}}}}]);