@clickview/library-editor 1.40.1-rc.4 → 1.41.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{6150-library-editor-e66670c039.chunk.css → 1160-library-editor-bd2eb65aa8.chunk.css} +8 -2
  3. package/dist/css/{61-library-editor-2c495d4e06.chunk.css → 61-library-editor-99f1501ab2.chunk.css} +1 -5
  4. package/dist/css/{library-editor-app-8367de4149.css → library-editor-app-bca55a2b94.css} +1 -1
  5. package/dist/languages/en.json +1 -1
  6. package/dist/scripts/101-135f13a4bb.chunk.js +1 -0
  7. package/dist/scripts/1160-a54c5fc3bb.chunk.js +2 -0
  8. package/dist/scripts/{1216-ad38ade74b.chunk.js → 1216-ae44942ec0.chunk.js} +1 -1
  9. package/dist/scripts/{1492-e5261ba457.chunk.js → 1492-e47c20e1e2.chunk.js} +1 -1
  10. package/dist/scripts/{1601-4cf5d7bb6c.chunk.js → 1601-92aebf3641.chunk.js} +2 -2
  11. package/dist/scripts/{1703-0e34c676fe.chunk.js → 1703-9b90fdd089.chunk.js} +1 -1
  12. package/dist/scripts/{1876-542995f9ea.chunk.js → 1876-ee2e5930fe.chunk.js} +1 -1
  13. package/dist/scripts/{243-6fbbfe0555.chunk.js → 243-90478a752f.chunk.js} +1 -1
  14. package/dist/scripts/{259-5d105fdf04.chunk.js → 259-1ccff765e8.chunk.js} +1 -1
  15. package/dist/scripts/{2601-bf9558c331.chunk.js → 2601-09e770d106.chunk.js} +1 -1
  16. package/dist/scripts/{2644-158cfa855b.chunk.js → 2644-3b5cc8face.chunk.js} +1 -1
  17. package/dist/scripts/2648-10e901bc4c.chunk.js +1 -0
  18. package/dist/scripts/{299-50361bc34b.chunk.js → 299-952bef0d6e.chunk.js} +1 -1
  19. package/dist/scripts/3087-89c3a299ca.chunk.js +1 -0
  20. package/dist/scripts/{35-f45d771f6a.chunk.js → 35-8bd662588e.chunk.js} +1 -1
  21. package/dist/scripts/3522-9cb18ea94f.chunk.js +1 -0
  22. package/dist/scripts/3578-b433c51a47.chunk.js +2 -0
  23. package/dist/scripts/{9215-bf10a27b8b.chunk.js.LICENSE.txt → 3578-b433c51a47.chunk.js.LICENSE.txt} +19 -0
  24. package/dist/scripts/4293-c3039396a2.chunk.js +1 -0
  25. package/dist/scripts/4523-7349b5ef69.chunk.js +1 -0
  26. package/dist/scripts/{514-55d27687c9.chunk.js → 514-b2ab55e242.chunk.js} +1 -1
  27. package/dist/scripts/61-a3b4f572b2.chunk.js +2 -0
  28. package/dist/scripts/6532-ffb2f40362.chunk.js +2 -0
  29. package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +13 -0
  30. package/dist/scripts/6721-e479e42307.chunk.js +1 -0
  31. package/dist/scripts/{7071-98a376d2e4.chunk.js → 7071-d64fe020b9.chunk.js} +1 -1
  32. package/dist/scripts/{708-0a63124c8e.chunk.js → 708-057b85292d.chunk.js} +1 -1
  33. package/dist/scripts/8316-73c639731a.chunk.js +1 -0
  34. package/dist/scripts/{8542-ac67988f48.chunk.js → 8542-35d1c3890f.chunk.js} +1 -1
  35. package/dist/scripts/{8726-9282d96a55.chunk.js → 8726-3072ba6953.chunk.js} +1 -1
  36. package/dist/scripts/9383-53ec8e93e0.chunk.js +1 -0
  37. package/dist/scripts/9770-f9c6709b6e.chunk.js +1 -0
  38. package/dist/scripts/bundle-3bc6e8781c.min.js +2 -0
  39. package/package.json +1 -1
  40. package/dist/scripts/101-f0eabc9718.chunk.js +0 -1
  41. package/dist/scripts/2849-9794557d37.chunk.js +0 -2
  42. package/dist/scripts/2849-9794557d37.chunk.js.LICENSE.txt +0 -32
  43. package/dist/scripts/2853-89804f545b.chunk.js +0 -1
  44. package/dist/scripts/3087-5b2e15773c.chunk.js +0 -1
  45. package/dist/scripts/3522-72e1ee3221.chunk.js +0 -1
  46. package/dist/scripts/4523-25b46399a4.chunk.js +0 -1
  47. package/dist/scripts/61-6e8590834a.chunk.js +0 -2
  48. package/dist/scripts/6150-420920917b.chunk.js +0 -2
  49. package/dist/scripts/6721-6ae5a0bf68.chunk.js +0 -1
  50. package/dist/scripts/8316-840e6c2d01.chunk.js +0 -1
  51. package/dist/scripts/8495-df15406d5a.chunk.js +0 -1
  52. package/dist/scripts/9215-bf10a27b8b.chunk.js +0 -2
  53. package/dist/scripts/9383-d7a8f23441.chunk.js +0 -1
  54. package/dist/scripts/9770-c8f7c03f77.chunk.js +0 -1
  55. package/dist/scripts/bundle-d6eae38b0c.min.js +0 -2
  56. /package/dist/css/{9215-library-editor-01b4461ff1.chunk.css → 3578-library-editor-01b4461ff1.chunk.css} +0 -0
  57. /package/dist/css/{2853-library-editor-f09d854115.chunk.css → 4293-library-editor-f09d854115.chunk.css} +0 -0
  58. /package/dist/scripts/{1010-7d94ea5511.chunk.js → 1010-ccfc933e4a.chunk.js} +0 -0
  59. /package/dist/scripts/{1601-4cf5d7bb6c.chunk.js.LICENSE.txt → 1160-a54c5fc3bb.chunk.js.LICENSE.txt} +0 -0
  60. /package/dist/scripts/{1409-0cc35fc798.chunk.js → 1409-24f32108a3.chunk.js} +0 -0
  61. /package/dist/scripts/{61-6e8590834a.chunk.js.LICENSE.txt → 1601-92aebf3641.chunk.js.LICENSE.txt} +0 -0
  62. /package/dist/scripts/{1832-05f8c5062f.chunk.js → 1832-11d2e90817.chunk.js} +0 -0
  63. /package/dist/scripts/{2417-2454cca2ed.chunk.js → 2417-dd7416caad.chunk.js} +0 -0
  64. /package/dist/scripts/{343-e1958760e1.chunk.js → 343-499357ee34.chunk.js} +0 -0
  65. /package/dist/scripts/{3551-0263e8cde2.chunk.js → 3551-c8c601ef86.chunk.js} +0 -0
  66. /package/dist/scripts/{3746-faa74ed8a6.chunk.js → 3746-53839c7d1b.chunk.js} +0 -0
  67. /package/dist/scripts/{376-054a267408.chunk.js → 376-1c990f4466.chunk.js} +0 -0
  68. /package/dist/scripts/{4245-14713b6ec3.chunk.js → 4245-16fa79a2c7.chunk.js} +0 -0
  69. /package/dist/scripts/{5046-d98313be51.chunk.js → 5046-8994ca4e32.chunk.js} +0 -0
  70. /package/dist/scripts/{5286-ccaa92d5df.chunk.js → 5286-07efed4490.chunk.js} +0 -0
  71. /package/dist/scripts/{5707-f95e3ddddc.chunk.js → 5707-dfab80e46e.chunk.js} +0 -0
  72. /package/dist/scripts/{5747-2adb2e8e3f.chunk.js → 5747-c929092195.chunk.js} +0 -0
  73. /package/dist/scripts/{5891-d592c863b3.chunk.js → 5891-a9a5452269.chunk.js} +0 -0
  74. /package/dist/scripts/{6150-420920917b.chunk.js.LICENSE.txt → 61-a3b4f572b2.chunk.js.LICENSE.txt} +0 -0
  75. /package/dist/scripts/{6352-9e00da417f.chunk.js → 6352-5b8474151f.chunk.js} +0 -0
  76. /package/dist/scripts/{6963-a2832fef18.chunk.js → 6963-b5f5962132.chunk.js} +0 -0
  77. /package/dist/scripts/{7002-25b9de5dc8.chunk.js → 7002-07547e2a6a.chunk.js} +0 -0
  78. /package/dist/scripts/{7053-999796f52e.chunk.js → 7053-b4a29a5e49.chunk.js} +0 -0
  79. /package/dist/scripts/{7408-14562c50d3.chunk.js → 7408-7a37d26507.chunk.js} +0 -0
  80. /package/dist/scripts/{8727-12a7a2464a.chunk.js → 8727-9a9ffc31ba.chunk.js} +0 -0
  81. /package/dist/scripts/{bundle-d6eae38b0c.min.js.LICENSE.txt → bundle-3bc6e8781c.min.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6721],{31709:function(e,n,t){t.d(n,{K:function(){return u}});var a=t(1024),i=t(99910),l=t(53808),r=t(52076),o=t(49642),c=t(17439),s=t(63946);function u(e){var n,t,u=e.showSpinner?a.createElement(i.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svgName){var d=null!==(n=e.className)&&void 0!==n?n:"";return e.disabled&&!e.appLink&&(d+=" pointer-events-none"),a.createElement(s.u,{title:e.tooltip,spanHack:!0},a.createElement(c.h,{appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u))}if(e.svgName)return a.createElement(c.h,{onClick:e.onClick,appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);if(e.tooltip&&e.appLink)return a.createElement(s.u,{title:e.tooltip,spanHack:!0},a.createElement(o.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u));if(e.appLink)return a.createElement(o.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);function p(n){e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions),l.q.isFunction(e.onClick)&&e.onClick(n)}return e.tooltip?a.createElement(s.u,{title:e.tooltip,spanHack:!0},a.createElement("button",{onClick:p,className:"".concat(null!==(t=e.className)&&void 0!==t?t:"").concat(e.disabled?" pointer-events-none":""),disabled:e.disabled},u)):a.createElement("button",{onClick:p,className:e.className,disabled:e.disabled},u)}},58424:function(e,n,t){t.d(n,{L:function(){return l}});var a=t(1024),i=t.n(a),l=i().forwardRef((function(e,n){function t(){if(!e.disabled)return e.onClick.apply(e,arguments)}return i().createElement("div",Object.assign({},e,{ref:n,role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," ").concat(e.disabled?"":"cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(e){return"Enter"===e.key&&t(e)},onClick:t,style:e.style?e.style:{}}),e.children)}))},17439:function(e,n,t){t.d(n,{h:function(){return u}});var a=t(1024),i=t(53808),l=t(31647),r=t(52076),o=t(49642),c=t(39396),s={iconButton:"aGxoe",iconWithText:"_cjiV",svg:"q6vwS",iconOnly:"T1CzO"};function u(e){var n="".concat(e.className," ").concat(s.iconButton);e.children?n+=" ".concat(s.iconWithText):n+=" ".concat(s.iconOnly),e.disabled&&(n+=" disabled");var t=a.createElement(c.x,{svgName:e.svgName,className:"svg-container ".concat(s.svg),size:e.svgSize});return e.appLink||e.href?e.href?a.createElement("a",{className:n,href:e.href,onClick:function(n){n.preventDefault(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions),i.q.isFunction(e.onClick)&&e.onClick(n),l.Q.Ab.PageLoad(e.href,e.openInNewTab)}},t,e.children):a.createElement(o.F,{appLink:e.appLink,className:n,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t,e.children):a.createElement("button",{type:"button",className:n,onClick:function(n){e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions),i.q.isFunction(e.onClick)&&e.onClick(n)},disabled:e.disabled},t,e.children)}},71575:function(e,n,t){t.d(n,{G:function(){return o}});var a=t(1024),i=t(99910),l=t(31709);function r(){return a.createElement("div",{className:"text-center p-5"},a.createElement(i.Spinner,{as:"div",animation:"border",role:"status"}))}function o(e){var n,t=(null===(n=e.headerButtons)||void 0===n?void 0:n.length)?e.headerButtons.map((function(e,n){return a.createElement(l.K,Object.assign({key:n},e))})):a.createElement(a.Fragment,null);return a.createElement(i.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:"md"===e.size?null:e.size,contentClassName:e.contentClassName,dialogClassName:e.dialogClassName,centered:e.centered,backdrop:e.backdrop},!!e.title&&a.createElement(i.Modal.Header,{className:"d-flex align-items-center bg-white",closeButton:e.closeButton},a.createElement(i.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),t),e.showLoadingSpinner?a.createElement(r,null):a.createElement(i.Modal.Body,{className:e.bodyClassName},e.children))}o.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:"",size:"md"}},83996:function(e,n,t){t.d(n,{u:function(){return b}});var a=t(1024),i=t.n(a),l=t(99910),r=t(92802),o=t(66703);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],c=!0,s=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var d=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)n.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]])}return t};function p(e){var n=e.showSpinner,t=e.children,i=e.style,r=d(e,["showSpinner","children","style"]),o=a.useRef(),c=s(a.useState({}),2),u=c[0],p=u.width,m=u.height,f=c[1],b=s(a.useState(n),2),y=b[0],v=b[1];a.useEffect((function(){if(n){var e=o.current,t=e.offsetHeight,a=e.offsetWidth;t&&a&&f({width:a,height:t})}else f({})}),[n]),a.useLayoutEffect((function(){v(n)}),[n]);var h=Object.assign({},i);return p&&(h.width="".concat(p+1,"px")),m&&(h.height="".concat(m+1,"px")),a.createElement(l.Button,Object.assign({ref:o,disabled:n,style:h},r),y?a.createElement(l.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):t)}var m=t(9063),f="shared.popup",b=function(e){var n;return i().createElement("div",{className:"d-flex justify-content-end align-items-center border-top pt-3 px-3 mx-n3 undo-changes-btn ".concat(null!==(n=e.className)&&void 0!==n?n:"")},e.children)};function y(e){return i().createElement(p,{variant:e.variant||"primary",type:e.type||"submit",disabled:e.disabled||e.showSpinner,size:e.size,className:e.className?e.className:"",onClick:function(){var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e)},showSpinner:e.showSpinner},e.text?i().createElement(i().Fragment,null,e.text):i().createElement(o.x,{namespace:f,phrase:e.isNew?"create":"save"}))}function v(e){var n=(0,r.u6)(),t=function(e){var n,t,i,l=(t=a.useState(!1),i=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],c=!0,s=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw i}}return o}}(t,i)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(t,i)||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.")}()),r=l[0],o=l[1];return a.useEffect((function(){var n;e.isValid&&(e.dirty||(null===(n=e.initialStatus)||void 0===n?void 0:n.allowInitialSubmit))?o(!0):o(!1)}),[e.isValid,null===(n=e.initialStatus)||void 0===n?void 0:n.allowInitialSubmit,e.dirty,e.values]),a.useEffect((function(){e.isSubmitting&&o(!1)}),[e.isSubmitting]),r}(null!=n?n:{}),l=(null==n?void 0:n.isSubmitting)||e.showSpinner;return i().createElement(y,Object.assign({},e,{disabled:"boolean"==typeof e.disabled?e.disabled:!!n&&!t||l,showSpinner:l}))}b.Submit=function(e){return i().useContext(r.k5)?i().createElement(v,Object.assign({},e)):i().createElement(y,Object.assign({},e))},b.Cancel=function(e){return i().createElement(l.Button,{onClick:e.onClick,variant:e.variant||"link",size:e.size,className:e.className?e.className:"me-2"},e.text?e.text:i().createElement(o.x,{namespace:f,phrase:"cancel"}))},b.Checkbox=function(e){var n;return i().createElement(l.Form.Check,{type:"checkbox",className:null!==(n=e.className)&&void 0!==n?n:"me-auto",label:e.label,id:e.id,onChange:e.onToggle,checked:e.checked})},b.Toggle=function(e){return i().createElement("div",{className:"d-flex align-items-center me-auto"},i().createElement(m.Z,{on:e.on,onClick:e.onClick,disabled:e.disabled,tooltipText:e.tooltip}),!!e.label&&i().createElement("span",{className:"fw-semibold ms-2"},e.label))}},66703:function(e,n,t){t.d(n,{D:function(){return r},x:function(){return o}});var a=t(1024),i=t(57857),l=t(85887),r=a.createContext(""),o=a.memo((function(e){var n=e.phrase,t=e.namespace,l=e.options,o=a.useContext(r),c=t||o,s=Object.assign({escapeText:!0},l),u=i.T.getPhrase(c,n,s);return a.createElement("span",{dangerouslySetInnerHTML:{__html:u}})}),(function(e,n){return e.namespace===n.namespace&&e.phrase===n.phrase&&l.t.isEqual(e.options,n.options)}))},9063:function(e,n,t){t.d(n,{Z:function(){return c}});var a=t(1024),i=t.n(a),l=t(58424),r=t(63946),o={dark:"custom-toggle-dark"};function c(e){var n;function t(){e.disabled||e.onClick.apply(e,arguments)}var a=e.disabled?"disabled":"",c=e.hideOutline?"outline-none":"",s=null!==(n=o[e.variant])&&void 0!==n?n:"",u=e.on?"on":"";e.disabled&&!e.showStateWhenDisabled&&(u="");var d="".concat("d-inline-block float-end align-top custom-toggle toggle-option"," ").concat(s," ").concat(u," ").concat(a," ").concat(c);return e.tooltipText?i().createElement(r.u,{title:e.tooltipText,spanHack:!0},i().createElement(l.L,{onClick:t,className:d},i().createElement("span",{className:"handle"}))):i().createElement(l.L,{onClick:t,className:d},i().createElement("span",{className:"handle"}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8316],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(1024),i=n(21679);function a(e){var t,n;return t=e,n=i.u.getInstance(t),r.useEffect((function(){return function(){i.u.releaseInstance(t)}})),n}},38182:function(e,t,n){n.d(t,{q:function(){return s}});var r=n(1024),i=n.n(r),a=n(68003),o=n(88483),c=n(87013),u={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,n,r=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:o.h2.Small}):"");return i().createElement("div",{className:"position-relative h-100 w-100"},i().createElement("div",{className:"".concat(u.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(r,"')")}}," "),e.showDot&&i().createElement("div",{className:"".concat(u.dot," rounded-circle bg-danger")}))}},41087:function(e,t,n){n.d(t,{C:function(){return g},g:function(){return s}});var r,i=n(1024),a=n(57857),o=n(39396),c=n(63946),u=n(50028);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv"}(r||(r={}));var s,d=n(27866),l=n(45428),v=n(63791),p=n(21974),f=n(7121),m=a.T.encloseNamespace("shared.badges");function g(e){var t=e.type,n=e.data;if(!function(e,t){var n,r;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===s.Status?"number"==typeof t:!!t}(t,n))return i.createElement(i.Fragment,null);var a=function(e,t){var n,i="";if(e===s.DurationApproximate&&(i="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(i="duration-badge"),e===s.Interactive&&(i="interactive-badge"),e===s.Rating&&(i="rating-badge ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(i="production-year-badge"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case u.X.Published:return"bg-success";case u.X.Archived:case u.X.Rejected:return"bg-danger";case u.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case u.X.Pending:case u.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===s.Count&&(i="count-badge px-1 rounded"),e===s.Restriction){var a=l.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(a)}return e===s.Source&&(i=(n=t).includes(r.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(f.Z.streamable):n.includes(r.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(i)}(t,n);a="".concat(a," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var g=function(e,t){if(e===s.Interactive)return m("interactive");if(e===s.DurationApproximate)return d.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return d.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return i.createElement(o.x,{svgName:v.vn.CloseCaptionBadge});if(e===s.Status)return u.X[t];if(e===s.Trending)return i.createElement(i.Fragment,null,i.createElement(o.x,{svgName:v.vn.Trending}),i.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return i.createElement(i.Fragment,null,i.createElement(o.x,{svgName:l.l.mapRestrictionToSvg(t.restrictions)}),i.createElement("span",null,l.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var n=t;return n.includes(r.Streamable)?"streamable":n.includes(r.MoviesAndTv)?"movies + tv":n.includes(r.Exchange)?"exchange":""}}(t,n),y=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),b=e.inline&&"d-inline-block";return y?i.createElement("div",{className:"badge-wrapper d-inline"},i.createElement(c.u,Object.assign({},y,{spanHack:!0,spanHackClassName:b}),i.createElement("span",{className:a},g))):i.createElement("span",{className:"".concat(a," badge-wrapper")},g)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}))},44550:function(e,t,n){n.d(t,{c:function(){return a}});var r=n(1024),i=n(7121);function a(e){var t="d-flex align-items-center badge-list ".concat(i.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),r.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(r||(r={}))},34254:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},86257:function(e,t,n){var r;n.d(t,{L:function(){return r}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},87648:function(e,t,n){var r;n.d(t,{c:function(){return r}}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},89603:function(e,t,n){var r,i;n.d(t,{Q:function(){return r}}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(i||(i={}))},90335:function(e,t,n){var r;n.d(t,{D:function(){return r}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(r||(r={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var r=n(2248),i=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,r){return{key:"clip:".concat(e,":public:").concat(t),url:i._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedClip:function(e,t,n,r){return{key:"shared:clip:".concat(e),url:i._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:r}},createClip:function(e,t,n,i,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:r.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:i,always:a}},updateClip:function(e,t,n,i,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:r.k.PUT,success:n,error:i,always:a}},deleteClip:function(e,t,n,i,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:r.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:i,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var r=n(2248),i=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},sharedInteractiveMetadata:function(e,t,n,r){return{url:i._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:r}},publicInteractiveMetadata:function(e,t,n,r){return{url:i._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:r.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,i){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:r.k.POST,data:t,success:n,error:i}},updateInteractive:function(e,t,n,i){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:r.k.PUT,data:t,success:n,error:i,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,i){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:r.k.PUT,data:t,success:n,error:i}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:r.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:r.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}},removeInteractiveMetadata:function(e){var t=e.libraryId,n=e.categoryId,a=e.interactiveMetadataId;return{url:i._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:n,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:r.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:r.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:r.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}}}},77131:function(e,t,n){n.d(t,{R:function(){return m}});var r,i=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(r||(r={}));var d=n(15970),l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE,id:e})},f=function(e){var t=e.videoId,n=e.context,i=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return n&&(n===r.Widget?u["context.widgetId"]=i:(u["context.collectionType"]=n,u["context.collectionId"]=i)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},m={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,r){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedVideo:function(e,t,n,r){return{url:l(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:r}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,r=o.v.CLIP_COLLECTION,i=o.v.INTERACTIVE,d="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(r,"]"),v="interactives[".concat(i,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,r,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:i.k.PUT,data:t,success:n,error:r,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:i.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,r,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:i.k.DELETE,success:r,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,r=e.collectionId,i=e.moviesAndTv;return{url:f(e),key:"related:videos:".concat(t,":").concat(n,":").concat(r,":").concat(i)}},collectionVideos:function(e,t,n,r,i,u){var l=d.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,f=o.v.INTERACTIVE,m="videos[".concat(v,"]"),g="clips[".concat(p,"]"),y="interactives[".concat(f,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(m,"|").concat(g,"|").concat(y,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:r,error:i,always:u}},pointsOfInterest:function(e,t,n,r,i){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:r,always:i}},regionAlternatives:function(e,t,n,r){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(92159),i=n(21186),a=n(54096);function o(){var e=(0,a.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:i.NK.Warning,heading:i.R6.Warning,message:t})}}}},45428:function(e,t,n){n.d(t,{l:function(){return m}});var r=n(57857),i=n(56285),a=n(7121),o=n(87648),c=n(63791);function u(e){return u="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},u(e)}function s(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==u(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.T.encloseNamespace("shared.shared-utils"),l=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),f=s(s({},o.c.Custom,200),o.c.User,100),m={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=m.getWeightedRestriction(e.value);return l[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=m.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=m.getWeightedRestriction(e.value),i=t.find((function(e){return e.value===r.yearGroup})),a=p[r.type];if(r.type===o.c.User)return null===r.yearGroup?d("restrictionStaff"):i?d(a,{yearGroup:i.name}):"";if(r.type===o.c.Custom){var c=m.getRestrictionDuration(r);return c?d(a,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=f[e.type],i=f[n.type];return"highest"===t&&r>i||"lowest"===t&&r<i?e:n}))},getRestrictionByType:function(e,t){if(!m.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return m.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=i.O.convertUTCToLocal(e.expiresOn);if(t)return i.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!m.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return d}});var r=n(57857),i=n(75459),a=n(86257),o=n(63791);function c(e){return c="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},c(e)}function u(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==c(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",d={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case i.r.HostedLibrary:case i.r.CustomLibrary:return e.name;case i.r.Exchange:return r.T.getPhrase(s,"exchange");case i.r.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case i.r.HostedLibrary:case i.r.CustomLibrary:return"bg-info";case i.r.Exchange:return"bg-green";case i.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return r.T.getPhrase(s,"pdf");case a.L.Image:return r.T.getPhrase(s,"image");case a.L.Document:return r.T.getPhrase(s,"document");case a.L.Excel:return r.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return r.T.getPhrase(s,"presentation");case a.L.Zip:return r.T.getPhrase(s,"zipArchive");case a.L.File:return r.T.getPhrase(s,"file");default:return""}}}},12927:function(e,t,n){n.d(t,{M:function(){return b}});var r,i=n(11306),a=n(57857),o=n(31647),c=n(56285),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(r||(r={}));var s=n(50028),d=n(74421),l=n(87648),v=n(89603),p=n(332),f=n(91432),m=n(77131),g=n(45428),y=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail:void 0:null},getDuration:function(e){var t,n;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getCanBeConsumed:function(e){var t,n;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=b.getCanBeConsumed(e),i=r.canConsume,a=r.canNavigate,o=r.reason,c=function(){return b.isClip(e)?y("clipLoginRequired"):b.isInteractive(e)?y("interactiveLoginRequired"):y("videoLoginRequired")};if(!i&&!a){if(n)return c();switch(o){case"rating-not-allowed":return y("ratingNotAllowed");case"video-deleted":return b.isClip(e)?y("clipParentDeleted"):b.isInteractive(e)?y("interactiveParentDeleted"):y("videoDeleted");case"clickview-private":return y("clickViewPrivate");case"private":default:return y("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?y("awaitingApproval"):y("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractive"):""},getTitle:function(e){if(e.name)return e.name;var t=b.getCanBeConsumed(e),n=t.canConsume,r=t.reason;return y(n||"private"!==r?n||"video-deleted"!==r?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},showWhyThisVideo:function(e){var t,n;return!!b.isVideo(e)&&!!(null===(n=null===(t=e.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.tagType===v.Q.Pedagogy||e.tagType===v.Q.Skill})))},showWhatsIncluded:function(e){var t,n,r,i,a,o;if(!b.isVideo(e))return!1;var c=!!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),u=!!(null===(i=null===(r=e.resources)||void 0===r?void 0:r.data)||void 0===i?void 0:i.length),s=!!(null===(o=null===(a=e.subtitles)||void 0===a?void 0:a.data)||void 0===o?void 0:o.length);return c||u||s},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case d.E.Video:return m.R.sharedVideo(e,n);case d.E.Clip:return p.e.sharedClip(e,n);case d.E.Interactive:return f.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new i.H("Unsupported master type"))}switch(t){case d.E.Video:return m.R.video(e);case d.E.Clip:return p.e.clip(e);case d.E.Interactive:return f.b.interactiveMetadata(e)}o.Q.Ry.throw(new i.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===r.Era||e.systemName===r.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.typeId===d.E.ExchangeCollection})))}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var r=n(4705),i=n(90335),a=i.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(i.D).includes(e)?e:i.D.Newest},getOrSetSortType:function(e,t,n){var i=function(e){return"video:sort:".concat(e)}(e);return!t&&r.SG.cacheExists(i)||r.SG.cacheSet(i,t||n||a),t||(t=r.SG.cacheGet(i)),t},getVideoSortParam:function(e){switch(e){case i.D.AtoZ:return"orderby:name";case i.D.ZtoA:return"orderbydesc:name";case i.D.Newest:return"orderbydesc:datecreated";case i.D.Oldest:return"orderby:datecreated";case i.D.RecentlyAdded:return"orderbydesc:timestamp";case i.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8495],{80489:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,i){return"number"!=typeof i||t[e]?i:i+"px"}},17333:function(e,t,i){var n=i(90758),r=i(66777),o={float:"cssFloat"},l=i(80489);function a(e,t,i){var a=o[t];if(void 0===a&&(a=function(e){var t=r(e),i=n(t);return o[t]=o[e]=o[i]=i,i}(t)),a){if(void 0===i)return e.style[a];e.style[a]=l(a,i)}}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i])}(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,i){return t[i]=a(e,i||""),t}),{}):a(e,t||"")}},62930:function(e){(function(){var t,i,n,r,o,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},i=process.hrtime,r=(t=function(){var e;return 1e9*(e=i())[0]+e[1]})(),l=1e9*process.uptime(),o=r-l):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},90758:function(e){var t=null,i=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var n=t.style;if(e in n)return e;for(var r=e.charAt(0).toUpperCase()+e.slice(1),o=i.length;o>=0;o--){var l=i[o]+r;if(l in n)return l}return!1}},459:function(e,t,i){"use strict";var n=i(15704);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,l){if(l!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}},60216:function(e,t,i){e.exports=i(459)()},15704:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48729:function(e,t,i){for(var n=i(62930),r="undefined"==typeof window?i.g:window,o=["moz","webkit"],l="AnimationFrame",a=r["request"+l],u=r["cancel"+l]||r["cancelRequest"+l],s=0;!a&&s<o.length;s++)a=r[o[s]+"Request"+l],u=r[o[s]+"Cancel"+l]||r[o[s]+"CancelRequest"+l];if(!a||!u){var c=0,d=0,h=[];a=function(e){if(0===h.length){var t=n(),i=Math.max(0,16.666666666666668-(t-c));c=i+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(i))}return h.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(r,e)},e.exports.cancel=function(){u.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}},69753:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderTrackVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderThumbHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))},t.renderThumbVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))};var r,o=(r=i(1024))&&r.__esModule?r:{default:r};function l(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}},26874:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(48729),l=m(o),a=m(i(17333)),u=i(1024),s=m(i(60216)),c=m(i(25950)),d=m(i(30998)),h=m(i(96223)),f=m(i(11826)),v=m(i(86246)),p=i(37565),g=i(69753);function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i=t.__proto__||Object.getPrototypeOf(t)).call.apply(i,[this,e].concat(r)));return l.getScrollLeft=l.getScrollLeft.bind(l),l.getScrollTop=l.getScrollTop.bind(l),l.getScrollWidth=l.getScrollWidth.bind(l),l.getScrollHeight=l.getScrollHeight.bind(l),l.getClientWidth=l.getClientWidth.bind(l),l.getClientHeight=l.getClientHeight.bind(l),l.getValues=l.getValues.bind(l),l.getThumbHorizontalWidth=l.getThumbHorizontalWidth.bind(l),l.getThumbVerticalHeight=l.getThumbVerticalHeight.bind(l),l.getScrollLeftForOffset=l.getScrollLeftForOffset.bind(l),l.getScrollTopForOffset=l.getScrollTopForOffset.bind(l),l.scrollLeft=l.scrollLeft.bind(l),l.scrollTop=l.scrollTop.bind(l),l.scrollToLeft=l.scrollToLeft.bind(l),l.scrollToTop=l.scrollToTop.bind(l),l.scrollToRight=l.scrollToRight.bind(l),l.scrollToBottom=l.scrollToBottom.bind(l),l.handleTrackMouseEnter=l.handleTrackMouseEnter.bind(l),l.handleTrackMouseLeave=l.handleTrackMouseLeave.bind(l),l.handleHorizontalTrackMouseDown=l.handleHorizontalTrackMouseDown.bind(l),l.handleVerticalTrackMouseDown=l.handleVerticalTrackMouseDown.bind(l),l.handleHorizontalThumbMouseDown=l.handleHorizontalThumbMouseDown.bind(l),l.handleVerticalThumbMouseDown=l.handleVerticalThumbMouseDown.bind(l),l.handleWindowResize=l.handleWindowResize.bind(l),l.handleScroll=l.handleScroll.bind(l),l.handleDrag=l.handleDrag.bind(l),l.handleDragEnd=l.handleDragEnd.bind(l),l.state={didMountUniversal:!1},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,i=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n,o=e.scrollWidth,l=void 0===o?0:o,a=e.scrollHeight,u=void 0===a?0:a,s=e.clientWidth,c=void 0===s?0:s,d=e.clientHeight,h=void 0===d?0:d;return{left:i/(l-c)||0,top:r/(u-h)||0,scrollLeft:i,scrollTop:r,scrollWidth:l,scrollHeight:u,clientWidth:c,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollWidth,o=n.clientWidth,l=(0,f.default)(this.trackHorizontal),a=Math.ceil(o/r*l);return l===a?0:t||Math.max(a,i)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollHeight,o=n.clientHeight,l=(0,v.default)(this.trackVertical),a=Math.ceil(o/r*l);return l===a?0:t||Math.max(a,i)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,i=t.scrollWidth,n=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(i-n)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,i=t.scrollHeight,n=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(i-n)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.addEventListener("mouseenter",this.handleTrackMouseEnter),i.addEventListener("mouseleave",this.handleTrackMouseLeave),i.addEventListener("mousedown",this.handleVerticalTrackMouseDown),n.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.removeEventListener("mouseenter",this.handleTrackMouseEnter),i.removeEventListener("mouseleave",this.handleTrackMouseLeave),i.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),n.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,i=this.props,n=i.onScroll,r=i.onScrollFrame;n&&n(e),this.update((function(e){var i=e.scrollLeft,n=e.scrollTop;t.viewScrollLeft=i,t.viewScrollTop=n,r&&r(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientX,n=t.getBoundingClientRect().left,r=this.getThumbHorizontalWidth(),o=Math.abs(n-i)-r/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientY,n=t.getBoundingClientRect().top,r=this.getThumbVerticalHeight(),o=Math.abs(n-i)-r/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientX,n=t.offsetWidth,r=t.getBoundingClientRect().left;this.prevPageX=n-(i-r)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientY,n=t.offsetHeight,r=t.getBoundingClientRect().top;this.prevPageY=n-(i-r)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=h.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,i=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var n=e.clientY,r=-this.trackVertical.getBoundingClientRect().top+n-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(r)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&l.default.cancel(this.requestFrame),this.requestFrame=(0,l.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,i=t.onUpdate,n=t.hideTracksWhenNotNeeded,r=this.getValues();if((0,d.default)()){var o=r.scrollLeft,l=r.clientWidth,u=r.scrollWidth,s=(0,f.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),h={width:c,transform:"translateX("+o/(u-l)*(s-c)+"px)"},p=r.scrollTop,g=r.clientHeight,m=r.scrollHeight,y=(0,v.default)(this.trackVertical),b=this.getThumbVerticalHeight(),T={height:b,transform:"translateY("+p/(m-g)*(y-b)+"px)"};if(n){var k={visibility:u>l?"visible":"hidden"},w={visibility:m>g?"visible":"hidden"};(0,a.default)(this.trackHorizontal,k),(0,a.default)(this.trackVertical,w)}(0,a.default)(this.thumbHorizontal,h),(0,a.default)(this.thumbVertical,T)}i&&i(r),"function"==typeof e&&e(r)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),i=this.props,r=(i.onScroll,i.onScrollFrame,i.onScrollStart,i.onScrollStop,i.onUpdate,i.renderView),o=i.renderTrackHorizontal,l=i.renderTrackVertical,a=i.renderThumbHorizontal,s=i.renderThumbVertical,h=i.tagName,f=(i.hideTracksWhenNotNeeded,i.autoHide),v=(i.autoHideTimeout,i.autoHideDuration),g=(i.thumbSize,i.thumbMinSize,i.universal),m=i.autoHeight,y=i.autoHeightMin,b=i.autoHeightMax,T=i.style,k=i.children,w=function(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(i,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,H=n({},p.containerStyleDefault,m&&n({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),T),M=n({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&n({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),m&&g&&!S&&{minHeight:y,maxHeight:b},g&&!S&&p.viewStyleUniversalInitial),D={transition:"opacity "+v+"ms",opacity:0},L=n({},p.trackHorizontalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"}),z=n({},p.trackVerticalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"});return(0,u.createElement)(h,n({},w,{style:H,ref:function(t){e.container=t}}),[(0,u.cloneElement)(r({style:M}),{key:"view",ref:function(t){e.view=t}},k),(0,u.cloneElement)(o({style:L}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(a({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(l({style:z}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=y,y.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},y.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},37565:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},98495:function(e,t,i){"use strict";t.$B=void 0;var n,r=(n=i(26874))&&n.__esModule?n:{default:n};t.ZP=r.default,t.$B=r.default},86246:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,i=getComputedStyle(e),n=i.paddingTop,r=i.paddingBottom;return t-parseFloat(n)-parseFloat(r)}},11826:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,i=getComputedStyle(e),n=i.paddingLeft,r=i.paddingRight;return t-parseFloat(n)-parseFloat(r)}},30998:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==o)return o;if("undefined"!=typeof document){var e=document.createElement("div");(0,r.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else o=0;return o||0};var n,r=(n=i(17333))&&n.__esModule?n:{default:n},o=!1},25950:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},96223:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},66777:function(e,t,i){var n=i(2690);e.exports=function(e){return n(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},38278:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():i.test(e)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():n.test(e)?function(e){return e.replace(o,(function(e,t,i){return t+" "+i.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,i=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,o=/(.)([A-Z]+)/g},2690:function(e,t,i){var n=i(38278);e.exports=function(e){return n(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}}]);