@clickview/streamable-learning 0.16.2-dev.1 → 0.16.2-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.
- package/dist/bundles.json +4 -0
- package/dist/css/1067-streamable-learning-629bbd0a42.chunk.css +8 -0
- package/dist/css/1437-streamable-learning-4e8b60a4ff.chunk.css +12 -0
- package/dist/css/1977-streamable-learning-850d8debe8.chunk.css +13 -0
- package/dist/css/2146-streamable-learning-2d8c1745cf.chunk.css +13 -0
- package/dist/css/2967-streamable-learning-a004e2d423.chunk.css +4 -0
- package/dist/css/2987-streamable-learning-b5d226bbb6.chunk.css +5 -0
- package/dist/css/3498-streamable-learning-8c9306617b.chunk.css +2 -0
- package/dist/css/3996-streamable-learning-8a5d543bac.chunk.css +49 -0
- package/dist/css/4018-streamable-learning-e5335c9805.chunk.css +6 -0
- package/dist/css/4109-streamable-learning-8f682301c6.chunk.css +1 -0
- package/dist/css/4254-streamable-learning-e493f4a027.chunk.css +2 -0
- package/dist/css/6533-streamable-learning-36b426e036.chunk.css +7 -0
- package/dist/css/704-streamable-learning-2e91ad6b6d.chunk.css +89 -0
- package/dist/css/719-streamable-learning-7133f6f383.chunk.css +10 -0
- package/dist/css/7272-streamable-learning-ca6ff5e866.chunk.css +3 -0
- package/dist/css/7285-streamable-learning-d3798cee22.chunk.css +33 -0
- package/dist/css/7545-streamable-learning-16b4fe0f3a.chunk.css +22 -0
- package/dist/css/7694-streamable-learning-35adffc1e3.chunk.css +9 -0
- package/dist/css/7730-streamable-learning-55cdf7ecba.chunk.css +2 -0
- package/dist/css/9638-streamable-learning-9e6986fa70.chunk.css +5 -0
- package/dist/css/9861-streamable-learning-413a1cf43a.chunk.css +78 -0
- package/dist/css/streamable-learning-9198453435.css +22 -0
- package/dist/languages/en.json +1 -0
- package/dist/scripts/1067-171fa550b3-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1437-aced338a12-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1661-b235a2d101-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js +2 -0
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js.LICENSE.txt +9 -0
- package/dist/scripts/1977-3f6d39eca8-streamable-learning.chunk.js +2 -0
- package/dist/scripts/1977-3f6d39eca8-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/2012-fd2f399892-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2146-05b86ba590-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js +2 -0
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js +2 -0
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/2700-5de03df25e-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2861-e66f927434-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2967-4209d1c930-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2987-66f91261bd-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3093-c91e44e996-streamable-learning.chunk.js +1 -0
- package/dist/scripts/339-49979ee8fb-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3498-2099b4714e-streamable-learning.chunk.js +1 -0
- package/dist/scripts/370-f95be13e63-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3958-7d615280bd-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3996-80360253ea-streamable-learning.chunk.js +1 -0
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js +2 -0
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/4109-fdf1494406-streamable-learning.chunk.js +1 -0
- package/dist/scripts/4254-d7bb08e9b6-streamable-learning.chunk.js +1 -0
- package/dist/scripts/487-75a5b14848-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5173-a67ee71a21-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5446-588d118d63-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5946-de0a8868a0-streamable-learning.chunk.js +1 -0
- package/dist/scripts/625-30de0d618e-streamable-learning.chunk.js +1 -0
- package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js +2 -0
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js.LICENSE.txt +105 -0
- package/dist/scripts/6533-89457166a4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/6909-31e9162346-streamable-learning.chunk.js +1 -0
- package/dist/scripts/704-6031e09f66-streamable-learning.chunk.js +2 -0
- package/dist/scripts/704-6031e09f66-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7102-c0c2b1022b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js +2 -0
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7272-c7d7094d8c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7285-525817a76c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7545-b79b8d772f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js +2 -0
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7730-e840521d28-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7897-83ecf29c44-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7925-28c7dfa1ff-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8352-2c3d85bae1-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js +2 -0
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js.LICENSE.txt +32 -0
- package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +1 -0
- package/dist/scripts/9531-6e0529dcb6-streamable-learning.chunk.js +1 -0
- package/dist/scripts/9638-787781015d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/9861-b697bad06e-streamable-learning.chunk.js +2 -0
- package/dist/scripts/9861-b697bad06e-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/bundle-18c3f3481c.min.js +2 -0
- package/dist/scripts/bundle-18c3f3481c.min.js.LICENSE.txt +108 -0
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js +2 -0
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2215-71ae9c9e39-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 N(){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 A=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(A.Z.suggestionItem," ").concat(o-1===e?A.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,M=(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}),R=M.selectedIndex,Z=M.onKeyDown,z=M.containerRef,U=M.hide,B=M.onBlur,V=M.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(A.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(A.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(A.Z.input):"".concat(Q," ").concat(A.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(A.Z.dropdown," ").concat(U?"d-none":"")},!!tt&&n.createElement("div",{className:A.Z.suggestionContainer,ref:z},n.createElement(T,{predictions:I,getPlaceInfo:J,selectedIndex:R}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(A.Z.suggestionItem," px-1 ").concat(R-1===I.length?A.Z.selected:""),onClick:X},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(N,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(A.Z.useMyLocation)},n.createElement("button",{onClick:X,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(N,null),"Use my current location")),!!q&&n.createElement("div",{className:"text-danger p-2"},q)))}},76530:(t,e,r)=>{r.d(e,{X:()=>N});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=N(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 N(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,N(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 A(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(A,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=N(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 N(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,N(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 A(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(A,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:""),onKeyDown:function(e){return"Enter"===e.key&&t.handleNoSuggestion()},onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion},"Can't find your school?")}function N(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,N=v.onBlur,A=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 M=(_||I||T)&&!t.disabled&&!C,R="form-control ".concat(M?j.Z.inputFocused:j.Z.input),Z="form-group position-relative";return"lg"===t.size&&(R+=" 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:R,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:A,onBlur:N}),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(M?"":"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(){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 N=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(N.onChange=k),n.createElement(f,Object.assign({},N))}var A=Object.assign(Object.assign({},j),{className:y.getCustomFormControlClassName(C,L,j.name,E,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(A.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({},A,{"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),disabled:o},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:" "},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:" "}}))}))))}))},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 _}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>C});var a,i=n(23481),r=n(110),o=n(71063);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(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}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var d=i.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,i=e.phraseContext,r=e.product,o=void 0===r?"ClickView":r;if(!a)return"";if(!i)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=i.phraseHandler(i.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):i.phraseHandler(i.titlePhrase,{title:a})}function y(e){var t,n,a,i,r,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(r=l||o)?r.substring(0,160):""));if(!c)return d(m,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var i=e.slice(0,a),r=i.match(u);return r?r[1]:i}(l,0,null!==(i=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==i?i:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function f(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,i,r=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&r?[].concat(function(e){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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.")}()}(e),[{"@type":"Place",name:r}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:r.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:f(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var C={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:i,product:e.product}),description:y({title:t,description:n,phraseContext:i}),canonicalLink:a,allowIndexing:r,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:i,hrefLang:r}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}}}},26226:(e,t,n)=>{n.r(t),n.d(t,{CompanyDashboardView:()=>Z});var a=n(32735),i=n(23481),r=n(81886),o=n(20354),l=n(75896),c=n(78259),s=n(65858),d=n(15800),u=n(83345),p=n(64444),m=n(26154),v=n(35223),g="streamable.companyDashboardEmptyState",h=i.T.encloseNamespace(g);function y(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===m.GL.Archived;return a.createElement(u.D.Provider,{value:g},a.createElement(d.u,null,a.createElement(d.u.Image,{src:e.imageUrl,altText:h("headingForStreamable")}),e.isReadOnly?a.createElement(a.Fragment,null,a.createElement(d.u.Heading,null,a.createElement(u.x,{namespace:g,phrase:"headingForCurator"})),a.createElement(d.u.Info,null,a.createElement(u.x,{namespace:g,phrase:"info"})),a.createElement(p.u,{title:r?i.T.getPhrase(g,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(d.u.Cta,{text:i.T.getPhrase(g,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:v.vn.Plus,disabled:r}))):a.createElement(d.u.Heading,null,a.createElement(u.x,{phrase:"headingForStreamable"}))))}var f=n(99105),b=n(75553),C=n(49935),L=n(56097),E=n(81326),S=n(7733),x=n(21366),w=n(9085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function k(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 P=i.T.encloseNamespace("streamable.companyDashboard");function O(e){var t,n,i,r,o,d,u,p=l.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),v=a.useMemo((function(){return p.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==p?void 0:p.length]),g=(d=a.useState(v),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(d,u)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(d,u)||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.")}()),h=g[0],O=g[1];function I(t,n,a){var i,r=x.S.getWidgetParams(n,a,x.S.getDashboardTargetType(e.dashboard),null===(i=e.activeAudiences)||void 0===i?void 0:i.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,r,a)}var T=a.useCallback((function(e,t){if(h[e]!==t){var n=Object.assign(Object.assign({},h),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=A(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t));O(n)}}),[h,p]),U=!(null==p?void 0:p.length)||Object.values(h).every((function(e){return!!e}));return a.createElement(a.Fragment,null,!!p.length&&a.createElement(a.Fragment,null,e.company?a.createElement(b.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,w.x)(e.company.name,S.o),actions:null===(n=e.getBannerActions)||void 0===n?void 0:n.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):a.createElement(b.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(C.Oo,{breadcrumbs:null===(i=e.getBreadcrumbs)||void 0===i?void 0:i.call(e)}),a.createElement(f.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(r=e.appLinks)||void 0===r?void 0:r.audience()})),e.company.description&&a.createElement("div",{className:"mb-5"},a.createElement(L.$,{id:null===(o=e.company)||void 0===o?void 0:o.id,question:P("aboutUs"),answer:c.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:s.py.Company,location:s.LZ.Dashboard}})),a.createElement("div",null,p.map((function(t){return a.createElement(E.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:I,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,setIsEmpty:T,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,isBot:e.isBot,contentType:m.VH.Livestream,preferences:t.preferences,isPlugin:!1})})))),U&&a.createElement(y,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var I=n(70275),T=n(25925),U=n(67058),F=n(89454),R=n(39151),_=n(80889),B=n(79612),M=n(69454),D=n(25301),j=n(99742),W=n(96359),H=n(41760),N=n(41135),q=n(68317),G=n(31700),V=n(73688),z=n(65751),K=n(6117),Y=n(28400),$=i.T.encloseNamespace("dashboard.companyDashboard");function Z(e){var t,n,i,l=o.a.useBasicFetch(R.L.config()),c=o.a.useBasicFetch(q.h.company(e.companyId,{query:"banner,logo"})),s=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&F.O.presentationAudiences(s.data.id,T.R.StreamableLearning)),u=M.T.getActiveAudiencesFromParams(d.data,e.queryParams),p=c.data&&function(e,t){return{audience:function(){return{application:N.O.DASHBOARD,action:W.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,Y.m.slugify(e.name)],params:t}}}}(c.data,e.queryParams),v=(0,V.B)({targetType:m.ku.Company,companyId:e.companyId,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}),g=v.dashboard,h=v.isPreviewing;return(0,B.M)(D.CG.getDefaultMetadata({title:null===(n=c.data)||void 0===n?void 0:n.name,phraseContext:{phraseHandler:$,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:K.f.getCanonicalLink(),allowIndexing:!0,product:H.L.PRODUCT_NAME})),a.useEffect((function(){g.hasCompleted&&!g.data&&r.Q.Ry.throw(new U.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&s.hasCompleted&&d.hasCompleted&&c.hasCompleted?a.createElement("div",{className:"position-relative px-4"},!(!h||!g.data)&&a.createElement(I.a,{status:g.data.status,type:"company"}),a.createElement(O,{company:c.data,dashboard:g.data,getWidgetContentRequest:_._.dashboardWidgetContent,imageCdnUrl:null===(i=l.data)||void 0===i?void 0:i.imageCdnUrl,resourceThumbnailFallbackImageUrl:j.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:s.data,widgetAppLinks:z.y,getBreadcrumbs:function(){return c.hasCompleted?[{name:$("discover"),appLink:{application:N.O.DASHBOARD,action:W.e.Dashboard.HOME}},{name:c.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:j.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:p,emptyImageUrl:j.W.EmptyStates.Topics.TOPIC,isBot:K.f.isBot(),lazyLoad:!K.f.isBot()})):a.createElement(a.Fragment,null)}},68317:(e,t,n)=>{n.d(t,{h:()=>r});var a=n(99940),i=n(97395),r={company:function(e,t){return{url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:i._.urlBuilder("/api/objects/".concat(e),t),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i="search:v4:streamable:company:".concat(t,":").concat(n),r={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=t?t:void 0,limit:n,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:a.k.POST,data:r,key:i}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2987],{78259:(e,t,n)=>{n.d(t,{O:()=>l});var a=n(58176),r=n.n(a),o=n(21161),i={className:"info-link",defaultProtocol:"https"},l={linkifyText:function(e,t){if(e){var n=t?o.extend({},i,t):i;return r()(e,n)}}}},79878:(e,t,n)=>{n.d(t,{r:()=>m});var a=n(32735),r=n(23481),o=n(83914),i=n(64444),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function m(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},23062:(e,t,n)=>{n.d(t,{b:()=>h});var a=n(32735),r=n(110),o=n(78259),i=n(28400),l=n(92582),c=n(65858),s=n(79878),m=n(12324),u=n(42735),d=n(57408),v=n(85473),p=n(83914),f=n(83345),g=n(2284),b=n(35223);const y={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};var E="shared.specialEventListItem";function h(e){var t,n,h,D,O,A,k=e.getAppLink(e.event.content,i.m.slugify(e.event.name)),C=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),N=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),T=null===(h=e.getBannerUrl)||void 0===h?void 0:h.call(e,e.event.content),L=!!e.event.endDate,S=e.event.content.status===g.W.ComingSoon,w=null===(D=e.getStartTime)||void 0===D?void 0:D.call(e,e.event.content),M=null===(O=e.getActionLabel)||void 0===O?void 0:O.call(e),P=null===(A=e.isPastEvent)||void 0===A?void 0:A.call(e,e.event.content),I={actionType:c.Vw.Click,entity:c.py.SpecialEvent,location:e.inPopup?c.LZ.CalendarPopup:c.LZ.CalendarDay},j={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:r.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return a.createElement("div",null,w&&a.createElement("h6",null,w),a.createElement("div",{onClick:function(){S&&l.k.logUserAction(j,I)}},a.createElement(d.F,{appLink:!S&&k,className:"".concat(S?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:I,analyticsData:j},a.createElement("div",{className:"banner rounded-3 position-relative position-relative ".concat(y.banner),style:{backgroundColor:C,backgroundImage:"url('".concat(T,"')")}},P&&a.createElement("div",{className:"bg-white w-100 h-100 opacity-50 position-absolute top-0 left-0 z-0"}),a.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},a.createElement("div",{className:"d-flex align-items-center z-1"},N&&a.createElement("div",{className:"".concat(y.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},a.createElement(v.Z,{data:N})),a.createElement("div",null,S&&a.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(y.pill)}),P&&a.createElement("div",{className:"d-inline-block rounded-pill bg-light-green mb-1"},a.createElement(p.x,{svgName:b.vn.CalendarCheck}),a.createElement("p",{className:"d-inline ms-1 mb-0"},a.createElement(f.x,{namespace:E,phrase:"pastEvent"}))),L&&a.createElement("p",{className:"text-white text-shadow mb-1"},m.T.getDisplayDate(e.event.startDate,e.event.endDate)),a.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),a.createElement("div",{className:"d-none d-sm-block flex-shrink-0 z-1"},!S&&a.createElement(u.K,{className:"btn ".concat(P?"btn-outline-dark":"btn-dark"," fw-semibold")},M))))),a.createElement("div",{className:"mt-2 mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:o.O.linkifyText(e.event.description||e.event.content.description)}})))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},54168:(e,t,n)=>{n.d(t,{d:()=>l});var a=n(32735),r=n(40290),o=n(83914),i=n(35223);function l(){var e;return a.createElement("div",null,a.createElement(o.x,{svgName:i.vn.Globe}),a.createElement("span",{className:"ms-1"},null===(e=r.F[r.r.ET])||void 0===e?void 0:e.name))}},85473:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(32735),r=n(1048),o=n(57408),i=n(16107),l=n(54610),c=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function m(e){var t=s.image,n="";return e.imageType===l.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(n=s.tallPoster),e.imageType===l.__.Covers&&(n=s.cover),e.imageType===l.__.Banners&&(n=s.banner),e.imageType===l.__.Posters&&(n=s.poster),e.imageType===l.__.Pdf&&(n=s.pdf),e.imageType===l.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function u(e){var t=e.data,n=e.imageOptions,l=e.appLink,s=e.preload,u=e.preventLoad,d=e.analyticsOptions,v=e.analyticsData,p=e.imageClassName,f=e.alt,g="";"string"==typeof t?g=t:r.t.isObject(t)&&(g=t.url);var b=g&&n?c.j.createUrl(g,n):g;return a.createElement("div",{className:m(e),style:e.imageStyle},a.createElement(o.F,{appLink:l,analyticsData:v,analyticsOptions:d,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName},e.children,b&&a.createElement(i.w,{src:b,alt:f,forceLoad:s,preventLoad:u,extraClasses:p,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})))}},16107:(e,t,n)=>{n.d(t,{w:()=>l});var a=n(32735),r=n(65294);const o="fVSzb";function i(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 l=a.memo((function(e){var t,n,l=e.forceLoad,c=e.extraClasses,s=void 0===c?"":c,m=e.errorFallbackImageSrc,u=e.preventLoad,d=void 0!==u&&u,v=e.errorFallbackImageClassName,p=e.src,f=e.alt,g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),b=(0,r.Y)({rootMargin:"500px"}),y=b.ref,E=b.inView,h=(t=a.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),D=h[0],O=h[1];function A(){return D&&m?m:e.src}if(a.useEffect((function(){if((l||E)&&!d){var e=new Image;return e.onerror=function(){O(!0),m&&(e.src=m)},e.src=p,function(){return e.onerror=null}}}),[E,d]),D&&!m)return a.createElement(a.Fragment,null);if(!y)return a.createElement("img",Object.assign({className:"".concat(o," ").concat(s," ").concat(D&&v||""),alt:f,src:A()},g));var k=Object.assign(Object.assign({alt:f},g),!E&&!l||d?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:A()});return l||(k.ref=y),a.createElement("img",Object.assign({className:"".concat(o," ").concat(s," ").concat(D&&v||"")},k))}))},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},5960:(e,t,n)=>{var a,r;n.d(t,{H:()=>r,X:()=>a}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},65294:(e,t,n)=>{n.d(t,{Y:()=>o});var a=n(34152);function r(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}function o(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.prevent,i=n.rootMargin,l=n.triggerOnce,c=void 0===l||l,s=(e=(0,a.YD)({triggerOnce:c,rootMargin:i}),t=3,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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(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.")}()),m=s[0],u=s[1],d=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(u=!0,m=null),{ref:m,inView:u,initialized:!!d}}},26255:(e,t,n)=>{n.d(t,{y:()=>o});var a=n(110),r=n(59795),o={getStartTime:function(e){return a.O.format(r.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&a.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)},isPastEvent:function(e){return a.O.isBefore(e.endDateTime,new Date)}}},323:(e,t,n)=>{n.d(t,{C:()=>l,j:()=>i});var a=n(99742),r=n(96359),o=n(41135);function i(){return{emptyState:a.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:a.W.EmptyStates.CALENDAR.INVALID_DATE}}function l(){return{calendar:function(){return{application:o.O.CALENDAR,action:r.e.Calendar.CALENDAR}},month:function(e){return{application:o.O.CALENDAR,action:r.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:o.O.LIVESTREAMS,action:r.e.Livestreams.LIVESTREAM,args:[e.id,t]}},eventList:function(e,t,n){return{application:o.O.CALENDAR,action:r.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},42987:(e,t,n)=>{n.r(t),n.d(t,{SpecialEventListView:()=>C});var a=n(32735),r=n(42648),o=n(23481),i=n(20354),l=n(110),c=n(23062),s=n(12324),m=n(54168),u=n(58960),d=n(54610),v=n(16714),p=n(22902),f=n(67453),g=n(55941),b=n(31700),y=n(26255),E=n(323);const h={modalWidth:"LrMq0",buttons:"jAfM0"};var D="specialEventCalendar.eventListPopup",O=o.T.encloseNamespace(D),A=400,k=300;function C(e){var t,n,C=i.a.useBasicFetch(b.g.streamablePresentation()),N=(0,(0,p.T)().hasPermissions)(v.C.StudentExperience),T=new Date(e.from),L=new Date(e.to),S=i.a.useBasicFetch((null===(t=C.data)||void 0===t?void 0:t.id)&&g.H.calendarLivestreams({from:l.O.format(T,"YYYY-MM-DD"),to:l.O.format(L,"YYYY-MM-DD")})),w=(null===(n=S.data)||void 0===n?void 0:n.filter((function(t){return t.startDate===l.O.format(new Date(e.date),"YYYY-MM-DD")})))||[];function M(e){var t;return f.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:d.h2.Large})}function P(e){var t;return f.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:d.h2.Small})}return a.createElement(u.G,{title:"Events on ".concat(s.T.getOrdinalDate(e.date)),closePopup:e.closePopup,dialogClassName:h.modalWidth,bodyClassName:"p-0",showLoadingSpinner:!S.data},a.createElement(r.$B,{autoHeight:!0,autoHeightMin:k,autoHeightMax:A},a.createElement("div",{className:"px-3 pt-2"},w.map((function(t,n){var r;return a.createElement(c.b,{key:t.content.id,getAppLink:(0,E.C)().event,event:t,onClick:e.closePopup,inPopup:!0,presentationId:null===(r=C.data)||void 0===r?void 0:r.id,getActionLabel:function(){return O((e=t.content,N||y.y.isPastEvent(e)?"pastActionLabel":"actionLabel"));var e},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:M,getIconUrl:P,getStartTime:y.y.isSameTime(w,n)?null:y.y.getStartTime,isPastEvent:y.y.isPastEvent})})))),a.createElement("div",{className:"d-flex justify-content-between align-items-center p-3 border-top"},a.createElement(m.d,null),a.createElement("button",{onClick:e.closePopup,className:"btn btn-outline-dark"},o.T.getPhrase(D,"close"))))}},55941:(e,t,n)=>{n.d(t,{H:()=>l});var a=n(97395),r=n(110),o=n(59795),i=n(5960),l={livestream:function(e){return{url:a._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:a._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:i.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:r.O.format(o.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}}}]);
|