@clickview/library-editor 1.14.0 → 1.15.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{627-library-editor-29076e38d6.chunk.css → 4164-library-editor-86456d4d2f.chunk.css} +1 -1
- package/dist/css/{58-library-editor-d7f24abcd2.chunk.css → 58-library-editor-9735a98533.chunk.css} +1 -1
- package/dist/css/{5970-library-editor-69f7a91406.chunk.css → 5970-library-editor-0d09b13673.chunk.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/101-5b7f13ead9.chunk.js +1 -0
- package/dist/scripts/{1203-a58109bd25.chunk.js → 1203-4113349cd2.chunk.js} +1 -1
- package/dist/scripts/1601-505bc87094.chunk.js +2 -0
- package/dist/scripts/2802-2218d4b4bb.chunk.js +2 -0
- package/dist/scripts/2802-2218d4b4bb.chunk.js.LICENSE.txt +8 -0
- package/dist/scripts/4164-9d4b41c5bd.chunk.js +1 -0
- package/dist/scripts/{5235-be21559a4b.chunk.js → 5235-c7f0ecadfc.chunk.js} +1 -1
- package/dist/scripts/58-6b57e9fb4e.chunk.js +1 -0
- package/dist/scripts/5970-e0becf6419.chunk.js +2 -0
- package/dist/scripts/7136-9a36909e5f.chunk.js +1 -0
- package/dist/scripts/{9040-7c86ac6148.chunk.js → 9040-784bb82801.chunk.js} +1 -1
- package/dist/scripts/bundle-4741f72ef4.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/101-2cc3ff8d10.chunk.js +0 -1
- package/dist/scripts/1601-462cfbd1b0.chunk.js +0 -2
- package/dist/scripts/2802-8e6b167d04.chunk.js +0 -2
- package/dist/scripts/2802-8e6b167d04.chunk.js.LICENSE.txt +0 -17
- package/dist/scripts/58-843e7d0559.chunk.js +0 -1
- package/dist/scripts/5970-4aa84dde01.chunk.js +0 -2
- package/dist/scripts/627-20545cc93c.chunk.js +0 -1
- package/dist/scripts/7136-8486fccc4a.chunk.js +0 -1
- package/dist/scripts/bundle-42308178ae.min.js +0 -2
- /package/dist/scripts/{1601-462cfbd1b0.chunk.js.LICENSE.txt → 1601-505bc87094.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3746-eb8689b8aa.chunk.js → 3746-53d2f48930.chunk.js} +0 -0
- /package/dist/scripts/{3969-4b239c9c54.chunk.js → 3969-b56c249015.chunk.js} +0 -0
- /package/dist/scripts/{4830-b200dccc32.chunk.js → 4830-21f98cca40.chunk.js} +0 -0
- /package/dist/scripts/{5891-6f61310f41.chunk.js → 5891-008fa6f486.chunk.js} +0 -0
- /package/dist/scripts/{5970-4aa84dde01.chunk.js.LICENSE.txt → 5970-e0becf6419.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6963-6e55fe4ec9.chunk.js → 6963-a9ded68b8f.chunk.js} +0 -0
- /package/dist/scripts/{8495-84aa8f4c80.chunk.js → 8495-c2a8d27ffa.chunk.js} +0 -0
- /package/dist/scripts/{9268-a215d62098.chunk.js → 9268-d558d65224.chunk.js} +0 -0
- /package/dist/scripts/{9379-c2470a6ab7.chunk.js → 9379-374f2c6f8d.chunk.js} +0 -0
- /package/dist/scripts/{9770-15c287afb4.chunk.js → 9770-f16965ec13.chunk.js} +0 -0
- /package/dist/scripts/{bundle-42308178ae.min.js.LICENSE.txt → bundle-4741f72ef4.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/library-editor",
|
|
3
3
|
"description": "Library Editor",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.15.0-rc.0",
|
|
5
5
|
"main": "dist/scripts/bundle.js",
|
|
6
6
|
"types": "dist/projects/library-editor/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/polyfill": "7.4.4",
|
|
44
|
-
"@clickview/styles": "1.
|
|
44
|
+
"@clickview/styles": "1.14.0-rc.0",
|
|
45
45
|
"@clickview/url-signer": "1.0.0",
|
|
46
46
|
"@microsoft/signalr": "^3.1.0",
|
|
47
47
|
"abortcontroller-polyfill": "1.7.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[101],{54096:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(1024),a=n(21679);function o(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},63038:function(e,t,n){"use strict";n.d(t,{n:function(){return y},W:function(){return v}});var r=n(1024),a=n(92802),o=n(99910),i=n(85887),l=n(53808),c=function(e,t,n,r,o){var i="form-control";return"sm"===r&&(i+=" form-control-sm"),"lg"===r&&(i+=" form-control-lg"),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(i+=" is-invalid"),o&&(i+=" ".concat(o)),i};function s(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=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}(e,["label","checkboxLabelClassName","checkboxLabelFontWeight"]);return r.createElement(o.Form.Group,null,r.createElement("div",{className:"custom-control custom-checkbox"},r.createElement(y,Object.assign({className:"custom-control-input"},i)),r.createElement(o.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===a?"font-weight-normal":""," \n ").concat(n),htmlFor:i.id},t)))}var u=n(39396),f=n(63791),m=n(66703);function d(e){var t=(0,a.u6)().values[e.fieldName];return"string"!=typeof t?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=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};function y(e){var t,n,o=e.children,c=b(e,["children"]),s=(t=r.useState(e.type),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,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(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.")}()),m=s[0],d=s[1],y=l.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==c.type)return r.createElement(a.gN,Object.assign({},i.t.omit(c,["formSize"])),y);var v="position-relative ".concat("d78lK");return c.className&&(v+=" ".concat(c.className)),c.disabled&&(v+=" ".concat("asbVo")),r.createElement("div",{className:v},r.createElement(a.gN,Object.assign({},i.t.omit(c,["formSize","type","className"]),{type:m,className:"".concat("RBJnf"," border-0 w-100 h-100 outline-none rounded")}),y),"password"===c.type&&r.createElement(u.x,{svgName:"password"===m?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat("jCfI0"),onClick:function(){d("password"===m?"text":"password")}}))}function v(e){var t=e.label,n=e.className,l=e.showCharacterCounter,p=e.showRequiredStar,v=e.infoTooltip,h=e.infoText,g=e.formSize,O=e.showOptionalLabel,S=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),w=(0,a.u6)(),E=w.errors,j=w.touched,x=function(){};if("checkbox"===S.type){var C=i.t.omit(e,["formSize"]);return e.disabled&&(C.onChange=x),r.createElement(s,Object.assign({},C))}var I=Object.assign(Object.assign({},S),{className:c(E,j,S.name,g,n)});return e.disabled&&(I.onChange=x),r.createElement(o.Form.Group,null,!!t&&r.createElement(o.Form.Label,{htmlFor:S.id,className:"d-flex align-items-center"},t,p&&r.createElement("span",{className:"text-danger"},"*"),v&&r.createElement(u.x,{svgName:f.vn.Info,title:v,tooltipPlacement:"top",tooltipSpanHack:!0}),O&&r.createElement("span",{className:"text-muted"}," ",r.createElement(m.x,{namespace:"shared.formField",phrase:"optional"})),!!l&&!!S.maxLength&&r.createElement("div",{className:"ml-auto"},r.createElement(d,{fieldName:S.name,limit:S.maxLength}))),r.createElement(y,Object.assign({},I)),!!h&&r.createElement(o.Form.Text,{className:"text-muted"},h),r.createElement(a.Bc,{name:S.name},(function(e){return r.createElement(o.Form.Control.Feedback,{type:"invalid"},e)})))}y.defaultProps={autoComplete:"off"},v.defaultProps={autoComplete:"off"}},86347:function(e,t,n){"use strict";n.d(t,{b:function(){return s},n:function(){return c}});var r=n(1024),a=n(92802),o=n(53808),i=n(85887);function l(e){var t=i.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(i.t.isObject(t[e])?t[e]=l(t[e]):null===t[e]&&delete t[e])})),t}function c(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,i=e.initialValues,c=e.onSubmit,s=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}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),u=t&&e.validationSchema?e.validationSchema.cast(l(i)):i,f={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},s,{initialValues:u,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,i=n&&e.validationSchema?e.validationSchema.cast(t):t;c(i,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&o(),a(!1)}))},initialStatus:f}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function s(){return(0,a.u6)()}c.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},90335:function(e,t,n){"use strict";var r;n.d(t,{D:function(){return r}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(r||(r={}))},2491:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(54096),a=n(21186),o=n(92159);function i(){var e=(0,r.G)(o.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})}}}},94223:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(1024),a=n(58566),o=n(86120),i=n(53808);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){function c(e){if(e)return i.q.isFunction(t)?t(e):e.data}function s(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.useSelector)((0,r.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var n=e,r=i.q.isFunction(e)&&n(),a=r&&o.a.getResponse(t,r),u=a&&a.isFetching,f=a&&a.statusCode,m=a&&a.hasCompleted,d=a&&a.shouldFetch,p=c(a&&a.data),b=s(a&&a.data),y=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(a&&a.data);b&&(u=(a=o.a.getResponse(t,n(b))).isFetching,f=a.statusCode,m=a.hasCompleted,!a.shouldFetch);){var v=c(a.data);v&&p.push.apply(p,function(e){if(Array.isArray(e))return l(e)}(O=v)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(O)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(O)||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.")}());var h=s(a.data);b=h===b?null:h}var g={shouldInitialFetch:d,items:p,nextCursor:b,isFetching:u,statusCode:f,hasCompleted:m};return"number"==typeof y&&(g.totalItems=y),g}var O}}),[e]))}n(35656).o.Ok},50072:function(e,t,n){"use strict";var r;n.d(t,{l:function(){return r}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed"}(r||(r={}))},85739:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(1024),a=n.n(r),o=n(86120),i=n(94223),l=n(25796);function c(e,t){var n=o.a.useGetFetch(),r=function(n){return l.y.libraryRequests(e,t,n)},c=function(e){return n(r(e))},s=(0,i.P)(r&&function(e){return r(e).key});return a().useEffect((function(){s&&s.shouldInitialFetch&&c()}),[e,t]),Object.assign(Object.assign({},s),{fetchNext:c})}},41228:function(e,t,n){"use strict";n.r(t),n.d(t,{RejectLibraryRequestView:function(){return P}});var r=n(1024),a=n.n(r),o=n(5173),i=n(92802),l=n(70065),c=n(52076),s=n(57857),u=n(86120),f=n(31647),m=n(71575),d=n(2491),p=n(66703),b=n(63038),y=n(85610),v=n(22430),h=n(86347),g=n(90335),O=n(50997),S=n(25796),w=n(50072),E=n(85739);function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x="libraryRequests.reject",C=s.T.encloseNamespace(x),I=(0,o.Ry)().shape({message:(0,o.Z_)().required((function(){return C("required")})).max(500,(function(){return C("max")}))});function N(e){var t=(0,h.b)();return a().createElement(i.l0,null,a().createElement("p",null,a().createElement(p.x,{namespace:x,phrase:"message",options:{videoName:e.libraryRequest.object.name}})),a().createElement(b.W,{label:C("label"),as:"textarea",name:"message",id:"message",value:t.values.message,placeholder:C("placeholder")}),a().createElement(y.u,null,a().createElement(y.u.Cancel,{onClick:e.closePopup}),a().createElement(y.u.Submit,{text:C("reject"),variant:"danger",showSpinner:e.showSpinner})))}function P(e){var t,n,r,o=u.a.useGetFetch(),i=(0,d.Z)(),s=(n=a().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(n,r)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=s[0],b=s[1],y=(0,E.p)(e.queryParams.sort||g.D.Newest,[w.l.Pending]),x=u.a.useBasicFetch(S.y.libraryRequest(e.libraryRequestId));function P(){!function(){var e,t,n,r,a={location:l.LocationContext.Popup,actionType:l.UserAction.Reject,entity:l.EntityType.LibraryRequest,workflowPhase:l.WorkflowPhase.Complete},o={id:x.data.id,videoId:null===(e=x.data.object)||void 0===e?void 0:e.id,requestingUserId:null===(t=x.data.sender)||void 0===t?void 0:t.id,sourceLibraryId:null===(n=x.data.sourceLibrary)||void 0===n?void 0:n.id,sourceFolderId:null===(r=x.data.sourceCategory)||void 0===r?void 0:r.id};c.k.logUserAction(o,a)}(),i.success(C("success"));var t=y.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),n=y.items[t+1];f.Q.AppLinkHelper.trigger({application:O.OV.LIBRARY_REQUESTS,action:O.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==n?void 0:n.id)||""],params:e.queryParams},{replace:!0})}var A=((null===(t=y.items)||void 0===t?void 0:t.length)||y.hasCompleted)&&!!x.data;return a().createElement(m.G,{title:C("title"),closePopup:e.closePopup,showLoadingSpinner:!A},A&&a().createElement(h.n,{initialValues:{message:""},validationSchema:I,onSubmit:function(t){b(!0);var n={response:w.l.Rejected,message:t.message};o(S.y.fulfilRequest(e.libraryRequestId,n,P,(function(e){return i.error(v.M.libraryApiError(e))}),e.closePopup))}},a().createElement(N,{libraryRequest:x.data,closePopup:e.closePopup,showSpinner:p})))}},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1601-462cfbd1b0.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1601],{70680:function(e,t,n){"use strict";n.d(t,{r:function(){return v}});var r=n(31647),i=n(88172),o=n(61843),a=n(57857),s=n(26457),c=n(40622),l=n(97781),u=n.n(l);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 p(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,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===h(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)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!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&&f(e,t)}(m,e);var t,n,l,h,v=(l=m,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(l);if(h){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),v.call(this,e)}return t=m,(n=[{key:"initialize",value:function(){this.spinnerModel=new r.Q.Model({showSpinner:this.isProcessing()}),this.listenTo(this.options.channelName,c.LibraryEditorActions.MergeChapters,this.onClickMergeChapters)}},{key:"name",get:function(){return"ConcatenateRequestComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"libraryEditor.concatenateRequest"}},{key:"className",get:function(){return"mt-3"}},{key:"regions",value:function(){return{button:{el:".btn-region",replaceElement:!0}}}},{key:"onClickMergeChapters",value:function(){this.spinnerModel.set(i.ZV.ShowSpinner,!0),this.render()}},{key:"isProcessing",value:function(){return!(!this.model||!this.model.get("status")||this.model.get("status")!==s.Um.New&&this.model.get("status")!==s.Um.Concatenating)}},{key:"renderButton",value:function(){var e={chapters:a.T.getPhrase(this.lang,"mergeChapters"),subtitles:a.T.getPhrase(this.lang,"mergeChapters"),clickViewSubtitles:a.T.getPhrase(this.lang,"enabledCustomSubtitles")},t=new i.Py({buttonText:e[this.options.type],extraButtonClass:"btn-dark ".concat("XKFne"),model:this.spinnerModel,spinnerOptions:{size:o.Ey.Small,type:o.dR.Light,extraClasses:"mx-auto"},channelName:this.options.channelName,saveEvent:c.LibraryEditorActions.MergeChapters});this.showChildView("button",t)}},{key:"viewOptions",value:function(){var e={chapters:{heading:a.T.getPhrase(this.lang,"chaptersHeading"),line1:a.T.getPhrase(this.lang,"chaptersInfo1"),line2:a.T.getPhrase(this.lang,"chaptersInfo2")},subtitles:{heading:a.T.getPhrase(this.lang,"subtitlesHeading"),line1:a.T.getPhrase(this.lang,"subtitlesInfo1"),line2:a.T.getPhrase(this.lang,"subtitlesInfo2")},clickViewSubtitles:{heading:a.T.getPhrase(this.lang,"cvSubtitlesHeading"),line1:a.T.getPhrase(this.lang,"cvSubtitlesInfo1"),line2:a.T.getPhrase(this.lang,"cvSubtitlesInfo2")}};return{progress:this.model&&this.model.get("progress")&&a.T.getPhrase(this.lang,"progress",{progress:this.model.get("progress")}),componentOptions:e[this.options.type],processing:this.spinnerModel.get(i.ZV.ShowSpinner),failed:this.model&&this.model.get("status")&&this.model.get("status")===s.Um.ConcatenationFailed}}},{key:"onRender",value:function(){this.renderButton()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Q.Component)},21053:function(e,t,n){"use strict";n.d(t,{W:function(){return m}});var r=n(48088),i=n(31647),o={svgContainer:"mtegw"},a=n(43791),s=n.n(a),c=n(88181),l=n(35630),u=n(57085),h=n(57857);function p(e){return p="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},p(e)}function f(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,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(e,t){if(t&&("object"===p(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)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,n,i,a,p=(i=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(i);if(a){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),p.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"lang",get:function(){return"libraryEditor.editVideoTabs"}},{key:"template",get:function(){return s()}},{key:"viewOptions",value:function(){return{styles:o}}},{key:"onSave",value:function(){r.Radio.channel(c.OV.LIBRARY_EDITOR).trigger(c.eX.LibraryEditor.SAVE_VIDEO)}},{key:"getLocationBreadcrumb",value:function(){switch(this.options.context){case"edit":return{name:h.T.getPhrase(this.lang,"videoDetails")};case"chapters":return{name:h.T.getPhrase(this.lang,"chapters")};case"resources":return{name:h.T.getPhrase(this.lang,"resources")}}}},{key:"onRender",value:function(){this.showChildView("tabs",new l.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new u.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(i.Q.Component)},16704:function(e,t,n){"use strict";n.r(t),n.d(t,{EditChaptersView:function(){return M}});var r=n(39479),i=n(31647),o=n(21679),a=n(57857),s=n(99748),c=n(59054),l=n(99952),u=n(74749),h=n(61843),p=n(88181),f=n(48404),d=n(29457),y=n(70065),v=n(52076),m=n(89167),g=n(13156),b=n(19226),w=n(68935),C=n(264),E=n(21053),k=n(70680),P=n(45114),O=n(70693),T=n(56906),S=n(40622),L=n(7190),_=n(26457),x=n(61159),R=n.n(x),V=n(95061);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 I(){I=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.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 c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function h(){}function p(){}function f(){}var d={};s(d,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(P([])));v&&v!==t&&n.call(v,i)&&(d=v);var m=f.prototype=h.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==j(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function C(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=f,s(m,"constructor",f),s(f,"constructor",p),p.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),s(m,a,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},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),u},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),E(n),u}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(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,r.key,r)}}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function U(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)}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}var M=function(e){!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&&N(e,t)}(B,e);var t,n,x,j,M=(x=B,j=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=q(x);if(j){var n=q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function B(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,B),(t=M.call(this,e))._viewKeyRequested=!1,t}return t=B,(n=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),h.Si.initBackButton()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"template",get:function(){return R()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:d.LP.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:d.LP.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:d.LP.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:d.LP.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.Vk.CHAPTER,"".concat(p.M_.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError),this.listenTo(this.channelName,S.LibraryEditorActions.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,S.LibraryEditorActions.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,S.LibraryEditorActions.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,S.LibraryEditorActions.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,S.LibraryEditorActions.SeekToChapter,this.onSeekToChapter),this.listenTo(this.channelName,S.LibraryEditorActions.MergeChapters,this.onMergeChapters)}},{key:"initializeDataServices",value:function(){this.videoDataService=o.u.getInstance(p.Or.Video,this),this.chapterDataService=o.u.getInstance(p.Or.Chapter,this),this.playerDataService=o.u.getInstance(p.Or.Player,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case s.h.NotFound:i.Q.ErrorHelper.throw(new T.l1);break;case s.h.Forbidden:i.Q.ErrorHelper.throw(new T.aV)}}},{key:"onConcatenateDataError",value:function(e){e.type===s.h.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"updateChapters",value:function(){var e=this;if(C.g.hasLite){var t=this.chapters.toJSON().reverse().reduce((function(t,n){var r,i=t[t.length-1];return[].concat(function(e){if(Array.isArray(e))return D(e)}(r=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(r)||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.")}(),[{timestamp:n.startTime,endTimestamp:(null==i?void 0:i.timestamp)||e.player.duration(),name:n.name}])}),[]).reverse();this.player.setChapters(t)}}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:a.T.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,n=new u.W(e);this.chapters.add(n),n.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.updateChapters(),t.logAction(e,y.UserAction.Create)}))}},{key:"onUpdateChapter",value:function(e){var t=this,n=this.chapters.find((function(t){return t.get("id")===e.id}));n.set("loading",!0);var r=g.J.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(n.id,e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.updateChapters(),t.logAction(e,y.UserAction.Edit)}),r)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,y.UserAction.Delete),t.chapters.remove(e),t.updateChapters()}))}},{key:"onMergeChapters",value:function(){var e=this;this.chapterDataService.addConcatenateRequest(this.options.videoId,(function(){e.pollConcatenation()}))}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=h.X4.millisecondsToSeconds(this.model.get("duration"))&&(this.player?this.player.currentTime(e):this.webPlayer.seekTo(e))}},{key:"logAction",value:function(e,t){var n=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));v.k.logUserAction(n,{actionType:t,entity:y.EntityType.Chapter,location:y.LocationContext.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){return t=this,n=void 0,r=void 0,i=I().mark((function t(){var n,r;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0)){t.next=2;break}return t.abrupt("return");case 2:if(!this.player){t.next=9;break}return t.next=5,this.player.getChapters();case 5:return n=t.sent,r=n[e],this.player.currentTime(r.timestamp),t.abrupt("return");case 9:this.webPlayer.seekToChapter(e);case 10:case"end":return t.stop()}}),t,this)})),new(r||(r=Promise))((function(e,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[_.Um.SingleFile,_.Um.ConcatenationFailed];r.contains(e,this.concatenateRequest.get("status"))||this.pollConcatenation()}}},{key:"pollConcatenation",value:function(){var e=this;this.isDestroyed()||this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){if(e.concatenateRequest=t,e.concatenateRequest.get("status")!==_.Um.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.render()}))}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new O.Q({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!this.hasPhysicalChapters.get("value"),editable:!this.hasPhysicalChapters.get("value"),showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new P.L({model:new u.W,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(p._2.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("addChapter",new k.r({type:"chapters",channelName:this.channelName,model:this.concatenateRequest}))}},{key:"renderEditComponents",value:function(){if(this.hasPhysicalChapters.get("value"))return this.renderConcatenationRequest(),void this.mapPhysicalChapters();this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){var e=h.BK.canEditVideo(this.model);this.showChildView("tabs",new E.W({model:this.model,tabs:h.Si.getEditVideoTabs(this.options.videoId,e),activeTab:".edit-chapters-applink",context:"chapters",folder:this.folder,libraries:this.libraries}))}},{key:"renderWebPlayer",value:function(){if(this.playerViewKey)return this.player=new w.l({model:this.playerViewKey,playerApiUrl:this.config.get("playerApiUrl"),channelName:this.channelName,inactivityTimeout:0}),void this.showChildView("webplayer",this.player);this.webPlayer=new m.Q({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1,currentUser:this.currentUser}),this.showChildView("webplayer",this.webPlayer)}},{key:"mapPhysicalChapters",value:function(){var e=this;this.renderPartialLoading("chapterList");var t=function(t){e.chapters=new l.q(L.$k.mapPhysicalChapters(t)),e.renderChapterList()};this.player?this.player.getChapters().then(t):this.webPlayer.query("getChapters",t)}},{key:"redirectToVideoDetails",value:function(){i.Q.AppLinkHelper.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;if(this.model=this.videoDataService.getVideo(this.options.videoId),this.model){if(!h.BK.canEditVideo(this.model))return void this.redirectToVideoDetails();this.chapters=this.model.chapters,this.folder=this.model.categories.first(),C.g.hasLite&&!this._viewKeyRequested&&(this._viewKeyRequested=!0,this.playerDataService.createViewKey(this.model.get("id"),c.f.MasterObject,(function(t){e.playerViewKey=t,e.render()})))}this.hasPhysicalChapters=this.videoDataService.hasPhysicalChapters(this.options.videoId),this.hasPhysicalChapters&&this.hasPhysicalChapters.get("value")&&!this.getConcatenateRequestSent&&(this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){e.concatenateRequest=t,e.render()})),this.getConcatenateRequestSent=!0)}},{key:"shouldRender",value:function(){return!(!this.model||!this.hasPhysicalChapters||C.g.hasLite&&!this.playerViewKey||this.hasPhysicalChapters.get("value")&&!this.concatenateRequest&&!this.concatenateRequestNotFound)}},{key:"requiredResources",get:function(){return{config:f.p.config,currentUser:b.K.currentUser,libraries:V.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents(),this.startPollingConcatenation()}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),B}(i.Q.View)},97781:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.progress:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:""},2:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="m-3 text-muted">'+a(e.lambda(null!=(o=null!=t?t.options:t)?o.progress:o,t))+'</span>\n <p class="pt-2">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"processing",{name:"lang",hash:{},data:i}))+"</p>\n"},4:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.failed:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:""},5:function(e,t,n,r,i){return e.propertyIsEnumerable,'<p class="pt-2 text-danger">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"failed",{name:"lang",hash:{},data:i}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return"<h4>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.heading:o,t))+"</h4>\n<p>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.line1:o,t))+"</p>\n<p>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.line2:o,t))+'</p>\n<div class="btn-region"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.processing:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(4,i,0),data:i}))?o:"")},useData:!0})},43791:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region pl-2"></div>'},useData:!0})},61159:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="tab-region w-100"></div>\n<div class="row">\n <div class="col-6 pt-3">\n <div class="webplayer-region"></div>\n <div class="add-chapter-region"></div>\n </div>\n <div class="col-6 mb-2 pt-3">\n <div class="chapter-list-region"></div>\n </div>\n</div>'},useData:!0})}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2802-8e6b167d04.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2802],{92802:function(e,t,r){r.d(t,{Bc:function(){return $r},gN:function(){return Rr},l0:function(){return Pr},J9:function(){return Tr},u9:function(){return vr},u6:function(){return jr}});var n=r(1024),o=r(8266),a=r.n(o),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===u}(e)}(e)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function l(e,t,r){return e.concat(t).map((function(e){return c(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||i;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=c(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=s(e[o],t[o],r):n[o]=c(t[o],r)})),n}(e,t,r):c(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var f=s,p="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,y=p||d||Function("return this")(),v=y.Symbol,h=Object.prototype,b=h.hasOwnProperty,m=h.toString,_=v?v.toStringTag:void 0,g=Object.prototype.toString,j=v?v.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=b.call(e,_),r=e[_];try{e[_]=void 0;var n=!0}catch(e){}var o=m.call(e);return n&&(t?e[_]=r:delete e[_]),o}(e):function(e){return g.call(e)}(e)},E=function(e,t){return function(r){return e(t(r))}},O=E(Object.getPrototypeOf,Object),w=function(e){return null!=e&&"object"==typeof e},T=Function.prototype,A=Object.prototype,k=T.toString,F=A.hasOwnProperty,C=k.call(Object),R=function(e){if(!w(e)||"[object Object]"!=S(e))return!1;var t=O(e);if(null===t)return!0;var r=F.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==C},P=function(e,t){return e===t||e!=e&&t!=t},x=function(e,t){for(var r=e.length;r--;)if(P(e[r][0],t))return r;return-1},I=Array.prototype.splice;function M(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}M.prototype.clear=function(){this.__data__=[],this.size=0},M.prototype.delete=function(e){var t=this.__data__,r=x(t,e);return!(r<0||(r==t.length-1?t.pop():I.call(t,r,1),--this.size,0))},M.prototype.get=function(e){var t=this.__data__,r=x(t,e);return r<0?void 0:t[r][1]},M.prototype.has=function(e){return x(this.__data__,e)>-1},M.prototype.set=function(e,t){var r=this.__data__,n=x(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var U,D=M,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){if(!$(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=y["__core-js_shared__"],B=(U=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",N=Function.prototype.toString,z=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,G=Function.prototype,H=Object.prototype,q=G.toString,K=H.hasOwnProperty,Y=RegExp("^"+q.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=function(e){return!(!$(e)||(t=e,B&&B in t))&&(L(e)?Y:W).test(z(e));var t},Q=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return J(r)?r:void 0},X=Q(y,"Map"),Z=Q(Object,"create"),ee=Object.prototype.hasOwnProperty,te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=re,oe=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(X||D),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function ue(e){var t=this.__data__=new D(e);this.size=t.size}ue.prototype.clear=function(){this.__data__=new D,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof D){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ce=ue,le=function(){try{var e=Q(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),se=function(e,t,r){"__proto__"==t&&le?le(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,pe=function(e,t,r){var n=e[t];fe.call(e,t)&&P(n,r)&&(void 0!==r||t in e)||se(e,t,r)},de=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?se(r,u,c):pe(r,u,c)}return r},ye=function(e){return w(e)&&"[object Arguments]"==S(e)},ve=Object.prototype,he=ve.hasOwnProperty,be=ve.propertyIsEnumerable,me=ye(function(){return arguments}())?ye:function(e){return w(e)&&he.call(e,"callee")&&!be.call(e,"callee")},_e=me,ge=Array.isArray,je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=Se&&Se.exports===je?y.Buffer:void 0,Oe=(Ee?Ee.isBuffer:void 0)||function(){return!1},we=/^(?:0|[1-9]\d*)$/,Te=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&we.test(e))&&e>-1&&e%1==0&&e<t},Ae=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ke={};ke["[object Float32Array]"]=ke["[object Float64Array]"]=ke["[object Int8Array]"]=ke["[object Int16Array]"]=ke["[object Int32Array]"]=ke["[object Uint8Array]"]=ke["[object Uint8ClampedArray]"]=ke["[object Uint16Array]"]=ke["[object Uint32Array]"]=!0,ke["[object Arguments]"]=ke["[object Array]"]=ke["[object ArrayBuffer]"]=ke["[object Boolean]"]=ke["[object DataView]"]=ke["[object Date]"]=ke["[object Error]"]=ke["[object Function]"]=ke["[object Map]"]=ke["[object Number]"]=ke["[object Object]"]=ke["[object RegExp]"]=ke["[object Set]"]=ke["[object String]"]=ke["[object WeakMap]"]=!1;var Fe=function(e){return function(t){return e(t)}},Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Pe=Re&&Re.exports===Ce&&p.process,xe=function(){try{return Re&&Re.require&&Re.require("util").types||Pe&&Pe.binding&&Pe.binding("util")}catch(e){}}(),Ie=xe&&xe.isTypedArray,Me=Ie?Fe(Ie):function(e){return w(e)&&Ae(e.length)&&!!ke[S(e)]},Ue=Object.prototype.hasOwnProperty,De=function(e,t){var r=ge(e),n=!r&&_e(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&Me(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!Ue.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,c))||u.push(l);return u},$e=Object.prototype,Le=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)},Ve=E(Object.keys,Object),Be=Object.prototype.hasOwnProperty,Ne=function(e){return null!=e&&Ae(e.length)&&!L(e)},ze=function(e){return Ne(e)?De(e):function(e){if(!Le(e))return Ve(e);var t=[];for(var r in Object(e))Be.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},We=Object.prototype.hasOwnProperty,Ge=function(e){if(!$(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Le(e),r=[];for(var n in e)("constructor"!=n||!t&&We.call(e,n))&&r.push(n);return r},He=function(e){return Ne(e)?De(e,!0):Ge(e)},qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=Ke&&Ke.exports===qe?y.Buffer:void 0,Je=Ye?Ye.allocUnsafe:void 0,Qe=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Xe=function(){return[]},Ze=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols,tt=et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(et(e),(function(t){return Ze.call(e,t)})))}:Xe,rt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},nt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,tt(e)),e=O(e);return t}:Xe,ot=function(e,t,r){var n=t(e);return ge(e)?n:rt(n,r(e))},at=function(e){return ot(e,ze,tt)},it=function(e){return ot(e,He,nt)},ut=Q(y,"DataView"),ct=Q(y,"Promise"),lt=Q(y,"Set"),st=Q(y,"WeakMap"),ft="[object Map]",pt="[object Promise]",dt="[object Set]",yt="[object WeakMap]",vt="[object DataView]",ht=z(ut),bt=z(X),mt=z(ct),_t=z(lt),gt=z(st),jt=S;(ut&&jt(new ut(new ArrayBuffer(1)))!=vt||X&&jt(new X)!=ft||ct&&jt(ct.resolve())!=pt||lt&&jt(new lt)!=dt||st&&jt(new st)!=yt)&&(jt=function(e){var t=S(e),r="[object Object]"==t?e.constructor:void 0,n=r?z(r):"";if(n)switch(n){case ht:return vt;case bt:return ft;case mt:return pt;case _t:return dt;case gt:return yt}return t});var St=jt,Et=Object.prototype.hasOwnProperty,Ot=y.Uint8Array,wt=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},Tt=/\w*$/,At=v?v.prototype:void 0,kt=At?At.valueOf:void 0,Ft=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return wt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,Tt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,kt?Object(kt.call(n)):{}}},Ct=Object.create,Rt=function(){function e(){}return function(t){if(!$(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Pt=xe&&xe.isMap,xt=Pt?Fe(Pt):function(e){return w(e)&&"[object Map]"==St(e)},It=xe&&xe.isSet,Mt=It?Fe(It):function(e){return w(e)&&"[object Set]"==St(e)},Ut="[object Arguments]",Dt="[object Function]",$t={};$t[Ut]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[Dt]=$t["[object WeakMap]"]=!1;var Lt=function e(t,r,n,o,a,i){var u,c=1&r,l=2&r,s=4&r;if(n&&(u=a?n(t,o,a,i):n(t)),void 0!==u)return u;if(!$(t))return t;var f=ge(t);if(f){if(u=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Et.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Qe(t,u)}else{var p=St(t),d=p==Dt||"[object GeneratorFunction]"==p;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Je?Je(r):new e.constructor(r);return e.copy(n),n}(t,c);if("[object Object]"==p||p==Ut||d&&!a){if(u=l||d?{}:function(e){return"function"!=typeof e.constructor||Le(e)?{}:Rt(O(e))}(t),!c)return l?function(e,t){return de(e,nt(e),t)}(t,function(e,t){return e&&de(t,He(t),e)}(u,t)):function(e,t){return de(e,tt(e),t)}(t,function(e,t){return e&&de(t,ze(t),e)}(u,t))}else{if(!$t[p])return a?t:{};u=Ft(t,p,c)}}i||(i=new ce);var y=i.get(t);if(y)return y;i.set(t,u),Mt(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,i))})):xt(t)&&t.forEach((function(o,a){u.set(a,e(o,r,n,a,t,i))}));var v=f?void 0:(s?l?it:at:l?He:ze)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(v||t,(function(o,a){v&&(o=t[a=o]),pe(u,a,e(o,r,n,a,t,i))})),u},Vt=function(e){return Lt(e,4)},Bt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Nt=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==S(e)};function zt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(zt.Cache||ie),r}zt.Cache=ie;var Wt,Gt,Ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Kt=(Wt=zt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ht,(function(e,r,n,o){t.push(n?o.replace(qt,"$1"):r||e)})),t}),(function(e){return 500===Gt.size&&Gt.clear(),e})),Gt=Wt.cache,Wt),Yt=function(e){if("string"==typeof e||Nt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Jt=v?v.prototype:void 0,Qt=Jt?Jt.toString:void 0,Xt=function e(t){if("string"==typeof t)return t;if(ge(t))return Bt(t,e)+"";if(Nt(t))return Qt?Qt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Zt=function(e){return null==e?"":Xt(e)},er=function(e){return ge(e)?Bt(e,Yt):Nt(e)?[e]:Qe(Kt(Zt(e)))},tr=r(9146),rr=r(86058),nr=r.n(rr),or=function(e){return Lt(e,5)};function ar(){return ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ar.apply(this,arguments)}function ir(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var lr=function(e){return"function"==typeof e},sr=function(e){return null!==e&&"object"==typeof e},fr=function(e){return String(Math.floor(Number(e)))===e},pr=function(e){return"[object String]"===Object.prototype.toString.call(e)},dr=function(e){return 0===n.Children.count(e)},yr=function(e){return sr(e)&&lr(e.then)};function vr(e,t,r,n){void 0===n&&(n=0);for(var o=er(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function hr(e,t,r){for(var n=Vt(e),o=n,a=0,i=er(t);a<i.length-1;a++){var u=i[a],c=vr(e,i.slice(0,a+1));if(c&&(sr(c)||Array.isArray(c)))o=o[u]=Vt(c);else{var l=i[a+1];o=o[u]=fr(l)&&Number(l)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function br(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],u=e[i];sr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},br(u,t,r,n[i])):n[i]=t}return n}var mr=(0,n.createContext)(void 0),_r=mr.Provider,gr=mr.Consumer;function jr(){var e=(0,n.useContext)(mr);return e}function Sr(e,t){switch(t.type){case"SET_VALUES":return ar({},e,{values:t.payload});case"SET_TOUCHED":return ar({},e,{touched:t.payload});case"SET_ERRORS":return ar({},e,{errors:t.payload});case"SET_STATUS":return ar({},e,{status:t.payload});case"SET_ISSUBMITTING":return ar({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ar({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ar({},e,{values:hr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ar({},e,{touched:hr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ar({},e,{errors:hr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ar({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ar({},e,{touched:br(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ar({},e,{isSubmitting:!1});default:return e}}var Er={},Or={};function wr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,u=e.validateOnMount,c=void 0!==u&&u,l=e.isInitialValid,s=e.enableReinitialize,p=void 0!==s&&s,d=e.onSubmit,y=ur(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=ar({validateOnChange:r,validateOnBlur:i,validateOnMount:c,onSubmit:d},y),h=(0,n.useRef)(v.initialValues),b=(0,n.useRef)(v.initialErrors||Er),m=(0,n.useRef)(v.initialTouched||Or),_=(0,n.useRef)(v.initialStatus),g=(0,n.useRef)(!1),j=(0,n.useRef)({});(0,n.useEffect)((function(){}),[]),(0,n.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var S=(0,n.useReducer)(Sr,{values:v.initialValues,errors:v.initialErrors||Er,touched:v.initialTouched||Or,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],O=S[1],w=(0,n.useCallback)((function(e,t){return new Promise((function(r,n){var o=v.validate(e,t);null==o?r(Er):yr(o)?o.then((function(e){r(e||Er)}),(function(e){n(e)})):r(o)}))}),[v.validate]),T=(0,n.useCallback)((function(e,t){var r=v.validationSchema,n=lr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Ar(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(Er)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return hr(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;vr(t,i.path)||(t=hr(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[v.validationSchema]),A=(0,n.useCallback)((function(e,t){return new Promise((function(r){return r(j.current[e].validate(t))}))}),[]),k=(0,n.useCallback)((function(e){var t=Object.keys(j.current).filter((function(e){return lr(j.current[e].validate)})),r=t.length>0?t.map((function(t){return A(t,vr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=hr(e,t[n],r)),e}),{})}))}),[A]),F=(0,n.useCallback)((function(e){return Promise.all([k(e),v.validationSchema?T(e):{},v.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:kr})}))}),[v.validate,v.validationSchema,k,w,T]),C=Cr((function(e){return void 0===e&&(e=E.values),(0,tr.unstable_runWithPriority)(tr.LowPriority,(function(){return F(e).then((function(e){return g.current&&O({type:"SET_ERRORS",payload:e}),e}))}))})),R=Cr((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),F(e).then((function(e){return g.current&&(O({type:"SET_ISVALIDATING",payload:!1}),a()(E.errors,e)||O({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){c&&!0===g.current&&C(v.initialValues)}),[v.initialValues,c,C]);var P=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:b.current?b.current:v.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:v.initialTouched||{},o=e&&e.status?e.status:_.current?_.current:v.initialStatus;h.current=t,b.current=r,m.current=n,_.current=o,O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)((function(){p&&!0===g.current&&!a()(h.current,v.initialValues)&&(h.current=v.initialValues,P())}),[p,v.initialValues,P]),(0,n.useEffect)((function(){p&&!0===g.current&&!a()(b.current,v.initialErrors)&&(b.current=v.initialErrors||Er,O({type:"SET_ERRORS",payload:v.initialErrors||Er}))}),[p,v.initialErrors]),(0,n.useEffect)((function(){p&&!0===g.current&&!a()(m.current,v.initialTouched)&&(m.current=v.initialTouched||Or,O({type:"SET_TOUCHED",payload:v.initialTouched||Or}))}),[p,v.initialTouched]),(0,n.useEffect)((function(){p&&!0===g.current&&!a()(_.current,v.initialStatus)&&(_.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))}),[p,v.initialStatus,v.initialTouched]);var x=Cr((function(e){if(lr(j.current[e].validate)){var t=vr(E.values,e),r=j.current[e].validate(t);return yr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return Promise.resolve()})),I=(0,n.useCallback)((function(e,t){var r=t.validate;j.current[e]={validate:r}}),[]),M=(0,n.useCallback)((function(e){delete j.current[e]}),[]),U=Cr((function(e){return O({type:"SET_TOUCHED",payload:e}),i?C(E.values):Promise.resolve()})),D=(0,n.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),$=Cr((function(e){return O({type:"SET_VALUES",payload:e}),r?C(e):Promise.resolve()})),L=(0,n.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),V=Cr((function(e,t,n){return void 0===n&&(n=!0),O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),r&&n?C(hr(E.values,e,t)):Promise.resolve()})),B=(0,n.useCallback)((function(e,t){var r,n=t,o=e;if(!pr(e)){e.persist&&e.persist();var a=e.target,i=a.type,u=a.name,c=a.id,l=a.value,s=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||u||c,o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("true"==r||"false"==r)return!!t;if(t&&r)return Array.isArray(e)?e.concat(r):[r];if(!Array.isArray(e))return!e;var n=e.indexOf(r);return n<0?e:e.slice(0,n).concat(e.slice(n+1))}(vr(E.values,n),s,l):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}n&&V(n,o)}),[V,E.values]),N=(0,n.useCallback)((function(e){if(pr(e))return function(t){return B(t,e)};B(e)}),[B]),z=Cr((function(e,t,r){return void 0===t&&(t=!0),void 0===r&&(r=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),i&&r?C(E.values):Promise.resolve()})),W=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);z(a,!0)}),[z]),G=(0,n.useCallback)((function(e){if(pr(e))return function(t){return W(t,e)};W(e)}),[W]),H=(0,n.useCallback)((function(e){lr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),q=(0,n.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),K=(0,n.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),Y={resetForm:P,validateForm:R,validateField:x,setErrors:D,setFieldError:L,setFieldTouched:z,setFieldValue:V,setStatus:q,setSubmitting:K,setTouched:U,setValues:$,setFormikState:H},J=Cr((function(){return d(E.values,Y)})),Q=Cr((function(){return O({type:"SUBMIT_ATTEMPT"}),R().then((function(e){if(0===Object.keys(e).length){var t=J();if(void 0===t)return;return Promise.resolve(t).then((function(){g.current&&O({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(g.current)throw O({type:"SUBMIT_FAILURE"}),e}))}g.current&&O({type:"SUBMIT_FAILURE"})}))})),X=Cr((function(e){e&&e.preventDefault&&lr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&lr(e.stopPropagation)&&e.stopPropagation(),Q()})),Z=Cr((function(e){if(e&&e.preventDefault&&lr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&lr(e.stopPropagation)&&e.stopPropagation(),v.onReset){var t=v.onReset(E.values,Y);yr(t)?t.then(P):P()}else P()})),ee=(0,n.useCallback)((function(e){return{value:vr(E.values,e),error:vr(E.errors,e),touched:!!vr(E.touched,e),initialValue:vr(h.current,e),initialTouched:!!vr(m.current,e),initialError:vr(b.current,e)}}),[E.errors,E.touched,E.values]),te=(0,n.useCallback)((function(e){var t=sr(e),r=t?e.name:e,n=vr(E.values,r),o={name:r,value:n,onChange:N,onBlur:G};if(t){var a=e.type,i=e.value,u=e.as,c=e.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===u&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[G,N,E.values]),re=(0,n.useMemo)((function(){return!a()(h.current,E.values)}),[E.values]),ne=(0,n.useMemo)((function(){return void 0!==l?re?E.errors&&0===Object.keys(E.errors).length:!1!==l&&lr(l)?l(v):l:E.errors&&0===Object.keys(E.errors).length}),[l,re,E.errors,v]);return ar({},E,{initialValues:h.current,initialErrors:b.current,initialTouched:m.current,initialStatus:_.current,handleBlur:G,handleChange:N,handleReset:Z,handleSubmit:X,resetForm:P,setErrors:D,setFormikState:H,setFieldTouched:z,setFieldValue:V,setFieldError:L,setStatus:q,setSubmitting:K,setTouched:U,setValues:$,submitForm:Q,validateForm:R,validateField:x,isValid:ne,dirty:re,unregisterField:M,registerField:I,getFieldProps:te,getFieldMeta:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:c})}function Tr(e){var t=wr(e),r=e.component,o=e.children,a=e.render;return(0,n.useEffect)((function(){}),[]),(0,n.createElement)(_r,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?lr(o)?o(t):dr(o)?null:n.Children.only(o):null)}function Ar(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||R(e)?Ar(e):""!==e?e:void 0})):R(e[n])?t[n]=Ar(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function kr(e,t,r){var n=e.slice();return t.forEach((function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?f(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=f(e[o],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var Fr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Cr(e){var t=(0,n.useRef)(e);return Fr((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)}),[])}function Rr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,u=e.component,c=ur(e,["validate","name","render","children","as","component"]),l=jr(),s=(l.validate,l.validationSchema,ur(l,["validate","validationSchema"]));(0,n.useEffect)((function(){}),[]);var f=s.registerField,p=s.unregisterField;(0,n.useEffect)((function(){return f(r,{validate:t}),function(){p(r)}}),[f,p,r,t]);var d=s.getFieldProps(ar({name:r},c)),y=s.getFieldMeta(r),v={field:d,form:s};if(o)return o(ar({},v,{meta:y}));if(lr(a))return a(ar({},v,{meta:y}));if(u){if("string"==typeof u){var h=c.innerRef,b=ur(c,["innerRef"]);return(0,n.createElement)(u,ar({ref:h},d,b),a)}return(0,n.createElement)(u,ar({field:d,form:s},c),a)}var m=i||"input";if("string"==typeof m){var _=c.innerRef,g=ur(c,["innerRef"]);return(0,n.createElement)(m,ar({ref:_},d,g),a)}return(0,n.createElement)(m,ar({},d,c),a)}var Pr=(0,n.forwardRef)((function(e,t){var r=e.action,o=ur(e,["action"]),a=r||"#",i=jr(),u=i.handleReset,c=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:u,action:a},o))}));function xr(e){var t=function(t){return(0,n.createElement)(gr,null,(function(r){return(0,n.createElement)(e,Object.assign({},t,{formik:r}))}))},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",nr()(t,e)}Pr.displayName="Form";var Ir=function(e,t,r){var n=Mr(e);return n.splice(t,0,r),n},Mr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(ar({},e,{length:t+1}))}return[]},Ur=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,a=o.name,i=o.validateOnChange,u=o.formik,c=u.setFormikState,l=u.validateForm;c((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e;return ar({},r,{values:hr(r.values,a,e(vr(r.values,a))),errors:n?hr(r.errors,a,o(vr(r.errors,a))):r.errors,touched:t?hr(r.touched,a,i(vr(r.touched,a))):r.touched})}),(function(){i&&l()}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Mr(t),[or(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Mr(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Mr(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return Ir(r,e,t)}),(function(t){return Ir(t,e,null)}),(function(t){return Ir(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Mr(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(cr(r)),r.pop=r.pop.bind(cr(r)),r}ir(t,e);var r=t.prototype;return r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Mr(r):[];return t||(t=n[e]),lr(n.splice)&&n.splice(e,1),n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,o=t.render,a=t.children,i=t.name,u=t.formik,c=(u.validate,u.validationSchema,ar({},e,{form:ur(u,["validate","validationSchema"]),name:i}));return r?(0,n.createElement)(r,c):o?o(c):a?"function"==typeof a?a(c):dr(a)?null:n.Children.only(a):null},t}(n.Component);Ur.defaultProps={validateOnChange:!0};var Dr=function(e){function t(){return e.apply(this,arguments)||this}ir(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return vr(this.props.formik.errors,this.props.name)!==vr(e.formik.errors,this.props.name)||vr(this.props.formik.touched,this.props.name)!==vr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,o=e.render,a=e.children,i=e.name,u=ur(e,["component","formik","render","children","name"]),c=vr(r.touched,i),l=vr(r.errors,i);return c&&l?o?lr(o)?o(l):null:a?lr(a)?a(l):null:t?(0,n.createElement)(t,u,l):l:null},t}(n.Component),$r=xr(Dr);(function(e){function t(t){var r;r=e.call(this,t)||this;var n=t.render,o=t.children,a=t.component,i=t.as;return t.name,i&&o&&lr(o),a&&o&&lr(o),n&&o&&dr(o),r}ir(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e,t,r){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):vr(this.context.values,this.props.name)!==vr(r.values,this.props.name)||vr(this.context.errors,this.props.name)!==vr(r.errors,this.props.name)||vr(this.context.touched,this.props.name)!==vr(r.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==r.isSubmitting},r.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},r.render=function(){var e=this.props,t=(e.validate,e.name),r=e.render,o=e.as,a=e.children,i=e.component,u=(e.shouldUpdate,ur(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,l=(c.validate,c.validationSchema,ur(c,["validate","validationSchema"])),s={value:"radio"===u.type||"checkbox"===u.type?u.value:vr(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:s,meta:{value:vr(c.values,t),error:vr(c.errors,t),touched:!!vr(c.touched,t),initialValue:vr(c.initialValues,t),initialTouched:!!vr(c.initialTouched,t),initialError:vr(c.initialErrors,t)},form:l};if(r)return r(f);if(lr(a))return a(f);if(i){if("string"==typeof i){var p=u.innerRef,d=ur(u,["innerRef"]);return(0,n.createElement)(i,ar({ref:p},s,d),a)}return(0,n.createElement)(i,ar({field:s,form:c},u),a)}var y=o||"input";if("string"==typeof y){var v=u.innerRef,h=ur(u,["innerRef"]);return(0,n.createElement)(y,ar({ref:v},s,h),a)}return(0,n.createElement)(y,ar({},s,u),a)},t}(n.Component)).contextType=mr},86058:function(e,t,r){var n=r(72594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return n.isMemo(e)?i:u[e.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=d(r);o&&o!==y&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=c(t),v=c(r),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||n&&n[b]||v&&v[b]||u&&u[b])){var m=p(r,b);try{l(t,b,m)}catch(e){}}}}return t}},8266:function(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,s=t(e),f=t(i);if(s&&f){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(s!=f)return!1;var p=e instanceof Date,d=i instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==i.getTime();var y=e instanceof RegExp,v=i instanceof RegExp;if(y!=v)return!1;if(y&&v)return e.toString()==i.toString();var h=r(e);if((c=h.length)!==r(i).length)return!1;for(u=c;0!=u--;)if(!n.call(i,h[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=h[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},26697:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case a:case u:case i:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case h:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return j(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||j(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===h},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===m||e.$$typeof===_||e.$$typeof===g||e.$$typeof===b)},t.typeOf=j},72594:function(e,t,r){e.exports=r(26697)},39666:function(e,t){var r,n,o,a,i;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},s=Date.now();t.unstable_now=function(){return Date.now()-s},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},n=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,d=window.setTimeout,y=window.clearTimeout,v=window.requestAnimationFrame,h=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof v&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var b=p.now();t.unstable_now=function(){return p.now()-b}}var m=!1,_=null,g=-1,j=5,S=0;a=function(){return t.unstable_now()>=S},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):j=0<e?Math.floor(1e3/e):33.33};var E=new MessageChannel,O=E.port2;E.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();S=e+j;try{_(!0,e)?O.postMessage(null):(m=!1,_=null)}catch(e){throw O.postMessage(null),e}}else m=!1},r=function(e){_=e,m||(m=!0,O.postMessage(null))},n=function(e,r){g=d((function(){e(t.unstable_now())}),r)},o=function(){y(g),g=-1}}function w(e,t){var r=e.length;e.push(t);e:for(;;){var n=Math.floor((r-1)/2),o=e[n];if(!(void 0!==o&&0<k(o,t)))break e;e[n]=t,e[r]=o,r=n}}function T(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var a=2*(n+1)-1,i=e[a],u=a+1,c=e[u];if(void 0!==i&&0>k(i,r))void 0!==c&&0>k(c,i)?(e[n]=c,e[u]=r,n=u):(e[n]=i,e[a]=r,n=a);else{if(!(void 0!==c&&0>k(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}return null}function k(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var F=[],C=[],R=1,P=null,x=3,I=!1,M=!1,U=!1;function D(e){for(var t=T(C);null!==t;){if(null===t.callback)A(C);else{if(!(t.startTime<=e))break;A(C),t.sortIndex=t.expirationTime,w(F,t)}t=T(C)}}function $(e){if(U=!1,D(e),!M)if(null!==T(F))M=!0,r(L);else{var t=T(C);null!==t&&n($,t.startTime-e)}}function L(e,r){M=!1,U&&(U=!1,o()),I=!0;var i=x;try{for(D(r),P=T(F);null!==P&&(!(P.expirationTime>r)||e&&!a());){var u=P.callback;if(null!==u){P.callback=null,x=P.priorityLevel;var c=u(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?P.callback=c:P===T(F)&&A(F),D(r)}else A(F);P=T(F)}if(null!==P)var l=!0;else{var s=T(C);null!==s&&n($,s.startTime-r),l=!1}return l}finally{P=null,x=i,I=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=i;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=x;x=e;try{return t()}finally{x=r}},t.unstable_next=function(e){switch(x){case 1:case 2:case 3:var t=3;break;default:t=x}var r=x;x=t;try{return e()}finally{x=r}},t.unstable_scheduleCallback=function(e,a,i){var u=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;c="number"==typeof c&&0<c?u+c:u,i="number"==typeof i.timeout?i.timeout:V(e)}else i=V(e),c=u;return e={id:R++,callback:a,priorityLevel:e,startTime:c,expirationTime:i=c+i,sortIndex:-1},c>u?(e.sortIndex=c,w(C,e),null===T(F)&&e===T(C)&&(U?o():U=!0,n($,c-u))):(e.sortIndex=i,w(F,e),M||I||(M=!0,r(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=x;return function(){var r=x;x=t;try{return e.apply(this,arguments)}finally{x=r}}},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var r=T(F);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||a()},t.unstable_requestPaint=B,t.unstable_continueExecution=function(){M||I||(M=!0,r(L))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return T(F)},t.unstable_Profiling=null},9146:function(e,t,r){e.exports=r(39666)}}]);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @license React v0.17.0
|
|
2
|
-
* scheduler.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/** @license React v16.13.1
|
|
11
|
-
* react-is.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[58],{31709:function(e,t,a){a.d(t,{K:function(){return u}});var n=a(1024),r=a(99910),l=a(53808),i=a(52076),c=a(17439),o=a(63946),s=a(54753);function u(e){var t,a,u=e.showSpinner?n.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svgName){var d=null!==(t=e.className)&&void 0!==t?t:"";return e.disabled&&!e.appLink&&(d+=" pointer-events-none"),n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement(c.h,{appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u))}if(e.svgName)return n.createElement(c.h,{onClick:e.onClick,appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);if(e.tooltip&&e.appLink)return n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement(s.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u));if(e.appLink)return n.createElement(s.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);function m(t){e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions),l.q.isFunction(e.onClick)&&e.onClick(t)}return e.tooltip?n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement("button",{onClick:m,className:"".concat(null!==(a=e.className)&&void 0!==a?a:"").concat(e.disabled?" pointer-events-none":""),disabled:e.disabled},u)):n.createElement("button",{onClick:m,className:e.className,disabled:e.disabled},u)}},86347:function(e,t,a){a.d(t,{b:function(){return s},n:function(){return o}});var n=a(1024),r=a(92802),l=a(53808),i=a(85887);function c(e){var t=i.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(i.t.isObject(t[e])?t[e]=c(t[e]):null===t[e]&&delete t[e])})),t}function o(e){var t=e.castInitialValues,a=e.castValuesOnSubmit,i=e.initialValues,o=e.onSubmit,s=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),u=t&&e.validationSchema?e.validationSchema.cast(c(i)):i,d={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(r.J9,Object.assign({enableReinitialize:!0},s,{initialValues:u,onSubmit:function(t,n){var r=n.setSubmitting,l=n.resetForm,i=a&&e.validationSchema?e.validationSchema.cast(t):t;o(i,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&l(),r(!1)}))},initialStatus:d}),l.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function s(){return(0,r.u6)()}o.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7378:function(e,t,a){a.r(t),a.d(t,{PendingRequestsView:function(){return De}});var n=a(1024),r=a.n(n),l=a(86120),i=a(23689),c=a(57857),o=a(30317),s=a(25796),u=a(66703),d=a(90335),m=a(86242),p=a(2491),b=a(22430),f=a(50997),v=a(48404),y=a(19226),g=a(68893),E=a(17950),h=a(9416),N=a(26383),k=a(95061),w=a(86347),R=a(98495),S=a(92802),L=a(5173),O=a(31647),I=a(63151);function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var q={find:function(e,t){if(e&&e.children&&e.children.length)for(var a=function e(a){if(I.m.isEqual(a.id,t))return a;var n=a.children;if(n&&n.length)for(var r=0;r<n.length;r++){var l=e(n[r]);if(l)return l}},n=0;n<e.children.length;n++){var r=a(e.children[n]);if(r)return r}},getPath:function(e,t){for(var a=[t],n=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},r=n(t);r;){var l=q.find(e,r);l&&(a=[l].concat(function(e){if(Array.isArray(e))return C(e)}(i=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?C(e,t):void 0}}(i)||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.")}())),r=l?n(l):null}var i;return a},convertNestedObjectToTree:function(e){var t,a=Object.assign(Object.assign({},e.data),{children:e.children});return(null===(t=a.children)||void 0===t?void 0:t.length)&&(a.children=a.children.map(q.convertNestedObjectToTree)),a}},x=a(39396),T=a(63791),A=function(e){switch(e){case"up":return"JAT0R";case"down":return"ld41u";case"right":return"HHkPe";case"left":return"jZTRR"}};function P(e){return r().createElement(x.x,{svgName:T.vn.Caret,className:"".concat(A(e.direction)," svg-container d-inline-block ").concat(e.className)})}P.defaultProps={direction:"right"};var F=a(58424),j=a(53808),D=a(17439),V=a(63946),U=a(97874),_=a(52076),B=a(54753);function H(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function Q(e){var t=j.q.isFunction(e.action.label)?e.action.label:function(){return e.action.label};if(e.action.appLink)return n.createElement(B.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:H(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function a(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&_.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),j.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&O.Q.LocationUtils.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?n.createElement("a",{className:H(e.action.className),onClick:a,href:e.action.href},t()):n.createElement("span",{className:"cursor-pointer ".concat(H(e.action.className)),onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&a(e)}},t())}function Y(e){if(!e.actions||!e.actions.length)return n.createElement(n.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var a="actions-dropdown-".concat(U.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat("UCAnJ");return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),n.createElement("div",{className:t},n.createElement("button",{className:r,type:"button",id:a,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement(x.x,{svgName:T.vn.More,size:x.S.Small})),n.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":a},e.actions.map((function(e,t){return e.tooltip?n.createElement(V.u,{key:t,title:e.tooltip,spanHack:!0},n.createElement(Q,{action:e})):n.createElement(Q,{key:t,action:e})}))))}Y.defaultProps={dropdownToggleClassName:"btn btn-light"};var z=a(31709);function M(e){var t=n.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),a=[],r=[];t.forEach((function(e){e.button?a.push(e):r.push(e)}));var l="d-flex";return e.className&&(l+=" ".concat(e.className)),a.length||r.length?n.createElement("div",{className:l},n.createElement(n.Fragment,null,n.createElement("span",{className:"d-flex align-items-center"},a.length?a.map((function(e,t){return n.createElement(n.Fragment,{key:t},function(){if(e.label){var t=j.q.isFunction(e.label)?e.label:function(){return e.label};return n.createElement(z.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var a=n.createElement(D.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?n.createElement(V.u,{title:e.tooltip,spanHack:!0},a):a}())})):n.createElement(n.Fragment,null),e.sortComponent&&e.sortComponent,r.length?n.createElement(Y,{actions:r,dropdownToggleClassName:e.actionsDropdownClassName}):n.createElement(n.Fragment,null)))):n.createElement(n.Fragment,null)}var K={tree:"ZYvBT",text:"eVGWe",chevron:"v76mu",disabled:"wIrTq",root:"JDRq_",selected:"wT87N",actions:"fKJU4",node:"gOBrH",noActions:"fKmrr"};function G(e){function t(){var t="".concat(K.text," clamp-4");return e.className&&(t+=" ".concat(e.className)),t}return e.isDisabled?r().createElement(V.u,{title:e.disabledTooltip,spanHack:!0,spanHackClassName:"d-inline-block"},r().createElement("span",{className:"".concat(t()," text-muted ").concat(K.disabled)},e.text)):r().createElement("div",{className:t()},e.text)}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function X(e){var t,a,r,l=e.tree,i=e.selectedIds,c=e.getAppLink,o=e.onSelect,s=e.isDisabled,u=e.actions,d=e.isDropdown,m=n.useRef(null),p=n.useMemo((function(){return null==i?void 0:i.some((function(e){return q.find(l,e)}))}),[l,i]),b=(a=n.useState(p),r=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l=[],i=!0,c=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(c)throw r}}return l}}(a,r)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?J(e,t):void 0}}(a,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=b[0],v=b[1],y=null==i?void 0:i.some((function(e){return I.m.isEqual(l.id,e)})),g=!!l.children&&!!l.children.length;function E(){var t;e.multiSelect||v(!f),c?O.Q.AppLinkHelper.trigger(c(l)):(null===(t=e.isDisabled)||void 0===t?void 0:t.call(e,l))?o(null):null==o||o(l)}return n.useEffect((function(){if(m.current&&d){var e=function(e){e.stopPropagation(),E()};return m.current.addEventListener("click",e),function(){return m.current.removeEventListener("click",e)}}}),[m.current,o]),n.useEffect((function(){var t;e.multiSelect||f&&(p||y||!(null===(t=e.selectedIds)||void 0===t?void 0:t.length)&&(null==s?void 0:s(e.tree))||v(!1))}),[i]),n.createElement("li",{className:"position-relative ".concat(f?"":K.collapsed," ").concat(e.isRoot?K.root:"")},n.createElement("div",{className:"position-relative"},n.createElement(F.L,{className:(t="py-1 d-flex align-items-center w-100 position-relative ".concat(K.node),y&&(t+=" "+e.selectedLinkClassName),(null==u?void 0:u.length)||(t+=" "+K.noActions),p&&e.multiSelect&&(t+=" text-underline font-italic"),t),onClick:d?null:E,ref:m},g&&n.createElement("div",{className:K.chevron,onClick:function(t){t.stopPropagation(),e.multiSelect?v(!f):E()}},n.createElement(P,{direction:f?"down":"right"})),n.createElement(G,{text:l.name||l.description,isDisabled:null==s?void 0:s(l),disabledTooltip:e.disabledTooltip})),!!e.actions&&n.createElement(M,{className:K.actions,actions:null==u?void 0:u.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(l)})})),actionsDropdownClassName:"btn btn-light ".concat("tree-actions")}),f&&n.createElement(W,Object.assign({key:l.id},e,{isChild:!0}))))}X.defaultProps={selectedLinkClassName:K.selected};function W(e){var t=e.tree,a=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}(e,["tree"]);return t&&t.children?n.createElement("ul",{className:"m-0 p-0 list-unstyled ".concat(K.tree)},t.children.map((function(t,r){return n.createElement(X,Object.assign({key:r,tree:t},a,{isRoot:!e.isChild}))}))):n.createElement(n.Fragment,null)}var Z="Jh8Ep",$=a(48088),ee=a(54096);function te(e){var t=(0,ee.G)(f.Or.Library);function a(a){t.getLibraries((function(t){return e(t.toJSON(),a.toJSON())}))}r().useEffect((function(){return $.Radio.channel(f.Vk.LIBRARY).on("folder:created",a),function(){$.Radio.channel(f.Vk.LIBRARY).off("folder:created",a)}}),[e])}var ae=a(18582),ne=a(264),re="libraryRequests.destinationForm",le=(0,L.Ry)().shape({library:(0,L.Ry)().required(),folder:(0,L.Ry)().required()});function ie(e){var t,a,n,l,i,c,o,s=(0,w.b)();te((function(e,t){var a=e.find((function(e){return e.id.toString()===s.values.library.id.toString()}));if(a){s.setFieldValue("library",a,!0);var n=q.find(a,t.id);n&&s.setFieldValue("folder",n,!0)}}));var d=e.libraryRequest.sender&&"".concat(e.libraryRequest.sender.name," ").concat(e.libraryRequest.sender.surname),m="";return(null===(t=e.libraryRequest.senderCustomer)||void 0===t?void 0:t.id.toString())!==e.currentUser.get("customerId").toString()&&(m=null===(a=e.libraryRequest.senderCustomer)||void 0===a?void 0:a.name),r().createElement("div",{className:"bg-white rounded p-3 mb-3"},r().createElement(S.l0,null,r().createElement("div",{className:"row"},r().createElement("div",{className:"col-9"},!!d&&r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3"},r().createElement("label",null,r().createElement(u.x,{namespace:re,phrase:"requestedBy"}))),r().createElement("div",{className:"col-9"},r().createElement(r().Fragment,null,d,!!m&&r().createElement(r().Fragment,null," (",m,")")))),r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3"},r().createElement("label",null,r().createElement(u.x,{namespace:re,phrase:"videoSource"}))),r().createElement("div",{className:"col-9"},!!e.libraryRequest.sourceLibrary&&r().createElement("span",{className:"badge p-1 mr-1 text-white ".concat(ae.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},ae.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,ne.g.hasLite)),!!e.libraryRequest.sourceCategory&&r().createElement("span",{className:"ml-2"},e.libraryRequest.sourceCategory.name))),r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3"},r().createElement("label",null,r().createElement(u.x,{namespace:re,phrase:"addTo"}))),r().createElement("div",{className:"col-9"},e.libraries.length>1&&r().createElement("div",{className:"dropdown mb-2"},r().createElement("button",{className:"dropdown-toggle btn-block form-control text-left position-relative ".concat(Z),type:"button",id:"select-library","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r().createElement("div",{className:"text-truncate"},null!==(l=null===(n=s.values.library)||void 0===n?void 0:n.name)&&void 0!==l?l:r().createElement(u.x,{namespace:re,phrase:"selectALibrary"}))),r().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-library"},e.libraries.map((function(e,t){var a,n,l=e.id.toString()===(null===(n=null===(a=s.values.library)||void 0===a?void 0:a.id)||void 0===n?void 0:n.toString());return r().createElement("div",{className:"dropdown-item cursor-pointer ".concat(l?"active":""),key:t,onClick:function(){s.setFieldValue("library",e,!0),s.setFieldValue("folder",null,!0)}},e.name)})))),r().createElement("div",{className:"dropdown mb-2"},r().createElement("button",{className:"dropdown-toggle btn-block form-control text-left position-relative ".concat(Z),type:"button",id:"select-folder","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:!s.values.library},r().createElement("div",{className:"text-truncate"},null!==(c=s.values.library&&(null===(i=s.values.folder)||void 0===i?void 0:i.name))&&void 0!==c?c:r().createElement(u.x,{namespace:re,phrase:"selectAFolder"}))),r().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},r().createElement(R.ZP,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},r().createElement(W,{tree:s.values.library,onSelect:function(e){return s.setFieldValue("folder",e,!0)},selectedIds:(null===(o=s.values.folder)||void 0===o?void 0:o.id)?[s.values.folder.id]:void 0,selectedLinkClassName:"bg-light font-weight-500",isDropdown:!0}),s.values.library&&r().createElement(B.F,{className:"btn font-weight-bold rounded-0 w-100 text-left ".concat("hnfdj"),appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.Shared.NEW_FOLDER,args:[s.values.library.id]}},r().createElement(u.x,{namespace:re,phrase:"createNew"})))))))),r().createElement("div",{className:"col-3"},r().createElement("div",{className:"d-flex justify-content-end"},r().createElement("button",{type:"button",className:"btn btn-link",onClick:e.onReject},r().createElement(u.x,{namespace:re,phrase:"reject"})),r().createElement("button",{type:"submit",className:"btn btn-dark",disabled:!s.isValid},r().createElement(u.x,{namespace:re,phrase:"approve"})))))))}var ce=a(70065);function oe(e){function t(t,a){var n,r,l,i,c,o,s={location:ce.LocationContext.LibraryRequestDetails,actionType:t,entity:ce.EntityType.LibraryRequest,workflowPhase:ce.WorkflowPhase.Start},u={id:e.libraryRequest.id,videoId:null===(n=e.libraryRequest.object)||void 0===n?void 0:n.id,requestingUserId:null===(r=e.libraryRequest.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(l=e.libraryRequest.sourceLibrary)||void 0===l?void 0:l.id,sourceFolderId:null===(i=e.libraryRequest.sourceCategory)||void 0===i?void 0:i.id,destinationLibraryId:null===(c=null==a?void 0:a.library)||void 0===c?void 0:c.id,destinationFolderId:null===(o=null==a?void 0:a.folder)||void 0===o?void 0:o.id};_.k.logUserAction(u,s)}return r().createElement(w.n,{initialValues:{library:e.libraries.find((function(t){var a;return t.id.toString()===(null===(a=e.libraryRequest.destinationLibrary)||void 0===a?void 0:a.id.toString())})),folder:e.libraryRequest.destinationCategory},validationSchema:le,onSubmit:function(a){t(ce.UserAction.Approve,a),O.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.APPROVE,args:[e.libraryRequest.id],params:{libraryId:a.library.id,folderId:a.folder.id,queryParams:e.queryParams}})},validateOnMount:!0,enableReinitialize:!1},r().createElement(ie,{libraries:e.libraries,libraryRequest:e.libraryRequest,onReject:function(){t(ce.UserAction.Reject),O.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.REJECT,args:[e.libraryRequest.id],params:e.queryParams})},currentUser:e.currentUser}))}var se,ue;function de(e){var t=e===se.Large?5.8:2,a=e===se.Large?.36:.2;return"".concat(t/2-2*a,"rem")}function me(e){return e>=.75?"text-success":e>=.5?"text-warning":"text-danger"}function pe(e,t){var a="d-inline-block ".concat("p8Vgz");return e===se.Large&&(a+=" ".concat("N8KCI")),be(t)&&(a+=" ".concat("DKrcq")),a}function be(e){return"number"!=typeof e}function fe(e){var t,a=r().useCallback((function(t){if(t){var a=t.r.baseVal.value,n=2*Math.PI*a,r=n-e.percentage*n;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=r.toString()}}),[]);return r().createElement("svg",null,r().createElement("circle",{r:de(e.size),className:"asGGE"}),!be(e.percentage)&&r().createElement("circle",{ref:a,r:de(e.size),className:(t=e.percentage,t>=.75?"PXLNj":t>=.5?"ZckRN":"slBRg")}))}function ve(e){var t,a,n=function(e){if(!be(e))return+e.toFixed(2)}(e.percentage),l=e.layout===ue.LabelInside?se.Large:se.Small,i=e.customLabel||(be(a=n)?"--%":"".concat(Math.round(100*a),"%"));return e.layout===ue.LabelOnly?r().createElement("span",{className:me(n)},i):r().createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===ue.LabelBefore&&r().createElement("span",{className:"mr-2"},i),r().createElement("div",{className:pe(l,n)},r().createElement(fe,{percentage:n,size:l}),e.layout===ue.LabelInside&&r().createElement("span",{className:"tpmLR"},i)))}function ye(e){return r().createElement("div",{className:"bg-white rounded px-3 py-2 mb-3 d-flex align-items-center"},r().createElement(ve,null),r().createElement("div",{className:"pl-2"},r().createElement(u.x,{namespace:"libraryRequests.count",phrase:"count",options:{smartCount:e.count.count}})))}!function(e){e.Small="small",e.Large="large"}(se||(se={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(ue||(ue={})),ve.defaultProps={layout:ue.CircleOnly};var ge=a(97896),Ee=a(50072),he=a(30328),Ne=a(7044),ke=a(49824);function we(){return r().createElement("div",{className:"bg-white rounded p-3 mb-3"},r().createElement("div",{className:"row"},r().createElement("div",{className:"col-3"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),r().createElement("div",{className:"col-3 d-flex justify-content-end align-items-center"},r().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"3rem"}}),r().createElement("div",{className:"partial-loading-background rounded ml-2",style:{height:"2.5rem",width:"5rem"}})),r().createElement("div",{className:"col-3"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),r().createElement("div",{className:"col-6 mb-2"},r().createElement("div",{className:"partial-loading-background rounded mb-1",style:{height:"2.5rem"}}),r().createElement("div",{className:"partial-loading-background rounded",style:{height:"2.5rem"}}))))}var Re=a(85739),Se=a(59198),Le=a(64429),Oe=a(41026),Ie=a(41777),Ce=a(56154),qe="libraryRequests.pendingRequestsEmptyState",xe=c.T.encloseNamespace(qe);function Te(){return r().createElement("div",{className:"bg-white rounded p-3 py-5"},r().createElement(Ie.u,null,r().createElement(Ie.u.Image,{src:Ce.W.EmptyStates.PENDING_REQUESTS}),r().createElement(Ie.u.Info,{className:"mb-1"},r().createElement(u.x,{namespace:qe,phrase:"info"})),r().createElement(Ie.u.Cta,{text:xe("cta"),className:"btn btn-link text-info",appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l=[],i=!0,c=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Pe(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 Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var Fe="libraryRequests.pendingRequests",je=c.T.encloseNamespace(Fe);function De(e){var t,a,n=l.a.useGetFetch(),c=(0,p.Z)(),w=(0,Re.p)(e.queryParams.sort||d.D.Newest,[Ee.l.Pending]),R=l.a.useBasicFetch(e.id&&s.y.libraryRequest(e.id)),S=(0,Se.s)(e.id),L=l.a.useBasicFetch(s.y.pendingRequestsCount()),O=Ae(r().useState(null),2),I=O[0],C=O[1];(0,i.i)(k.T.getLibrariesFetchOptions((function(e){return C(e.toJSON())})),[]),te(C);var q=Ae(r().useState(null),2),x=q[0],T=q[1];(0,i.i)(v.p.getConfigFetchOptions(T),[]);var A=Ae(r().useState(null),2),P=A[0],F=A[1];(0,i.i)(y.K.getCurrentUserFetchOptions(F),[]),(0,o.v)(R),(0,he.A)({id:e.id,requests:w.items,appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS,params:e.queryParams}}),(0,Le.m)(R.data,"pending",e.queryParams),(0,Oe.K)(R.data);var j=((null===(t=w.items)||void 0===t?void 0:t.length)||w.hasCompleted)&&I&&x&&P,D=R.data&&S.hasCompleted;return r().createElement("div",null,r().createElement("h1",{className:"h2"},r().createElement(u.x,{namespace:Fe,phrase:"title"})),r().createElement("div",{className:"mb-3"},r().createElement(m.Oo,{breadcrumbs:[{name:je("libraryEditor"),appLink:{application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.HOME}},{name:je("title"),active:!0}]})),r().createElement(h.A,{active:"pending"}),!j||(null===(a=w.items)||void 0===a?void 0:a.length)?r().createElement(r().Fragment,null,r().createElement("div",{className:"d-flex justify-content-end mb-3"},r().createElement(E.F,{appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS,args:[e.id]},queryParams:e.queryParams})),r().createElement("div",{className:"row"},r().createElement("div",{className:"col-4"},j?r().createElement(r().Fragment,null,r().createElement(ye,{count:L.data}),r().createElement(N.q,{libraryRequests:w.items,selectedId:e.id,appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS},queryParams:e.queryParams,fetchNext:w.fetchNext,isFetching:w.isFetching,nextCursor:w.nextCursor})):r().createElement(Ne.p,null)),r().createElement("div",{className:"col-8"},j&&D?r().createElement(r().Fragment,null,r().createElement(oe,{key:R.data.id,libraryRequest:R.data,libraries:I,queryParams:e.queryParams,currentUser:P}),r().createElement(ge.x,{libraryRequest:R.data,config:x,currentUser:P,createViewKey:function(t,a){var r=s.y.createViewKey(e.id,(function(e){return a(new g.y(e))}),(function(e){return c.error(b.M.libraryApiError(e))}));n(r)},comments:S.items})):r().createElement(r().Fragment,null,r().createElement(we,null),r().createElement(ke.j,null))))):r().createElement(Te,null))}}}]);
|