@clickview/library-editor 1.65.0 → 1.65.1-dev.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.
- package/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{2781-080a819ebe.chunk.js → 2781-e682155545.chunk.js} +2 -2
- package/dist/scripts/{4796-be2517a0f4.chunk.js → 4796-0e335ba98b.chunk.js} +2 -2
- package/dist/scripts/6591-e2453d17ac.chunk.js +1 -0
- package/dist/scripts/6768-1f9104b843.chunk.js +1 -0
- package/dist/scripts/7366-bdc9d0452d.chunk.js +1 -0
- package/dist/scripts/{9082-6ae95039ff.chunk.js → 9082-5aab7844dd.chunk.js} +1 -1
- package/dist/scripts/bundle-752edf557c.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/6591-04a4414733.chunk.js +0 -1
- package/dist/scripts/6768-945c9c69c7.chunk.js +0 -1
- package/dist/scripts/7366-438b9e40d9.chunk.js +0 -1
- package/dist/scripts/bundle-b2a449b5ce.min.js +0 -2
- /package/dist/scripts/{2781-080a819ebe.chunk.js.LICENSE.txt → 2781-e682155545.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4796-be2517a0f4.chunk.js.LICENSE.txt → 4796-0e335ba98b.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-b2a449b5ce.min.js.LICENSE.txt → bundle-752edf557c.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6591],{95544:function(e,t,n){function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return"";var r=t.filter(function(e){return!!e});return r.length?r.join(" "):""}n.d(t,{A:function(){return r}})},51071:function(e,t,n){n.d(t,{j:function(){return L}});var r=n(32735),o=n(80247),a=n(57857),i=n(53808),c=n(21326),s=n(74421),l=n(38e3),u=n(23454),m=n(7067),f=n(85475),p={removeRecipient:"mCbMC",recipientItem:"kdcb0",showSpinner:"xH6Mu",avatarContainer:"Zcpg3",recipientDetails:"v5EmV",recipientDetailsWithRemoveButton:"_V928"},d="shared.classroomGroupRecipientItemMetadata";function g(e){var t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:f.vn.Group,variant:(0,m.I)(null===(t=e.classroomGroup.metadata)||void 0===t?void 0:t.colour)})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroomGroup.name),r.createElement("p",{className:"text-secondary m-0"},function(e){var t,n,r,o=null!==(n=null===(t=e.users)||void 0===t?void 0:t.count)&&void 0!==n?n:0,i=null===(r=e.classroom)||void 0===r?void 0:r.name;return i?a.T.getPhrase(d,"subheading",{classroomName:i,smartCount:o}):""}(e.classroomGroup))))}var v="shared.classroomRecipientItemMetadata";function y(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:f.vn.Classrooms,variant:"teal"})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroom.name),r.createElement("p",{className:"text-secondary m-0"},(c=null!==(o=null===(n=(t=e.classroom).users)||void 0===n?void 0:n.count)&&void 0!==o?o:null===(i=t.enrolments)||void 0===i?void 0:i.count,Number.isInteger(c)?a.T.getPhrase(v,"subheading",{smartCount:c}):""))));var t,n,o,i,c}var h=n(95544),b=n(76198),S=n(76044),C=a.T.encloseNamespace("shared.analyticsUtils");function E(e,t){return e?t?(0,b._8)((n=e.id,r=e.sessionId,o=+"".concat(n||function(e){if(!e)return 0;for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}(r)).concat(Math.floor((new Date).getMinutes()/5)),{dictionaries:[b.O9,b.yd],separator:" ",length:2,style:"capital",seed:o})):e.deleted?C("deleted"):S.l.getFullName(e)||C("anonUser"):C("anonUser");var n,r,o}var I=n(77037),O=n(39396),w=n(1268),j=n(46237),N=a.T.encloseNamespace("shared.userRecipientItemMetadata");function x(e){var t=function(e){var t,n=e.user,r=e.anonymiseUsers,o=e.showDisplayName;if(n.sessionId||n.deleted){var a=E(n,r),i=a.split(" ").filter(function(e){return!!e});return{name:a,surname:i.slice(1).join(" "),avatarUrl:null}}return{name:r?E(n,!0):o?S.l.getDisplayName(n):S.l.getFullName(n),surname:n.surname,avatarUrl:null===(t=n.avatar)||void 0===t?void 0:t.url}}(e),n=t.name,o=t.surname,a=t.avatarUrl;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," ").concat(e.avatarClassName," d-inline-block flex-shrink-0")},r.createElement(I.q,{imageUrl:a,imageCdnUrl:e.imageCdnUrl,initials:S.l.getInitials(n,o),showAnonymousUser:!(e.anonymiseUsers||!e.user.sessionId&&!e.user.deleted),anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:O.S.Small})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:(0,h.A)("font-size-normal fw-normal m-0",e.nameClassName)},n),e.showSubText&&"id"in e.user&&r.createElement("p",{className:"text-secondary m-0"},e.getSubText?e.getSubText(e.user):function(e){var t=S.l.getUserType(e),n=S.l.getUserRole(e);if(t===w.Y.Staff)return n===j.i.Admin?N("admin"):N("staff");var r=S.l.getYearGroup(e);return(null==r?void 0:r.name)&&"Learners"!==r.name?r.name:N("student")}(e.user))))}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}x.defaults={showSubText:!0};var T=a.T.encloseNamespace("share.recipientItem");function A(e){switch(e){case s.E.User:return T("removeUser");case s.E.Classroom:return T("removeClassroom");case s.E.ClassroomGroup:return T("removeGroup")}return null}function L(e){var t,n,a=(t=r.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],m=a[1],f="".concat(p.recipientItem," d-flex");u&&(f+=" ".concat(p.showSpinner));var d="".concat(e.removeRecipient?p.recipientDetailsWithRemoveButton:p.recipientDetails," d-inline-block ms-2");return r.createElement("div",{className:f},l.G.isType(e.entity,s.E.User)?r.createElement(x,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:d,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0}):l.G.isType(e.entity,s.E.Classroom)?r.createElement(y,{classroom:e.entity,detailsClassName:d}):l.G.isType(e.entity,s.E.ClassroomGroup)?r.createElement(g,{classroomGroup:e.entity,detailsClassName:d}):void 0,i.q.isFunction(e.removeRecipient)&&r.createElement("div",{className:"".concat(p.removeRecipient," d-inline-flex justify-content-center align-items-center")},u?r.createElement(o.Z,{as:"div",size:"sm",animation:"border",role:"status"}):r.createElement(c.u,{title:A(e.entity.typeId),spanHack:!0},r.createElement("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:function(){m(!0),e.removeRecipient(e.entity.id,function(){return m(!1)})}}))))}},81406:function(e,t,n){n.d(t,{t:function(){return w},D:function(){return j}});var r=n(32735),o=n(53808),a=n(58424),i=n(39396),c=n(74421),s=n(1268),l=n(7067),u=n(38e3),m=n(85475),f=n(76044),p=n(80247),d=n(57857),g={avatar:"srrS3"};function v(e){var t=e.imageUrl,n=e.initials,o={};return t&&(o.backgroundImage="url('".concat(t,"')")),r.createElement("div",{className:g.avatar,style:o},t?r.createElement(r.Fragment,null," "):n)}var y=n(21326),h={svgContainer:"laVU4",selection:"vEOCt",expander:"d1NHd",iconContainer:"rFH4W",icon:"BarYz",bubble:"HF0E8",spinnerContainer:"iKeXW",remove:"pyzCM",removeBubble:"mgt6Y"},b=d.T.encloseNamespace("shared.inputSelection");function S(e){var t,n="".concat(h.svgContainer," ").concat(h.icon);return e.typeId===c.E.Classroom?n+=" text-teal":n+=" text-".concat((0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function C(e){var t,n=function(e){var t;switch(e.typeId){case c.E.Classroom:return"text-teal-hover";case c.E.ClassroomGroup:return"text-".concat((0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour),"-hover")}}(e.selection),o=e.selection.typeId===c.E.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===c.E.User){var s=e.selection;return r.createElement("div",{className:h.svgContainer},r.createElement(v,{imageUrl:null===(t=s.avatar)||void 0===t?void 0:t.url,initials:f.l.getInitials(e.selection.name,e.selection.surname)}))}return r.createElement(y.u,{title:b(o?"emptyClassroom":"emptyGroup")},r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(h.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:o?m.vn.Classrooms:m.vn.Group})))}return e.hasExpanded?r.createElement("div",{className:"d-flex align-items-center text-white ".concat(h.spinnerContainer," ").concat(h.svgContainer)},r.createElement(p.Z,{as:"div",size:"sm",animation:"border",role:"status"})):r.createElement(r.Fragment,null,r.createElement(a.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat(h.expander," ").concat(n),onClick:e.onClickExpand},r.createElement(i.x,{svgName:m.vn.Plus,className:"d-flex align-items-center ".concat(h.svgContainer)})),r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(h.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:o?m.vn.Classrooms:m.vn.Group})))}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t;if(!e.typeId)return"ultramarine";switch(e.typeId){case c.E.User:return"number"==typeof e.userType?2===e.userType?"ultramarine":"indigo":e.userType===s.Y.Learner?"ultramarine":"indigo";case c.E.Classroom:return"teal";case c.E.ClassroomGroup:return(0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function w(e){var t,n,o,s=u.G.isType(e.selection,c.E.Classroom),l=u.G.isType(e.selection,c.E.ClassroomGroup),f=e.onClickExpand&&(s||l),p=!!(null===(t=e.selection.users||e.selection.enrolments)||void 0===t?void 0:t.count),d=!!(null===(o=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===o?void 0:o.length),g=E(r.useState(!1),2),v=g[0],y=g[1],b=E(r.useState(f&&p),2),S=b[0],C=b[1];if(r.useEffect(function(){C(f&&p)},[f,p]),d){var I=e.selection,w=O(e.selection);return r.createElement("div",{className:"d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-".concat(w," text-").concat(w," ").concat(h.bubble)},I.users.data.map(function(t){return r.createElement(j,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:w,hasStudentExperience:e.hasStudentExperience})}),r.createElement(a.L,{className:"cursor-pointer position-absolute text-".concat(w," ").concat(h.removeBubble),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(h.svgContainer)})))}return r.createElement(j,{selection:e.selection,canExpand:S,hasExpanded:v,onClickExpand:function(){y(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:O(e.selection),hasStudentExperience:e.hasStudentExperience})}function j(e){var t=e.colourVariant||O(e.selection),n=e.selection.name;return e.selection.typeId===c.E.User&&(n=e.hasStudentExperience?f.l.getDisplayName(e.selection):f.l.getFullName(e.selection)),r.createElement("div",{className:"".concat(h.selection," bg-").concat(t," rounded-pill text-").concat(t," d-flex align-items-center me-1 mt-1 overflow-hidden")},!e.hideExpander&&r.createElement(C,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),r.createElement("span",{className:"mx-1 text-white text-truncate"},n),o.q.isFunction(e.onClickRemove)&&r.createElement(a.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat(h.remove),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(h.svgContainer)})))}},46459:function(e,t,n){n.d(t,{d:function(){return z},R:function(){return M}});var r=n(32735),o=n(57857),a=n(40221),i=n(51071),c=n(8952),s=n(42648),l=n(53808),u=n(85887),m=n(39396),f=n(85475),p=n(7557),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function g(e,t,n,r,o){var a="form-control text-truncate";return n||(a+=" ".concat(p.Z.inputWithoutHighlight)),"left"===e&&(a+=" ".concat(p.Z.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t||t)&&(a+=" ".concat(p.Z.inputWithRightIcon)),"right"===e&&t&&(a+=" ".concat(p.Z.inputWithTwoRightIcons)),"lg"===o&&(a+=" form-control-lg"),"sm"===o&&(a+=" form-control-sm"),r&&(a+=" ".concat(r)),a}function v(e){var t="d-inline-block svg-container";return l.q.isFunction(e)?t+" cursor-pointer":t}function y(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,o=e.showClearInputIcon,a=e.onClickClearInput,i=e.highlightOnFocus,c=e.className,s=e.formSize,l=d(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(m.x,{svgName:f.vn.Search,size:m.S.Standard,onClick:t,className:v(t)}))};return r.createElement("div",{className:"position-relative ".concat(p.Z.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(p.Z.iconContainer," ").concat(p.Z.leftIconContainer)},r.createElement(u,null)),r.createElement("input",Object.assign({className:g(n,o,i,c,s)},l)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(p.Z.iconContainer," ").concat(p.Z.rightIconContainer)},!!o&&r.createElement(function(){return r.createElement("button",{className:"d-inline-block text-secondary ".concat(p.Z.clearButton),onMouseUp:a},r.createElement(m.x,{svgName:f.vn.Close,size:m.S.Standard,className:v(a)}))},null),"right"===n&&r.createElement(u,null)))}var h=n(90547),b=n(5256),S=n(78523);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||E(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 E(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w="shared.searchBar",j=l.q.isFunction;function N(e){return e.renderAsForm?r.createElement("form",{onSubmit:e.onSubmit},e.children):r.createElement("div",{className:"w-100"},e.children)}function x(e){var t=S.aY(e.initialLocalSuggestions,e.recentSearches),n=C(r.useState(e.initialQuery||""),2),a=n[0],i=n[1],m=C(r.useState(t),2),f=m[0],p=m[1],d=r.useMemo(function(){return S.yr(f,e.suggestionsHeading,e.recentSearchHeading||o.T.getPhrase(w,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections)},[f]);r.useEffect(function(){u.t.isEqual(t,f)||a&&a.length>=(null==e?void 0:e.activationLength)||p(t)},[t]),r.useEffect(function(){"function"==typeof e.onSuggestionUpdated&&e.onSuggestionUpdated(d)},[d]);var g=r.useRef(null),v=r.useRef(!1);S.of(g);var x=C(r.useState(e.initialQuery||""),2),k=x[0],T=x[1],A=C(r.useState("none"),2),L=A[0],R=A[1],U=(0,b.a)(h.r.XS);r.useEffect(function(){e.resetSuggestionsOnNoActivation&&a&&(a.length>=e.activationLength||F())},[a]),r.useEffect(function(){if(!a.length){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);p(t)}},[e.initialLocalSuggestions,e.recentSearches]),r.useEffect(function(){var t=e.initialQuery||"";a!==t&&(i(t),T(t))},[e.initialQuery]),r.useEffect(function(){g.current&&e.autoFocusInput&&g.current.focus()},[e.autoFocusInput]);var F=function(){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);p(t)},P=function(){i(""),T("")};(0,S.iV)(e.controlsRef,P,i,function(){var e;null===(e=g.current)||void 0===e||e.focus()},function(){var e;null===(e=g.current)||void 0===e||e.blur()});var B,_=function(){R("none")},G=function(t){t.preventDefault(),j(e.onSubmit)&&e.onSubmit(a,g.current),e.clearQueryOnSelect&&P()},q=r.useMemo(function(){return e.debounceTime?l.q.debounce(S.KC(e,p,F),e.debounceTime):S.KC(e,p,F)},[e.debounceTime].concat(function(e){if(Array.isArray(e))return I(e)}(B=e.onSuggestionDependencies)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(B)||E(B)||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 D(){return"boolean"==typeof e.alwaysRenderSuggestions?e.alwaysRenderSuggestions:!!(e.alwaysRenderSuggestionsWhenFocused&&a.length>=e.activationLength)&&document.activeElement===g.current}return r.createElement(N,{onSubmit:G,renderAsForm:!!e.renderAsForm},r.createElement(c,Object.assign({ref:function(e){null===e||g.current||(g.current=e.input)},suggestions:d,onSuggestionsFetchRequested:q,onSuggestionHighlighted:function(t){var n=t.suggestion;("none"!==L||n)&&(v.current&&e.onArrowKeyUpOrDown&&(v.current=!1,e.onArrowKeyUpOrDown()),R(n?"suggestion":"custom"))},onSuggestionsClearRequested:function(){D()||F()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.generic||(e.clearQueryOnSelect&&P(),e.onSuggestionSelected(r,g.current,t))},getSuggestionValue:function(t){return function(t){return j(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}(t)?S.tV(e.valueKey,t):a},renderSuggestion:function(t,n){if(t.generic){if("empty"===t.type)return a.length>=e.activationLength&&j(e.getEmptyStateComponent)?e.getEmptyStateComponent(a):r.createElement(r.Fragment,null);if("errored"===t.type&&j(e.getErrorStateComponent)){var o=S.KC(e,p,F);return e.getErrorStateComponent(function(){return o({value:a,reason:"input-changed"})})}if("loading"===t.type)return S.Gu(e.loadingComponentClassName)}return j(e.getSuggestionComponent)?e.getSuggestionComponent(t,n):S.Go(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,o=n.ref,i=O(n,["ref"]);if(!e.customScrollbarProps){var c={suggestions:f,query:a,isDropdownOpen:!!t.children};return r.createElement("div",Object.assign({ref:o},i,{onMouseOut:_}),t.children,e.getCreateComponent&&e.getCreateComponent(Object.assign({userInput:k,isActive:"custom"===L,resetQuery:P,resetSuggestions:F},c)),e.getFooterComponent&&e.getFooterComponent(c))}return r.createElement(s.ZP,Object.assign({ref:o},e.customScrollbarProps,i),t.children)},alwaysRenderSuggestions:D(),focusInputOnSuggestionClick:!U&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":"".concat(e.id,"Error"),"aria-label":e.label,placeholder:e.placeholder||o.T.getPhrase(w,"placeholder"),value:a,onChange:function(t,n){var r=n.newValue,o=n.method;"type"===o&&T(r),("escape"!==o||(R("none"),null==e?void 0:e.resetQueryOnEscape))&&(["up","down"].includes(o)||(i(r),j(e.onQueryChange)&&e.onQueryChange(r)))},onKeyDown:function(t){"Backspace"!==t.key||!e.onBackspace||a?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(v.current=!0):e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&G,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!a.length,onClickClearInput:function(){P(),e.resetSuggestionsOnClear&&F(),j(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size,onBlur:function(){e.onBlur&&e.onBlur(a)},onFocus:function(){e.onFocus&&e.onFocus(a)},disabled:e.disabled},renderInputComponent:y,theme:S.gh(e.theme,!!f.generic.length),multiSection:!0,renderSectionTitle:function(t){return j(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):S.w8(t,e.sectionTitleClassName)},getSectionSuggestions:S.k3},e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return j(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(a):e.renderSuggestionsOnInputFocus}}:{})))}x.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};var k=n(66703);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=function(e,t){var n,o,a=(n=r.useState(e),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(n,o)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],c=a[1];return r.useEffect(function(){var n=setTimeout(function(){return c(e)},t);return function(){return clearTimeout(n)}},[e,t]),i},L={emptyState:"bKTf0"},R="shared.typeaheadEmptyState";function U(e){var t=e.query,n=void 0===t?"":t,o=e.imageUrl,a=A(n,300);return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:o,className:"pb-2 ".concat(L.emptyState)}),r.createElement("h2",{role:"status",className:"h6"},r.createElement(k.x,{namespace:R,phrase:"noResults",options:{query:a,smartCount:a.length}})))}var F=n(58424),P={emptyState:"k5mEG"},B="shared.typeaheadErrorState";function _(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(P.emptyState)}),r.createElement("h2",{className:"h6",role:"alert"},r.createElement(k.x,{namespace:B,phrase:"error"})),r.createElement(F.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(k.x,{namespace:B,phrase:"tryAgain"})))}var G=n(81406),q={container:"Dc3kX",suggestionsContainerOpen:"c5t3e",selectionContainer:"kFjoN",sectionContainer:"mLrE3"},D="shared.tokenizedTypeahead",z=10;function M(e){var t;return r.createElement("div",{className:"form-control h-auto d-flex align-items-top position-relative ".concat(e.hideIcon?"":"py-1 px-0"," ").concat(e.className)},!e.hideIcon&&r.createElement(m.x,{className:"svg-container m-1",svgName:f.vn.Search}),r.createElement("div",{className:"".concat(q.selectionContainer," d-flex flex-wrap align-items-center mt-n1")},e.selections.map(function(t){return e.getInputTokenComponent?e.getInputTokenComponent(t):r.createElement(G.t,{key:t.id,selection:t,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience})}),r.createElement(x,Object.assign({},e,{onBackspace:function(){e.selections.length&&e.removeSelection(a.m.last(e.selections))},recentSearchHeading:e.recentSearchHeading||o.T.getPhrase(D,"recentSearchHeading"),placeholder:(null===(t=e.selections)||void 0===t?void 0:t.length)?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:function(t){return e.getSuggestionComponent?e.getSuggestionComponent(t):r.createElement(i.j,{entity:t,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience})},getEmptyStateComponent:function(t){if(e.getEmptyStateComponent)return e.getEmptyStateComponent(t);e.emptyStateImageUrl&&r.createElement(U,{query:t,imageUrl:e.emptyStateImageUrl})},getErrorStateComponent:function(t){return r.createElement(_,{imageUrl:e.errorStateImageUrl,onClickTryAgain:t})},theme:{container:q.container,suggestionsContainerOpen:"bg-white py-1 rounded border mt-1 ".concat(q.suggestionsContainerOpen),sectionContainer:"border-bottom py-1 ".concat(q.sectionContainer)},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]}))),!!e.sharePermissionsDescription&&r.createElement("span",{className:"px-2 text-secondary text-nowrap"},e.sharePermissionsDescription))}M.defaultProps={renderSuggestionsOnInputFocus:!0}},23454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(32735),o=n(39396),a={circle:"Uxnsl",img:"BQ87Y"};function i(e){var t;return e.imageUrl||e.svgName?e.imageUrl?r.createElement("div",{className:"".concat(a.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):r.createElement("div",{className:"".concat(a.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},r.createElement(o.x,{svgName:e.svgName,size:e.svgSize})):r.createElement(r.Fragment,null)}i.defaultProps={textVariant:"white"}},78523:function(e,t,n){n.d(t,{aY:function(){return b},Gu:function(){return N},Zo:function(){return C},k3:function(){return A},Go:function(){return j},yr:function(){return x},tV:function(){return w},gh:function(){return R},KC:function(){return O},w8:function(){return L},iV:function(){return U},of:function(){return F}});var r=n(32735),o=n(80247),a=n(2248),i=n(53808),c=n(86120),s=n(79410),l=n(85887);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)}var m,f={isNumber:function(e){return f.isType(e,"number")},isString:function(e){return f.isType(e,"string")},isType:function(e,t){return u(e)===t}},p=n(7557);function d(e){return d="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},d(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return h(h(h(h({},m.Recent,t),m.Local,e),m.Remote,[]),m.Generic,[])}function S(e,t){return l.t.isObject(e)&&e.hasOwnProperty(t)&&f.isString(e[t])}function C(e,t,n,r){var o=e.trim().toLowerCase();return o.length<r?[]:t.filter(function(e){return!(!S(e,n)||!f.isString(e[n]))&&e[n].trim().toLowerCase().includes(o)})}function E(e,t){e(Object.assign(Object.assign({},b([],[])),h({},m.Generic,[{type:t,generic:!0}])))}function I(e,t,n){var r=i.q.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;r.length||!t.getEmptyStateComponent?n(function(e){return Object.assign(Object.assign({},e),h(h({},m.Remote,r),m.Generic,[]))}):E(n,"empty")}function O(e,t,n){return function(r){var o,s,l=r.value,u=r.reason;if((null===(s=null===(o=e.allowableSuggestionFetchRequestedReasons)||void 0===o?void 0:o.includes(u))||void 0===s||s)&&(l.length||n(),!(l.length<e.activationLength))){if(e.local){var f=i.q.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(l,e.local):C(l,e.local,e.valueKey,e.activationLength);if(!f.length&&e.getEmptyStateComponent)return void E(t,"empty");t(function(e){return Object.assign(Object.assign({},e),h(h({},m.Local,f),m.Generic,[]))})}if("function"==typeof e.handleFetchSuggestions)return e.replacePreviousRemoteSuggestions?t(function(e){return Object.assign(Object.assign({},b([],[])),h({},m.Remote,e.remote))}):E(t,"loading"),void e.handleFetchSuggestions(l,function(n){return I(n,e,t)},function(){return E(t,"errored")});var p,d,g,v,y,S,O;e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t(function(e){return Object.assign(Object.assign({},b([],[])),h({},m.Remote,e.remote))}):E(t,"loading"),p=e.getRemoteUrl,d=l,g=function(n){return I(n,e,t)},v=function(){E(t,"errored")},y=e.requestHeaders,S=e.getRemotePostBody,(O=i.q.isFunction(p)&&p(d))&&(S?c.a.ajaxRequest({resource:O,type:a.k.POST,success:g,error:v,headers:y,data:S(d)}):c.a.ajaxRequest({resource:O,type:a.k.GET,success:g,error:v,headers:y})))}}}function w(e,t){return S(t,e)?t[e]:""}function j(e,t){return S(t,e)?r.createElement(r.Fragment,null,t[e]):r.createElement(r.Fragment,null)}function N(e){return r.createElement("div",{className:"d-flex justify-content-center cursor-default ".concat(null!=e?e:""),onClick:function(e){e.stopPropagation()}},r.createElement(o.Z,{as:"span",animation:"border",role:"status"}))}function x(e,t,n,r,o,a){var c=function(t){var n=e[t];return n?n.map(function(e){return Object.assign(Object.assign({},e),{suggestionType:t})}):[]},s=c(m.Recent),l=c(m.Local),u=c(m.Remote),f=c(m.Generic);if(f.length)return[{data:f,suggestionType:m.Generic}];if(i.q.isFunction(r))return r([].concat(g(l),g(u),g(s)));var p=[];return(null==l?void 0:l.length)&&p.push({title:t,data:T(l,k(m.Local,o)),suggestionType:m.Local}),(null==u?void 0:u.length)&&p.push({title:t,data:T(u,k(m.Remote,o)),suggestionType:m.Remote}),(null==s?void 0:s.length)&&p.push({title:n,data:T(s,k(m.Recent,o)),suggestionType:m.Recent}),"function"==typeof a?a(p):p}function k(e,t){return"number"==typeof t||"boolean"==typeof t?t:t[e]||!1}function T(e,t){return"boolean"==typeof t||e.length<=t?e:e.slice(0,t)}function A(e){return e.data}function L(e,t){if(e.title)return r.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},r.createElement("strong",null,e.title))}function R(e,t){var n="function"==typeof e?e(t):e,r=function(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(p.Z.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":p.Z.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(p.Z.sectionContainer)}}(t);return Object.assign(r,n)}function U(e,t,n,o,a){r.useEffect(function(){e&&!e.current&&(e.current={resetQuery:t,setQuery:n,focusInput:o,blurInput:a})},[null==e?void 0:e.current])}function F(e){var t,n,o=(t=(0,s.D)("lite:search:bar:focus",{focus:!1}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,n)||v(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],i=o[1];return r.useEffect(function(){a.focus&&(null==e?void 0:e.current)&&(e.current.focus(),i({focus:!1}))},[a.focus]),{focusSearchBar:function(){return i({focus:!0})},shouldFocus:a.focus}}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Generic="generic"}(m||(m={}))},48050:function(e,t,n){var r;n.d(t,{R:function(){return r}}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(r||(r={}))},57867:function(e,t,n){n.d(t,{x:function(){return l}});var r,o=n(68003);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(r||(r={}));var a=n(84657),i=n(34254),c=n(48050),s=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},l={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:o._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:o._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:o._.urlBuilder("{gateway}/v1/users/me/presentations/available",t),publicUrl:o._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:a.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:o._.urlBuilder("{gateway}/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"{gateway}/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,n){var r={type:n.toLowerCase(),contentRegion:t};return{url:o._.urlBuilder("/api/subjects/presentations/".concat(e),r),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(e),r),key:"current:presentation:".concat(n.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var n={type:null==e?void 0:e.toLowerCase()};return{url:o._.urlBuilder("{gateway}/v1/users/me/presentations",n),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(t),n),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:o._.urlBuilder("{gateway}/v1/users/me/classifications",{query:a.v.CLASSIFICATION_COLLECTION,type:c.R.Subject.toLowerCase()}),publicUrl:o._.urlBuilder("/api/subjects/classifications",{query:a.t.CLASSIFICATION_COLLECTION,type:c.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,n){return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e),{query:a.v.CLASSIFICATION(t)}),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e),{query:a.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}},path:function(e,t){var n={type:t};return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/path"),n),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},paths:function(e){return{url:"/api/subjects/classifications/".concat(e,"/paths"),key:"classification:".concat(e,":paths")}},children:function(e){return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/children"),{query:a.v.CLASSIFICATION_COLLECTION}),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:a.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var a="limit:100,orderbydesc:timestamp";n.length&&(a+=",".concat(s(n)));var c={query:"{".concat(a,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(r.PinnedVideos),c),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.PinnedVideos),c),key:"classification:".concat(e,":").concat(r.PinnedVideos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var c="limit:100,orderby:name";n.length&&(c+=",".concat(s(n)));var l={query:"{".concat(c,"}").concat(a.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(r.Playlists),l),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Playlists),l),key:"classification:".concat(e,":").concat(r.Playlists,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter(function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url})})}}}},series:function(e,t,n){if(t){var c="limit:100";n.length&&(c+=",".concat(s(n)));var l={query:"{".concat(c,"}").concat(a.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("{gateway}/v1/subjects/classifications/".concat(e,"/").concat(r.Series),l),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Series),l),key:"classification:".concat(e,":").concat(r.Series,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter(function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url})})}}}},curriculumLinks:function(e,t){return{url:o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Curriculum.toLowerCase()}),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},subjectLinks:function(e,t){var n=o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Subject.toLowerCase()});return{url:n,publicUrl:n,key:"subject:links:".concat(e,":").concat(t),normalize:!1}},getMappedCurriculums:function(e,t){var n={type:c.R.Curriculum.toLowerCase()};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/presentations"),n),publicUrl:o._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},n),{pid:t})),key:"mapped:curriculums:".concat(e,":").concat(t.join(",")),normalize:!1}},regionAlternatives:function(e,t,n,r){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},7067:function(e,t,n){n.d(t,{I:function(){return o}});var r=n(7754);function o(e){switch(e){case r.R.Pink:return"pink";case r.R.Orange:return"orange";case r.R.Green:return"green";case r.R.Blue:return"blue";case r.R.Purple:return"purple";case r.R.Indigo:return"indigo";default:return"pink"}}},38e3:function(e,t,n){n.d(t,{G:function(){return o}});var r=n(74421),o={isType:function(e,t){var n;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===r.E[t].toLowerCase()},isResource:function(e){return o.isType(e,r.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},7557:function(e,t){t.Z={inputWithoutHighlight:"cKcry",suggestionsContainerOpen:"avM9L",sectionContainer:"u35Wz",suggestionHighlighted:"gFitp",clearButton:"TAoT9",inputWithLeftIcon:"Rt24D",inputWithRightIcon:"pxKzq",inputWithTwoRightIcons:"Oerjh",iconContainer:"h8OBl",leftIconContainer:"L5mrV",rightIconContainer:"V23aG"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6768],{95106:function(e,t,n){"use strict";n.r(t),n.d(t,{UploadVideosView:function(){return ht}});var o=n(43823),i=n(21161),r=n(25417),a=n(21186),l=n(21679),s=n(57857),c=n(99249),u=n(31647),d=n(52076),p=n(70065),f=n(81937),h=n(83891),y=n(8371),m=n(36357),v=n(45390),g=n(85847),b=n(48404),w=n(19226),S=n(93569),k=n(95061),O=n(13630),C=n(18222),P=n(57769),T=n(88172),N=n(42494),j=n.n(N);function E(e){return E="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},E(e)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,I(o.key),o)}}function I(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var V=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=D(t),function(e,t){if(t&&("object"==E(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,_()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}(this,t,[e])}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&&A(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.model=c.r.get("upload:progress:".concat(O.AJ.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return j()}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:P.Z,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:C.l.VIDEO}]}},{key:"startSpinner",value:function(){o.Radio.channel(this.channelName).trigger(T.I3.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&o.Radio.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new T.Py({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-dark float-end ms-3",buttonText:s.T.getPhrase(this.lang,"finish"),spinnerOptions:{size:S.Ey.Small,type:S.dR.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":s.T.getPhrase(this.lang,"stillUploading")}}))}}])&&x(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA),R=n(88483),M=n(53825),F=n(51594),U=n(32035),B=n(95168),L=n(39155),K=(n(36124),n(34522),n(90680)),Q=n(75917),z=n(60602),J=n(75459),H=n(75226),q=n(22557),W=n(21893),$=n.n(W);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 X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Y(o.key),o)}}function Y(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}function Z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Z=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}var ne=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Z()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}(this,t,[e])}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&&te(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.prepareData(),this.bindListeners()}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=q.P.flatten(e),S.yV.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:s.T.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",function(t){o.Radio.channel(e.options.channelName).trigger("folder:selected",t)})}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return $()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!i.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+=" ";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var o=n||this.model;return!(!e||o.get("type")!==J.r.CustomLibrary)||!(!t||!i.contains(t,o.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new H.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||s.T.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||s.T.getPhrase(this.lang,"placeholder"),noOptionsText:s.T.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:d.k}))}}])&&X(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(u.Q.wA),oe=n(76370),ie=n.n(oe),re={requiredStar:"BykcP"};function ae(e){return ae="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},ae(e)}function le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,se(o.key),o)}}function se(e){var t=function(e){if("object"!=ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ae(t)?t:t+""}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ce=function(){return!!e})()}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}var pe=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ue(t),function(e,t){if(t&&("object"==ae(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,ce()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,[e])}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&&de(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){var e=this;this.librariesWithoutFolders=new K.q,this.collection.each(function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())}),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=S.PU.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return ie()}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof z.g&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;S.PU.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){o.Radio.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new ne({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:s.T.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:s.T.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new Q.Y({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId",dropdown:!0}))}}},{key:"viewOptions",value:function(){return{styles:re,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}}])&&le(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA),fe=n(11453),he=n.n(fe),ye=n(6723);function me(e){return me="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},me(e)}function ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ge(o.key),o)}}function ge(e){var t=function(e){if("object"!=me(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(be=function(){return!!e})()}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}var ke=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=we(t),function(e,t){if(t&&("object"==me(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,be()?Reflect.construct(t,n||[],we(e).constructor):t.apply(e,n))}(this,t,arguments)}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&&Se(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return he()}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&ye(t.get(0)).css("width","".concat(e,"%"))}}])&&ve(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),Oe=n(42633),Ce=n.n(Oe);function Pe(e){return Pe="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},Pe(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ne(o.key),o)}}function Ne(e){var t=function(e){if("object"!=Pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pe(t)?t:t+""}function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(je=function(){return!!e})()}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}var Ie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ee(t),function(e,t){if(t&&("object"==Pe(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,je()?Reflect.construct(t,n||[],Ee(e).constructor):t.apply(e,n))}(this,t,[e])}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&&xe(e,t)}(t,e),n=t,o=[{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Ce()}},{key:"lang",get:function(){return"upload.uploadVideoOptions"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"border-top pt-3"}},{key:"events",value:function(){return{"click .toggle-option":"onToggleAutoCaptioning"}}},{key:"onToggleAutoCaptioning",value:function(e){e.stopPropagation(),this.model.set("autoCaption",!this.model.get("autoCaption")),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("autoCaption")}}}],o&&Te(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),_e=n(61778),De=n.n(_e),Ae=n(47381),Ve=n.n(Ae),Re=n(63105),Me=n.n(Re),Fe={title:"melld"},Ue=n(6723);function Be(e){return Be="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},Be(e)}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ze(o.key),o)}}function Qe(e,t,n){return t&&Ke(e.prototype,t),n&&Ke(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}function Je(e,t,n){return t=qe(t),function(e,t){if(t&&("object"==Be(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,He()?Reflect.construct(t,n||[],qe(e).constructor):t.apply(e,n))}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(He=function(){return!!e})()}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}function We(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&&$e(e,t)}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}var Ge=function(e){function t(){return Le(this,t),Je(this,t,arguments)}return We(t,e),Qe(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return Ve()}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(Fe.title)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}}])}(u.Q.wA),Xe=function(e){function t(){return Le(this,t),Je(this,t,arguments)}return We(t,e),Qe(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return De()}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-secondary"}},{key:"tagName",get:function(){return"p"}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}}])}(u.Q.wA),Ye=function(e){function t(e){return Le(this,t),Je(this,t,[e])}return We(t,e),Qe(t,[{key:"initialize",value:function(){this.viewModel=c.r.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:new Date,autoCaption:!1},{ctor:g.n}),this.viewModel.addValidation(L.I),this.listenTo(this.channelName,"select:rating",i.default.partial(this.onAssociationSelected,i.default,"rating")),this.listenTo(this.channelName,"select:channel",i.default.partial(this.onAssociationSelected,i.default,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return Me()}},{key:"className",get:function(){return"bg-white mb-3 rounded"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0},uploadOptions:{el:".video-options-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:s.T.getPhrase(this.lang,"cancelHeading"),text:s.T.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:s.T.getPhrase(this.lang,"yes"),className:"btn btn-dark",success:!0},{text:s.T.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new S.Mr(t).render().done(function(){o.Radio.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))})}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof u.Q.FE){var o=n.filter(function(t){return!t.id||t.name===e.name});i.default.each(o,function(e){return n.remove(e)}),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=o.Radio.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderBasicVideoDetails()}):e.name&&n.trigger("create:series",e.name,function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderBasicVideoDetails()})}},{key:"onSelectSeason",value:function(e){var t=this;if(i.default.isNull(e))return this.viewModel.get("season").clear({silent:!0}),S.yV.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderBasicVideoDetails();if(e.id)return S.yV.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderBasicVideoDetails();if(e.number){var n=this.viewModel.get("series.id");o.Radio.channel(this.options.uploadChannelName).trigger("create:season",e,n,function(e){t.viewModel.get("series.seasons").add(e.toJSON()),S.yV.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderBasicVideoDetails()})}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&o.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,function(e){t.onAssociationSelected(e.toJSON(),"distributors")})}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&o.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")})}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&o.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,function(e){t.onAssociationSelected(e.toJSON(),"directors")})}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&o.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,function(e){t.onAssociationSelected(e.toJSON(),"producers")})}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new Ge({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new M.Z({model:this.viewModel,thumbnailOptions:{size:R.h2.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new ke({model:this.model});this.showChildView("progress",e);var t=new Xe({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new U.J({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new pe({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){if(!this.options.hideBroadcastInfo){var e=new F.a({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e)}var t=new B.O({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("productionInfo",t),this.options.allowAutoCaptioning&&this.showChildView("uploadOptions",new Ie({model:this.viewModel}))}}},{key:"scrollTo",value:function(){Ue("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:Fe,showExpand:this.options.allowAutoCaptioning},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),o.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){o.Validation.unbind(this)}}])}(u.Q.wA);function Ze(e){return Ze="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},Ze(e)}function et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tt(o.key),o)}}function tt(e){var t=function(e){if("object"!=Ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ze(t)?t:t+""}function nt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nt=function(){return!!e})()}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}var rt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ot(t),function(e,t){if(t&&("object"==Ze(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,nt()?Reflect.construct(t,n||[],ot(e).constructor):t.apply(e,n))}(this,t,[e])}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&&it(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return Ye}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,allowAutoCaptioning:this.options.allowAutoCaptioning,hideBroadcastInfo:this.options.hideBroadcastInfo,openAdvancedMetadata:this.collection.length<=1}}}])&&et(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.$W),at=n(35250),lt=n.n(at);function st(e){return st="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},st(e)}function ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ut(o.key),o)}}function ut(e){var t=function(e){if("object"!=st(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=st(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==st(t)?t:t+""}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}var ht=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=pt(t),function(e,t){if(t&&("object"==st(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,dt()?Reflect.construct(t,n||[],pt(e).constructor):t.apply(e,n))}(this,t,[e])).completed=!1,n}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&&ft(e,t)}(t,e),n=t,(O=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return s.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return lt()}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"initServices",value:function(){this.videoDataService=l.u.getInstance(v.Or.Video,this),this.videoUploadService=l.u.getInstance(v.K9.VideoUpload,this),this.videoUploadDataService=l.u.getInstance(v.Or.VideoUpload,this),this.seriesDataService=l.u.getInstance(v.Or.Series,this),this.ratingsDataService=l.u.getInstance(v.Or.Ratings,this),this.companyDataService=l.u.getInstance(v.Or.Company,this),this.personDataService=l.u.getInstance(v.Or.Person,this),this.alertService=l.u.getInstance(v.K9.Alerts,this),this.navLockService=l.u.getInstance(v.K9.NavLock,this),this.settingsDataService=l.u.getInstance(v.Or.Settings,this)}},{key:"initDataListeners",value:function(){this.listenTo(v.Vk.RATINGS,"".concat(v.M_.RATINGS,":sync"),this.render),this.listenTo(v.Vk.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,f.S.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(r.G.SHELL,u.Q.Vy.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(this.navLockService.unlock(),u.Q.C$.trigger({application:v.OV.UPLOAD,action:v.eX.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=o.Radio.channel(this.channelName),i=this.videoUploadService.getCollection(),r=!0;if(i.each(function(t){var n=c.r.get("upload:".concat(t.get("id")),null,{ctor:g.n});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),r=r&&o}),e&&n.trigger("invalid:".concat(e)),r){n.trigger("start:spinner");var d=[];i.each(function(e){var n=e.get("file"),o=c.r.get("upload:".concat(e.get("id")),null,{ctor:g.n});if(h.S.hasExpired(o,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:s.T.getPhrase(t.lang,"uploadErrorHeading"),message:s.T.getPhrase(t.lang,"uploadErrorBody",{videoName:o.get("name")}),type:a.NK.Fail}),void i.remove(e);o.set("fileId",n.cvUpload.fileId),o.set("fileSize",n.size),d.push(o)}),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),d,function(){t.completed=!0,t.navLockService.unlock(),l.u.getInstance(v.K9.PendingItems).forceFetchPendingItems(),l.u.releaseInstance(v.K9.PendingItems),u.Q.C$.trigger({application:v.OV.UPLOAD,action:d.length?v.eX.Upload.UPLOAD_COMPLETE:v.eX.Upload.FILE_SELECTION}),t.logFinishAction(d),t.videoDataService.clearVideoCache()})}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,this.navLockService.unlock(),u.Q.C$.trigger({application:v.OV.UPLOAD,action:v.eX.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(o.Radio.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=d.k.mergeOptions(this.options.analyticsOptions,{workflowPhase:p.eu.Start,descriptor:d.k.mapInteractionType(t)});d.k.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=d.k.mergeOptions(this.options.analyticsOptions,{workflowPhase:p.eu.Discard,descriptor:e?p.yh.Single:p.yh.All});d.k.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=i.map(e,function(e){return e.toJSON()}),n=d.k.mergeOptions(this.options.analyticsOptions,{workflowPhase:p.eu.Complete});d.k.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.autoCaptioning=this.settingsDataService.getSetting(m.E.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new V({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new V({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,uploadChannelName:this.channelName,allowAutoCaptioning:this.autoCaptioning.get("value"),hideBroadcastInfo:this.currentUser.get("instanceRegion")===y.b.US};if(this.options.folderId){var t=S.PU.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new rt(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){this.completed||this.navLockService.lock({title:s.T.getPhrase(this.lang,"navLockHeading"),text:s.T.getPhrase(this.lang,"navLockBody")})}},{key:"requiredResources",get:function(){return{currentUser:w.K.currentUser,libraries:k.T.libraries,config:b.p.config}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.autoCaptioning}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}}])&&ct(n.prototype,O),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,O}(u.Q.G7)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return p}});var o=n(21161),i=n(31647),r=n(55142);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}function s(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=u(t),function(e,t){if(t&&("object"==a(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,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],i&&l(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},75226:function(e,t,n){"use strict";n.d(t,{H:function(){return v}});var o=n(43823),i=n(21161),r=n(31647),a=n(71641),l=n(93569),s=n(46635),c=n.n(s),u={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function d(e){return d="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},d(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){l.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(l.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(l.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=l.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=l.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(l.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=i.find(this.collection.models,function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())})),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=i.filter(this.collection.models,function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e});if(n.length>1){var o=n[this.sameCharIndex];return o||(o=i.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return i.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout(function(){e.selectSearch=""},500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!i.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=l.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:u,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.w({collection:this.collection,channelName:this.options.channelName,childOptions:i.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(u.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},75917:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var o=n(43823),i=n(57857),r=n(31647),a=n(50299),l=n(93569),s=n(68979),c=n.n(s),u={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function d(e){return d="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},d(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce(function(e,t){return Object.assign(Object.assign({},e),(n={},i=!0,(o=f(o=t))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));var n,o,i},{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=l.PU.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.T.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new a.J({styles:u,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:u.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:u,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},21893:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dropdown-menu-region"></div>'},useData:!0})},42494:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return e.propertyIsEnumerable,'<div class="finish-button-region"></div>\n<button class="btn btn-outline-dark float-end add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},76370:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.requiredStar:r,t))+'">*</span>'},3:function(e,t,n,o,i){return' <div class="library-select-region form-group col-6"></div>\n'},5:function(e,t,n,o,i){return"col-6"},7:function(e,t,n,o,i){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:i}))+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.requiredFields:r)?r.uploadDestination:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</h5>\n <div class="container-fluid px-0">\n <div class="row">\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="folder-select-region form-group '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+'"></div>\n </div>\n </div>\n</div>'},useData:!0})},11453:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s="function",c=e.escapeExpression;return'<div class="progress-bar bg-blue" style="width: '+c(typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)===s?r.call(a,{name:"progress",hash:{},data:i}):r)+'%" aria-valuenow="'+c(typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)===s?r.call(a,{name:"progress",hash:{},data:i}):r)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},42633:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n<div class="container-fluid">\n <div class="row">\n <div class="form-group col-6 p-0">\n <div class="d-block">\n <label>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningHeading",{name:"lang",hash:{},data:i}))+'</label>\n <div class="custom-toggle toggle-option float-end'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.isSelected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"><span class="handle"></span></div>\n </div>\n <p class=\'mb-0 me-5\'>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningInfo",{name:"lang",hash:{},data:i}))+"</p>\n </div>\n </div>\n</div>\n \n"},useData:!0})},61778:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(r=null!=t?t.options:t)?r.percentage:r},data:i}))},useData:!0})},47381:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))},useData:!0})},63105:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="p-2 text-center border-top">\n <button class="add-advanced-metadata btn btn-link">'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.showAdvanced:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+"</a>\n</div>\n"},2:function(e,t,n,o,i){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:i}))},4:function(e,t,n,o,i){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\n<div class="container-fluid">\n <div class="row">\n <div class="col-4 p-3">\n <div class="thumbnail-region"></div>\n <div class="upload-progress-region"></div>\n <div class="my-3">\n <h5 class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.title:r,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:i}):a)+'</h5>\n <div class="text-progress-region"></div>\n <button class="btn btn-outline-dark cancel-upload">'+l((n.lang||t&&t.lang||c).call(s,"cancel",{name:"lang",hash:{},data:i}))+'</button>\n </div>\n\n </div>\n <div class="col-8 py-3 pe-3">\n <div class="video-details-region"></div>\n <div class="folder-select-region"></div>\n <div class="additional-info-region"></div>\n <div class="production-info-region"></div>\n <div class="video-options-region"></div>\n </div>\n </div>\n</div>\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showExpand:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},35250:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="top-actions-region"></div>\n<div class="videos-region"></div>\n<div class="bottom-actions-region"></div>'},useData:!0})},46635:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \n name="'+l(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\n >\n '+l(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <button\n class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectBtn:r,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+l(a(null!=(r=null!=t?t.options:t)?r.name:r,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+l(a(null!=(r=null!=t?t.options:t)?r.buttonText:r,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selector:r,t))+'">\n'},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.maxHeight:r,t))},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.customItem:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:i}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.dropdown:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.dropdown:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))+'>\n <div class="selector-region"></div>\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.canCreateNew:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7366],{47366:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return T}});var o=t(21161),r=t(21679),l=t(57857),i=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(18222),d=t(25692),f=t(57769),h=t(75432),g=t(98985),y=t(45390),m=t(48404),b=t(22103),v=t.n(b),k={uploadImage:"yRGoO"};function w(e){return w="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},w(e)}function U(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function S(e){var n=function(e){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=w(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(n)?n:n+""}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function E(e,n){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},E(e,n)}var T=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=_(n),function(e,n){if(n&&("object"==w(n)||"function"==typeof n))return n;if(void 0!==n)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,O()?Reflect.construct(n,t||[],_(e).constructor):n.apply(e,t))}(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&E(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.listenTo(this.channelName,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(y.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:f.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:p.l.VIDEO}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:m.p.config,currentUser:h.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:k,uploadArticleUrl:g.o.getHybridArticle(d.s.UploadToLibraryEditor,d.b.UploadToLibraryEditor),uploadTermsUrl:this.config?i._.safeUrlConcat(this.config.get("marketingSiteUrl"),y.l.UploadingUserContent):"",classNames:"info-link",imageUrl:y.Wn.Upload.UPLOAD_VIDEO}}}])&&U(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},22103:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var l,i=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(i,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\n <div class="my-3">\n <img src="'+c(u(null!=(l=null!=n?n.options:n)?l.imageUrl:l,n))+'" class="'+c(u(null!=(l=null!=(l=null!=n?n.options:n)?l.styles:l)?l.uploadImage:l,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(i,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(i,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"help",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(u(null!=(l=null!=n?n.options:n)?l.uploadArticleUrl:l,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(i,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(i,"term1",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(i,"term2",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+(null!=(l=(t.lang||n&&n.lang||a).call(i,"term3",{name:"lang",hash:{classNames:null!=(l=null!=n?n.options:n)?l.classNames:l,uploadTermsUrl:null!=(l=null!=n?n.options:n)?l.uploadTermsUrl:l},data:r}))?l:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
|