@clickview/library-editor 1.49.1-rc.2 → 1.50.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/package.json +1 -6
- package/dist/bundles.json +0 -5
- package/dist/css/101-library-editor-ea0aa41f12.chunk.css +0 -2
- package/dist/css/1086-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/112-library-editor-f77f4c1797.chunk.css +0 -16
- package/dist/css/1409-library-editor-bc215e1152.chunk.css +0 -1
- package/dist/css/152-library-editor-01b4461ff1.chunk.css +0 -10
- package/dist/css/1601-library-editor-4a6aafa66a.chunk.css +0 -4
- package/dist/css/1703-library-editor-3334df179f.chunk.css +0 -6
- package/dist/css/1832-library-editor-e123877850.chunk.css +0 -1
- package/dist/css/1876-library-editor-3334df179f.chunk.css +0 -6
- package/dist/css/2417-library-editor-1c2828a69b.chunk.css +0 -7
- package/dist/css/243-library-editor-decee8d957.chunk.css +0 -2
- package/dist/css/2482-library-editor-6893a774e7.chunk.css +0 -20
- package/dist/css/2601-library-editor-8922d361d6.chunk.css +0 -14
- package/dist/css/2644-library-editor-cdc1c17774.chunk.css +0 -13
- package/dist/css/2692-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/3087-library-editor-7c76d2234e.chunk.css +0 -4
- package/dist/css/343-library-editor-a5b4b92fa3.chunk.css +0 -24
- package/dist/css/3551-library-editor-37e6a3ecdc.chunk.css +0 -24
- package/dist/css/3746-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/376-library-editor-6d718e6fc5.chunk.css +0 -8
- package/dist/css/3969-library-editor-30997910e2.chunk.css +0 -2
- package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +0 -2
- package/dist/css/456-library-editor-a92bd26671.chunk.css +0 -17
- package/dist/css/4860-library-editor-f5eddb2400.chunk.css +0 -1
- package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +0 -15
- package/dist/css/514-library-editor-4cb4f22674.chunk.css +0 -1
- package/dist/css/5314-library-editor-2013dd2fec.chunk.css +0 -11
- package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +0 -5
- package/dist/css/5524-library-editor-de77327cdc.chunk.css +0 -11
- package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +0 -1
- package/dist/css/5891-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/6093-library-editor-446ee2e049.chunk.css +0 -1
- package/dist/css/61-library-editor-46bcd7b5f8.chunk.css +0 -48
- package/dist/css/6352-library-editor-c99ed407da.chunk.css +0 -19
- package/dist/css/6732-library-editor-6233ce01e9.chunk.css +0 -6
- package/dist/css/6963-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/7053-library-editor-cbe896c46a.chunk.css +0 -1
- package/dist/css/708-library-editor-ce48b52d72.chunk.css +0 -7
- package/dist/css/7295-library-editor-a539c72655.chunk.css +0 -9
- package/dist/css/7349-library-editor-7150116d84.chunk.css +0 -82
- package/dist/css/7408-library-editor-2a67dae087.chunk.css +0 -4
- package/dist/css/8762-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/8906-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/9369-library-editor-126f3beb94.chunk.css +0 -16
- package/dist/css/9383-library-editor-a65f7ef186.chunk.css +0 -16
- package/dist/css/9695-library-editor-c5004a1fec.chunk.css +0 -1
- package/dist/css/9927-library-editor-a11669ad9d.chunk.css +0 -1
- package/dist/css/library-editor-app-fdf847d1b4.css +0 -62
- package/dist/languages/en.json +0 -1
- package/dist/scripts/101-cd0245d087.chunk.js +0 -1
- package/dist/scripts/1010-60f6dfd832.chunk.js +0 -1
- package/dist/scripts/1086-2682e6d3f7.chunk.js +0 -1
- package/dist/scripts/112-24c19e2cde.chunk.js +0 -1
- package/dist/scripts/1216-f3e3f911fa.chunk.js +0 -1
- package/dist/scripts/1224-3ad7211630.chunk.js +0 -1
- package/dist/scripts/1269-a34a1de36d.chunk.js +0 -1
- package/dist/scripts/1409-93a72ff5bf.chunk.js +0 -1
- package/dist/scripts/1479-9cdc81c093.chunk.js +0 -1
- package/dist/scripts/152-2a8a32c9e8.chunk.js +0 -2
- package/dist/scripts/152-2a8a32c9e8.chunk.js.LICENSE.txt +0 -50
- package/dist/scripts/1601-cfa68d5d16.chunk.js +0 -2
- package/dist/scripts/1601-cfa68d5d16.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/1703-0ee4d1051b.chunk.js +0 -1
- package/dist/scripts/1832-23fead57c5.chunk.js +0 -1
- package/dist/scripts/1876-a98a0d0a0b.chunk.js +0 -1
- package/dist/scripts/1934-cf53d84778.chunk.js +0 -2
- package/dist/scripts/1934-cf53d84778.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/2417-d1a2c3b7e1.chunk.js +0 -1
- package/dist/scripts/243-2012c53e96.chunk.js +0 -1
- package/dist/scripts/2482-955e4b3615.chunk.js +0 -1
- package/dist/scripts/259-7d1d480f6e.chunk.js +0 -1
- package/dist/scripts/2601-bd6f95da25.chunk.js +0 -1
- package/dist/scripts/2644-4188284c06.chunk.js +0 -1
- package/dist/scripts/2648-10e901bc4c.chunk.js +0 -1
- package/dist/scripts/2692-438539ccbe.chunk.js +0 -1
- package/dist/scripts/2802-31b24a8131.chunk.js +0 -2
- package/dist/scripts/2802-31b24a8131.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/2803-3cee0dd7a5.chunk.js +0 -1
- package/dist/scripts/2888-55edc16fd6.chunk.js +0 -1
- package/dist/scripts/299-eeaac48864.chunk.js +0 -1
- package/dist/scripts/2998-24191bc8ab.chunk.js +0 -1
- package/dist/scripts/3087-12081a5e15.chunk.js +0 -1
- package/dist/scripts/3400-95d7a3a0d6.chunk.js +0 -1
- package/dist/scripts/343-4e17813e7a.chunk.js +0 -1
- package/dist/scripts/35-7bfbab50e6.chunk.js +0 -1
- package/dist/scripts/3551-5513258594.chunk.js +0 -1
- package/dist/scripts/3639-02abbd0b71.chunk.js +0 -1
- package/dist/scripts/3746-fab7340300.chunk.js +0 -1
- package/dist/scripts/376-98c734f74f.chunk.js +0 -1
- package/dist/scripts/3763-c5de5a36a1.chunk.js +0 -1
- package/dist/scripts/3969-fe64f3d542.chunk.js +0 -1
- package/dist/scripts/4064-0862db0614.chunk.js +0 -1
- package/dist/scripts/4201-6311ac5cac.chunk.js +0 -1
- package/dist/scripts/4245-6e9e71cc7d.chunk.js +0 -1
- package/dist/scripts/4523-7a79c1890d.chunk.js +0 -1
- package/dist/scripts/456-f1d9ed6fe2.chunk.js +0 -1
- package/dist/scripts/4591-9e342f97bc.chunk.js +0 -1
- package/dist/scripts/4860-955b4bf901.chunk.js +0 -1
- package/dist/scripts/5046-19d7090284.chunk.js +0 -1
- package/dist/scripts/514-927a43219d.chunk.js +0 -1
- package/dist/scripts/5173-ae0218ce2b.chunk.js +0 -1
- package/dist/scripts/5286-293188ce69.chunk.js +0 -1
- package/dist/scripts/5314-2ef80448f2.chunk.js +0 -1
- package/dist/scripts/5412-95152820bb.chunk.js +0 -1
- package/dist/scripts/5418-f31f79952c.chunk.js +0 -1
- package/dist/scripts/5424-f53a7d8068.chunk.js +0 -1
- package/dist/scripts/546-9b17236feb.chunk.js +0 -1
- package/dist/scripts/5524-165e9fe50f.chunk.js +0 -1
- package/dist/scripts/5707-6ef0aaefcf.chunk.js +0 -1
- package/dist/scripts/5747-0ab2cc3678.chunk.js +0 -1
- package/dist/scripts/5850-a9edf39a77.chunk.js +0 -1
- package/dist/scripts/5891-f7bd1916f7.chunk.js +0 -1
- package/dist/scripts/6093-7e5c1af050.chunk.js +0 -1
- package/dist/scripts/61-7fe458e801.chunk.js +0 -2
- package/dist/scripts/61-7fe458e801.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6352-aaaf02499b.chunk.js +0 -1
- package/dist/scripts/6427-eb4344120b.chunk.js +0 -1
- package/dist/scripts/6532-ffb2f40362.chunk.js +0 -2
- package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +0 -13
- package/dist/scripts/6721-f62b08a446.chunk.js +0 -1
- package/dist/scripts/6732-5bf9ec4e56.chunk.js +0 -1
- package/dist/scripts/6774-3cad51b5b7.chunk.js +0 -1
- package/dist/scripts/6788-6e4efcfd00.chunk.js +0 -1
- package/dist/scripts/6963-898cb28e8d.chunk.js +0 -1
- package/dist/scripts/7002-3686f9dcfb.chunk.js +0 -1
- package/dist/scripts/7053-38535c04ca.chunk.js +0 -1
- package/dist/scripts/7071-5a543a7eec.chunk.js +0 -1
- package/dist/scripts/708-9aa6428a97.chunk.js +0 -1
- package/dist/scripts/7190-d26b5ef34d.chunk.js +0 -1
- package/dist/scripts/7295-594d2f2def.chunk.js +0 -1
- package/dist/scripts/7349-49635047ab.chunk.js +0 -2
- package/dist/scripts/7349-49635047ab.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7376-baac126511.chunk.js +0 -1
- package/dist/scripts/7408-209544dca5.chunk.js +0 -1
- package/dist/scripts/8113-879f7b221a.chunk.js +0 -1
- package/dist/scripts/8362-e82bef3e07.chunk.js +0 -1
- package/dist/scripts/8542-776c339eeb.chunk.js +0 -1
- package/dist/scripts/8726-edded1064e.chunk.js +0 -1
- package/dist/scripts/8727-2e314f9301.chunk.js +0 -1
- package/dist/scripts/8762-4ee15995c8.chunk.js +0 -1
- package/dist/scripts/8906-3bde92a78d.chunk.js +0 -1
- package/dist/scripts/9357-c5c5984ec8.chunk.js +0 -1
- package/dist/scripts/9369-ef153a7fd3.chunk.js +0 -2
- package/dist/scripts/9369-ef153a7fd3.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/9383-b01e8ae3c8.chunk.js +0 -1
- package/dist/scripts/9695-a04e508364.chunk.js +0 -1
- package/dist/scripts/9927-a667775ac4.chunk.js +0 -1
- package/dist/scripts/bundle-403cac2263.min.js +0 -2
- package/dist/scripts/bundle-403cac2263.min.js.LICENSE.txt +0 -1
- package/dist/scripts/polyfills-a15c0386f5.min.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9369-ef153a7fd3.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9369],{54096:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(1024),a=n(21679);function i(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},38182:function(e,t,n){n.d(t,{q:function(){return s}});var r=n(1024),a=n.n(r),i=n(68003),o=n(88483),c=n(87013),l={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,n,r=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?c.j.createUrl(i._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:o.h2.Small}):"");return a().createElement("div",{className:"position-relative h-100 w-100"},a().createElement("div",{className:"".concat(l.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(r,"')")}}," "),e.showDot&&a().createElement("div",{className:"".concat(l.dot," rounded-circle bg-danger")}))}},90547:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(r||(r={}))},34254:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(92159),a=n(21186),i=n(54096);function o(){var e=(0,i.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})}}}},32557:function(e,t,n){n.d(t,{X:function(){return h},L:function(){return g}});var r=n(1024),a=n.n(r),i=n(53808),o=n(85887),c=function(){var e=a().useRef(!0);return a().useEffect((function(){return function(){e.current=!1}}),[]),e};function l(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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(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 s(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 u=275,m=5,d={className:"",delay:0,style:null},p={screenX:0,screenY:0};function f(e,t){var n;e.current&&(t.className&&(null===(n=e.current.classList)||void 0===n||n.add(t.className)),t.style&&Object.keys(t.style).forEach((function(n){e.current.style[n]=t.style[n]})))}function v(e,t){var n;e.current&&(t.className&&(null===(n=e.current.classList)||void 0===n||n.remove(t.className)),t.style&&Object.keys(t.style).forEach((function(t){e.current.style[t]=null})))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=c(),n=l(r.useState(e),2),a=n[0],s=n[1],u=l(r.useState(!1),2),m=u[0],p=u[1],h=r.useRef(null);r.useEffect((function(){o.t.isEqual(e,a)||s(e)}),[e]);var g=i.q.throttle((function(){f(h,a),t.current&&p(!0)}),a.delay,{leading:!1}),b=function(){i.q.isFunction(g.cancel)&&g.cancel(),v(h,a),t.current&&p(!1)};return r.useLayoutEffect((function(){var e=h.current;if(e)return e.addEventListener("mouseenter",g),e.addEventListener("mouseleave",b),function(){e.removeEventListener("mouseenter",g),e.removeEventListener("mouseleave",b)}}),[h.current,a]),[h,m]}function g(e){var t=l(r.useState(e),2),n=t[0],a=t[1],c=r.useRef(Object.assign({},p)),s=r.useRef(!1),d=r.useRef(0),h=r.useRef(null),g=l(r.useState(!1),2),b=g[0],y=g[1];function E(){d.current&&(window.clearTimeout(d.current),d.current=0)}function S(){s.current=!0}function w(e){if(s.current){var t,r,a=Object.assign({},c.current);c.current.screenX=e.screenX,c.current.screenY=e.screenY,function(e,t){return Math.abs(e.screenX-t.screenX)>m||Math.abs(e.screenY-t.screenY)>m}(a,e)&&E(),t=function(){f(h,n),y(!0)},r=n.delay||u,d.current||(d.current=window.setTimeout(t,r))}}function O(){E(),v(h,n),s.current=!1,y(!1)}return r.useEffect((function(){o.t.isEqual(e,n)||a(e)}),[e]),r.useLayoutEffect((function(){if(h.current){var e=i.q.throttle(w,25,{leading:!1});return h.current.addEventListener("mouseenter",S),h.current.addEventListener("mousemove",e),h.current.addEventListener("mouseleave",O),function(){h.current&&(h.current.removeEventListener("mouseenter",S),h.current.removeEventListener("mousemove",e),h.current.removeEventListener("mouseleave",O))}}}),[h.current,n]),[h,b]}},38e3:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(74421),a={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return a.isType(e,r.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},34165:function(e,t,n){n.r(t),n.d(t,{GiveFeedbackView:function(){return Dt}});var r,a=n(1024),i=n.n(a),o=n(48088),c=n(53301),l=n.n(c),s=n(52765),u=n(57857),m=n(3026),d=n(54096),p=n(86120),f=n(52076),v=n(70065),h=n(81937),g=n(18222),b=n(71575),y=n(66703),E=n(69184),S=n(11543);!function(e){e[e.Other=0]="Other",e[e.SuggestImprovement=1]="SuggestImprovement",e[e.ReportBug=2]="ReportBug",e[e.RequestVideo=3]="RequestVideo",e[e.RaiseIssue=4]="RaiseIssue",e[e.GivePraise=5]="GivePraise",e[e.Footer=6]="Footer",e[e.RequestLivestream=7]="RequestLivestream"}(r||(r={}));var w=n(48050),O=n(84868),R=n(68003),T={presentationAudiences:function(e,t){var n=t||w.R.Subject.toLowerCase(),r={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:R._.urlBuilder("/api/domain/v1/subjects/audiences",r),publicUrl:R._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),r),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:R._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:w.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}},x=n(57867),I=n(62709),k=n(2248),L={submitFeedback:function(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:k.k.POST,data:Object.assign(Object.assign({},e),t)}}},U=n(95644),N={userProducts:function(e,t){return{url:"{gateway}/v1/users/me/products",key:"user:products",normalizeOptions:{namespace:"product"},success:e,error:t,bootstrapName:U.h.PRODUCTS}}},A=n(15408),j=n(2491);function F(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 P=n(6367),_=n(8371),C=n(46237);function V(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 q,G={getUserInfo:function(e,t){return{id:e.id,username:e.username,email:e.email,userType:e.role===C.i.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion,firstName:e.givenName,lastName:e.familyName}},mapInstanceRegionToTag:function(e){switch(e){case _.b.AU:return"au";case _.b.NZ:return"nz";case _.b.UK:return"uk";case _.b.US:return"us"}},getTags:function(e,t,n,r){var a,i=[t].concat(function(e){if(Array.isArray(e))return V(e)}(a=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return V(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)?V(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i.push(n?"student":"staff"),e.role===C.i.Admin&&i.push("administrator");var o=G.mapInstanceRegionToTag(e.instanceRegion);return o&&i.push(o),i},categorizeFiles:function(e){return e.reduce((function(e,t){var n=t.get("fileInfo");return l().isValidFile(t.get("file"),g.l.VIDEO)?e.videoUrls.push(null==n?void 0:n.url):e.imageUrls.push(null==n?void 0:n.url),e}),{imageUrls:[],videoUrls:[]})}},M=n(58424),D=n(32557);!function(e){e.SUGGEST_IMPROVEMENT="suggestImprovement",e.REPORT_BUG="reportBug",e.REQUEST_VIDEO="requestVideo",e.REQUEST_LIVESTREAM="requestLivestream",e.GIVE_PRAISE="givePraise",e.RAISE_ISSUE="raiseIssue",e.OTHER="other"}(q||(q={}));var B=u.T.encloseNamespace("shared.feedbackFormTitles"),W=function(e){switch(e){case q.SUGGEST_IMPROVEMENT:case q.REPORT_BUG:case q.REQUEST_VIDEO:case q.REQUEST_LIVESTREAM:case q.GIVE_PRAISE:case q.RAISE_ISSUE:case q.OTHER:return B(e)}};function H(e){return H="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},H(e)}function z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z=z(z(z(z(z(z(z({mailSent:"https://img.clickviewapp.com/v2/images/2mZ7L9",mediaPreview:"https://img.clickviewapp.com/v2/images/ageRM0",lightBulb:"https://img.clickviewapp.com/v2/images/Oqg3JN",heartHands:"https://img.clickviewapp.com/v2/images/1ML8Oj",videoAlert:"https://img.clickviewapp.com/v2/images/dq2oMq"},q.REQUEST_VIDEO,{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"}),q.REQUEST_LIVESTREAM,{default:"https://img.clickviewapp.com/v2/images/G1YGdn",hover:"https://img.clickviewapp.com/v2/images/K6yPxz"}),q.SUGGEST_IMPROVEMENT,{default:"https://img.clickviewapp.com/v2/images/g7aR1l",hover:"https://img.clickviewapp.com/v2/images/zMR0Dk"}),q.RAISE_ISSUE,{default:"https://img.clickviewapp.com/v2/images/5boW78",hover:"https://img.clickviewapp.com/v2/images/m6yRKr"}),q.GIVE_PRAISE,{default:"https://img.clickviewapp.com/v2/images/nE1mdz",hover:"https://img.clickviewapp.com/v2/images/JjEnmR"}),q.REPORT_BUG,{default:"https://img.clickviewapp.com/v2/images/AOdYpo",hover:"https://img.clickviewapp.com/v2/images/yro9NM"}),q.OTHER,{default:"https://img.clickviewapp.com/v2/images/Eoaykj",hover:"https://img.clickviewapp.com/v2/images/wN59Zg"}),X={image:"_2jo0"};function Q(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 Y(e){var t,n,r=(t=(0,D.X)(),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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Q(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)?Q(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.")}()),a=r[0],o=r[1],c=Z[e.option];return i().createElement(M.L,{ref:a,className:"col-lg-4 col-sm-6 col-12",onClick:function(){return e.onSelectOption(e.option)}},i().createElement("div",{className:"d-flex flex-column align-items-center h-100 rounded border py-3 gap-2"},i().createElement("img",{className:X.image,src:o?c.hover:c.default,alt:W(e.option)}),i().createElement("p",{className:"fw-semibold text-center mb-0"},W(e.option))))}function K(e){return i().createElement("div",{className:"row g-2"},e.options.map((function(t){return i().createElement(Y,{key:t,option:t,onSelectOption:e.onSelectOption})})))}var $=n(92802),J=n(86347),ee=n(83996),te=u.T.encloseNamespace("shared.feedbackButtons");function ne(e){var t=(0,J.b)();return i().createElement(ee.u,null,"form"===e.formStage&&i().createElement(i().Fragment,null,i().createElement(ee.u.Cancel,{onClick:function(){return e.setSelectedOption(null)},text:te("cancel")}),i().createElement(ee.u.Submit,{variant:"dark",text:e.submitText||te("submit"),disabled:!t.isValid})),"success"===e.formStage&&i().createElement(ee.u.Cancel,{variant:"dark",text:te("close"),onClick:e.closePopup}))}var re={successImage:"yp7vQ"},ae=u.T.encloseNamespace("shared.feedbackFormState");function ie(e){return"form"===e.formStage||"error"===e.formStage?i().createElement(i().Fragment,null):i().createElement("div",{className:"text-center"},i().createElement("div",{className:"mb-3"},i().createElement("img",{className:re.successImage,src:e.successImageUrl||Z.mailSent})),i().createElement("h4",{className:"mb-3"},e.successHeading||ae("successHeading")),i().createElement("p",{className:"mb-3"},e.successDescription||ae("successDescription")))}var oe=n(5173),ce=n(63038),le=u.T.encloseNamespace("shared.feedbackForm"),se=5e3,ue=function(e){switch(e){case"requiredError":return le(e);case"minCharactersError":return le(e,{limit:10});case"maxCharactersError":return le("maxCharactersError",{limit:se})}},me=function(){return oe.Z_().min(10,ue("minCharactersError")).max(se,ue("maxCharactersError"))},de=u.T.encloseNamespace("shared.feedbackGivePraise"),pe={praise:""},fe=oe.Ry().shape({praise:me().required(ue("requiredError"))}).noUnknown();function ve(){var e=(0,J.b)();return i().createElement(i().Fragment,null,i().createElement(ce.W,{as:"textarea",placeholder:de("givePraisePlaceholder"),label:de("givePraiseLabel"),name:"praise",rows:5,value:e.values.praise,showRequiredStar:!0}))}function he(e){return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},pe),e.initialValues),validationSchema:fe,successImageUrl:Z.heartHands,successHeading:de("successHeading"),successDescription:de("successDescription")}),i().createElement(ve,null))}var ge=u.T.encloseNamespace("shared.feedbackOther"),be={feedback:""},ye=oe.Ry().shape({feedback:me().required(ue("requiredError"))}).noUnknown();function Ee(){var e=(0,J.b)();return i().createElement(i().Fragment,null,i().createElement(ce.W,{as:"textarea",placeholder:ge("otherPlaceholder"),label:ge("otherLabel"),name:"feedback",rows:5,value:e.values.feedback,showRequiredStar:!0}))}function Se(e){return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},be),e.initialValues),validationSchema:ye}),i().createElement(Ee,null))}var we=u.T.encloseNamespace("shared.feedbackRaiseIssue"),Oe={issue:""},Re=oe.Ry().shape({issue:me().required(ue("requiredError"))}).noUnknown();function Te(){var e=(0,J.b)();return i().createElement(i().Fragment,null,i().createElement(ce.W,{as:"textarea",placeholder:we("raiseIssuePlaceholder"),label:we("raiseIssueLabel"),name:"issue",rows:5,value:e.values.issue,showRequiredStar:!0}))}function xe(e){return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},Oe),e.initialValues),validationSchema:Re}),i().createElement(Te,null))}var Ie=n(39396);function ke(e){return ke="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},ke(e)}function Le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=Le(Le(Le(Le({},_.b.AU,{phone:"02 9509 2600",email:"support@clickview.com.au",website:"https://www.clickviewsupport.com/hc"}),_.b.UK,{phone:"+44 (0)333 207 6595",email:"info@clickview.co.uk",website:"https://www.clickviewsupport.com/hc"}),_.b.NZ,{phone:"09 916 1156",email:"support@clickview.co.nz",website:"https://www.clickviewsupport.com/hc"}),_.b.US,{phone:"+1 312-292-9322",email:"info@clickvieweducation.com",website:"https://www.clickviewsupport.com/hc"}),Ne=n(63791),Ae=n(24064);function je(e){return i().createElement("span",{id:"".concat(e.name,"Error"),className:"".concat(e.className," invalid-feedback d-block"),role:"status"},e.children)}var Fe=n(76013),Pe={fileDrop:"vdCUc",resourcePreview:"tZQbH"};function _e(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 Ce="shared.feedbackFileUpload";function Ve(e){var t=(0,Ae.uI)({onDrop:function(t){return e.onFilesAdded(t,Fe.s.DragDrop)},noClick:!0,noKeyboard:!0,multiple:!!e.acceptMultiple,noDragEventsBubbling:!0}),n=t.getRootProps,r=t.getInputProps,i=t.isDragActive,o=a.useRef(null),c=a.useCallback((function(e){e&&(o.current=e)}),[]),l="".concat(Pe.fileDrop," text-center p-2 rounded-1");return e.uploadError&&(l+=" border-red"),i&&(l+=" border-blue bg-light-blue"),a.createElement(a.Fragment,null,a.createElement("div",Object.assign({},n({className:l})),a.createElement("img",{className:Pe.resourcePreview,src:e.imageUrl,draggable:!1}),a.createElement("div",{className:"position-relative"},i&&a.createElement("p",{className:"position-absolute font-size-md translate-middle top-50 start-50 mb-0"},a.createElement(y.x,{namespace:Ce,phrase:"dropUpload"})),a.createElement("div",{className:i?"opacity-0":""},a.createElement("p",{className:"mb-0"},a.createElement(y.x,{namespace:Ce,phrase:"dragDrop"})),a.createElement("button",{type:"button",className:"btn btn-link text-underline p-0",onClick:function(){o.current.value=null,o.current.click()}},a.createElement(y.x,{namespace:Ce,phrase:"upload"})))),a.createElement("input",{type:"file",name:"fileUpload",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:c,onChange:function(t){return e.onFilesAdded(function(e){if(Array.isArray(e))return _e(e)}(n=t.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return _e(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)?_e(e,t):void 0}}(n)||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.")}(),Fe.s.FileSelect);var n},"aria-errormessage":"fileUploadError"}),a.createElement("input",Object.assign({},r()))),e.uploadError&&a.createElement(je,{name:"fileUpload"},e.uploadError))}var qe={progress:"PeDF6"};function Ge(e){var t=100===e.upload.progress;return a.createElement(a.Fragment,null,a.createElement("div",null,a.createElement(Ie.x,{svgName:Ne.vn.Folder,className:"svg-container me-2"}),a.createElement("span",{className:"align-middle"},e.upload.name),t&&a.createElement(Ie.x,{svgName:Ne.vn.Check,className:"svg-container float-end text-success"}),!t&&a.createElement("div",{role:"button","aria-label":"close",onClick:function(){return e.cancelUpload(e.upload.id)},className:"float-end description"},a.createElement(Ie.x,{svgName:Ne.vn.Close}))),a.createElement("div",{className:"".concat(qe.progress," progress my-2")},a.createElement("div",{className:"progress-bar bg-blue",role:"progressbar",style:{width:"".concat(e.upload.progress,"%")},"aria-valuenow":e.upload.progress,"aria-valuemin":0,"aria-valuemax":100})))}function Me(e){var t;return(null===(t=e.uploads)||void 0===t?void 0:t.length)?a.createElement(a.Fragment,null,e.uploads.map((function(t,n){return a.createElement(Ge,{key:n,upload:t,cancelUpload:e.cancelUpload})}))):a.createElement(a.Fragment,null)}function De(e){return i().createElement("div",{className:"bg-gray-100 rounded p-2"},i().createElement(Ie.x,{className:"d-inline-block align-middle svg-container icon-purple me-2",svgName:Ne.vn.FileImg}),i().createElement("span",{className:"align-middle"},e.file.get("name")),i().createElement("button",{className:"btn p-0 border-0 float-end",onClick:function(){return e.deleteFile(e.file.get("id"))}},i().createElement(Ie.x,{svgName:Ne.vn.Delete})))}function Be(e){return i().createElement("div",{className:"d-flex flex-column gap-2"},e.uploadedFiles.map((function(t){return i().createElement(De,{key:t.id,file:t,deleteFile:e.deleteFile})})))}var We=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 a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},He="shared.feedbackReportBug",ze=u.T.encloseNamespace(He),Ze={issue:"",stepsToReproduce:""},Xe=oe.Ry().shape({issue:me().required(ue("requiredError")),stepsToReproduce:me()}).noUnknown();function Qe(e){var t=(0,J.b)();return i().createElement(i().Fragment,null,i().createElement("div",{className:"form-group"},i().createElement("label",{className:"form-label mb-1"},i().createElement(y.x,{namespace:He,phrase:"mixedMediaLabel"})),i().createElement("p",{className:"text-secondary font-size-sm"},i().createElement(y.x,{namespace:He,phrase:"mixedMediaDescription"})),i().createElement("div",{className:"mb-3"},i().createElement(Ve,{mimeType:g.l.MIXED_MEDIA,onFilesAdded:e.onFilesAdded,imageUrl:e.previewImageUrl,uploadError:e.uploadError,acceptMultiple:!0})),i().createElement(Me,{uploads:e.uploadingFiles,cancelUpload:e.cancelUpload}),i().createElement(Be,{uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile})),i().createElement(ce.W,{as:"textarea",placeholder:ze("issuePlaceholder"),label:ze("issueLabel"),name:"issue",value:t.values.issue,showRequiredStar:!0}),i().createElement(ce.W,{as:"textarea",placeholder:ze("stepsPlaceholder"),label:ze("stepsLabel"),name:"stepsToReproduce",value:t.values.stepsToReproduce}),i().createElement("div",{className:"rounded bg-light-yellow p-2 mb-3"},i().createElement("p",{className:"fw-semibold mb-2"},i().createElement(y.x,{namespace:He,phrase:"help"})),i().createElement("div",{className:"d-flex gap-1 mb-2"},i().createElement(Ie.x,{svgName:Ne.vn.Link}),i().createElement("a",{href:Ue[e.instanceRegion].website,target:"_blank",className:"text-underline"},i().createElement(y.x,{namespace:He,phrase:"visitHelpCentre"}))),i().createElement("p",{className:"mb-2"},i().createElement(y.x,{namespace:He,phrase:"supportTeam"})),i().createElement("div",{className:"d-flex gap-1 mb-2"},i().createElement(Ie.x,{svgName:Ne.vn.Phone}),i().createElement("span",null,Ue[e.instanceRegion].phone)),i().createElement("div",{className:"d-flex gap-1 mb-2"},i().createElement(Ie.x,{svgName:Ne.vn.Email}),i().createElement("span",null,Ue[e.instanceRegion].email))))}function Ye(e){var t=e.onFilesAdded,n=e.cancelUpload,r=e.uploadingFiles,a=e.uploadedFiles,o=e.deleteFile,c=We(e,["onFilesAdded","cancelUpload","uploadingFiles","uploadedFiles","deleteFile"]);return i().createElement(kt,Object.assign({},c,{initialValues:Object.assign(Object.assign({},Ze),e.initialValues),validationSchema:Xe,submitText:ze("submit")}),i().createElement(Qe,{onFilesAdded:t,previewImageUrl:Z.mediaPreview,cancelUpload:n,uploadingFiles:r,uploadedFiles:a,deleteFile:o,uploadError:e.uploadError,instanceRegion:e.instanceRegion}))}var Ke=n(40221),$e=n(39691),Je=n(71185),et=n(78523),tt="shared.feedbackRequestLivestream",nt=u.T.encloseNamespace(tt),rt={topic:"",studentLevel:[],producerCompany:"",additionalInfo:""},at=oe.Z_().max(se,ue("maxCharactersError")),it=oe.Ry().shape({producerCompany:at.required((function(){return nt("companyError")})),topic:at,studentLevel:oe.IX(oe.Z_()),additionalInfo:me()}).noUnknown();function ot(e){var t=(0,J.b)(),n=t.values.studentLevel.map((function(t){return e.audiences.find((function(e){return e.name===t}))}))||[];function r(e){t.setFieldValue("studentLevel",Ke.m.addOrRemoveImmutable(t.values.studentLevel,e.name)),requestAnimationFrame((function(){return t.setFieldTouched("studentLevel")}))}return i().createElement(i().Fragment,null,i().createElement(ce.W,{placeholder:nt("companyPlaceholder"),label:nt("companyLabel"),name:"producerCompany",value:t.values.producerCompany,showRequiredStar:!0}),i().createElement(ce.W,{placeholder:nt("topicPlaceholder"),label:nt("topicLabel"),name:"topic",value:t.values.topic}),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"form-label"},i().createElement(y.x,{namespace:tt,phrase:"audiencesLabel"})),i().createElement(Je.R,{id:"audiences",placeholder:nt("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:r,removeSelection:function(e){return r(e)},errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:function(e){return i().createElement($e.D,{key:e.name,selection:{name:e.name,masterId:e.masterId},colourVariant:"teal",onClickRemove:function(e){return r(e)},hideExpander:!0})},getSuggestionComponent:function(e){return(0,et.Go)("name",e)},onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:function(e,t){var r=t.find((function(t){return t.name===e}));return(0,et.Zo)(r?"":e,t,"name",0).filter((function(e){return!n.find((function(t){return t.name===e.name}))&&e.name!==(null==r?void 0:r.name)}))},focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:function(){return t.setFieldTouched("studentLevel")},className:"p-2 ".concat(t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":"")}),t.touched.studentLevel&&t.errors.studentLevel&&i().createElement(je,{name:"audiences"},t.errors.studentLevel)),i().createElement(ce.W,{as:"textarea",placeholder:nt("otherPlaceholder"),label:nt("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo}))}function ct(e){return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},rt),e.initialValues),validationSchema:it}),i().createElement(ot,{audiences:e.audiences}))}var lt={image:"SdHLR"};function st(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 ut="shared.feedbackBeforeRequesting",mt=u.T.encloseNamespace(ut);function dt(e){var t,n,r=(t=i().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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return st(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)?st(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.")}()),a=r[0],o=r[1];return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex flex-column align-items-center my-4"},i().createElement("img",{className:"".concat(lt.image," mb-3"),src:Z.videoAlert}),i().createElement("h4",{className:"mb-3"},i().createElement(y.x,{namespace:ut,phrase:"beforeRequesting"})),i().createElement("p",null,i().createElement(y.x,{namespace:ut,phrase:"haveYouSearched",options:{exchangeUrl:"".concat(e.exchangeTvUrl,"/exchange")}}))),i().createElement(ee.u,null,i().createElement(ee.u.Checkbox,{id:"confirmExchange",checked:a,onToggle:function(){return o(!a)},label:mt("exchangeCheck")}),i().createElement(ee.u.Cancel,{onClick:function(){return e.setSelectedOption(null)},text:mt("back")}),i().createElement(ee.u.Submit,{variant:"dark",text:mt("continue"),disabled:!a,onClick:function(){return e.setConfirmed(!0)}})))}function pt(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 ft,vt="shared.feedbackRequestVideo",ht=u.T.encloseNamespace(vt);!function(e){e.VideosTopic="videosTopic",e.VideoOrSeries="videoOrSeries"}(ft||(ft={}));var gt={videoRequestType:"",topic:"",studentLevel:[],videoTitle:"",seriesName:"",producerCompany:"",websiteOrTrailer:"",additionalInfo:""},bt=function(){return oe.Z_().max(se,ue("maxCharactersError"))},yt=oe.Ry().shape({videoRequestType:oe.Z_().required(ht("videoRequestTypeRequiredError")),topic:bt().when("videoRequestType",{is:function(e){return e===ft.VideosTopic},then:bt().required(ht("topicRequiredError")),otherwise:bt().notRequired()}),studentLevel:oe.IX(oe.Z_()),videoTitle:bt().when(["videoRequestType","seriesName"],{is:function(e,t){return e===ft.VideoOrSeries&&!t},then:bt().required(ht("videoRequiredError")),otherwise:bt().notRequired()}),seriesName:bt(),producerCompany:bt(),websiteOrTrailer:bt(),additionalInfo:me()}).noUnknown();function Et(e){var t=(0,J.b)(),n=t.values.studentLevel.map((function(t){var n;return null===(n=e.audiences)||void 0===n?void 0:n.find((function(e){return e.name===t}))}))||[];function r(e){t.setFieldValue("studentLevel",Ke.m.addOrRemoveImmutable(t.values.studentLevel,e.name)),requestAnimationFrame((function(){return t.setFieldTouched("studentLevel")}))}return i().createElement(i().Fragment,null,i().createElement(ce.W,{as:"select",label:ht("videoRequestTypeLabel"),name:"videoRequestType",value:t.values.videoRequestType},i().createElement("option",{value:"",disabled:!0,hidden:!0},ht("videoRequestTypePlaceholder")),i().createElement("option",{value:ft.VideosTopic},ht("videosTopicType")),i().createElement("option",{value:ft.VideoOrSeries},ht("videoOrSeriesType"))),t.values.videoRequestType===ft.VideosTopic&&i().createElement(i().Fragment,null,i().createElement(ce.W,{placeholder:ht("videoTopicPlaceholder"),label:ht("videoTopicLabel"),name:"topic",value:t.values.topic,showRequiredStar:!0}),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"form-label"},i().createElement(y.x,{namespace:vt,phrase:"audiencesLabel"})),i().createElement(Je.R,{id:"audiences",placeholder:ht("audiencesPlaceholder"),local:e.audiences,valueKey:"name",selections:n,onSuggestionSelected:r,removeSelection:function(e){return r(e)},errorStateImageUrl:null,emptyStateImageUrl:null,activationLength:0,suggestionLimit:!1,getInputTokenComponent:function(e){return i().createElement($e.D,{key:e.name,selection:{name:e.name,masterId:e.masterId},colourVariant:"teal",onClickRemove:function(e){return r(e)},hideExpander:!0})},getSuggestionComponent:function(e){return(0,et.Go)("name",e)},onSuggestionDependencies:[e.audiences,t.values.studentLevel,n],getLocalSuggestions:function(e,t){var r=t.find((function(t){return t.name===e}));return(0,et.Zo)(r?"":e,t,"name",0).filter((function(e){return!n.find((function(t){return t.name===e.name}))&&e.name!==(null==r?void 0:r.name)}))},focusInputOnSuggestionClick:!1,renderAsForm:!1,hideIcon:!0,onBlur:function(){return t.setFieldTouched("studentLevel")},className:"p-2 ".concat(t.touched.studentLevel&&t.errors.studentLevel?"is-invalid":"")}),t.touched.studentLevel&&t.errors.studentLevel&&i().createElement(je,{name:"audiences"},t.errors.studentLevel)),i().createElement(ce.W,{as:"textarea",placeholder:ht("otherPlaceholder"),label:ht("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})),t.values.videoRequestType===ft.VideoOrSeries&&i().createElement(i().Fragment,null,i().createElement(ce.W,{placeholder:ht("videoTitlePlaceholder"),label:ht("videoTitleLabel"),name:"videoTitle",value:t.values.videoTitle}),i().createElement(ce.W,{placeholder:ht("seriesPlaceholder"),label:ht("seriesLabel"),name:"seriesName",value:t.values.seriesName}),i().createElement(ce.W,{placeholder:ht("companyPlaceholder"),label:ht("companyLabel"),name:"producerCompany",value:t.values.producerCompany}),i().createElement(ce.W,{placeholder:ht("videoTopicPlaceholder"),label:ht("topicLabel"),name:"topic",value:t.values.topic}),i().createElement(ce.W,{placeholder:ht("websiteOrTrailerPlaceholder"),label:ht("websiteOrTrailerLabel"),name:"websiteOrTrailer",value:t.values.websiteOrTrailer}),i().createElement(ce.W,{as:"textarea",placeholder:ht("otherPlaceholder"),label:ht("otherLabel"),name:"additionalInfo",value:t.values.additionalInfo})))}function St(e){var t,n,r=(t=i().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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return pt(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)?pt(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.")}()),a=r[0],o=r[1],c=e.hasExchangeTvProduct&&!a;return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},gt),e.initialValues),validationSchema:yt,hideButtons:e.hasExchangeTvProduct&&!a}),c&&i().createElement(dt,{setConfirmed:o,setSelectedOption:e.setSelectedOption,exchangeTvUrl:e.exchangeTvUrl}),!c&&i().createElement(Et,{audiences:e.audiences}))}var wt="shared.feedbackSuggestImprovement",Ot=u.T.encloseNamespace(wt),Rt={suggestion:"",importance:""},Tt=oe.Ry().shape({suggestion:me().required(ue("requiredError")),importance:me()}).noUnknown();function xt(e){var t=(0,J.b)();return i().createElement(i().Fragment,null,i().createElement(ce.W,{as:"textarea",placeholder:Ot("suggestionPlaceholder"),label:Ot("suggestionLabel"),name:"suggestion",value:t.values.suggestion,showRequiredStar:!0}),i().createElement(ce.W,{as:"textarea",placeholder:Ot("whySuggestionPlaceholder"),label:Ot("whySuggestionLabel"),name:"importance",rows:5,value:t.values.importance}),i().createElement("p",null,i().createElement(y.x,{namespace:wt,phrase:"contactSupport"})," ",i().createElement("button",{className:"btn btn-link text-underline p-0",onClick:function(){return e.setSelectedOption(q.RAISE_ISSUE)}},i().createElement(y.x,{namespace:wt,phrase:"raiseIssue"}))))}function It(e){return i().createElement(kt,Object.assign({},e,{initialValues:Object.assign(Object.assign({},Rt),e.initialValues),validationSchema:Tt,successImageUrl:Z.lightBulb,successHeading:Ot("successHeading"),successDescription:Ot("successDescription")}),i().createElement(xt,{setSelectedOption:e.setSelectedOption}))}function kt(e){var t=i().useRef(null);return i().createElement(J.n,{onSubmit:e.onSubmit,initialValues:e.initialValues,validationSchema:e.validationSchema,validateOnMount:!0,innerRef:t},i().createElement($.l0,null,"form"===e.formStage&&e.children,i().createElement(ie,{formStage:e.formStage,successImageUrl:e.successImageUrl,successHeading:e.successHeading,successDescription:e.successDescription}),!e.hideButtons&&i().createElement(ne,{setSelectedOption:function(n){e.setFormState((function(e){var n;return Object.assign(Object.assign({},e),null===(n=t.current)||void 0===n?void 0:n.values)})),e.setSelectedOption(n)},submitText:e.submitText,formStage:e.formStage,closePopup:e.closePopup})))}function Lt(e){var t={formStage:e.formStage,initialValues:e.initialValues,setFormState:e.setFormState,onSubmit:e.onSubmit,setSelectedOption:e.setSelectedOption,closePopup:e.closePopup};switch(e.selectedOption){case q.SUGGEST_IMPROVEMENT:return i().createElement(It,Object.assign({},t));case q.REPORT_BUG:return i().createElement(Ye,Object.assign({},t,{onFilesAdded:e.onFilesAdded,cancelUpload:e.cancelUpload,uploadingFiles:e.uploadingFiles,uploadedFiles:e.uploadedFiles,deleteFile:e.deleteFile,uploadError:e.uploadError,instanceRegion:e.instanceRegion}));case q.REQUEST_VIDEO:return i().createElement(St,Object.assign({},t,{audiences:e.audiences,hasExchangeTvProduct:e.hasExchangeTvProduct,exchangeTvUrl:e.exchangeTvUrl}));case q.REQUEST_LIVESTREAM:return i().createElement(ct,Object.assign({},t,{audiences:e.audiences}));case q.RAISE_ISSUE:return i().createElement(xe,Object.assign({},t));case q.GIVE_PRAISE:return i().createElement(he,Object.assign({},t));case q.OTHER:return i().createElement(Se,Object.assign({},t))}}function Ut(e){return Ut="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},Ut(e)}function Nt(){Nt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),c=new U(r||[]);return a(o,"_invoke",{value:x(e,n,c)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",v="completed",h={};function g(){}function b(){}function y(){}var E={};s(E,o,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(N([])));w&&w!==n&&r.call(w,o)&&(E=w);var O=y.prototype=g.prototype=Object.create(E);function R(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(a,i,o,c){var l=m(e[a],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Ut(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(t,n,r){var a=d;return function(i,o){if(a===f)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:e,done:!0}}for(r.method=i,r.arg=o;;){var c=r.delegate;if(c){var l=I(c,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?v:p,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=v,r.method="throw",r.arg=s.arg)}}}function I(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=m(a,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ut(t)+" is not iterable")}return b.prototype=y,a(O,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},R(T.prototype),s(T.prototype,c,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new T(u(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},R(O),s(O,l,"Generator"),s(O,o,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,U.prototype={constructor:U,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;L(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function At(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ft(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 jt(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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||Ft(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 Ft(e,t){if(e){if("string"==typeof e)return Pt(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)?Pt(e,t):void 0}}function Pt(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 _t=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}l((r=r.apply(e,t||[])).next())}))},Ct="shared.giveFeedback",Vt=u.T.encloseNamespace(Ct),qt=5,Gt=60,Mt=1e6;function Dt(e){var t,n,a=(0,j.Z)(),c=(0,m.useGetFetchAsync)(),u=p.a.useBasicFetch(A.N.currentUser()),R=p.a.useBasicFetch(u.data&&I.h.customer(u.data.customerId)),k=p.a.useBasicFetch(u.data&&A.N.user(u.data.id)),U=jt(i().useState(null),2),_=U[0],C=U[1],V=jt(i().useState("form"),2),M=V[0],D=V[1],B=jt(i().useState(null),2),H=B[0],z=B[1],Z=(0,d.G)(S.D.MixedMediaUpload),X=function(e,t){var n,r,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=(r=i().useState(!1),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(r,a)||function(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return i().useEffect((function(){var n=e();if(n)return n.off("add remove change"),n.on("add remove change",(function(){c((function(e){return!e}))})),t&&n.on("remove",t),function(){n.off("add remove change")}}),o),null===(n=e())||void 0===n?void 0:n.toJSON()}((function(){return Z.getCollection()}),null),Q=i().useRef(),Y=i().useRef(0),$=i().useRef([]),J=jt(i().useState([]),2),ee=J[0],te=J[1],ne=jt(i().useState(""),2),re=ne[0],ae=ne[1],ie=e.product===O.x.StreamableLearning?w.R.StreamableLearning:w.R.Subject,oe=p.a.useBasicFetch(x.x.presentation(ie)),ce=p.a.useBasicFetch(T.presentationAudiences(null,ie)),le=null===(t=p.a.useBasicFetch(N.userProducts()).data)||void 0===t?void 0:t.find((function(e){return e.id===O.x.Exchange}));function se(e){C(e),e&&f.k.logUserAction({type:e},{actionType:v.Vw.Click,entity:v.py.Feedback,location:v.LZ.GiveFeedbackPopup,workflowPhase:v.eu.Start})}function ue(e){switch(e){case q.SUGGEST_IMPROVEMENT:return r.SuggestImprovement;case q.REPORT_BUG:return r.ReportBug;case q.REQUEST_VIDEO:return r.RequestVideo;case q.REQUEST_LIVESTREAM:return r.RequestLivestream;case q.GIVE_PRAISE:return r.GivePraise;case q.RAISE_ISSUE:return r.RaiseIssue;case q.OTHER:return r.Other}}return(0,P.L)(o.Radio.channel(E.Q4.MIXED_MEDIA_UPLOAD),h.S.UPLOAD_COMPLETE,(function(e){var t=e.toJSON();if($.current.push(t),Y.current--,!(Y.current>0)){var n=$.current.length;$.current.forEach((function(e){setTimeout((function(){n--;var t=Z.getCollection().filter((function(t){var n;return(null===(n=t.get("fileInfo"))||void 0===n?void 0:n.id)===e.fileInfo.id}));Z.getCollection().remove(t),te((function(e){return[].concat(At(e),At(t))})),n>0||(f.k.logUserAction({fileInfo:e.fileInfo},{location:v.LZ.GiveFeedbackPopup,actionType:v.Vw.Upload,entity:v.py.MixedMedia,descriptor:f.k.mapInteractionType(Q.current)}),a.success(Vt("mixedMediaUploadSuccess")))}))})),$.current=[]}})),i().createElement(b.G,{size:"lg",title:_?W(_):Vt("title"),closePopup:e.closePopup,backdrop:"static"},!_&&i().createElement("p",null,i().createElement(y.x,{namespace:Ct,phrase:"description"})),!_&&i().createElement(K,{onSelectOption:se,options:[q.SUGGEST_IMPROVEMENT,q.REPORT_BUG,e.product===O.x.StreamableLearning?q.REQUEST_LIVESTREAM:q.REQUEST_VIDEO,q.GIVE_PRAISE,q.RAISE_ISSUE,q.OTHER]}),_&&i().createElement(Lt,{selectedOption:_,formStage:M,onSubmit:function(t,n){var r,i,o,l,m,d;return _t(this,void 0,void 0,Nt().mark((function p(){var h,g;return Nt().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return h={type:ue(_),user:G.getUserInfo(u.data,R.data),tags:G.getTags(u.data,e.product,!1,["give feedback",W(_).toLowerCase(),null===(i=null===(r=oe.data)||void 0===r?void 0:r.description)||void 0===i?void 0:i.toLowerCase().trim(),null===(d=null===(m=null===(l=null===(o=k.data)||void 0===o?void 0:o.userProfile)||void 0===l?void 0:l.metadata)||void 0===m?void 0:m.jobTitle)||void 0===d?void 0:d.toLowerCase()].filter(Boolean))},g=Object.assign(Object.assign({},t),{currentPageUrl:s.Ab.GetCurrentUrl()}),_===q.REPORT_BUG&&ee.length&&(g=Object.assign(Object.assign({},g),G.categorizeFiles(ee))),p.prev=3,p.next=6,c(L.submitFeedback(h,g));case 6:f.k.logUserAction(Object.assign(Object.assign({},h),g),{actionType:v.Vw.Submit,entity:v.py.Feedback,location:v.LZ.GiveFeedbackPopup,workflowPhase:v.eu.Complete}),D("success"),p.next=13;break;case 10:p.prev=10,p.t0=p.catch(3),a.error(Vt("error"));case 13:return p.prev=13,n(),p.finish(13);case 16:case"end":return p.stop()}}),p,null,[[3,10,13,16]])})))},setSelectedOption:se,closePopup:e.closePopup,onFilesAdded:function(e,t){e.some((function(e){return e.size>Gt*Mt}))?ae(Vt("maxFileSizeUploadError",{limit:Gt})):e.length>qt-X.length?ae(Vt("maxFilesUploadError",{limit:qt})):e.some((function(e){return!l().isValidFile(e,g.l.MIXED_MEDIA)}))?ae(Vt("invalidTypeUploadError")):(ae(""),Y.current+=e.length,t&&(Q.current=t),Z.addFiles(e))},uploadingFiles:X,uploadedFiles:ee,deleteFile:function(e){te((function(t){return t.filter((function(t){return t.id!==e}))}))},cancelUpload:function(e){return Z.cancelUpload(e)},audiences:ce.data,uploadError:re,initialValues:H,setFormState:z,instanceRegion:null===(n=u.data)||void 0===n?void 0:n.instanceRegion,hasExchangeTvProduct:!!le,exchangeTvUrl:null==le?void 0:le.url}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9383],{80732:function(e,t,n){"use strict";n.r(t),n.d(t,{UploadVideosView:function(){return bt}});var o=n(48088),i=n(39479),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(57098),g=n(64404),b=n(48404),w=n(19226),S=n(93569),k=n(95061),O=n(56252),C=n(57769),P=n(88172),T=n(42494),N=n.n(T);function j(e){return j="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},j(e)}function E(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,x(o.key),o)}}function x(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=j(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}function I(e,t,n){return t=D(t),function(e,t){if(t&&("object"==j(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))}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 R=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),I(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 N()}},{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:C.Z,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"startSpinner",value:function(){o.Radio.channel(this.channelName).trigger(P.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 P.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")}}))}}])&&E(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA),V=n(88483),M=n(2772),U=n(24184),F=n(72998),B=n(95168),L=n(39155),K=(n(14611),n(33015),n(90680)),Q=n(20072),z=n(60602),J=n(75459),H=n(26357),q=n(22557),W=n(21893),G=n.n(W);function X(e){return X="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},X(e)}function Y(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,Z(o.key),o)}}function Z(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=X(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==X(t)?t:t+""}function ee(e,t,n){return t=ne(t),function(e,t){if(t&&("object"==X(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,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(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),ee(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&&oe(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 G()}},{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}))}}])&&Y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(u.Q.wA),re=n(76370),ae=n.n(re),le={requiredStar:"BykcP"};function se(e){return se="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},se(e)}function ce(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,ue(o.key),o)}}function ue(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=se(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==se(t)?t:t+""}function de(e,t,n){return t=fe(t),function(e,t){if(t&&("object"==se(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,pe()?Reflect.construct(t,n||[],fe(e).constructor):t.apply(e,n))}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}function fe(e){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fe(e)}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}var ye=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),de(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&&he(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 ae()}},{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 ie({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:le,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}}])&&ce(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA),me=n(11453),ve=n.n(me);function ge(e){return ge="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},ge(e)}function be(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,we(o.key),o)}}function we(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}function Se(e,t,n){return t=Oe(t),function(e,t){if(t&&("object"==ge(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,ke()?Reflect.construct(t,n||[],Oe(e).constructor):t.apply(e,n))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}var Pe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Se(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&&Ce(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 ve()}},{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)&&$(t.get(0)).css("width","".concat(e,"%"))}}])&&be(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),Te=n(42633),Ne=n.n(Te);function je(e){return je="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},je(e)}function Ee(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,xe(o.key),o)}}function xe(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=je(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}function Ie(e,t,n){return t=De(t),function(e,t){if(t&&("object"==je(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,_e()?Reflect.construct(t,n||[],De(e).constructor):t.apply(e,n))}function _e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_e=function(){return!!e})()}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}var Re=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),Ie(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&&Ae(e,t)}(t,e),n=t,o=[{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Ne()}},{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&&Ee(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),Ve=n(61778),Me=n.n(Ve),Ue=n(47381),Fe=n.n(Ue),Be=n(63105),Le=n.n(Be),Ke={title:"melld"};function Qe(e){return Qe="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},Qe(e)}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(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,qe(o.key),o)}}function He(e,t,n){return t&&Je(e.prototype,t),n&&Je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e){var t=function(e,t){if("object"!=Qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Qe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}function $e(e,t,n){return t=Ge(t),function(e,t){if(t&&("object"==Qe(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,We()?Reflect.construct(t,n||[],Ge(e).constructor):t.apply(e,n))}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}function Xe(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&&Ye(e,t)}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}var Ze=function(e){function t(){return ze(this,t),$e(this,t,arguments)}return Xe(t,e),He(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return Fe()}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(Ke.title)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}}])}(u.Q.wA),et=function(e){function t(){return ze(this,t),$e(this,t,arguments)}return Xe(t,e),He(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return Me()}},{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),tt=function(e){function t(e){return ze(this,t),$e(this,t,[e])}return Xe(t,e),He(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.partial(this.onAssociationSelected,i,"rating")),this.listenTo(this.channelName,"select:channel",i.partial(this.onAssociationSelected,i,"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 Le()}},{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.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.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 Ze({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new M.Z({model:this.viewModel,thumbnailOptions:{size:V.h2.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new Pe({model:this.model});this.showChildView("progress",e);var t=new et({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new F.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 ye({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 U.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 Re({model:this.viewModel}))}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:Ke,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 nt(e){return nt="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},nt(e)}function ot(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,it(o.key),o)}}function it(e){var t=function(e,t){if("object"!=nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=nt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nt(t)?t:t+""}function rt(e,t,n){return t=lt(t),function(e,t){if(t&&("object"==nt(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,at()?Reflect.construct(t,n||[],lt(e).constructor):t.apply(e,n))}function at(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(at=function(){return!!e})()}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lt(e)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}var ct=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),rt(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&&st(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return tt}},{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}}}])&&ot(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.$W),ut=n(35250),dt=n.n(ut);function pt(e){return pt="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},pt(e)}function ft(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,ht(o.key),o)}}function ht(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=pt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pt(t)?t:t+""}function yt(e,t,n){return t=vt(t),function(e,t){if(t&&("object"==pt(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,mt()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}var bt=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=yt(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&>(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 dt()}},{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(this.currentUser.get("customerId"),m.E.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new R({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new R({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 ct(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()}}])&&ft(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 f}});var o=n(39479),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,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function c(e,t,n){return t=d(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,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=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),c(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&&p(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)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return g}});var o=n(48088),i=n(39479),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,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(e,t,n){return t=m(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,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var g=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=h(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&&v(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)},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return g}});var o=n(48088),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,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(e,t,n){return t=m(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,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var g=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),h(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&&v(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={},!0,(o=f(o=t))in n?Object.defineProperty(n,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):n[o]=true,n));var n,o}),{})}},{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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9695],{49695:function(t,e,n){"use strict";n.r(e),n.d(e,{UploadCompleteView:function(){return g}});var r=n(21679),o=n(57857),i=n(31647),l=n(57098),a=n(27169),u=n.n(a),c={completeImage:"TcxNH"};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function y(t,e,n){return e=m(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.videoUploadService=r.u.getInstance(l.K9.VideoUpload,this)}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"p-3 my-3 bg-white rounded text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.HOME}}}},{key:"viewOptions",value:function(){return{styles:c,count:this.videoUploadService.getCollection().length,imageUrl:l.Wn.Shared.SUCCESS}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}}])&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.G7)},27169:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression,c=t.lambda;return"<h1>"+u((n.lang||e&&e.lang||a).call(l,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.count:i},data:o}))+'</h1>\n<div class="my-3">\n <img src='+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+' class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.completeImage:i,e))+' my-4 img-fluid"/>\n</div>\n<p>'+u((n.lang||e&&e.lang||a).call(l,"isProcessing",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.count:i},data:o}))+'</p>\n<a class="back-to-library-applink btn btn-dark">'+u((n.lang||e&&e.lang||a).call(l,"back",{name:"lang",hash:{},data:o}))+"</a>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9927],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return h}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(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&&p(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},79927:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return _}});var r=n(21679),o=n(57857),i=n(31647),a=n(10101),l=n(88172),c=n(57098),u=n(87175),s=n(67670),f=n(19226),p=n(93569),h=n(9231),d=n.n(h),y={image:"wnpu5"};function b(e){return b="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},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function v(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function g(e,t,n){return t=w(t),function(e,t){if(t&&("object"==b(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||[],w(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var _=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),g(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&&O(e,t)}(t,e),n=t,(h=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(c.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:a.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(c.Vk.USER,"".concat(c.M_.CURRENT_USER,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(l.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=p.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(l.ZV.Disabled,!1),0):(setTimeout((function(){return i.Q.Ry.throw(new u.HH)}),0),1)))}},{key:"viewOptions",value:function(){return{styles:y,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:c.Wn.Shared.LOCAL_CACHE}}}])&&m(n.prototype,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,h}(i.Q.G7)},9231:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||l).call(a,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\n<p>'+c((n.lang||t&&t.lang||l).call(a,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|