@clickview/streamable-learning 0.8.0-rc.2 → 0.8.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/bundles.json +4 -0
  2. package/dist/css/1072-streamable-learning-ee6c3d6f42.chunk.css +1 -0
  3. package/dist/css/1823-streamable-learning-1a2f63bee9.chunk.css +1 -0
  4. package/dist/css/242-streamable-learning-3a80ad3f7a.chunk.css +35 -0
  5. package/dist/css/2421-streamable-learning-78a29f6353.chunk.css +4 -0
  6. package/dist/css/253-streamable-learning-fcf1713a95.chunk.css +2 -0
  7. package/dist/css/2700-streamable-learning-c44307ff26.chunk.css +3 -0
  8. package/dist/css/2872-streamable-learning-a02fea9b90.chunk.css +5 -0
  9. package/dist/css/2987-streamable-learning-fa1bea0282.chunk.css +1 -0
  10. package/dist/css/3498-streamable-learning-05cf500c35.chunk.css +2 -0
  11. package/dist/css/3737-streamable-learning-a4c018fbc5.chunk.css +1 -0
  12. package/dist/css/3975-streamable-learning-adbd45b653.chunk.css +1 -0
  13. package/dist/css/3983-streamable-learning-f2efd8f575.chunk.css +5 -0
  14. package/dist/css/4109-streamable-learning-161314e1d4.chunk.css +1 -0
  15. package/dist/css/438-streamable-learning-1691a9b50c.chunk.css +1 -0
  16. package/dist/css/4546-streamable-learning-6fb0330d4f.chunk.css +17 -0
  17. package/dist/css/490-streamable-learning-8182c2708b.chunk.css +2 -0
  18. package/dist/css/507-streamable-learning-3f25ef5af5.chunk.css +1 -0
  19. package/dist/css/5440-streamable-learning-c7322a5d7e.chunk.css +1 -0
  20. package/dist/css/551-streamable-learning-c09801c210.chunk.css +4 -0
  21. package/dist/css/5708-streamable-learning-cf26b8c23a.chunk.css +1 -0
  22. package/dist/css/5902-streamable-learning-f8d01144f7.chunk.css +9 -0
  23. package/dist/css/6040-streamable-learning-515f538f33.chunk.css +4 -0
  24. package/dist/css/6138-streamable-learning-db155d5e7f.chunk.css +1 -0
  25. package/dist/css/6284-streamable-learning-39004842a5.chunk.css +1 -0
  26. package/dist/css/6411-streamable-learning-b7d9b456c1.chunk.css +1 -0
  27. package/dist/css/6542-streamable-learning-e1a1f5b43b.chunk.css +4 -0
  28. package/dist/css/6699-streamable-learning-d6f402980b.chunk.css +1 -0
  29. package/dist/css/6772-streamable-learning-30586450d3.chunk.css +1 -0
  30. package/dist/css/7245-streamable-learning-d8d5651563.chunk.css +2 -0
  31. package/dist/css/7504-streamable-learning-26c7f5a404.chunk.css +1 -0
  32. package/dist/css/8446-streamable-learning-1907659342.chunk.css +3 -0
  33. package/dist/css/8499-streamable-learning-01e557811a.chunk.css +1 -0
  34. package/dist/css/8559-streamable-learning-3ea2d2872f.chunk.css +1 -0
  35. package/dist/css/9019-streamable-learning-019e5fa797.chunk.css +63 -0
  36. package/dist/css/954-streamable-learning-f5675f2e37.chunk.css +4 -0
  37. package/dist/css/9596-streamable-learning-5ba5ce3997.chunk.css +1 -0
  38. package/dist/css/9725-streamable-learning-1bd1b1d293.chunk.css +3 -0
  39. package/dist/css/9826-streamable-learning-81d6c6f491.chunk.css +1 -0
  40. package/dist/css/streamable-learning-4dc19cf59f.css +21 -0
  41. package/dist/languages/en.json +1 -0
  42. package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +1 -0
  43. package/dist/scripts/242-3e9dfea9e6-streamable-learning.chunk.js +2 -0
  44. package/dist/scripts/242-3e9dfea9e6-streamable-learning.chunk.js.LICENSE.txt +1 -0
  45. package/dist/scripts/2421-f5733cf1d7-streamable-learning.chunk.js +1 -0
  46. package/dist/scripts/253-4781ccc6a0-streamable-learning.chunk.js +1 -0
  47. package/dist/scripts/2700-c0a14f4c46-streamable-learning.chunk.js +1 -0
  48. package/dist/scripts/2872-1bf19786f9-streamable-learning.chunk.js +1 -0
  49. package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +1 -0
  50. package/dist/scripts/2987-a7ad77781d-streamable-learning.chunk.js +1 -0
  51. package/dist/scripts/3498-143b3c727b-streamable-learning.chunk.js +1 -0
  52. package/dist/scripts/3737-345cab6916-streamable-learning.chunk.js +1 -0
  53. package/dist/scripts/3790-7d7e470f14-streamable-learning.chunk.js +1 -0
  54. package/dist/scripts/3958-22fae60668-streamable-learning.chunk.js +1 -0
  55. package/dist/scripts/3983-437a9c3be4-streamable-learning.chunk.js +1 -0
  56. package/dist/scripts/4109-56460a5b28-streamable-learning.chunk.js +1 -0
  57. package/dist/scripts/4254-cd48772def-streamable-learning.chunk.js +1 -0
  58. package/dist/scripts/4546-717b7a0862-streamable-learning.chunk.js +1 -0
  59. package/dist/scripts/5173-f4e285c96f-streamable-learning.chunk.js +1 -0
  60. package/dist/scripts/5446-3358713eae-streamable-learning.chunk.js +1 -0
  61. package/dist/scripts/551-cf7b6fe11c-streamable-learning.chunk.js +2 -0
  62. package/dist/scripts/551-cf7b6fe11c-streamable-learning.chunk.js.LICENSE.txt +1 -0
  63. package/dist/scripts/5708-2fbc08de4e-streamable-learning.chunk.js +1 -0
  64. package/dist/scripts/5902-053ea0988e-streamable-learning.chunk.js +2 -0
  65. package/dist/scripts/5902-053ea0988e-streamable-learning.chunk.js.LICENSE.txt +9 -0
  66. package/dist/scripts/6040-3d3e1ef89a-streamable-learning.chunk.js +1 -0
  67. package/dist/scripts/6138-cb40231f04-streamable-learning.chunk.js +1 -0
  68. package/dist/scripts/6284-9fd7a3cf97-streamable-learning.chunk.js +1 -0
  69. package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +1 -0
  70. package/dist/scripts/6411-4fb2168198-streamable-learning.chunk.js +1 -0
  71. package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js +2 -0
  72. package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js.LICENSE.txt +105 -0
  73. package/dist/scripts/6542-7e0f834bc2-streamable-learning.chunk.js +1 -0
  74. package/dist/scripts/6772-6306df9658-streamable-learning.chunk.js +1 -0
  75. package/dist/scripts/7025-ec9f48359a-streamable-learning.chunk.js +1 -0
  76. package/dist/scripts/7153-852adeb826-streamable-learning.chunk.js +1 -0
  77. package/dist/scripts/7689-4e84237fa3-streamable-learning.chunk.js +1 -0
  78. package/dist/scripts/7925-b208942885-streamable-learning.chunk.js +1 -0
  79. package/dist/scripts/8446-63c07eb7cf-streamable-learning.chunk.js +1 -0
  80. package/dist/scripts/8598-80abd9d41d-streamable-learning.chunk.js +2 -0
  81. package/dist/scripts/8598-80abd9d41d-streamable-learning.chunk.js.LICENSE.txt +32 -0
  82. package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +1 -0
  83. package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +1 -0
  84. package/dist/scripts/9019-68121d0ecc-streamable-learning.chunk.js +2 -0
  85. package/dist/scripts/9019-68121d0ecc-streamable-learning.chunk.js.LICENSE.txt +1 -0
  86. package/dist/scripts/9325-2154cffa7f-streamable-learning.chunk.js +1 -0
  87. package/dist/scripts/954-627d9c1782-streamable-learning.chunk.js +1 -0
  88. package/dist/scripts/9596-4806cb747f-streamable-learning.chunk.js +1 -0
  89. package/dist/scripts/9725-8452c832c4-streamable-learning.chunk.js +1 -0
  90. package/dist/scripts/9979-711727cd5a-streamable-learning.chunk.js +1 -0
  91. package/dist/scripts/bundle-8897f21ebf.min.js +2 -0
  92. package/dist/scripts/bundle-8897f21ebf.min.js.LICENSE.txt +108 -0
  93. package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js +2 -0
  94. package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt +21 -0
  95. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 551-cf7b6fe11c-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[551],{92869:(e,t,r)=>{r.d(t,{t:()=>o});var n=r(43823),a=r(95846),o={preventScrollTop:function(){n.Radio.channel(a.G.SHELL).trigger("prevent:scroll:top")}}},40290:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var a;r.d(t,{F:()=>s,r:()=>a}),function(e){e.EST="Eastern Standard Time"}(a||(a={}));var o,i,c,l,s=(o={},c={name:"Eastern Time",timezone:"America/New_York",code:"EST"},l=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i=a.EST),(i="symbol"==n(l)?l:l+"")in o?Object.defineProperty(o,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[i]=c,o)},59795:(e,t,r)=>{r.d(t,{t:()=>o});var n=r(110),a=r(40290),o={convertToUTCString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;return e?n.O.getUtcStringByTimezone(e,a.F[t].timezone):""},convertUTCToTimezoneDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;if(!e)return new Date;var r=e.includes("Z")?e:"".concat(e,"Z"),n=new Date(r),o=new Intl.DateTimeFormat("en-US",{timeZone:a.F[t].timezone,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(n);return new Date(o)}}},1269:(e,t,r)=>{r.d(t,{n:()=>E,W:()=>S});var n=r(32735),a=r(80247),o=r(50132),i=r(92802),c=r(91967),l=r(1048),s=r(57408),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function m(e){var t=e.label,r=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,c=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(o.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(E,Object.assign({className:"form-check-input"},c)),n.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(r),htmlFor:c.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var f=r(83914),d=r(83345),p={getCustomFormControlClassName:function(e,t,r,n,a,o){var c="";return c=function(e,t){var r="";return r="select"===e?"form-select":"form-control","sm"===t&&(r+=" ".concat(r,"-sm")),"lg"===t&&(r+=" ".concat(r,"-lg")),r}(o,n),(0,i.u9)(t,r)&&(0,i.u9)(e,r)&&(c+=" is-invalid"),a&&(c+=" ".concat(a)),c}},v=r(35223);function y(e){var t=(0,i.u6)().values[e.fieldName];return"string"!=typeof t?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},w="shared.formField";function E(e){var t,r,o=e.children,s=e.showLoadingSpinner,u=g(e,["children","showLoadingSpinner"]),m=(t=n.useState(e.type),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=m[0],p=m[1],y=c.q.isFunction(o)?function(e){return o(e)}:n.Children.count(o)?o:null;if("password"!==u.type)return s?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y),n.createElement("div",{className:h.spinner},n.createElement(a.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y);var w="position-relative ".concat(h.passwordContainer);return u.className&&(w+=" ".concat(u.className)),u.disabled&&(w+=" ".concat(h.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize","type","className"]),{type:d,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===u.type&&n.createElement(f.x,{svgName:"password"===d?v.vn.VisibleOn:v.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){p("password"===d?"text":"password")}}))}function S(e){var t=e.label,r=e.className,a=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,b=e.infoText,S=e.formSize,O=e.showOptionalLabel,N=g(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),j=(0,i.u6)(),A=j.errors,x=j.touched,P=function(){};if("checkbox"===N.type){var k=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(k.onChange=P),n.createElement(m,Object.assign({},k))}var L=Object.assign(Object.assign({},N),{className:p.getCustomFormControlClassName(A,x,N.name,S,r,"string"==typeof e.as?e.as:null)});return e.disabled&&(L.onChange=P),n.createElement(o.Z.Group,{className:"form-group"},!!t&&n.createElement(o.Z.Label,{htmlFor:N.id,className:"d-flex align-items-center"},t,c&&n.createElement("span",{className:"text-danger"},"*"),s&&n.createElement(f.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:v.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(d.x,{namespace:w,phrase:"optional"})),!!a&&!!N.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(y,{fieldName:N.name,limit:N.maxLength}))),n.createElement(E,Object.assign({},L)),!!b&&n.createElement(o.Z.Text,{className:"text-secondary"},b),n.createElement(i.Bc,{name:N.name},(function(e){return n.createElement(o.Z.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},S.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,r)=>{r.d(t,{b:()=>u,n:()=>s});var n=r(32735),a=r(92802),o=r(91967),i=r(1048);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function s(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,m=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),f=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(n){t.hasOwnProperty(n)&&(i.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])}))}(t),t}(s)):s,d={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:f,onSubmit:function(t,n){var a=n.setSubmitting,o=n.resetForm,i=n.setFieldError,l=r&&e.validationSchema?e.validationSchema.cast(t):t;u(l,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&o(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var s=(e=l[n],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,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.")}()),u=s[0],m=s[1];i(u,m)}a(!1)}))},initialStatus:d}),o.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},16107:(e,t,r)=>{r.d(t,{w:()=>c});var n=r(32735),a=r(65294);const o="fVSzb";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=n.memo((function(e){var t,r,c=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,u=e.errorFallbackImageSrc,m=e.preventLoad,f=void 0!==m&&m,d=e.src,p=e.alt,v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","src","alt"]),y=(0,a.Y)({rootMargin:"500px"}),h=y.ref,b=y.inView,g=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=g[0],E=g[1];function S(){return w&&u?u:e.src}if(n.useEffect((function(){if((c||b)&&!f){var e=new Image;return e.onerror=function(){E(!0),u&&(e.src=u)},e.src=d,function(){return e.onerror=null}}}),[b,f]),w&&!u)return n.createElement(n.Fragment,null);if(!h)return n.createElement("img",Object.assign({className:"".concat(o," ").concat(s),alt:p,src:S()},v));var O=Object.assign(Object.assign({alt:p},v),!b&&!c||f?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:S()});return c||(O.ref=h),n.createElement("img",Object.assign({className:"".concat(o," ").concat(s)},O))}))},49267:(e,t,r)=>{r.d(t,{a:()=>d});var n=r(23481),a=r(64364);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function l(e,t,r){return t=u(t),function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var f="shared.regionLockedResourceError",d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,[n.T.getPhrase(f,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,(a=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return n.T.getPhrase(f,"heading")}},{key:"description",get:function(){return n.T.getPhrase(f,"description")}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(a.H)},45445:(e,t,r)=>{r.d(t,{r:()=>w});var n=r(50242),a=r(81886),o=r(67058),i=r(23481),c=r(64364);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function m(e,t,r){return t=d(t),function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var v="shared.privateResourceError",y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(this,t,[i.T.getPhrase(v,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(v,"heading")}},{key:"description",get:function(){return i.T.getPhrase(v,"description")}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H),h=r(49267),b=r(49075),g={notFound:o.d,forbidden:{rating:y,yearLevel:y,region:h.a,privacy:y},badRequest:b._};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},g),t);o&&a.Q.Ry.isStatusCodeError(o)&&(o!==n.o.NotFound?o!==n.o.Forbidden?r.badRequest||a.Q.Ry.throw(new i.badRequest):r.forbidden||a.Q.Ry.throw(new i.forbidden.privacy):r.notFound||a.Q.Ry.throw(new i.notFound))}}},91286:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(32735),a=r(45445);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function i(e,t,r){var i=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){i.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[o(i),t,r])}},65294:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(34152);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.prevent,i=r.rootMargin,c=r.triggerOnce,l=void 0===c||c,s=(e=(0,n.YD)({triggerOnce:l,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(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.")}()),u=s[0],m=s[1],f=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(m=!0,u=null),{ref:u,inView:m,initialized:!!f}}},69454:(e,t,r)=>{r.d(t,{T:()=>m});var n=r(75896),a=r(1048),o=r(55171);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=/\d/,l=function(e){var t,r,a=n.m.first(e),o=n.m.last(e);return a.name===o.name?a.name:"Advanced"===o.name?"lower"===(t=a.name.split(" "),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,t){var r=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return r.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,r,a,i="";switch(+n.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:case o.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})).join(" "),r=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],n=t.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!c.test(e.name)})),o=n.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(o+="s"),a&&r.length)return"".concat(o," ").concat(a.name.charAt(0)," - ").concat(r.pop());var i=function(e){var t,r,n,a,o=!1,i=[];for(e=e.sort((function(e,t){return e-t})),n=0;n<e.length;n++)a=n+1,o||(t=e[n]),r=e[a],e[n]+1===r?o=!0:o?(i.push("".concat(t," - ").concat(e[n])),o=!1):(i.push("".concat(e[n])),o=!1);return i}(r);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})),r={};t.forEach((function(e,t){if(0!==t){var n=e.split(" ");Object.keys(r).forEach((function(e){n.includes(e)||delete r[e]}))}else e.split(" ").forEach((function(e,t){r[e]=0===t?"start":"end"}))}));var n=Object.keys(r)[0],a=r[n];if(!n)return e[0].name;var o=e[0].name,i=e[e.length-1].name,c=function(e){return e.split(n)[0]},l="".concat(c(o)," - ").concat(c(i));return"start"===a?"".concat(n," ").concat(l):"".concat(l," ").concat(n)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=l(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:t=e,r=n.m.first(t),a=n.m.last(t),i=r.name===a.name?r.name:"Senior Phase"===a.name?"".concat(r.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var t=n.m.first(e),r=n.m.last(e),a=n.m.first(t.name.split(" ")),o=n.m.first(r.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),c=r.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===r)return"Key"===a||"Reception"===a?t.name:"".concat(a," KS").concat(i);var l="",s="";return l="Reception"===a?"R":"KS".concat(i),s="KS".concat(c),"Lower"===a&&"Upper"===o?"L ".concat(l," - U ").concat(s):("Lower"===a&&(l="Lower ".concat(l)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=r.name),"".concat(l," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var a=+n.m.first(e.name.match(s));if(!t)return t=e,void(r=a);a<r&&(t=e)})),t):null;var t,r},r={},a=[];return e.forEach((function(e){if(!r[e.name])return r[e.name]=1,void a.push(e);a.push(e),r[e.name]++;var n=a.splice(a.length-r[e.name]).sort((function(e,r){var n=t(e.subjectPresentationAudiences.data),a=t(r.subjectPresentationAudiences.data);if(!n&&a)return 1;if(!a)return-1;var o=n.name.localeCompare(a.name);return 0===o?o:o>0?-1:1}));a=a.concat(n)})),a},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(t)&&!a.t.isEmpty(t)&&e&&e.length&&m.shouldShowAudiences(e)){var r=t.a;if(r){"string"==typeof r&&(r=[r]);var n=function(e){return e.replace(u,"").toLowerCase()},o=r.reduce((function(e,t){return e[n(t)]=t,e}),{});return e.filter((function(e){return o[n(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},92593:(e,t,r)=>{r.r(t),r.d(t,{LivestreamView:()=>ve});var n=r(32735),a=r(95846),o=r(81886),i=r(23481),c=r(92869),l=r(67575),s=r(20354),u=r(110),m=r(28400),f=r(92582),d=r(65858),p=r(40290),v=r(59795),y=r(57408),h=r(85473),b=r(83914),g=r(83345),w=r(69454),E=r(35223);const S={logoContainer:"L5WZ0"};var O="streamable.livestreamDetails";function N(e){var t,r,a;function o(e){return v.t.convertUTCToTimezoneDate(e)}return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center mb-2"},e.logoUrl&&n.createElement(y.F,{appLink:e.companyAppLink},n.createElement("div",{className:"".concat(S.logoContainer," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background me-2")},n.createElement(h.Z,{data:e.logoUrl,alt:e.companyName,preload:!0}))),n.createElement("div",{className:"d-flex flex-column justify-content-between"},e.companyName&&n.createElement(y.F,{appLink:e.companyAppLink,className:"text-uppercase text-wrap d-block text-truncate mb-0",title:e.companyName},e.companyName),n.createElement("h1",{className:"h4 mb-0"},e.eventName))),n.createElement("div",{className:"d-flex gap-2 mb-3"},!!(null===(t=e.audiences)||void 0===t?void 0:t.length)&&n.createElement("div",{className:"rounded-pill border border-dark px-2"},function(){var t;return null===(t=w.T.getMergedPresentationAudienceString(e.audiences))||void 0===t?void 0:t.name}()),n.createElement("div",{className:"rounded-pill fw-semibold bg-dark text-white px-2"},n.createElement("span",{className:"align-middle"},"".concat(u.O.diffBetween(e.endTime,e.startTime,"minutes"),"m")))),e.isPastLivestream&&n.createElement("div",{className:"d-inline-flex align-items-center bg-light-green rounded-pill p-1 pe-2 gap-2 mb-3"},n.createElement(b.x,{svgName:E.vn.Check,className:"svg-container text-white bg-success rounded-circle"}),n.createElement("p",{className:"align-middle mb-0"},n.createElement(g.x,{namespace:O,phrase:"pastLivestream"}))),!e.isPastLivestream&&n.createElement(n.Fragment,null,n.createElement("p",{className:"mb-2"},n.createElement(b.x,{svgName:E.vn.Timer,size:b.S.Small}),n.createElement("span",{className:"ms-1"},(a=e.startTime,u.O.format(o(a),"h:mma")))),n.createElement("p",{className:"mb-2"},n.createElement(b.x,{svgName:E.vn.Calendar,size:b.S.Small}),n.createElement("span",{className:"ms-1"},(r=e.startTime,u.O.format(o(r),"Do MMMM")))),n.createElement("p",{className:"mb-3"},n.createElement(b.x,{svgName:E.vn.Globe,size:b.S.Small}),n.createElement("span",{className:"ms-1"},function(e){var t,r;return"".concat(null===(t=p.F[e])||void 0===t?void 0:t.code," - ").concat(null===(r=p.F[e])||void 0===r?void 0:r.name)}(e.timezone)))),e.description&&n.createElement("p",{className:"mb-3"},e.description))}var j=r(99940),A={createBooking:function(e){return{publicUrl:"/api/integrations/api/v1/bookings",url:"{gateway}/v1/events/booking",key:"streamable:create:booking",type:j.k.POST,data:e}}},x=r(58960),P=r(5960),k=r(67058),L=r(31949),T=r(91286),I=r(35286),C=r(79612),R=r(81041),_=r(25301),F=r(96359),D=r(41760),V=r(41135),U=r(55941),M=r(6117);const z={logo:"mOQW9"};var B="streamable.bookingSuccess";function G(e){var t;return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(z.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement(h.Z,{data:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,alt:e.livestream.company.name,preload:!0})),n.createElement("div",{className:"d-flex align-items-center justify-content-center mb-3 gap-1"},n.createElement(b.x,{svgName:E.vn.CheckCircle,className:"svg-container std text-success"}),n.createElement("h1",{className:"h3 mb-0 fw-semibold"},n.createElement(g.x,{namespace:B,phrase:"booked"}))),n.createElement("div",{className:"my-3"},n.createElement(N,{companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone})),n.createElement("p",null,n.createElement(g.x,{namespace:B,phrase:"emailReminder"})))}var Y=r(99742);const q={image:"dxgov"};var Z="streamable.bookingError";function H(e){return n.createElement("div",{className:"d-flex flex-column justify-content-center"},n.createElement("div",{className:"".concat(q.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement("img",{className:q.image,src:Y.W.General.LOST_MESSAGE_BOTTLE})),n.createElement("h3",{className:"text-center mb-3"},n.createElement(g.x,{namespace:Z,phrase:"heading"})),n.createElement("p",{className:"text-center mb-3"},n.createElement(g.x,{namespace:Z,phrase:"description"})),n.createElement("button",{className:"btn btn-dark",onClick:e.onTryAgain},n.createElement(g.x,{namespace:Z,phrase:"buttonLabel"})))}function W(e){return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(e.className),style:{backgroundImage:"url(".concat(e.coverImageUrl,")")}}))}var Q=r(92802),$=r(5173),K=r(1269),J=r(82644),X="streamable.livestreamView",ee=i.T.encloseNamespace(X),te=$.Ry({firstName:$.Z_().required(ee("firstNameRequired")),lastName:$.Z_().required(ee("lastNameRequired")),email:$.Z_().required(ee("emailRequired")),attendees:$.Z_().required(ee("attendeesRequired"))});function re(e){var t,r,a,o,i=(0,J.b)();return n.createElement(Q.l0,null,n.createElement("div",{className:"row row-gap-2 my-3"},n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(K.W,{label:"First name",name:"firstName",placeholder:"Enter your first name",value:null===(t=i.values)||void 0===t?void 0:t.firstName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(K.W,{label:"Last name",name:"lastName",placeholder:"Enter your last name",value:null===(r=i.values)||void 0===r?void 0:r.lastName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"d-flex flex-column justify-content-start col-12 col-lg-8"},n.createElement(K.W,{label:"Email",name:"email",placeholder:"Enter your email",value:null===(a=i.values)||void 0===a?void 0:a.email,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12 col-lg-4"},n.createElement(K.W,{type:"number",label:"Attendees",name:"attendees",placeholder:"Enter number of attendees",min:0,value:null===(o=i.values)||void 0===o?void 0:o.attendees,showRequiredStar:!0}))),n.createElement("button",{type:"submit",className:"btn btn-dark w-100"},n.createElement(g.x,{namespace:X,phrase:"book"})))}function ne(e){return n.createElement(J.n,{initialValues:e.initialValues,validationSchema:te,onSubmit:e.onSubmit},n.createElement(re,{isAuthenticated:e.isAuthenticated}))}const ae={noRecording:"O0mTQ",coverImage:"G47S2",popup:"DydcO",page:"YxTMr"};function oe(e){return oe="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},oe(e)}function ie(){ie=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new L(n||[]);return a(i,"_invoke",{value:A(e,r,c)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function h(){}function b(){}function g(){}var w={};s(w,i,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(T([])));S&&S!==r&&n.call(S,i)&&(w=S);var O=g.prototype=h.prototype=Object.create(w);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(a,o,i,c){var l=m(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==oe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,r,n){var a=f;return function(o,i){if(a===p)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=x(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=p;var s=m(t,r,n);if("normal"===s.type){if(a=n.done?v:d,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function x(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=m(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(oe(t)+" is not iterable")}return b.prototype=g,a(O,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},N(j.prototype),s(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(O),s(O,l,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(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 le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var se=function(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{l(n.next(e))}catch(e){o(e)}}function c(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},ue="streamable.livestreamView",me=i.T.encloseNamespace(ue);function fe(e){var t,r={application:V.O.DASHBOARD,action:F.e.Dashboard.COMPANY_DASHBOARD,args:[e.livestream.company.id,m.m.slugify(e.livestream.company.name)]};return n.createElement(n.Fragment,null,!e.success&&!e.error&&n.createElement(n.Fragment,null,n.createElement(N,{logoUrl:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone,description:!e.formStage&&e.livestream.description,isPastLivestream:e.isPastLivestream,companyAppLink:r}),e.formStage&&n.createElement(ne,{initialValues:e.initialValues,isAuthenticated:e.isAuthenticated,onSubmit:e.onSubmit}),!e.isPastLivestream&&!e.formStage&&n.createElement("button",{className:"btn btn-dark w-100",onClick:function(){return e.setFormStage(!0)}},n.createElement(g.x,{namespace:ue,phrase:"book"})),e.isPastLivestream&&!e.livestream.recording&&n.createElement("div",{className:"".concat(ae.noRecording," p-2 rounded")},n.createElement(g.x,{namespace:ue,phrase:"noRecording"})),e.livestream.recording&&n.createElement(y.F,{appLink:{application:V.O.VIDEOS,action:F.e.Videos.PLAY_VIDEO,args:[e.livestream.recording.id,m.m.slugify(e.livestream.recording.name)]}},n.createElement("button",{className:"btn btn-outline-dark w-100"},n.createElement(g.x,{namespace:ue,phrase:"recording"})))),e.success&&n.createElement(G,{livestream:e.livestream}),e.error&&n.createElement(H,{onTryAgain:e.onTryAgain}))}function de(e){var t;function r(){var t;e.closePopup(),c.t.preventScrollTop(),o.Q.C$.trigger(null===(t=R.O.getPreviousRoute())||void 0===t?void 0:t.appLink)}return(0,I.L)(a.G.SHELL,o.Q.Vy.ROUTE,e.closePopup),n.createElement(x.G,{size:"lg",bodyClassName:"rounded-3 overflow-hidden p-0",closePopup:r},n.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:r}),n.createElement("div",{className:"row g-0"},n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(W,{className:"".concat(ae.coverImage," ").concat(ae.popup),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-lg p-4 m-lg-2"},n.createElement(fe,Object.assign({},e)))))}function pe(e){var t;return n.createElement("div",{className:"row g-0 px-3"},n.createElement("div",{className:"col-12 col-md-6 col-lg-5"},n.createElement(W,{className:"".concat(ae.coverImage," ").concat(ae.page," rounded"),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-md px-md-3 pt-2 pt-md-0"},n.createElement(fe,Object.assign({},e))))}function ve(e){var t,r,a,i,c,m=(0,l.useGetFetchAsync)(),p=ce(n.useState(!1),2),v=p[0],y=p[1],h=ce(n.useState(!1),2),b=h[0],g=h[1],w=ce(n.useState(!1),2),E=w[0],S=w[1],O=s.a.useBasicFetch(L.N.currentUser()),N=s.a.useBasicFetch(U.H.livestream(e.id));function j(t){f.k.logUserAction({id:N.data.id,name:N.data.name},{entity:d.py.Livestream,actionType:d.Vw.Submit,location:d.LZ.LivestreamBookingForm,descriptor:e.fromPageLoad?d.Ik.FullPage:d.Ik.Popup,workflowPhase:t})}if((0,C.M)(e.fromPageLoad&&_.CG.getDefaultMetadata({title:null===(t=N.data)||void 0===t?void 0:t.name,description:null===(r=N.data)||void 0===r?void 0:r.description,phraseContext:{phraseHandler:me,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:M.f.getCanonicalLink(),allowIndexing:!0,product:D.L.PRODUCT_NAME})),(0,T.v)(N),n.useEffect((function(){var e;N.data&&(null===(e=N.data)||void 0===e?void 0:e.status)!==P.H.Published&&o.Q.Ry.throw(new k.d)}),[null===(a=N.data)||void 0===a?void 0:a.status]),!N.data)return n.createElement(n.Fragment,null);var x={livestream:N.data,formStage:v,initialValues:(null===(i=O.data)||void 0===i?void 0:i.isAuthenticated)?{firstName:O.data.givenName,lastName:O.data.familyName,email:O.data.email,attendees:""}:{firstName:"",lastName:"",email:"",attendees:""},isAuthenticated:null===(c=O.data)||void 0===c?void 0:c.isAuthenticated,success:b,error:E,isPastLivestream:u.O.isBefore(N.data.endDateTime,new Date),onSubmit:function(e){return se(this,void 0,void 0,ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m(A.createBooking({eventId:N.data.id,eventType:"Livestream",firstName:e.firstName,lastName:e.lastName,email:e.email,attendees:e.attendees,status:1}));case 3:j(d.eu.Complete),g(!0),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(0),S(!0),y(!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))},onTryAgain:function(){S(!1),y(!0)},setFormStage:function(){y(!0),j(d.eu.Start)}};return e.fromPageLoad?n.createElement(pe,Object.assign({},x)):n.createElement(de,Object.assign({},x,{closePopup:e.closePopup}))}},55941:(e,t,r)=>{r.d(t,{H:()=>c});var n=r(97395),a=r(110),o=r(59795),i=r(5960),c={livestream:function(e){return{url:n._.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:n._.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:a.O.format(o.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}},6117:(e,t,r)=>{r.d(t,{f:()=>c});var n=r(39202),a=r(14292),o=r(97395);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)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),r=(null==e?void 0:e.customAppLink)||n.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var r=t.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,!0))}),{});return Object.keys(e).reduce((function(t,n){return n in r&&(t[n]=e[n]),t}),{})}(r.params,e.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),o._.safeUrlConcat(t,l)}}},34152:(e,t,r)=>{r.d(t,{YD:()=>s});var n=r(32735),a=(Object.defineProperty,new Map),o=new WeakMap,i=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:l,observer:s,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(o.has(r)||(i+=1,o.set(r,i.toString())),o.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=a.get(t);if(!r){const n=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var r;const a=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(r=n.get(t.target))||r.forEach((e=>{e(a,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},a.set(t,r)}return r}(r),m=u.get(e)||[];return u.has(e)||u.set(e,m),m.push(t),s.observe(e),function(){m.splice(m.indexOf(t),1),0===m.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),a.delete(l))}}function s({threshold:e,delay:t,trackVisibility:r,rootMargin:a,root:o,triggerOnce:i,skip:c,initialInView:s,fallbackInView:u,onChange:m}={}){var f;const[d,p]=n.useState(null),v=n.useRef(),[y,h]=n.useState({inView:!!s,entry:void 0});v.current=m,n.useEffect((()=>{if(c||!d)return;let n;return n=l(d,((e,t)=>{h({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&i&&n&&(n(),n=void 0)}),{root:o,rootMargin:a,threshold:e,trackVisibility:r,delay:t},u),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,d,o,a,i,c,r,u,t]);const b=null==(f=y.entry)?void 0:f.target,g=n.useRef();d||!b||i||c||g.current===b||(g.current=b,h({inView:!!s,entry:void 0}));const w=[p,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);
@@ -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([[5708],{85473:(e,a,t)=>{t.d(a,{Z:()=>u});var n=t(32735),r=t(1048),i=t(57408),c=t(16107),l=t(54610),s=t(67453);const o={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function d(e){var a=o.image,t="";return e.imageType===l.__.Thumbnails&&(t="thumbnail ".concat(o.thumbnail)),e.imageType===l.__.TallPosters&&(t=o.tallPoster),e.imageType===l.__.Covers&&(t=o.cover),e.imageType===l.__.Banners&&(t=o.banner),e.imageType===l.__.Posters&&(t=o.poster),e.imageType===l.__.Pdf&&(t=o.pdf),e.imageType===l.__.Link&&(t=o.link),t&&(a+=" ".concat(t)),e.className&&(a+=" ".concat(e.className)),a}function u(e){var a=e.data,t=e.imageOptions,l=e.appLink,o=e.preload,u=e.preventLoad,m=e.analyticsOptions,p=e.analyticsData,g=e.imageClassName,v=e.alt,f="";"string"==typeof a?f=a:r.t.isObject(a)&&(f=a.url);var b=f&&t?s.j.createUrl(f,t):f;return n.createElement("div",{className:d(e),style:e.imageStyle},n.createElement(i.F,{appLink:l,analyticsData:p,analyticsOptions:m,onClick:e.onClick},e.children,b&&n.createElement(c.w,{src:b,alt:v,forceLoad:o,preventLoad:u,extraClasses:g,errorFallbackImageSrc:e.errorFallbackImageSrc})))}},71471:(e,a,t)=>{t.d(a,{S:()=>o});var n=t(32735),r=t(68050),i=t(69111),c=t(9977),l=t(79967);const s={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function o(e){return n.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(a,t){return n.createElement("div",{className:"d-flex",key:t},e.allowBulkActions&&n.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),n.createElement(d,Object.assign({},e)))})))}function d(e){var a=(0,l.k)(),t="sm"===c.O.getSize(a,"md"),o=e.withReordering&&!a.xs;return n.createElement(r.Z,{className:"".concat(t?"":"py-2"," flex-grow-1")},n.createElement(i.Z,Object.assign({},c.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(t?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),n.createElement(r.Z,null,!!o&&n.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},n.createElement("div",{className:"partial-loading-background ".concat(s.partialDragHandle)})),n.createElement(i.Z,{xs:c.O.getThumbnailColSize(o)},n.createElement("div",{className:"partial-loading-background ".concat(t?"rounded":"rounded-3"," ").concat(s.partialThumbnail)})))),n.createElement(i.Z,Object.assign({},c.O.getDetailsColumns(),{className:t?"pb-2":"px-2"}),n.createElement("div",{className:"partial-loading-background mb-1 ".concat(s.partialName)}),n.createElement("div",{className:"partial-loading-background ".concat(s.partialDescription)})))}o.defaultProps={numVideos:15}},5960:(e,a,t)=>{var n,r;t.d(a,{H:()=>r,X:()=>n}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(n||(n={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},80889:(e,a,t)=>{t.d(a,{_:()=>s});var n=t(99940),r=t(97395),i=t(75896),c=t(49542),l=t(78479),s={classificationDashboard:function(e,a,t,n){var c={target:"classification:".concat(e),status:t,userType:a};return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:r._.urlBuilder("/api/discover/dashboards",c),key:"classification:dashboard:".concat(e,":").concat(a,":").concat(n,":").concat(null==t?void 0:t.join(":")),formatData:function(e){var a;return n?null===(a=e.data)||void 0===a?void 0:a.find((function(e){return e.id.toString()===n.toString()})):i.m.first(e.data)}}},dashboardWidgetContent:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=Object.keys(a).map((function(e){return a[e]})).join(":");return{url:r._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),a),publicUrl:r._.urlBuilder("/api/discover/widgets/".concat(e),a),key:"widget:".concat(e,":").concat(s),formatData:function(e){return c.d.formatResponseData(e,n)},normalizeOptions:{namespace:s},normalize:t!==l.f.EditableCoverFixedPillListSmall,success:i}},getDashboard:function(e,a,t,n,c,l){var s={target:t,status:a,userType:e};(null==n?void 0:n.length)&&(s["widgets.curriculum"]=n);var o="dashboard:".concat(t,":").concat(e,":").concat(c,":").concat(a.join(":"));return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",s),publicUrl:r._.urlBuilder("/api/discover/dashboards",s),key:o,formatData:function(e){var a;return c?null===(a=e.data)||void 0===a?void 0:a.find((function(e){return e.id.toString()===c.toString()})):i.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,a,t){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:n.k.PUT,data:{userId:t.id,customerId:t.customerId,metadata:a}}}}},81514:(e,a,t)=>{t.d(a,{V:()=>i});var n=t(86764),r=t(3747);function i(){var e=(0,r.a)(n.r.XS),a=(0,r.a)(n.r.SM),t=(0,r.a)(n.r.MD),i=(0,r.a)(n.r.LG),c=(0,r.a)(n.r.XL),l=(0,r.a)(n.r.XXL),s=n.r.LG;return e&&(s=n.r.XS),a&&(s=n.r.SM),t&&(s=n.r.MD),i&&(s=n.r.LG),c&&(s=n.r.XL),l&&(s=n.r.XXL),s}},80553:(e,a,t)=>{t.r(a),t.d(a,{DashboardWidgetView:()=>f});var n=t(32735),r=t(20354),i=t(24546),c=t(51365),l=t(89454),s=t(80889),o=t(99742),d=t(31700),u=t(49433),m=t(65751),p=t(71471);const g={partialHeading:"RSm4L"};function v(){return n.createElement("div",{className:"px-3"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(g.partialHeading)}),n.createElement(p.S,null))}function f(e){var a=r.a.useBasicFetch(d.g.streamablePresentation()),t=r.a.useBasicFetch(s._.dashboardWidgetContent(e.widgetId)),p=r.a.useBasicFetch(a.data&&l.O.presentationAudiences(a.data.id)),g=(0,u.V)("video-list");return a.hasCompleted&&t.hasCompleted&&p.hasCompleted?n.createElement(c.M.Provider,{value:{getVideoActions:g}},n.createElement("div",{className:"px-3"},n.createElement("h1",{className:"h2 mb-2"},t.data.name),n.createElement(i.E4,{videos:t.data.content,yearGroups:null,getVideoAppLink:m.y.videoType,getSubTextAppLink:m.y.subText,presentationAudiences:p.data,companyLogoFallbackUrl:o.W.StreamableLearning.LOGO,subTextType:"productionCompany",getPreviewQuestionsAppLink:function(){return null},hasPermissions:function(){return!1}}))):n.createElement(v,null)}},49433:(e,a,t)=>{t.d(a,{V:()=>r});var n=t(65858);function r(e){return function(a){return a.id,a.name,"video-list"===e?n.LZ.VideoListItem:n.LZ.PlayPage,[]}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5902-053ea0988e-streamable-learning.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[5902],{51934:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r="undefined"!=typeof window&&void 0!==window.document,h=r?window:{},s=!!r&&"ontouchstart"in h.document.documentElement,c=!!r&&"PointerEvent"in h,l="cropper",d="all",p="crop",m="move",u="zoom",g="e",f="w",v="s",w="n",b="ne",x="nw",y="se",M="sw",C="".concat(l,"-crop"),D="".concat(l,"-disabled"),k="".concat(l,"-hidden"),B="".concat(l,"-hide"),O="".concat(l,"-invisible"),T="".concat(l,"-modal"),E="".concat(l,"-move"),W="".concat(l,"Action"),N="".concat(l,"Preview"),H="crop",L="move",z="none",Y="crop",X="cropend",R="cropmove",S="cropstart",A="dblclick",j=c?"pointerdown":s?"touchstart":"mousedown",P=c?"pointermove":s?"touchmove":"mousemove",I=c?"pointerup pointercancel":s?"touchend touchcancel":"mouseup",U="ready",q="resize",$="wheel",_="zoom",Q="image/jpeg",K=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Z=/^data:/,G=/^data:image\/jpeg;base64,/,V=/^img|canvas$/i,F={viewMode:0,dragMode:H,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},J=Number.isNaN||h.isNaN;function tt(t){return"number"==typeof t&&!J(t)}var et=function(t){return t>0&&t<1/0};function it(t){return void 0===t}function at(e){return"object"===t(e)&&null!==e}var nt=Object.prototype.hasOwnProperty;function ot(t){if(!at(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&nt.call(i,"isPrototypeOf")}catch(t){return!1}}function rt(t){return"function"==typeof t}var ht=Array.prototype.slice;function st(t){return Array.from?Array.from(t):ht.call(t)}function ct(t,e){return t&&rt(e)&&(Array.isArray(t)||tt(t.length)?st(t).forEach((function(i,a){e.call(t,i,a,t)})):at(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var lt=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return at(t)&&i.length>0&&i.forEach((function(e){at(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},dt=/\.\d*(?:0|9){12}\d*$/;function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return dt.test(t)?Math.round(t*e)/e:t}var mt=/^width|height|left|top|marginLeft|marginTop$/;function ut(t,e){var i=t.style;ct(e,(function(t,e){mt.test(e)&&tt(t)&&(t="".concat(t,"px")),i[e]=t}))}function gt(t,e){if(e)if(tt(t.length))ct(t,(function(t){gt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function ft(t,e){e&&(tt(t.length)?ct(t,(function(t){ft(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function vt(t,e,i){e&&(tt(t.length)?ct(t,(function(t){vt(t,e,i)})):i?gt(t,e):ft(t,e))}var wt=/([a-z\d])([A-Z])/g;function bt(t){return t.replace(wt,"$1-$2").toLowerCase()}function xt(t,e){return at(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(bt(e)))}function yt(t,e,i){at(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(bt(e)),i)}var Mt=/\s\s*/,Ct=function(){var t=!1;if(r){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});h.addEventListener("test",i,a),h.removeEventListener("test",i,a)}return t}();function Dt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(!Ct){var o=t.listeners;o&&o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,n,a)}))}function kt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(a.once&&!Ct){var o=t.listeners,r=void 0===o?{}:o;n=function(){delete r[e][i],t.removeEventListener(e,n,a);for(var o=arguments.length,h=new Array(o),s=0;s<o;s++)h[s]=arguments[s];i.apply(t,h)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],a),r[e][i]=n,t.listeners=r}t.addEventListener(e,n,a)}))}function Bt(t,e,i){var a;return rt(Event)&&rt(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function Ot(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Tt=h.location,Et=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Wt(t){var e=t.match(Et);return null!==e&&(e[1]!==Tt.protocol||e[2]!==Tt.hostname||e[3]!==Tt.port)}function Nt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Ht(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];tt(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),tt(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),tt(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),tt(i)&&1!==i&&r.push("scaleX(".concat(i,")")),tt(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function Lt(t,e){var i=t.pageX,a=t.pageY,o={endX:i,endY:a};return e?o:n({startX:i,startY:a},o)}function zt(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=et(a),r=et(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}var Yt=String.fromCharCode;var Xt=/^data:.*,/;function Rt(t){var e,i=new DataView(t);try{var a,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,h=2;h+1<r;){if(255===i.getUint8(h)&&225===i.getUint8(h+1)){n=h;break}h+=1}if(n){var s=n+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=Yt(t.getUint8(n));return a}(i,n+4,4)){var c=i.getUint16(s);if(((a=18761===c)||19789===c)&&42===i.getUint16(s+2,a)){var l=i.getUint32(s+4,a);l>=8&&(o=s+l)}}}if(o){var d,p,m=i.getUint16(o,a);for(p=0;p<m;p+=1)if(d=o+12*p+2,274===i.getUint16(d,a)){d+=8,e=i.getUint16(d,a),i.setUint16(d,1,a);break}}}catch(t){e=1}return e}var St={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper;gt(a,k),ft(t,k);var n={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};this.containerData=n,ut(a,{width:n.width,height:n.height}),gt(t,k),ft(a,k)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};c.left=(t.width-h)/2,c.top=(t.height-s)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=lt({},e),this.initialCanvasData=lt({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var d=zt({aspectRatio:h,width:c,height:l});c=d.width,l=d.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e)if(r>(s?0:1)){var p=a.width-n.width,m=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,m),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,m),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,m),n.maxTop=Math.max(0,m))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,ut(this.canvas,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);lt(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),ut(this.image,lt({width:i.width,height:i.height},Ht(lt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=lt({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),d*h>l?d=l/h:l=d*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,d),o.maxWidth=l,o.maxHeight=d}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&yt(this.face,W,i.width>=e.width&&i.height>=e.height?m:d),ut(this.cropBox,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Bt(this.element,Y,this.getData())}},At={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,ct(r,(function(t){var i=document.createElement("img");yt(t,N,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){ct(this.previews,(function(t){var e=xt(t,N);ut(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(at(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(bt(e)))}(t,N)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ut(this.viewBoxImage,lt({width:o,height:r},Ht(lt({translateX:-h,translateY:-s},t)))),ct(this.previews,(function(e){var i=xt(e,N),c=i.width,l=i.height,d=c,p=l,m=1;a&&(p=n*(m=c/a)),n&&p>l&&(d=a*(m=l/n),p=l),ut(e,{width:d,height:p}),ut(e.getElementsByTagName("img")[0],lt({width:o*m,height:r*m},Ht(lt({translateX:-h*m,translateY:-s*m},t))))})))}},jt={bind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&kt(t,S,e.cropstart),rt(e.cropmove)&&kt(t,R,e.cropmove),rt(e.cropend)&&kt(t,X,e.cropend),rt(e.crop)&&kt(t,Y,e.crop),rt(e.zoom)&&kt(t,_,e.zoom),kt(i,j,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&kt(i,$,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&kt(i,A,this.onDblclick=this.dblclick.bind(this)),kt(t.ownerDocument,P,this.onCropMove=this.cropMove.bind(this)),kt(t.ownerDocument,I,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&kt(window,q,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&Dt(t,S,e.cropstart),rt(e.cropmove)&&Dt(t,R,e.cropmove),rt(e.cropend)&&Dt(t,X,e.cropend),rt(e.crop)&&Dt(t,Y,e.crop),rt(e.zoom)&&Dt(t,_,e.zoom),Dt(i,j,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Dt(i,$,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Dt(i,A,this.onDblclick),Dt(t.ownerDocument,P,this.onCropMove),Dt(t.ownerDocument,I,this.onCropEnd),e.responsive&&Dt(window,q,this.onResize)}},Pt={resize:function(){var t=this.options,e=this.container,i=this.containerData,a=Number(t.minContainerWidth)||200,n=Number(t.minContainerHeight)||100;if(!(this.disabled||i.width<=a||i.height<=n)){var o,r,h=e.offsetWidth/i.width;1===h&&e.offsetHeight===i.height||(t.restore&&(o=this.getCanvasData(),r=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(ct(o,(function(t,e){o[e]=t*h}))),this.setCropBoxData(ct(r,(function(t,e){r[e]=t*h})))))}},dblclick:function(){var t,e;this.disabled||this.options.dragMode===z||this.setDragMode((t=this.dragBox,e=C,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?L:H))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(tt(e)&&1!==e||tt(i)&&0!==i||t.ctrlKey))){var a,n=this.options,o=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){o[t.identifier]=Lt(t)})):o[t.pointerId||0]=Lt(t),a=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?u:xt(t.target,W),K.test(a)&&!1!==Bt(this.element,S,{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,a===p&&(this.cropping=!0,gt(this.dragBox,T)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==Bt(this.element,R,{originalEvent:t,action:e})&&(t.changedTouches?ct(t.changedTouches,(function(t){lt(i[t.identifier]||{},Lt(t,!0))})):lt(i[t.pointerId||0]||{},Lt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,vt(this.dragBox,T,this.cropped&&this.options.modal)),Bt(this.element,X,{originalEvent:t,action:e}))}}},It={change:function(t){var e,i=this.options,a=this.canvasData,o=this.containerData,r=this.cropBoxData,h=this.pointers,s=this.action,c=i.aspectRatio,l=r.left,C=r.top,D=r.width,B=r.height,O=l+D,T=C+B,E=0,W=0,N=o.width,H=o.height,L=!0;!c&&t.shiftKey&&(c=D&&B?D/B:1),this.limited&&(E=r.minLeft,W=r.minTop,N=E+Math.min(o.width,a.width,a.left+a.width),H=W+Math.min(o.height,a.height,a.top+a.height));var z=h[Object.keys(h)[0]],Y={x:z.endX-z.startX,y:z.endY-z.startY},X=function(t){switch(t){case g:O+Y.x>N&&(Y.x=N-O);break;case f:l+Y.x<E&&(Y.x=E-l);break;case w:C+Y.y<W&&(Y.y=W-C);break;case v:T+Y.y>H&&(Y.y=H-T)}};switch(s){case d:l+=Y.x,C+=Y.y;break;case g:if(Y.x>=0&&(O>=N||c&&(C<=W||T>=H))){L=!1;break}X(g),(D+=Y.x)<0&&(s=f,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case w:if(Y.y<=0&&(C<=W||c&&(l<=E||O>=N))){L=!1;break}X(w),B-=Y.y,C+=Y.y,B<0&&(s=v,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case f:if(Y.x<=0&&(l<=E||c&&(C<=W||T>=H))){L=!1;break}X(f),D-=Y.x,l+=Y.x,D<0&&(s=g,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case v:if(Y.y>=0&&(T>=H||c&&(l<=E||O>=N))){L=!1;break}X(v),(B+=Y.y)<0&&(s=w,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case b:if(c){if(Y.y<=0&&(C<=W||O>=N)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c}else X(w),X(g),Y.x>=0?O<N?D+=Y.x:Y.y<=0&&C<=W&&(L=!1):D+=Y.x,Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=M,C-=B=-B,l-=D=-D):D<0?(s=x,l-=D=-D):B<0&&(s=y,C-=B=-B);break;case x:if(c){if(Y.y<=0&&(C<=W||l<=E)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c,l+=r.width-D}else X(w),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y<=0&&C<=W&&(L=!1):(D-=Y.x,l+=Y.x),Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=y,C-=B=-B,l-=D=-D):D<0?(s=b,l-=D=-D):B<0&&(s=M,C-=B=-B);break;case M:if(c){if(Y.x<=0&&(l<=E||T>=H)){L=!1;break}X(f),D-=Y.x,l+=Y.x,B=D/c}else X(v),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y>=0&&T>=H&&(L=!1):(D-=Y.x,l+=Y.x),Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=b,C-=B=-B,l-=D=-D):D<0?(s=y,l-=D=-D):B<0&&(s=x,C-=B=-B);break;case y:if(c){if(Y.x>=0&&(O>=N||T>=H)){L=!1;break}X(g),B=(D+=Y.x)/c}else X(v),X(g),Y.x>=0?O<N?D+=Y.x:Y.y>=0&&T>=H&&(L=!1):D+=Y.x,Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=x,C-=B=-B,l-=D=-D):D<0?(s=M,l-=D=-D):B<0&&(s=b,C-=B=-B);break;case m:this.move(Y.x,Y.y),L=!1;break;case u:this.zoom(function(t){var e=n({},t),i=[];return ct(t,(function(t,a){delete e[a],ct(e,(function(e){var a=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(a*a+n*n),s=(Math.sqrt(o*o+r*r)-h)/h;i.push(s)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(h),t),L=!1;break;case p:if(!Y.x||!Y.y){L=!1;break}e=Ot(this.cropper),l=z.startX-e.left,C=z.startY-e.top,D=r.minWidth,B=r.minHeight,Y.x>0?s=Y.y>0?y:b:Y.x<0&&(l-=D,s=Y.y>0?M:x),Y.y<0&&(C-=B),this.cropped||(ft(this.cropBox,k),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}L&&(r.width=D,r.height=B,r.left=l,r.top=C,this.action=s,this.renderCropBox()),ct(h,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Ut={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gt(this.dragBox,T),ft(this.cropBox,k),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=lt({},this.initialImageData),this.canvasData=lt({},this.initialCanvasData),this.cropBoxData=lt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(lt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ft(this.dragBox,T),gt(this.cropBox,k)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ct(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ft(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gt(this.cropper,D)),this},destroy:function(){var t=this.element;return t[l]?(t[l]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(it(t)?t:a+Number(t),it(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(tt(t)&&(i.left=t,a=!0),tt(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===Bt(this.element,_,{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var d=this.pointers,p=Ot(this.cropper),m=d&&Object.keys(d).length?function(t){var e=0,i=0,a=0;return ct(t,(function(t){var n=t.startX,o=t.startY;e+=n,i+=o,a+=1})),{pageX:e/=a,pageY:i/=a}}(d):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((m.pageX-p.left-n.left)/o),n.top-=(l-r)*((m.pageY-p.top-n.top)/r)}else ot(e)&&tt(e.x)&&tt(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return tt(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,tt(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(tt(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(tt(t)&&(i.scaleX=t,a=!0),tt(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(ct(t,(function(e,i){t[i]=e/r})),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&ot(t)){var o=!1;e.rotatable&&tt(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(tt(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),tt(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;tt(t.x)&&(n.left=t.x*r+a.left),tt(t.y)&&(n.top=t.y*r+a.top),tt(t.width)&&(n.width=t.width*r),tt(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?lt({},this.containerData):{}},getImageData:function(){return this.sized?lt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&ct(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&ot(t)&&(tt(t.left)&&(e.left=t.left),tt(t.top)&&(e.top=t.top),tt(t.width)?(e.width=t.width,e.height=t.width/i):tt(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ot(t)&&(tt(t.left)&&(a.left=t.left),tt(t.top)&&(a.top=t.top),tt(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),tt(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=function(t,e,i,a){var n=e.aspectRatio,r=e.naturalWidth,h=e.naturalHeight,s=e.rotate,c=void 0===s?0:s,l=e.scaleX,d=void 0===l?1:l,p=e.scaleY,m=void 0===p?1:p,u=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=a.fillColor,w=void 0===v?"transparent":v,b=a.imageSmoothingEnabled,x=void 0===b||b,y=a.imageSmoothingQuality,M=void 0===y?"low":y,C=a.maxWidth,D=void 0===C?1/0:C,k=a.maxHeight,B=void 0===k?1/0:k,O=a.minWidth,T=void 0===O?0:O,E=a.minHeight,W=void 0===E?0:E,N=document.createElement("canvas"),H=N.getContext("2d"),L=zt({aspectRatio:u,width:D,height:B}),z=zt({aspectRatio:u,width:T,height:W},"cover"),Y=Math.min(L.width,Math.max(z.width,g)),X=Math.min(L.height,Math.max(z.height,f)),R=zt({aspectRatio:n,width:D,height:B}),S=zt({aspectRatio:n,width:T,height:W},"cover"),A=Math.min(R.width,Math.max(S.width,r)),j=Math.min(R.height,Math.max(S.height,h)),P=[-A/2,-j/2,A,j];return N.width=pt(Y),N.height=pt(X),H.fillStyle=w,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(c*Math.PI/180),H.scale(d,m),H.imageSmoothingEnabled=x,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(o(P.map((function(t){return Math.floor(pt(t))}))))),H.restore(),N}(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),n=a.x,r=a.y,h=a.width,s=a.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(n*=c,r*=c,h*=c,s*=c);var l=h/s,d=zt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=zt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=zt({aspectRatio:l,width:t.width||(1!==c?i.width:h),height:t.height||(1!==c?i.height:s)}),u=m.width,g=m.height;u=Math.min(d.width,Math.max(p.width,u)),g=Math.min(d.height,Math.max(p.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=pt(u),f.height=pt(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,u,g);var w=t.imageSmoothingEnabled,b=void 0===w||w,x=t.imageSmoothingQuality;v.imageSmoothingEnabled=b,x&&(v.imageSmoothingQuality=x);var y,M,C,D,k,B,O=i.width,T=i.height,E=n,W=r;E<=-h||E>O?(E=0,y=0,C=0,k=0):E<=0?(C=-E,E=0,k=y=Math.min(O,h+E)):E<=O&&(C=0,k=y=Math.min(h,O-E)),y<=0||W<=-s||W>T?(W=0,M=0,D=0,B=0):W<=0?(D=-W,W=0,B=M=Math.min(T,s+W)):W<=T&&(D=0,B=M=Math.min(s,T-W));var N=[E,W,y,M];if(k>0&&B>0){var H=u/h;N.push(C*H,D*H,k*H,B*H)}return v.drawImage.apply(v,[i].concat(o(N.map((function(t){return Math.floor(pt(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||it(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===H,o=e.movable&&t===L;t=n||o?t:z,e.dragMode=t,yt(i,W,t),vt(i,C,n),vt(i,E,o),e.cropBoxMovable||(yt(a,W,t),vt(a,C,n),vt(a,E,o))}return this}},qt=h.Cropper,$t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!V.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=lt({},F,ot(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i=t,n=[{key:"noConflict",value:function(){return window.Cropper=qt,t}},{key:"setDefaults",value:function(t){lt(F,ot(t)&&t)}}],(a=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[l]){if(e[l]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n,o=this;if(t){this.url=t,this.imageData={};var r=this.element,h=this.options;if(h.rotatable||h.scalable||(h.checkOrientation=!1),h.checkOrientation&&window.ArrayBuffer)if(Z.test(t))G.test(t)?this.read((e=t.replace(Xt,""),i=atob(e),a=new ArrayBuffer(i.length),ct(n=new Uint8Array(a),(function(t,e){n[e]=i.charCodeAt(e)})),a)):this.clone();else{var s=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=c,s.onerror=c,s.ontimeout=c,s.onprogress=function(){s.getResponseHeader("content-type")!==Q&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},h.checkCrossOrigin&&Wt(t)&&r.crossOrigin&&(t=Nt(t)),s.open("GET",t),s.responseType="arraybuffer",s.withCredentials="use-credentials"===r.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=Rt(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(Yt.apply(null,st(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,Q);var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&Wt(e)&&(i||(i="anonymous"),a=Nt(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),gt(n,B),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent),a=function(e,i){lt(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else a(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat(l,"-container")),r=o.querySelector(".".concat(l,"-canvas")),h=o.querySelector(".".concat(l,"-drag-box")),s=o.querySelector(".".concat(l,"-crop-box")),c=s.querySelector(".".concat(l,"-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat(l,"-view-box")),this.face=c,r.appendChild(i),gt(t,k),a.insertBefore(o,t.nextSibling),this.isImg||ft(i,B),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,gt(s,k),e.guides||gt(s.getElementsByClassName("".concat(l,"-dashed")),k),e.center||gt(s.getElementsByClassName("".concat(l,"-center")),k),e.background&&gt(o,"".concat(l,"-bg")),e.highlight||gt(c,O),e.cropBoxMovable&&(gt(c,E),yt(c,W,d)),e.cropBoxResizable||(gt(s.getElementsByClassName("".concat(l,"-line")),k),gt(s.getElementsByClassName("".concat(l,"-point")),k)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),rt(e.ready)&&kt(t,U,e.ready,{once:!0}),Bt(t,U)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),ft(this.element,k))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&e(i.prototype,a),n&&e(i,n),t;var i,a,n}();return lt($t.prototype,St,At,jt,Pt,It,Ut),$t}()}}]);
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Cropper.js v1.5.6
3
+ * https://fengyuanchen.github.io/cropperjs
4
+ *
5
+ * Copyright 2015-present Chen Fengyuan
6
+ * Released under the MIT license
7
+ *
8
+ * Date: 2019-10-04T04:33:48.372Z
9
+ */
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6040],{43933:(e,t,n)=>{n.d(t,{X:()=>j});var r=n(32735),a=n(110),o=n(23481),i=n(49439);const c={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=a.O.isToday(e.date),n="".concat(c.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var o,u,d=(o=(0,i.L)({delay:250}),u=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(o,u)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(o,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.")}()),v=d[0],m=d[1];return r.createElement("div",{className:"".concat(n," ").concat(m?c.isHovering:""),ref:v},r.createElement("div",{className:"".concat(c.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},a.O.format(e.date,"D")),t&&r.createElement("div",{className:"".concat(c.label," justify-content-start align-items-center")},s("today")))}var d=n(92582),v=n(65858),m=n(79878),f=n(12324),p=n(57408),g=n(11607),y=n(16107);const b={sliderDot:"fk5o1",sm:"LjGGx",active:"jA0tn",dotContainer:"Lr30e",defaultCursor:"J8mC3"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){function t(t,n){t.stopPropagation(),t.preventDefault(),e.onSliderDotClick(n)}function n(t,n){var r="".concat(b.sliderDot," rounded-3");return t&&(r+=" ".concat(b.active)),"sm"===e.size&&(r+=" ".concat(b.sm)),(!e.onSliderDotClick||e.sliderClickable&&!e.sliderClickable(n))&&(r+=" pointer-events-none ".concat(b.defaultCursor)),r}return r.createElement("div",{className:"".concat(e.className," w-100 d-flex justify-content-around")},r.createElement("div",{className:"".concat(b.dotContainer," d-flex")},(a=Array(e.sliderLength),function(e){if(Array.isArray(e))return h(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(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.")}()).map((function(a,o){var i=o===e.sliderStep;return r.createElement(g.L,{key:o,className:n(i,o),onClick:function(e){return null==t?void 0:t(e,o)}})}))));var a}var D=n(83914),C=n(2284),O=n(35223);const k={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t,n,o,i,c,l,s=e.sliderStep,b=e.setSliderStep,h=e.eventsOnDay.length>1,M=e.eventsOnDay.find((function(e,t){return t===s})),S=!!M.endDate,j=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,M.content),x=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,M.content),N=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,M.content),A=null===(i=e.getCoverUrl)||void 0===i?void 0:i.call(e,M.content),I=M.content.status===C.W.ComingSoon,Y=(c=r.useState(e.hasInitialized?k.appear:""),l=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(c,l)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.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)?w(e,t):void 0}}(c,l)||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=Y[0],L=Y[1];r.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){L(k.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),r.useEffect((function(){e.isHovering&&e.setHoveredEvent(M)}),[e.isHovering,M]),r.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===M.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,M]);var T=function(){var t={date:a.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return h?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=M.specialEventId,t.topicId=M.content.id,t.eventStatus=M.content.status),t}(),U={actionType:v.Vw.Click,entity:v.py.SpecialEvent,location:v.LZ.CalendarDay};function P(e){return a.O.format(e,"YYYY-MM-DD")}function B(){return"".concat(e.className," ").concat(H," ")+[x?"".concat(k.hardcodedCover," position-absolute"):k.backgroundImage,N?"my-auto":k.cover,I?k.comingSoon:"",e.hasInitialized?k.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?k.multiEventFilter:"","company"in M.content?"rounded-circle":""].join(" ")}return r.createElement("div",{onClick:function(){I&&d.k.logUserAction(T,U)}},r.createElement(p.F,{appLink:function(){var t,n;return h?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):I?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,M.content.id,M.name)}(),className:"d-flex justify-content-end",analyticsOptions:U,analyticsData:T},r.createElement("div",{className:"".concat(k.tagWrap," p-1")},I&&r.createElement(m.r,{className:"justify-content-center p-0 rounded-circle ".concat(k.tag," ").concat(H),onlyIcon:!0})),!e.hideDay&&r.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(k.date," ").concat(H),isHovering:e.isHovering,hasEvent:!0}),r.createElement("div",{className:"postion-relative ".concat(k.wrapper)},r.createElement("div",{style:{backgroundColor:j},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(k.eventCard," ").concat(H," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?k.multiEventFilter:""," ").concat(e.className)},N?r.createElement(y.w,{src:N,alt:M.content.name,className:B()}):r.createElement("div",{style:{backgroundImage:"url('".concat(A,"')")},className:B()}),S&&r.createElement("div",{className:"".concat(k.displayDate)},f.T.getDisplayDate(M.startDate,M.endDate)),r.createElement("div",{className:"text-center ".concat(k.title," ").concat(h?"mb-1":"mb-2")},r.createElement("div",{className:"".concat(k.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:M.name},M.name)),h&&0!==s&&r.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.left)},r.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),b((function(e){return e-1})),d.k.logUserAction({date:P(e.date),action:"previous",eventCount:e.eventsOnDay.length},U)}},r.createElement(D.x,{svgName:O.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),h&&s!==e.eventsOnDay.length-1&&r.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.right)},r.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),b((function(e){return e+1})),d.k.logUserAction({date:P(e.date),action:"next",eventCount:e.eventsOnDay.length},U)}},r.createElement(D.x,{svgName:O.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),h&&r.createElement("div",{className:"d-flex ".concat(k.bottomBar," ").concat(h?"":k.bottomPlaceholder)},r.createElement(E,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){b(t),d.k.logUserAction({date:P(e.date),action:"jump",eventCount:e.eventsOnDay.length},U)}}))))))}const S={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function j(e){var t,n,o=r.useMemo((function(){var t,n,r,o;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!a.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&a.O.isBetween(a.O.format(e.date,"YYYY-MM-DD"),null===(r=e.hoveredEvent)||void 0===r?void 0:r.startDate,null===(o=e.hoveredEvent)||void 0===o?void 0:o.endDate)}),[e.hoveredEvent]),i=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return r.createElement("div",{className:"".concat(S.cell," fw-semibold")},!e.hideDay&&r.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),o&&r.createElement("div",{style:{backgroundColor:i},className:S.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&r.createElement(M,Object.assign({},e,{isMultiEventDate:o})))}},79878:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(32735),a=n(23481),o=n(83914),i=n(64444),c=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return r.createElement(i.u,{title:a.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},r.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},r.createElement(o.x,{svgName:c.vn.Timer}),!e.onlyIcon&&a.T.getPhrase(s,"comingSoon")))}},12324:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(110),a={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(r.O.format(e,"D MMM")," - ").concat(r.O.format(t,"D MMM")):"".concat(r.O.format(e,"D")," - ").concat(r.O.format(t,"D")," ").concat(r.O.format(e,"MMM")):r.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return r.O.format(e.startDate,"YYYY-MM")===r.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(r.O.getLocalDateOrdinal(r.O.get(e,"date"))," ").concat(r.O.format(e,"MMMM"))}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(39202),a=n(14292),o=n(97395);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)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||r.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){var r;return r=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{});return Object.keys(e).reduce((function(t,r){return r in n&&(t[r]=e[r]),t}),{})}(n.params,e.allowedParams),l=r.C$.getHref(Object.assign(Object.assign({},n),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),o._.safeUrlConcat(t,l)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6138],{96138:(e,r,a)=>{a.r(r),a.d(r,{AccountSettingsView:()=>ue});var t,n=a(32735),s=a(70680),i=a(23481),o=a(20354),u=a(92582),l=a(65858),d=a(81886),c=a(75896),m=a(1048),p=a(66770);!function(e){e.Ok="Ok",e.UsernameRequired="UsernameRequired",e.EmailRequired="EmailRequired",e.FirstnameRequired="FirstnameRequired",e.SurnameRequired="SurnameRequired",e.YearGroupRequired="YearGroupRequired",e.EmailAlreadyExisted="EmailAlreadyExisted",e.UsernameAlreadyExisted="UsernameAlreadyExisted",e.UserTypeRequired="UserTypeRequired",e.MasterYearGroupRequired="MasterYearGroupRequired",e.EmptyUserEntity="EmptyUserEntity",e.CustomerIdRequired="CustomerIdRequired",e.CustomerNotFoundInOnline="CustomerNotFoundInOnline",e.EmailTooLong="EmailTooLong",e.UsernameTooLong="UsernameTooLong",e.FirstnameTooLong="FirstnameTooLong",e.SurnameTooLong="SurnameTooLong",e.EmailInvalid="EmailInvalid",e.EmailInUse="EmailInUse",e.UsernameInvalid="UsernameInvalid",e.PasswordTooShort="PasswordTooShort",e.EmailDuplicated="EmailDuplicated",e.UsernameDuplicated="UsernameDuplicated",e.DisplayNameTooLong="DisplayNameTooLong",e.DisplayNameTooShort="DisplayNameTooShort",e.UsernameTooShort="UsernameTooShort",e.FirstnameInvalid="FirstnameInvalid",e.SurnameInvalid="SurnameInvalid",e.UserTypeMismatch="UserTypeMismatch",e.UserCanBeAddedInCustomer="UserCanBeAddedInCustomer",e.UserCanBeCreated="UserCanBeCreated",e.CustomerFoundInOnline="CustomerFoundInOnline",e.UserInCustomerWithOnline="UserInCustomerWithOnline",e.InvalidUserStatus="InvalidUserStatus",e.UserAlreadyExistsInCustomer="UserAlreadyExistsInCustomer",e.Rostered="UserRostered"}(t||(t={}));var f=a(40424),h=a(76881),y=a(86613),v=a(2997);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,r,a){var t;return t=function(e,r){if("object"!=g(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var t=a.call(e,"string");if("object"!=g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==g(t)?t:t+"")in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var E="userManager.utils",b={active:f.w.Active.toLowerCase(),deactivated:f.w.Disabled.toLowerCase(),pending:f.w.Inactive.toLowerCase()},S={filterIdenticalEntries:function(e){var r=function(e){var r,a,t,n,s,i,o,u,l,d,c,m;return[null!==(a=null===(r=e.firstName)||void 0===r?void 0:r.trim())&&void 0!==a?a:"",null!==(n=null===(t=e.surname)||void 0===t?void 0:t.trim())&&void 0!==n?n:"",null!==(i=null===(s=e.masterYearGroup)||void 0===s?void 0:s.id)&&void 0!==i?i:"",null!==(l=null===(u=null===(o=e.username)||void 0===o?void 0:o.toLowerCase())||void 0===u?void 0:u.trim())&&void 0!==l?l:"",null!==(m=null===(c=null===(d=e.email)||void 0===d?void 0:d.toLowerCase())||void 0===c?void 0:c.trim())&&void 0!==m?m:""].join(":")};return e.filter((function(e,a,t){return a===t.findIndex((function(a){return r(a)===r(e)}))}))},getNewDuplicates:function(e){if(!e)return null;var r=[],a=[],n={};e.forEach((function(e){e.username?n[e.username]?n[e.username].push(e):n[e.username]=[e]:a.push(e)})),Object.keys(n).map((function(e){1!==n[e].length?r.push({errorCodes:[t.UsernameAlreadyExisted],users:n[e]}):a.push(n[e][0])}));var s={};return e.forEach((function(e){e.email&&(s[e.email]?s[e.email].push(e):s[e.email]=[e])})),Object.keys(s).map((function(e){if(1!==s[e].length){var a=c.m.first(s[e]).username;if(a&&1!==n[a].length){var i=r.findIndex((function(e){return c.m.first(e.users).username===a}));r[i].errorCodes.push(t.EmailAlreadyExisted)}else r.push({errorCodes:[t.EmailAlreadyExisted],users:s[e]})}})),r},formatCreateOrValidateUserRequest:function(e,r,a){return{users:e.map((function(e){var t={firstName:e.firstName,email:e.email,surname:e.surname,username:e.username,userType:r,customerId:a,masterRole:e.masterRole||y.i.User,requirePasswordChange:!1,generatePassword:!!e.generatePassword,password:e.password,displayName:e.displayName||null};return r===h.Y.Learner&&(t.masterYearGroup=e.masterYearGroup),t.username||delete t.username,t.password||delete t.password,t.password&&t.generatePassword&&(t.generatePassword=!1),e.userId&&(t.userId=e.userId),t}))}},formatEditUserRequest:function(e){return e.displayName||(e.displayName=null),e},formatDeleteRequest:function(e,r,a){var t={customerId:e};if(!r.length){var n=d.Q.Ab.DeserializeQueryParams(d.Q.Ab.GetCurrentQueryString().substring(1));n.query&&(t.searchQuery=n.query);var s=n.status&&(Array.isArray(n.status)?n.status:[n.status]);(null==s?void 0:s.length)&&(t.userStatuses=[],s.forEach((function(e){"active"===e&&t.userStatuses.push(f.w.Active),"deactivated"===e&&t.userStatuses.push(f.w.Disabled),"pending"===e&&t.userStatuses.push(f.w.Inactive)}))),n.yearGroup&&(t.yearGroupValues=Array.isArray(n.yearGroup)?n.yearGroup:[n.yearGroup])}return 1===Object.keys(t).length?t.userIds=r.map((function(e){return e.id})):t.userType=a,t},formatToggleStatusRequest:function(e,r,a){return{customerId:r,users:[{userId:e.id,status:a}]}},getErrorMessages:function(e,r,a,n){var s,o,u={},l=i.T.encloseNamespace("userManager.utils"),d=(w(w(w(w(w(w(w(w(w(w(s={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,l("emailRequired")),t.FirstnameRequired,l("nameRequired")),t.SurnameRequired,l("surnameRequired")),t.YearGroupRequired,l("yearGroupRequired")),t.EmailAlreadyExisted,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameAlreadyExisted,l(a?"usernameExistsShort":"usernameExistsLong")),t.UserTypeRequired,""),t.MasterYearGroupRequired,l("yearGroupRequired")),w(w(w(w(w(w(w(w(w(w(s,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,l("emailExceeds")),t.UsernameTooLong,l("usernameExceeds")),t.FirstnameTooLong,l("nameExceeds")),t.SurnameTooLong,l("surnameExceeds")),t.EmailInvalid,l(a?"emailInvalidShort":"emailInvalidLong")),t.EmailInUse,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameInvalid,l(a?"usernameInvalidShort":"usernameInvalidLong")),w(w(w(w(w(w(w(w(w(w(s,t.PasswordTooShort,l(a?"passwordTooShortShort":"passwordTooShortLong",{minLength:r})),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,l("displayNameExceeds")),t.DisplayNameTooShort,l("displayNameTooShort")),t.UsernameTooShort,l("usernameTooShort")),t.FirstnameInvalid,l("firstNameInvalid")),t.SurnameInvalid,l("surnameInvalid")),t.CustomerFoundInOnline,l("support")),t.UserInCustomerWithOnline,l("support")),w(w(w(w(w(w(s,t.InvalidUserStatus,l("support")),t.UserTypeMismatch,""),t.UserCanBeAddedInCustomer,""),t.UserCanBeCreated,""),t.UserAlreadyExistsInCustomer,""),t.Rostered,"")),c=(w(w(w(w(w(w(w(w(w(w(o={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,"email"),t.FirstnameRequired,"firstName"),t.SurnameRequired,"surname"),t.YearGroupRequired,"masterYearGroup"),t.EmailAlreadyExisted,"email"),t.UsernameAlreadyExisted,"username"),t.UserTypeRequired,""),t.MasterYearGroupRequired,"masterYearGroup"),w(w(w(w(w(w(w(w(w(w(o,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,"email"),t.UsernameTooLong,"username"),t.FirstnameTooLong,"firstName"),t.SurnameTooLong,"surname"),t.EmailInvalid,"email"),t.EmailInUse,"email"),t.UsernameInvalid,"username"),w(w(w(w(w(w(w(w(w(w(o,t.PasswordTooShort,"password"),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,"displayName"),t.DisplayNameTooShort,"displayName"),t.UsernameTooShort,"username"),t.FirstnameInvalid,"firstName"),t.SurnameInvalid,"surname"),t.UserTypeMismatch,"email"),t.UserCanBeAddedInCustomer,"email"),w(w(w(w(w(w(o,t.UserCanBeCreated,"email"),t.CustomerFoundInOnline,"email"),t.UserInCustomerWithOnline,"email"),t.InvalidUserStatus,"email"),t.UserAlreadyExistsInCustomer,"email"),t.Rostered,"email"));return e.forEach((function(e){var r,a,t,s,i=null!==(a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:d[e])&&void 0!==a?a:"";if(i){var o=c[e];o&&(u[o]=null!==(s=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t[o])&&void 0!==s?s:i)}})),u},showEmptyState:function(e,r){var a;if(!e.data)return!1;var t=Object.keys(r).length;return!("results"in e.data)&&!t&&!(null===(a=e.data.data)||void 0===a?void 0:a.length)},getFilters:function(e,r){var a=[p.x$.SortBy(p.qr.getNameSortOptions())];return e===h.Y.Learner&&a.push(p.x$.YearGroup(p.qr.getYearGroupOptions(r))),a.push(p.x$.Status()),e===h.Y.Staff&&a.push(p.x$.IsAdmin()),a},getMinimumPasswordLength:function(e,r,a){var t;if(!e)return 8;var n=null===(t=e.securitySettings)||void 0===t?void 0:t.find((function(e){return e.userRole===a&&e.userType===r}));return n?n.minPasswordLength:a===y.i.Admin?e.defaultAdminMinPasswordLength:e.defaultMinPasswordLength},mapStatusParamsToValue:function(e){if(e){var r=function(e){switch(e){case"active":return f.w.Active;case"deactivated":return f.w.Disabled;case"pending":return f.w.Inactive}};return Array.isArray(e)?e.map(r):[r(e)]}},buildSearchData:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=void 0===n?{}:n,i=S.buildSearchFiltersData(r,t,s),o=S.buildSearchSortData(r,s);return{query:s.query,indices:["user"],searchType:"user",customerIdOverride:r,userId:a,customerId:r,filters:i,sorts:o}},buildSearchDataAndKey:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=e.cursor,i=S.buildSearchData({customerId:r,userId:a||"",userType:t,queryParams:n||{}});s&&(i.cursor=s);var o="search:users:".concat(s||"");return{key:o+=m.t.flattenObjectToString(i),data:i}},buildSearchParams:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=S.buildSearchFiltersObject(e,r,a);return t=Object.keys(t).reduce((function(e,r){return e["".concat(v.w.FILTER_PARAM_PREFIX).concat(r)]=t[r],e}),{}),Object.assign({query:a.query,index:"user",customerIdOverride:e},t)},buildSearchSortData:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={};if(r.sort)switch(r.sort){case"first-name-atoz":a.firstName="asc";break;case"first-name-ztoa":a.firstName="desc";break;case"surname-atoz":a.surname="asc";break;case"surname-ztoa":a.surname="desc";break;case"newest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};break;case"oldest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"asc"}}}else a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};return a},buildSearchFiltersData:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase()};return t.userProfile={customerId:e},"true"===a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),a.yearGroup&&(t.yearGroup={customerId:e},Array.isArray(a.yearGroup)?t.yearGroup.value=a.yearGroup:t.yearGroup.value=[a.yearGroup]),a.status&&(Array.isArray(a.status)?t.userProfile.status=a.status.map((function(e){return b[e]})):t.userProfile.status=[b[a.status]]),a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),t},buildSearchFiltersObject:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase(),customerId:e.toString()};return"true"===a.isAdmin&&(t.userRole=y.i.Admin.toLowerCase()),a.yearGroup&&(Array.isArray(a.yearGroup)?t.yearGroup="".concat(a.yearGroup.join(",")):t.yearGroup=a.yearGroup),a.status&&(Array.isArray(a.status)?t.userProfileStatus=a.status.map((function(e){return b[e]})).join(","):t.userProfileStatus=b[a.status]),t},buildGetUsersQuery:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.yearGroup,t=void 0===a?"":a,n=r.status,s=void 0===n?"":n,i=r.isAdmin,o=void 0===i?"":i,u=r.sort,l=void 0===u?"newest":u,d=["usertype:".concat(e)];if(t&&(Array.isArray(t)?d.push("yeargroups.value:[".concat(t.join(","),"]")):d.push("yeargroups.value:".concat(t))),"true"===o&&d.push("userprofiles.role:".concat(y.i.Admin)),s&&(Array.isArray(s)?d.push("status:[".concat(s.map((function(e){return b[e]})).join(","),"]")):d.push("status:".concat(b[s]))),l)switch(l){case"first-name-atoz":d.push("orderby:name");break;case"first-name-ztoa":d.push("orderbydesc:name");break;case"surname-atoz":d.push("orderby:surname");break;case"surname-ztoa":d.push("orderbydesc:surname");break;case"newest":d.push("orderbydesc:timestamp");break;case"oldest":d.push("orderby:timestamp")}return"{".concat(d.join(","),"}avatar")},shouldDisplayAuthenticationMethods:function(e){var r;if(!(null==e?void 0:e.length))return!1;if(!(null===(r=c.m.first(e).authenticationMethods)||void 0===r?void 0:r.length))return!1;var a=e.find((function(e){var r;return!!(null===(r=e.authenticationMethods)||void 0===r?void 0:r.find((function(e){return!e.local})))}));return!!a},handleAsyncErrors:function(e,r,a,n){var s,o=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.errorCodes;if(!(null==o?void 0:o.length))return!0;var u={};return(o.includes(t.EmailAlreadyExisted)||o.includes(t.EmailInUse))&&(a&&a.email===r.email||(u.email=i.T.getPhrase(E,"emailExistsLong"))),o.includes(t.UsernameAlreadyExisted)&&(a&&a.username===r.username||(u.username=i.T.getPhrase(E,"usernameExistsLong"))),!Object.keys(u).length||(n({errors:u}),!1)}},C=a(86764),I=a(31949),P=a(55110),U=a(3747),T=a(92802),A=a(23201),N=a(1269),x=a(82644),q=a(83345),L=a(5173),R="settings.emailSettings",k=(0,L.Ry)().shape({email:(0,L.Z_)().required((function(){return i.T.getPhrase(R,"emailRequired")})).email((function(){return i.T.getPhrase(R,"emailInvalid")})).trim().default("")}),O=a(91967),D=a(64444),G=a(83914),j="d-inline-block svg-container",F="span";function M(e){var r=e.children,a=e.className,t=void 0===a?j:a,s=e.tagName,i=void 0===s?F:s,o=e.size,u=void 0===o?G.S.Standard:o,l=e.onClick,d=e.title,c=e.tooltipPlacement,m=void 0===c?"right":c,p=i,f={className:"".concat(t," svg-container ").concat(u),onClick:O.q.isFunction(l)?l:null};return d?n.createElement(D.u,{title:d,placement:m},n.createElement(p,Object.assign({},f),r)):n.createElement(p,Object.assign({},f),r)}function z(){return n.createElement(M,null,n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"})))}function Y(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var B="settings.emailSettings",W=i.T.encloseNamespace(B);function V(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return Y(e,r);var a=Object.prototype.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,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1],u=e.currentUser.emailVerified;return n.useEffect((function(){t||i||o(!0)}),[t,i]),n.createElement(q.D.Provider,{value:B},n.createElement("h2",{className:"h4 d-flex align-items-center"},n.createElement(q.x,{phrase:"heading"}),u&&n.createElement("span",{className:"font-size-normal fw-semibold text-primary d-flex align-items-center mb-0 ms-2"},n.createElement(q.x,{phrase:"verified"}),n.createElement(z,null))),u&&n.createElement("p",null,n.createElement(q.x,{phrase:"info",options:{email:e.currentUser.email}})),i?n.createElement(x.n,{initialValues:{email:e.currentUser.email||""},onSubmit:e.onChangeEmail,validationSchema:k},n.createElement(T.l0,null,n.createElement(N.W,{className:"w-75",name:"email",placeholder:W("emailPlaceholder"),autoComplete:"email"}),n.createElement("div",{className:"d-flex justify-content-end w-75 ".concat(t?"ms-n2":"")},t&&n.createElement("button",{type:"button",className:"btn btn-link me-2",onClick:function(){return o(!1)}},n.createElement(q.x,{phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:W(u?"updateEmail":"verifyEmail"),variant:u?"outline-dark":"dark"})))):n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark me-2",onClick:function(){return o(!0)}},n.createElement(q.x,{phrase:"change"})))),n.createElement("p",{className:"mb-0 mt-2"},n.createElement(q.x,{phrase:"note"})))}const _={partialLabel:"aKssR",partialInfo:"ZrKZk",partialInput:"Lvn15",partialSubmit:"TActD",partialNote:"pqp7j"};function Z(){return n.createElement("div",{className:"w-50"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(_.partialLabel)}),n.createElement("div",{className:"partial-loading-background ".concat(_.partialInfo)}),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"partial-loading-background ".concat(_.partialInput)})),n.createElement("div",{className:"partial-loading-background ".concat(_.partialSubmit)}),n.createElement("div",{className:"partial-loading-background mt-2 ".concat(_.partialNote)}))}var Q="shared.changePasswordForm",$=i.T.encloseNamespace(Q);function K(e){var r=(0,T.u6)();return n.createElement(T.l0,null,!e.hideCurrentPassword&&n.createElement(N.W,{className:e.inputWidthClass,name:"currentPassword",label:$("currentPassword"),placeholder:$("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"newPassword",label:$("newPassword"),placeholder:$("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"confirmPassword",label:$("confirmPassword"),placeholder:$("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&n.createElement(N.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:$("changeOnNextLogin"),type:"checkbox",checked:r.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&n.createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&n.createElement("button",{type:"button",className:"btn btn-link me-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},n.createElement(q.x,{namespace:Q,phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:e.submitText||$("save"),variant:e.submitVariant,size:e.buttonSize})))}K.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"};var H=i.T.encloseNamespace("settings.passwordSettings"),J=function(e){return(0,L.Ry)().shape({currentPassword:(0,L.Z_)().required((function(){return H("currentPasswordRequired")})).trim().default(""),newPassword:(0,L.Z_)().required((function(){return H("newPasswordRequired")})).min(e,(function(){return H("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,L.Z_)().required((function(){return H("confirmPasswordRequired")})).oneOf([(0,L.iH)("newPassword"),null],(function(){return H("passwordsDontMatch")})).trim().default("")})};function X(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var ee="settings.passwordSettings",re={currentPassword:"",newPassword:"",confirmPassword:""};function ae(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return X(e,r);var a=Object.prototype.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)?X(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=s[0],u=s[1];return n.useEffect((function(){t||o||u(!0)}),[t,o]),n.createElement(q.D.Provider,{value:ee},n.createElement("h2",{className:"h4"},n.createElement(q.x,{phrase:"heading"})),o?n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement(q.x,{phrase:"info"})),n.createElement(x.n,{initialValues:re,onSubmit:function(r,a){e.onChangePassword(r,a,(function(){return a({reset:!0})}))},validationSchema:J(e.minPasswordLength)},n.createElement(K,{onClickCancel:function(){return u(!1)},hideCancelButton:!t,submitText:i.T.getPhrase(ee,"savePassword"),buttonContainerClass:t?"d-flex justify-content-end ms-n2 w-75":"d-flex justify-content-end w-75",inputWidthClass:"w-75"}))):n.createElement("button",{className:"btn btn-outline-dark ",onClick:function(){return u(!0)}},n.createElement(q.x,{phrase:"change"})))}var te=a(81803),ne=a(99940),se={getCustomerSecuritySettings:function(e,r,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:r,error:a}},setCustomerSecuritySettings:function(e,r,a,t){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:ne.k.PUT,normalize:!1,data:r,success:a,error:t}}},ie=a(68192),oe=i.T.encloseNamespace("settings.accountSettings");function ue(){var e,r=(0,s.I0)(),a=(0,P.Z)(),t=(0,U.a)(C.r.MDDown),i=o.a.useBasicFetch(I.N.currentUser()),d=o.a.useBasicFetch(i.data&&ie.N.getUser(i.data.id)),c=o.a.useBasicFetch(i.data&&se.getCustomerSecuritySettings(i.data.customerId)),m=S.getMinimumPasswordLength(c.data,null===(e=d.data)||void 0===e?void 0:e.userType,i.data.role);return n.createElement(te.d,{heading:oe("heading"),breadcrumbs:[oe("breadcrumb")]},n.createElement("div",{className:t?"w-100":"w-50"},i.data?n.createElement(V,{currentUser:i.data,onChangeEmail:function(e,t){o.a.fetch(r,ie.N.changeEmail(e.email,(function(){u.k.logUserAction({id:i.data.id,oldEmail:i.data.email,newEmail:e.email},{actionType:l.Vw.VerifyEmail,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Start}),a.success(oe("changeEmailRequestSuccess",{email:e.email,escapeText:!0}))}),(function(){a.error(oe("changeEmailRequestError"))}),t))}}):n.createElement(Z,null)),n.createElement("hr",null),n.createElement("div",{className:t?"w-100":"w-50"},c.data&&n.createElement(ae,{onChangePassword:function(e,t,n){o.a.fetch(r,ie.N.changePassword(e,(function(){u.k.logUserAction({id:i.data.id,oldPassword:e.currentPassword,newPassword:e.newPassword},{actionType:l.Vw.ChangePassword,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Complete}),a.success(oe("changePasswordSuccess")),n()}),(function(e){var r=e.responseJSON;console.log(r),"user.password-too-short"===r.errorCode?a.error(oe("changePasswordRequirementsError")):"user.invalid-password"===r.errorCode?a.error(oe("changePasswordInvalid")):"user.same-password"===r.errorCode?a.error(oe("changePasswordSame")):"user.locked-out"===r.errorCode?a.error(oe("changePasswordLockedOut")):a.error(oe("changePasswordError"))}),t))},minPasswordLength:m})))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6284],{66869:(e,t,a)=>{a.d(t,{B:()=>u});var n=a(32735),i=a(23481),c=a(65858),r=a(57408);const s={seeMore:"yv0FS"};var o=i.T.encloseNamespace("shared.widgetHeader");function l(e){return n.createElement("div",{className:"ms-3 ".concat(s.seeMore)},n.createElement(r.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:c._S.SeeMore}),className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},n.createElement("p",{className:"hover-text-underline text-dark curated-widget-heading"},o("seeMore"))))}function u(e){var t=!!e.description;return e.name||e.description?n.createElement("div",{className:"curated-widget-header"},n.createElement("div",{className:"d-flex justify-content-between"},!!e.name&&n.createElement("div",{className:s.title},n.createElement(r.F,{appLink:e.appLink,analyticsOptions:e.analyticsOptions,analyticsData:e.analyticsData,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},n.createElement("h2",{className:"h4 curated-widget-heading"},e.name))),!!e.appLink&&!t&&!!e.showSeeMoreLink&&n.createElement(l,Object.assign({},e))),t&&n.createElement("div",{className:"d-flex justify-content-between align-items-end"},n.createElement("p",{className:"description curated-widget-description ".concat(s.description)},n.createElement("span",{className:"clamp-2"},e.description)),!!e.appLink&&!!e.showSeeMoreLink&&n.createElement(l,Object.assign({},e)))):n.createElement(n.Fragment,null)}},43872:(e,t,a)=>{a.d(t,{V:()=>u});var n=a(32735),i=a(82182),c=a(31069),r=a(91967),s=new Image;s.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var o=function(e){e.dataTransfer.setDragImage&&r.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(s,0,0)},l=i.V.isTouchScreen(),u=n.forwardRef((function(e,t){var a,i,r,s,u=e.children,p=e.positionType,d=e.onDrag,m=e.onDragEnd,v=e.onTouchMove,f=e.onTouchEnd,b=e.percentageDragged,y=e.position,g=void 0===y?0:y;return n.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(i=g,r=p,s=b,r===c.C.Percentage&&s&&(i-=s),{transform:"translate3d(".concat(i).concat(r,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(a={},d&&m&&(a.draggable=!0,a.onDragEnd=m,a.onDragStart=o,a.onDragOver=d),v&&f&&l&&(a.onTouchMoveCapture=v,a.onTouchEndCapture=f),a)),u)}))},53855:(e,t,a)=>{a.d(t,{W:()=>l,f:()=>o});var n=a(32735),i=a(83914),c=a(35223);const r="VSAPU",s="kgeXh";var o;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(o||(o={}));var l=n.memo((function(e){var t,a,l,u=e.direction===o.Left,p=u?c.vn.ChevronLeft:c.vn.ChevronRight;return e.hide?n.createElement(n.Fragment,null):n.createElement("div",{className:"_ejId",style:"videos"===(null===(a=e.state)||void 0===a?void 0:a.contents)?{paddingBottom:56.25/(null===(l=e.state)||void 0===l?void 0:l.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&n.createElement("div",{className:u?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&n.createElement("div",{role:"button",onClick:e.onClick,className:"".concat("AtsWP"," ").concat(u?r:s)}),n.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=u?" ".concat(r," ").concat(e.leftButtonClassName):" ".concat(s," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&n.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),n.createElement(i.x,{svgName:p,size:i.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},31069:(e,t,a)=>{var n;a.d(t,{C:()=>n}),function(e){e.Percentage="%",e.Pixels="px"}(n||(n={}))},10841:(e,t,a)=>{var n;a.d(t,{n:()=>n}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(n||(n={}))},21750:(e,t,a)=>{a.d(t,{x:()=>p});var n,i=a(97395),c=a(75896);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(n||(n={}));var r=a(62803),s=a(78417),o=a(25925);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},p={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:i._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:i._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/available",t),publicUrl:i._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:r.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,a){var n={type:a.toLowerCase(),contentRegion:t};return{url:i._.urlBuilder("/api/subjects/presentations/".concat(e),n),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e),n),key:"current:presentation:".concat(a.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var a={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations",a),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t),a),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:i._.urlBuilder("/api/domain/v1/subjects",{query:r.v.CLASSIFICATION_COLLECTION,type:o.R.Subject.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/classifications",{query:r.t.CLASSIFICATION_COLLECTION,type:o.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,a){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:r.v.CLASSIFICATION(t)}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e),{query:r.t.CLASSIFICATION}),key:"classification:".concat(e),error:a}},path:function(e,t){var a={type:t};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/path"),a),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},children:function(e){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/children"),{query:r.v.CLASSIFICATION_COLLECTION}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:r.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,a){if(t){var c="limit:100,orderbydesc:timestamp";a.length&&(c+=",".concat(u(a)));var r={query:"{".concat(c,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.PinnedVideos),r),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.PinnedVideos),r),key:"classification:".concat(e,":").concat(n.PinnedVideos,":").concat(a.join(":"))}}},playlists:function(e,t,a){if(t){var c="limit:100,orderby:name";a.length&&(c+=",".concat(u(a)));var o={query:"{".concat(c,"}").concat(r.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.Playlists),o),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.Playlists),o),key:"classification:".concat(e,":").concat(n.Playlists,":").concat(a.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url}))})}}}},series:function(e,t,a){if(t){var c="limit:100";a.length&&(c+=",".concat(u(a)));var o={query:"{".concat(c,"}").concat(r.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.Series),o),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.Series),o),key:"classification:".concat(e,":").concat(n.Series,":").concat(a.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url}))})}}}},curriculumLinks:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/classifications/paths"),{type:o.R.Curriculum.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:o.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},checkAllCurriculumsLinks:function(e,t,a){var n={type:o.R.Curriculum.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/presentations"),n),publicUrl:i._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},n),{pid:t})),key:"check:all:curriculums:links:".concat(e),success:a}},hasCurriculumLinks:function(e,t,a,n){var r=c.m.uniq(e).sort(),s=c.m.uniq(t).sort(),u={type:o.R.Curriculum.toLowerCase(),objectId:r};return(null==t?void 0:t.length)&&(u.presentationId=s),{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/objects",u),publicUrl:i._.urlBuilder("/api/subjects/presentations/objects/exists",u),key:"has:curriculum:links:".concat(r.join(":"),":").concat(s.join(":")),normalizeOptions:{namespace:a},formatData:function(e){return Object.entries(e).map((function(e){var t,a,n=(a=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,c,r,s=[],o=!0,l=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(s.push(n.value),s.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{if(!o&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(l)throw i}}return s}}(t,a)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.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)?l(e,t):void 0}}(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.")}());return{id:n[0],_hasCurriculumLinks:n[1]}}))},success:n}},regionAlternatives:function(e,t,a,n){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:a,always:n}}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6367],{59049:(e,t,s)=>{const n=s(65401),{defaults:r}=s(88104),{inline:i}=s(42611),{findClosingBracket:l,escape:a}=s(26567);e.exports=class e{constructor(e,t){if(this.options=t||r,this.links=e,this.rules=i.normal,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}static get rules(){return i}static output(t,s,n){return new e(s,n).output(t)}output(t){let s,n,r,i,o,h,c="";for(;t;)if(o=this.rules.escape.exec(t))t=t.substring(o[0].length),c+=a(o[1]);else if(o=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),t=t.substring(o[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0];else if(o=this.rules.link.exec(t)){const n=l(o[2],"()");if(n>-1){const e=(0===o[0].indexOf("!")?5:4)+o[1].length+n;o[2]=o[2].substring(0,n),o[0]=o[0].substring(0,e).trim(),o[3]=""}t=t.substring(o[0].length),this.inLink=!0,r=o[2],this.options.pedantic?(s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r),s?(r=s[1],i=s[3]):i=""):i=o[3]?o[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(o,{href:e.escapes(r),title:e.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(t))||(o=this.rules.nolink.exec(t))){if(t=t.substring(o[0].length),s=(o[2]||o[1]).replace(/\s+/g," "),s=this.links[s.toLowerCase()],!s||!s.href){c+=o[0].charAt(0),t=o[0].substring(1)+t;continue}this.inLink=!0,c+=this.outputLink(o,s),this.inLink=!1}else if(o=this.rules.strong.exec(t))t=t.substring(o[0].length),c+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(t))t=t.substring(o[0].length),c+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(t))t=t.substring(o[0].length),c+=this.renderer.codespan(a(o[2].trim(),!0));else if(o=this.rules.br.exec(t))t=t.substring(o[0].length),c+=this.renderer.br();else if(o=this.rules.del.exec(t))t=t.substring(o[0].length),c+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(t))t=t.substring(o[0].length),"@"===o[2]?(n=a(this.mangle(o[1])),r="mailto:"+n):(n=a(o[1]),r=n),c+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(t))){if(o=this.rules.text.exec(t))t=t.substring(o[0].length),this.inRawBlock?c+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0]):c+=this.renderer.text(a(this.smartypants(o[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===o[2])n=a(o[0]),r="mailto:"+n;else{do{h=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(h!==o[0]);n=a(o[0]),r="www."===o[1]?"http://"+n:n}t=t.substring(o[0].length),c+=this.renderer.link(r,null,n)}return c}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const s=t.href,n=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(s,n,this.output(e[1])):this.renderer.image(s,n,a(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let s,n="",r=0;for(;r<t;r++)s=e.charCodeAt(r),Math.random()>.5&&(s="x"+s.toString(16)),n+="&#"+s+";";return n}}},88337:(e,t,s)=>{const{defaults:n}=s(88104),{block:r}=s(42611),{rtrim:i,splitCells:l,escape:a}=s(26567);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||n,this.rules=r.normal,this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.rules=r.gfm)}static get rules(){return r}static lex(t,s){return new e(s).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let s,n,o,h,c,p,u,g,d,f,k,m,b,x,_,w;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),t&&"paragraph"===t.type?t.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:i(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(p={type:"table",header:l(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(o[0].length),k=0;k<p.align.length;k++)/^ *-+: *$/.test(p.align[k])?p.align[k]="right":/^ *:-+: *$/.test(p.align[k])?p.align[k]="center":/^ *:-+ *$/.test(p.align[k])?p.align[k]="left":p.align[k]=null;for(k=0;k<p.cells.length;k++)p.cells[k]=l(p.cells[k],p.header.length);this.tokens.push(p)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),h=o[2],x=h.length>1,u={type:"list_start",ordered:x,start:x?+h:"",loose:!1},this.tokens.push(u),o=o[0].match(this.rules.item),g=[],s=!1,b=o.length,k=0;k<b;k++)p=o[k],f=p.length,p=p.replace(/^ *([*+-]|\d+\.) */,""),~p.indexOf("\n ")&&(f-=p.length,p=this.options.pedantic?p.replace(/^ {1,4}/gm,""):p.replace(new RegExp("^ {1,"+f+"}","gm"),"")),k!==b-1&&(c=r.bullet.exec(o[k+1])[0],(h.length>1?1===c.length:c.length>1||this.options.smartLists&&c!==h)&&(e=o.slice(k+1).join("\n")+e,k=b-1)),n=s||/\n\n(?!\s*$)/.test(p),k!==b-1&&(s="\n"===p.charAt(p.length-1),n||(n=s)),n&&(u.loose=!0),_=/^\[[ xX]\] /.test(p),w=void 0,_&&(w=" "!==p[1],p=p.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:_,checked:w,loose:n},g.push(d),this.tokens.push(d),this.token(p,!1),this.tokens.push({type:"list_item_end"});if(u.loose)for(b=g.length,k=0;k<b;k++)g[k].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),m=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(p={type:"table",header:l(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(o[0].length),k=0;k<p.align.length;k++)/^ *-+: *$/.test(p.align[k])?p.align[k]="right":/^ *:-+: *$/.test(p.align[k])?p.align[k]="center":/^ *:-+ *$/.test(p.align[k])?p.align[k]="left":p.align[k]=null;for(k=0;k<p.cells.length;k++)p.cells[k]=l(p.cells[k].replace(/^ *\| *| *\| *$/g,""),p.header.length);this.tokens.push(p)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},56920:(e,t,s)=>{const n=s(65401),r=s(89791),i=s(59049),l=s(737),{defaults:a}=s(88104),{merge:o,unescape:h}=s(26567);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||a,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new r}static parse(t,s){return new e(s).parse(t)}parse(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,o({},this.options,{renderer:new l})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,h(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,s,n,r,i="";for(n="",t=0;t<this.token.header.length;t++)n+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(i+=this.renderer.tablerow(n),t=0;t<this.token.cells.length;t++){for(s=this.token.cells[t],n="",r=0;r<s.length;r++)n+=this.renderer.tablecell(this.inline.output(s[r]),{header:!1,align:this.token.align[r]});e+=this.renderer.tablerow(n)}return this.renderer.table(i,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,s=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,s)}case"list_item_start":{e="";const t=this.token.loose,s=this.token.checked,n=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(s)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(s)});else e+=this.renderer.checkbox(s);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,n,s)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},65401:(e,t,s)=>{const{defaults:n}=s(88104),{cleanUrl:r,escape:i}=s(26567);e.exports=class{constructor(e){this.options=e||n}code(e,t,s){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(s=!0,e=t)}return n?'<pre><code class="'+this.options.langPrefix+i(n,!0)+'">'+(s?e:i(e,!0))+"</code></pre>\n":"<pre><code>"+(s?e:i(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,s,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(s)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,s){const n=t?"ol":"ul";return"<"+n+(t&&1!==s?' start="'+s+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const s=t.header?"th":"td";return(t.align?"<"+s+' align="'+t.align+'">':"<"+s+">")+e+"</"+s+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,s){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return s;let n='<a href="'+i(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+s+"</a>",n}image(e,t,s){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return s;let n='<img src="'+e+'" alt="'+s+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">",n}text(e){return e}}},89791:e=>{e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},737:e=>{e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,s){return""+s}image(e,t,s){return""+s}br(){return""}}},88104:e=>{e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}},26567:e=>{const t=/[&<>"']/,s=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},l=e=>i[e],a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function o(e){return e.replace(a,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const h=/(^|[^\[])\^/g,c=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,u={},g=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,f=/^([^:]+:\/*[^/]*)[\s\S]*$/;function k(e,t){u[" "+e]||(g.test(e)?u[" "+e]=e+"/":u[" "+e]=m(e,"/",!0));const s=-1===(e=u[" "+e]).indexOf(":");return"//"===t.substring(0,2)?s?t:e.replace(d,"$1")+t:"/"===t.charAt(0)?s?t:e.replace(f,"$1")+t:e+t}function m(e,t,s){const n=e.length;if(0===n)return"";let r=0;for(;r<n;){const i=e.charAt(n-r-1);if(i!==t||s){if(i===t||!s)break;r++}else r++}return e.substr(0,n-r)}e.exports={escape:function(e,i){if(i){if(t.test(e))return e.replace(s,l)}else if(n.test(e))return e.replace(r,l);return e},unescape:o,edit:function(e,t){e=e.source||e,t=t||"";const s={replace:(t,n)=>(n=(n=n.source||n).replace(h,"$1"),e=e.replace(t,n),s),getRegex:()=>new RegExp(e,t)};return s},cleanUrl:function(e,t,s){if(e){let e;try{e=decodeURIComponent(o(s)).replace(c,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(s)&&(s=k(t,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(e){return null}return s},resolveUrl:k,noopTest:{exec:function(){}},merge:function(e){let t,s,n=1;for(;n<arguments.length;n++)for(s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},splitCells:function(e,t){const s=e.replace(/\|/g,((e,t,s)=>{let n=!1,r=t;for(;--r>=0&&"\\"===s[r];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s},rtrim:m,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const s=e.length;let n=0,r=0;for(;r<s;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},16367:(e,t,s)=>{const n=s(88337),r=s(56920),i=s(65401),l=s(737),a=s(59049),o=s(89791),{merge:h,checkSanitizeDeprecation:c,escape:p}=s(26567),{getDefaults:u,changeDefaults:g,defaults:d}=s(88104);function f(e,t,s){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(s||"function"==typeof t){s||(s=t,t=null),t=h({},f.defaults,t||{}),c(t);const i=t.highlight;let l,a,o=0;try{l=n.lex(e,t)}catch(e){return s(e)}a=l.length;const p=function(e){if(e)return t.highlight=i,s(e);let n;try{n=r.parse(l,t)}catch(t){e=t}return t.highlight=i,e?s(e):s(null,n)};if(!i||i.length<3)return p();if(delete t.highlight,!a)return p();for(;o<l.length;o++)!function(e){"code"!==e.type?--a||p():i(e.text,e.lang,(function(t,s){return t?p(t):null==s||s===e.text?--a||p():(e.text=s,e.escaped=!0,void(--a||p()))}))}(l[o])}else try{return t=h({},f.defaults,t||{}),c(t),r.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||f.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}f.options=f.setOptions=function(e){return h(f.defaults,e),g(f.defaults),f},f.getDefaults=u,f.defaults=d,f.Parser=r,f.parser=r.parse,f.Renderer=i,f.TextRenderer=l,f.Lexer=n,f.lexer=n.lex,f.InlineLexer=a,f.inlineLexer=a.output,f.Slugger=o,f.parse=f,e.exports=f},42611:(e,t,s)=>{const{noopTest:n,edit:r,merge:i}=s(26567),l={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:n,table:n,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};l.def=r(l.def).replace("label",l._label).replace("title",l._title).getRegex(),l.bullet=/(?:[*+-]|\d{1,9}\.)/,l.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,l.item=r(l.item,"gm").replace(/bull/g,l.bullet).getRegex(),l.list=r(l.list).replace(/bull/g,l.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+l.def.source+")").getRegex(),l._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",l._comment=/<!--(?!-?>)[\s\S]*?-->/,l.html=r(l.html,"i").replace("comment",l._comment).replace("tag",l._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),l.paragraph=r(l._paragraph).replace("hr",l.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",l._tag).getRegex(),l.blockquote=r(l.blockquote).replace("paragraph",l.paragraph).getRegex(),l.normal=i({},l),l.gfm=i({},l.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),l.pedantic=i({},l.normal,{html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",l._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:n,paragraph:r(l.normal._paragraph).replace("hr",l.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",l.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const a={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:n,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:n,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};a.em=r(a.em).replace(/punctuation/g,a._punctuation).getRegex(),a._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,a._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,a._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,a.autolink=r(a.autolink).replace("scheme",a._scheme).replace("email",a._email).getRegex(),a._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,a.tag=r(a.tag).replace("comment",l._comment).replace("attribute",a._attribute).getRegex(),a._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,a._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,a.link=r(a.link).replace("label",a._label).replace("href",a._href).replace("title",a._title).getRegex(),a.reflink=r(a.reflink).replace("label",a._label).getRegex(),a.normal=i({},a),a.pedantic=i({},a.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",a._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",a._label).getRegex()}),a.gfm=i({},a.normal,{escape:r(a.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),a.gfm.url=r(a.gfm.url,"i").replace("email",a.gfm._extended_email).getRegex(),a.breaks=i({},a.gfm,{br:r(a.br).replace("{2,}","*").getRegex(),text:r(a.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:l,inline:a}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6411],{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),s=n(92582),c=n(66869),u=n(43872),f=n(53855),d=n(31069),m=n(10841),g=n(81514),p=n(65294),h=n(10038),y=n(5859),v=n(49542),b=function(t,e,n){return function(){t.container.current&&(t.container.current.style.transition=""),e({type:m.n.Resize,payload:{elementRefs:t,mediaQuery:n}})}},E=function(t){return function(){t.current&&(t.current.style.transition="transform .4s ease-in-out")}},O=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:m.n.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},S=function(t,e){return function(){t.current.style.transition="transform .4s ease-in-out",e(null)}},L=n(14244);const j={itemSpacing:"fDc_6",mobileScroll:"aLSzv",leftGradient:"YheD1",leftButton:"ISepF",rightGradient:"i9XEE",rightButton:"OxM84"};function P(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)||A(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 w(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=[],s=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=a.call(n)).done)&&(l.push(i.value),l.length!==e);s=!0);}catch(t){c=!0,r=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(t,e)||A(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){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.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=new Array(e);n<e;n++)i[n]=t[n];return i}function C(t){var e=t.childComponent,n=t.staticChildren,y=t.getWidgetItemAnalyticsData,A=void 0===y?function(){}:y,B=w(i.useReducer(L.E,L.C),2),C=B[0],x=B[1],I=w(i.useState(null),2),M=I[0],k=I[1],D={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)},N=(0,g.V)(),X=a.V.isTabletOrMobile();(0,h.H)(b(D,x,N),E(D.container),[N]);var G=(0,p.Y)({prevent:!t.lazyLoad}),T=G.ref,W=G.inView,_=t.collection;if(!t.collection&&r.q.isFunction(t.fetch)){var z=t.fetch(W);_=z.data}i.useEffect((function(){_&&!l.t.isEmpty(_)&&x({type:m.n.Init,payload:{elementRefs:D,mediaQuery:N}})}),[_]);var Q=i.useMemo((function(){var r,a;if(_){var l=null!==(r=null==n?void 0:n.filter((function(t){return"start"===t.position})))&&void 0!==r?r:[],s=null!==(a=null==n?void 0:n.filter((function(t){return"end"===t.position})))&&void 0!==a?a:[],c=_.map((function(n,r){var a;n===o.m.first(_)&&(null==l?void 0:l.length)&&(a=D.firstElement),n!==o.m.last(_)||(null==s?void 0:s.length)||(a=D.lastElement);var c=r+1===_.length;return i.createElement("div",{key:n.id,ref:a,className:"".concat(j.itemSpacing," ").concat(c&&X?"pe-4":"")},i.createElement(e,{getChildAppLink:t.getChildAppLink,data:n,getSubtitle:t.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:r},t.analyticsData),A(n)),analyticsOptions:Object.assign(Object.assign({},null==t?void 0:t.analyticsOptions),v.d.getSliderItemAnalyticsOptions())}))}));return l.length&&(c=[].concat(P(l.map((function(t,e){var n=t.component;return i.createElement("div",{key:"first-widget-component:".concat(e),ref:0===e?D.firstElement:null,className:j.itemSpacing},i.createElement(n,null))}))),P(c))),s.length&&(c=[].concat(P(c),P(s.map((function(t,e){var n=t.component;return i.createElement("div",{key:"end-widget-component:".concat(e),ref:e===s.length-1?D.lastElement:null,className:j.itemSpacing},i.createElement(n,null))}))))),i.createElement(i.Fragment,null,c)}}),[_]);if(_&&!_.length&&!(null==n?void 0:n.length))return i.createElement(i.Fragment,null);if(!_||l.t.isEmpty(_))return i.createElement("div",{ref:T},i.createElement(R,{partialLoadingComponent:t.partialLoadingComponent,partialLoadingOptions:t.partialLoadingOptions}));var U=function(e){return Object.assign(Object.assign({},t.analyticsData),{name:t.heading,direction:e===m.n.Next?"right":"left"})},V=X||t.hideButtons;return i.createElement("div",{className:"mx-n4"},i.createElement("div",{className:"px-4"},i.createElement(c.B,{name:t.heading,description:t.description,appLink:t.headingAppLink})),i.createElement("div",{className:"position-relative"},i.createElement("div",{className:"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":"")},!V&&i.createElement(f.W,{direction:f.f.Left,onClick:function(){x({type:m.n.Previous}),s.k.logUserAction(U(m.n.Previous),v.d.getSliderAnalyticsOptions())},leftButtonClassName:j.leftButton,leftGradientClassName:j.leftGradient,hide:C.hideLeftButton,useGradientBackdrop:!0}),i.createElement(u.V,{position:C.offset,positionType:d.C.Pixels,onDrag:O(D.container,C,x,M,k),onDragEnd:S(D.container,k),ref:D.container},Q),!V&&i.createElement(f.W,{direction:f.f.Right,onClick:function(){x({type:m.n.Next}),s.k.logUserAction(U(m.n.Next),v.d.getSliderAnalyticsOptions())},hide:C.hideRightButton,rightButtonClassName:j.rightButton,rightGradientClassName:j.rightGradient,useGradientBackdrop:!0})))))}C.defaultProps={heading:"",description:""};var R=function(t){var e=t.partialLoadingComponent,n=t.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},y.u.getPartialLoadingItems(n).map((function(t,n){return i.createElement(e,{key:n})})))}},14244:(t,e,n)=>{n.d(e,{C:()=>o,E:()=>d});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,s=r.right,c=l,u=i.current.getBoundingClientRect().right,f=s-u;return Object.assign(Object.assign({},o),{containerLeftPosition:l,containerRightPosition:s,firstElementPosition:c,lastElementPosition:u,hideRightButton:u<s,leftOffsetLimit:f,maxSlideDistance:a(t.mediaQuery)})},s=function(t){var e=l(Object.assign(Object.assign({},t),t.elementRefs));return Object.assign(Object.assign({},e),{maxSlideDistance:a(t.mediaQuery)})},c=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}},f=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,s=!1,c=!1;return o>t.containerLeftPosition&&(a=0,o=t.containerLeftPosition,l=t.lastElementPosition,s=!0),l<=t.containerRightPosition&&(a=t.leftOffsetLimit,o=t.containerLeftPosition-Math.abs(t.leftOffsetLimit),l=n.containerRightPosition,c=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:s,hideRightButton:c}};function d(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),s(e.payload));case r.n.Next:return Object.assign(Object.assign({},t),c(t));case r.n.Previous:return Object.assign(Object.assign({},t),u(t));case r.n.Drag:return Object.assign(Object.assign({},t),f(t,e.payload));default:return t}}},2284:(t,e,n)=>{var i;n.d(e,{W:()=>i}),function(t){t.Draft="Draft",t.ComingSoon="ComingSoon",t.Published="Published"}(i||(i={}))},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),s=i.r.LG;return t&&(s=i.r.XS),e&&(s=i.r.SM),n&&(s=i.r.MD),a&&(s=i.r.LG),o&&(s=i.r.XL),l&&(s=i.r.XXL),s}},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=new 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=Object.prototype.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=new 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=Object.prototype.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")}}))}}}}]);