@clickview/library-editor 1.64.0-rc.1 → 1.64.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 +2 -2
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
- package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
- package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
- package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
- package/dist/scripts/1524-0256080e94.chunk.js +1 -0
- package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
- package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
- package/dist/scripts/2035-550073891d.chunk.js +1 -0
- package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
- package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
- package/dist/scripts/2781-080a819ebe.chunk.js +2 -0
- package/dist/scripts/2781-080a819ebe.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
- package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
- package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
- package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
- package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
- package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
- package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
- package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
- package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
- package/dist/scripts/3450-4284a60805.chunk.js +1 -0
- package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
- package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
- package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
- package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
- package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
- package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
- package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
- package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
- package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
- package/dist/scripts/4327-274f834810.chunk.js +1 -0
- package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
- package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
- package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
- package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
- package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
- package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
- package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
- package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
- package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
- package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
- package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
- package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
- package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
- package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
- package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
- package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
- package/dist/scripts/6450-179a533a35.chunk.js +1 -0
- package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
- package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
- package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
- package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
- package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
- package/dist/scripts/6677-679046f587.chunk.js +1 -0
- package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
- package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
- package/dist/scripts/6774-e23988f663.chunk.js +1 -0
- package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
- package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
- package/dist/scripts/7071-21381973d1.chunk.js +1 -0
- package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
- package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
- package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
- package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
- package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
- package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
- package/dist/scripts/777-ad756c2420.chunk.js +2 -0
- package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
- package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
- package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
- package/dist/scripts/8306-7a937af758.chunk.js +1 -0
- package/dist/scripts/8362-e513473f50.chunk.js +1 -0
- package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
- package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
- package/dist/scripts/8757-218873f759.chunk.js +2 -0
- package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
- package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
- package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
- package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
- package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
- package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
- package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
- package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
- package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
- package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
- package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
- package/dist/scripts/9376-a690087044.chunk.js +1 -0
- package/dist/scripts/95-14875ad65e.chunk.js +1 -0
- package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
- package/dist/scripts/968-4da16290ef.chunk.js +1 -0
- package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
- package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
- package/dist/scripts/9766-22dd736844.chunk.js +2 -0
- package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
- package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
- package/dist/scripts/bundle-a45fdccb10.min.js +2 -0
- package/dist/scripts/{bundle-7c1c669253.min.js.LICENSE.txt → bundle-a45fdccb10.min.js.LICENSE.txt} +1 -1
- package/dist/scripts/polyfills-be59146258.min.js +1 -0
- package/package.json +1 -1
- package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
- package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
- package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
- package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
- package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
- package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
- package/dist/scripts/1934-84460445ad.chunk.js +0 -2
- package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
- package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
- package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
- package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
- package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
- package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
- package/dist/scripts/299-f415ca8856.chunk.js +0 -1
- package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
- package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
- package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
- package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
- package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
- package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
- package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
- package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
- package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
- package/dist/scripts/3643-877406d207.chunk.js +0 -1
- package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
- package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
- package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
- package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
- package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
- package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
- package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
- package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
- package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
- package/dist/scripts/4796-1330a255f5.chunk.js +0 -2
- package/dist/scripts/4796-1330a255f5.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
- package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
- package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
- package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
- package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
- package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
- package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
- package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
- package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
- package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
- package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
- package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
- package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
- package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
- package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
- package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
- package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
- package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
- package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
- package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
- package/dist/scripts/6768-416924be66.chunk.js +0 -1
- package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
- package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
- package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
- package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
- package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
- package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
- package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
- package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
- package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
- package/dist/scripts/775-96028af5a8.chunk.js +0 -1
- package/dist/scripts/777-03d78e4162.chunk.js +0 -2
- package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
- package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
- package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
- package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
- package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
- package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
- package/dist/scripts/8591-047736d51e.chunk.js +0 -1
- package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
- package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
- package/dist/scripts/8862-292b678cef.chunk.js +0 -1
- package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
- package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
- package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
- package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
- package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
- package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
- package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
- package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
- package/dist/scripts/9357-64d247d840.chunk.js +0 -1
- package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
- package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
- package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
- package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
- package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
- package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
- package/dist/scripts/9766-da39830c71.chunk.js +0 -2
- package/dist/scripts/9825-965bc63629.chunk.js +0 -1
- package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
- package/dist/scripts/bundle-7c1c669253.min.js +0 -2
- package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
- /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5173],{61124:function(t,e,n){var r=n(90278),u=n(96718),i=n(66996);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=u,a.prototype.has=i,t.exports=a},26974:function(t){t.exports=function(t,e,n,r){var u=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++u]);++u<i;)n=e(n,t[u],u,t);return n}},44793:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},30804:function(t){t.exports=function(t){return t.split("")}},64159:function(t){var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},60641:function(t,e,n){var r=n(32630)();t.exports=r},35897:function(t,e,n){var r=n(60641),u=n(52635);t.exports=function(t,e){return t&&r(t,e,u)}},48402:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},70007:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},31071:function(t,e,n){var r=n(67229),u=n(3387);t.exports=function t(e,n,i,a,o){return e===n||(null==e||null==n||!u(e)&&!u(n)?e!=e&&n!=n:r(e,n,i,a,t,o))}},67229:function(t,e,n){var r=n(4281),u=n(12503),i=n(6001),a=n(88784),o=n(26686),s=n(77236),f=n(98752),c=n(14812),l="[object Arguments]",d="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,m,_){var y=s(t),g=s(e),x=y?d:o(t),F=g?d:o(e),b=(x=x==l?h:x)==h,w=(F=F==l?h:F)==h,E=x==F;if(E&&f(t)){if(!f(e))return!1;y=!0,b=!1}if(E&&!b)return _||(_=new r),y||c(t)?u(t,e,n,p,m,_):i(t,e,x,n,p,m,_);if(!(1&n)){var D=b&&v.call(t,"__wrapped__"),O=w&&v.call(e,"__wrapped__");if(D||O){var j=D?t.value():t,A=O?e.value():e;return _||(_=new r),m(j,A,n,p,_)}}return!!E&&(_||(_=new r),a(t,e,n,p,m,_))}},9157:function(t,e,n){var r=n(4281),u=n(31071);t.exports=function(t,e,n,i){var a=n.length,o=a,s=!i;if(null==t)return!o;for(t=Object(t);a--;){var f=n[a];if(s&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++a<o;){var c=(f=n[a])[0],l=t[c],d=f[1];if(s&&f[2]){if(void 0===l&&!(c in t))return!1}else{var h=new r;if(i)var v=i(l,d,c,t,e,h);if(!(void 0===v?u(d,l,3,i,h):v))return!1}}return!0}},88904:function(t,e,n){var r=n(68418),u=n(54555),i=n(15362),a=n(77236),o=n(21651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?u(t[0],t[1]):r(t):o(t)}},68418:function(t,e,n){var r=n(9157),u=n(59182),i=n(57375);t.exports=function(t){var e=u(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},54555:function(t,e,n){var r=n(31071),u=n(33795),i=n(33646),a=n(73266),o=n(41457),s=n(57375),f=n(18780);t.exports=function(t,e){return a(t)&&o(e)?s(f(t),e):function(n){var a=u(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},61712:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},14815:function(t,e,n){var r=n(80166);t.exports=function(t){return function(e){return r(e,t)}}},40516:function(t){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},4293:function(t){t.exports=function(t,e,n){var r=-1,u=t.length;e<0&&(e=-e>u?0:u+e),(n=n>u?u:n)<0&&(n+=u),u=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(u);++r<u;)i[r]=t[r+e];return i}},80925:function(t,e,n){var r=n(26460);t.exports=function(t,e){return r(e,function(e){return t[e]})}},30555:function(t){t.exports=function(t,e){return t.has(e)}},24793:function(t,e,n){var r=n(4293);t.exports=function(t,e,n){var u=t.length;return n=void 0===n?u:n,!e&&n>=u?t:r(t,e,n)}},32630:function(t){t.exports=function(t){return function(e,n,r){for(var u=-1,i=Object(e),a=r(e),o=a.length;o--;){var s=a[t?o:++u];if(!1===n(i[s],s,i))break}return e}}},54660:function(t,e,n){var r=n(24793),u=n(34327),i=n(51119),a=n(41119);t.exports=function(t){return function(e){e=a(e);var n=u(e)?i(e):void 0,o=n?n[0]:e.charAt(0),s=n?r(n,1).join(""):e.slice(1);return o[t]()+s}}},34958:function(t,e,n){var r=n(26974),u=n(58638),i=n(90280),a=RegExp("['’]","g");t.exports=function(t){return function(e){return r(i(u(e).replace(a,"")),t,"")}}},80968:function(t,e,n){var r=n(40516)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=r},12503:function(t,e,n){var r=n(61124),u=n(44793),i=n(30555);t.exports=function(t,e,n,a,o,s){var f=1&n,c=t.length,l=e.length;if(c!=l&&!(f&&l>c))return!1;var d=s.get(t),h=s.get(e);if(d&&h)return d==e&&h==t;var v=-1,p=!0,m=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++v<c;){var _=t[v],y=e[v];if(a)var g=f?a(y,_,v,e,t,s):a(_,y,v,t,e,s);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!u(e,function(t,e){if(!i(m,e)&&(_===t||o(_,t,n,a,s)))return m.push(e)})){p=!1;break}}else if(_!==y&&!o(_,y,n,a,s)){p=!1;break}}return s.delete(t),s.delete(e),p}},6001:function(t,e,n){var r=n(54690),u=n(5982),i=n(26530),a=n(12503),o=n(52876),s=n(66350),f=r?r.prototype:void 0,c=f?f.valueOf:void 0;t.exports=function(t,e,n,r,f,l,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new u(t),new u(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=o;case"[object Set]":var v=1&r;if(h||(h=s),t.size!=e.size&&!v)return!1;var p=d.get(t);if(p)return p==e;r|=2,d.set(t,e);var m=a(h(t),h(e),r,f,l,d);return d.delete(t),m;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},88784:function(t,e,n){var r=n(36094),u=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,o){var s=1&n,f=r(t),c=f.length;if(c!=r(e).length&&!s)return!1;for(var l=c;l--;){var d=f[l];if(!(s?d in e:u.call(e,d)))return!1}var h=o.get(t),v=o.get(e);if(h&&v)return h==e&&v==t;var p=!0;o.set(t,e),o.set(e,t);for(var m=s;++l<c;){var _=t[d=f[l]],y=e[d];if(i)var g=s?i(y,_,d,e,t,o):i(_,y,d,t,e,o);if(!(void 0===g?_===y||a(_,y,n,i,o):g)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var x=t.constructor,F=e.constructor;x==F||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof F&&F instanceof F||(p=!1)}return o.delete(t),o.delete(e),p}},59182:function(t,e,n){var r=n(41457),u=n(52635);t.exports=function(t){for(var e=u(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},37383:function(t,e,n){var r=n(18422),u=n(86981),i=n(77236),a=n(74363),o=n(99216),s=n(18780);t.exports=function(t,e,n){for(var f=-1,c=(e=r(e,t)).length,l=!1;++f<c;){var d=s(e[f]);if(!(l=null!=t&&n(t,d)))break;t=t[d]}return l||++f!=c?l:!!(c=null==t?0:t.length)&&o(c)&&a(d,c)&&(i(t)||u(t))}},34327:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},65471:function(t){var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},41457:function(t,e,n){var r=n(85973);t.exports=function(t){return t==t&&!r(t)}},17807:function(t){t.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},52876:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},57375:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},96718:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},66996:function(t){t.exports=function(t){return this.__data__.has(t)}},66350:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},51119:function(t,e,n){var r=n(30804),u=n(34327),i=n(64501);t.exports=function(t){return u(t)?i(t):r(t)}},64501:function(t){var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",u="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+u+")?",f="[\\ufe0e\\ufe0f]?",c=f+s+"(?:\\u200d(?:"+[i,a,o].join("|")+")"+f+s+")*",l="(?:"+[i+r+"?",r,a,o,n].join("|")+")",d=RegExp(u+"(?="+u+")|"+l+c,"g");t.exports=function(t){return t.match(d)||[]}},6645:function(t){var e="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",o="\\d+",s="["+n+"]",f="["+r+"]",c="[^"+e+i+o+n+r+u+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+u+"]",v="(?:"+f+"|"+c+")",p="(?:"+h+"|"+c+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",_="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",x=g+y+"(?:\\u200d(?:"+["[^"+e+"]",l,d].join("|")+")"+g+y+")*",F="(?:"+[s,l,d].join("|")+")"+x,b=RegExp([h+"?"+f+"+"+m+"(?="+[a,h,"$"].join("|")+")",p+"+"+_+"(?="+[a,h+v,"$"].join("|")+")",h+"?"+v+"+"+m,h+"+"+_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,F].join("|"),"g");t.exports=function(t){return t.match(b)||[]}},39935:function(t,e,n){var r=n(73400),u=n(34958)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=u},73400:function(t,e,n){var r=n(41119),u=n(23940);t.exports=function(t){return u(r(t).toLowerCase())}},13382:function(t,e,n){var r=n(42327);t.exports=function(t,e){return r(t,5,e="function"==typeof e?e:void 0)}},58638:function(t,e,n){var r=n(80968),u=n(41119),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=u(t))&&t.replace(i,r).replace(a,"")}},23973:function(t,e,n){var r=n(48402),u=n(37383);t.exports=function(t,e){return null!=t&&u(t,e,r)}},33646:function(t,e,n){var r=n(70007),u=n(37383);t.exports=function(t,e){return null!=t&&u(t,e,r)}},15362:function(t){t.exports=function(t){return t}},34461:function(t,e,n){var r=n(94318),u=n(77236),i=n(3387);t.exports=function(t){return"string"==typeof t||!u(t)&&i(t)&&"[object String]"==r(t)}},52169:function(t,e,n){var r=n(40999),u=n(35897),i=n(88904);t.exports=function(t,e){var n={};return e=i(e,3),u(t,function(t,u,i){r(n,e(t,u,i),t)}),n}},53792:function(t,e,n){var r=n(40999),u=n(35897),i=n(88904);t.exports=function(t,e){var n={};return e=i(e,3),u(t,function(t,u,i){r(n,u,e(t,u,i))}),n}},21651:function(t,e,n){var r=n(61712),u=n(14815),i=n(73266),a=n(18780);t.exports=function(t){return i(t)?r(a(t)):u(t)}},54002:function(t,e,n){var r=n(34958)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=r},22702:function(t,e,n){var r=n(54690),u=n(66438),i=n(26686),a=n(81580),o=n(34461),s=n(17807),f=n(52876),c=n(66350),l=n(51119),d=n(90567),h=r?r.iterator:void 0;t.exports=function(t){if(!t)return[];if(a(t))return o(t)?l(t):u(t);if(h&&t[h])return s(t[h]());var e=i(t);return("[object Map]"==e?f:"[object Set]"==e?c:d)(t)}},23940:function(t,e,n){var r=n(54660)("toUpperCase");t.exports=r},90567:function(t,e,n){var r=n(80925),u=n(52635);t.exports=function(t){return null==t?[]:r(t,u(t))}},90280:function(t,e,n){var r=n(64159),u=n(65471),i=n(41119),a=n(6645);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?u(t)?a(t):r(t):t.match(e)||[]}},18479:function(t){"use strict";function e(t){this._maxSize=t,this.clear()}e.prototype.clear=function(){this._size=0,this._values={}},e.prototype.get=function(t){return this._values[t]},e.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),this._values.hasOwnProperty(t)||this._size++,this._values[t]=e};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,u=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,o=!1,s=new e(512),f=new e(512),c=new e(512);try{new Function("")}catch(t){o=!0}function l(t){return s.get(t)||s.set(t,d(t).map(function(t){return t.replace(a,"$2")}))}function d(t){return t.match(n)}function h(t,e,n){return"string"==typeof e&&(n=e,e=!1),n=n||"data",(t=t||"")&&"["!==t.charAt(0)&&(t="."+t),e?function(t,e){var n,r=e,u=d(t);return v(u,function(t,e,u,i,a){n=i===a.length-1,r+=(t=e||u?"["+t+"]":"."+t)+(n?")":" || {})")}),new Array(u.length+1).join("(")+r}(t,n):n+t}function v(t,e,n){var r,u,i,a,o=t.length;for(u=0;u<o;u++)(r=t[u])&&(m(r)&&(r='"'+r+'"'),i=!(a=p(r))&&/^\d+$/.test(r),e.call(n,r,a,i,u,t))}function p(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function m(t){return!p(t)&&(function(t){return t.match(u)&&!t.match(r)}(t)||function(t){return i.test(t)}(t))}t.exports={Cache:e,expr:h,split:d,normalizePath:l,setter:o?function(t){var e=l(t);return function(t,n){return function(t,e,n){for(var r=0,u=t.length;r<u-1;)e=e[t[r++]];e[t[r]]=n}(e,t,n)}}:function(t){return f.get(t)||f.set(t,new Function("data, value",h(t,"data")+" = value"))},getter:o?function(t,e){var n=l(t);return function(t){return function(t,e,n){for(var r=0,u=t.length;r<u;){if(null==n&&e)return;n=n[t[r++]]}return n}(n,e,t)}}:function(t,e){var n=t+"_"+e;return c.get(n)||c.set(n,new Function("data","return "+h(t,e,"data")))},join:function(t){return t.reduce(function(t,e){return t+(p(e)||r.test(e)?"["+e+"]":(t?".":"")+e)},"")},forEach:function(t,e,n){v(d(t),e,n)}}},63958:function(t){"use strict";function e(t){return Array.prototype.slice.apply(t)}var n="pending",r="resolved",u="rejected";function i(t){this.status=n,this._continuations=[],this._parent=null,this._paused=!1,t&&t.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function a(t){return t&&"function"==typeof t.then}function o(t){return t}function s(t){return"undefined"!=typeof window&&"AggregateError"in window?new window.AggregateError(t):{errors:t}}if(i.prototype={then:function(t,e){var n=i.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:n,nextFn:t,catchFn:e}),n;if(e)try{var r=e(this._error);return a(r)?(this._chainPromiseData(r,n),n):i.resolve(r)._setParent(this)}catch(t){return i.reject(t)._setParent(this)}return i.reject(this._error)._setParent(this)}return this._continuations.push({promise:n,nextFn:t,catchFn:e}),this._runResolutions(),n},catch:function(t){if(this._isResolved())return i.resolve(this._data)._setParent(this);var e=i.unresolved()._setParent(this);return this._continuations.push({promise:e,catchFn:t}),this._runRejections(),e},finally:function(t){var e=!1;function n(n,r){if(!e){e=!0,t||(t=o);var u=t(n);return a(u)?u.then(function(){if(r)throw r;return n}):n}}return this.then(function(t){return n(t)}).catch(function(t){return n(null,t)})},pause:function(){return this._paused=!0,this},resume:function(){var t=this._findFirstPaused();return t&&(t._paused=!1,t._runResolutions(),t._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(t,e){if(e.promise){var n={promise:e.promise,children:e.promise._findAncestry()};t.push(n)}return t},[])},_setParent:function(t){if(this._parent)throw new Error("parent already set");return this._parent=t,this},_continueWith:function(t){var e=this._findFirstPending();e&&(e._data=t,e._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(t){return t._isPending&&t._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(t){return t._paused})},_findFirstAncestor:function(t){for(var e,n=this;n;)t(n)&&(e=n),n=n._parent;return e},_failWith:function(t){var e=this._findFirstPending();e&&(e._error=t,e._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var t=this._error,e=this._takeContinuations(),n=this;e.forEach(function(e){if(e.catchFn)try{var r=e.catchFn(t);n._handleUserFunctionResult(r,e.promise)}catch(t){e.promise.reject(t)}else e.promise.reject(t)})}},_runResolutions:function(){if(!this._paused&&this._isResolved()&&!this._isPending()){var t=this._takeContinuations(),e=this._data,n=this;return t.forEach(function(t){if(t.nextFn)try{var r=t.nextFn(e);n._handleUserFunctionResult(r,t.promise)}catch(e){n._handleResolutionError(e,t)}else t.promise&&t.promise.resolve(e)}),a(this._data)?this._handleWhenResolvedDataIsPromise(this._data):void 0}},_handleResolutionError:function(t,e){if(this._setRejected(),e.catchFn)try{return void e.catchFn(t)}catch(e){t=e}e.promise&&e.promise.reject(t)},_handleWhenResolvedDataIsPromise:function(t){var e=this;return t.then(function(t){e._data=t,e._runResolutions()}).catch(function(t){e._error=t,e._setRejected(),e._runRejections()})},_handleUserFunctionResult:function(t,e){a(t)?this._chainPromiseData(t,e):e.resolve(t)},_chainPromiseData:function(t,e){t.then(function(t){e.resolve(t)}).catch(function(t){e.reject(t)})},_setResolved:function(){this.status=r,this._paused||this._runResolutions()},_setRejected:function(){this.status=u,this._paused||this._runRejections()},_isPending:function(){return this.status===n},_isResolved:function(){return this.status===r},_isRejected:function(){return this.status===u}},i.resolve=function(t){return new i(function(e,n){a(t)?t.then(function(t){e(t)}).catch(function(t){n(t)}):e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.unresolved=function(){return new i(function(t,e){this.resolve=t,this.reject=e})},i.all=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new i(function(e,n){var r=[],u=0,a=!1;t.forEach(function(o,s){i.resolve(o).then(function(n){r[s]=n,(u+=1)===t.length&&e(r)}).catch(function(t){!function(t){a||(a=!0,n(t))}(t)})})}):i.resolve([])},i.any=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new i(function(e,n){var r=[],u=0,a=!1;t.forEach(function(o,f){i.resolve(o).then(function(t){a||(a=!0,e(t))}).catch(function(e){r[f]=e,(u+=1)===t.length&&n(s(r))})})}):i.reject(s([]))},i.allSettled=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new i(function(e){var n=[],r=0,u=function(){(r+=1)===t.length&&e(n)};t.forEach(function(t,e){i.resolve(t).then(function(t){n[e]={status:"fulfilled",value:t},u()}).catch(function(t){n[e]={status:"rejected",reason:t},u()})})}):i.resolve([])},Promise===i)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var f=Promise;i.installGlobally=function(t){if(Promise===i)return t;var n=function(t){if(void 0===t||t.__patched)return t;var n=t;return t=function(){n.apply(this,e(arguments))},t.__patched=!0,t}(t);return Promise=i,n},i.uninstallGlobally=function(){Promise===i&&(Promise=f)},t.exports={SynchronousPromise:i}},99556:function(t){function e(t,e){var n=t.length,r=new Array(n),u={},i=n,a=function(t){for(var e=new Map,n=0,r=t.length;n<r;n++){var u=t[n];e.has(u[0])||e.set(u[0],new Set),e.has(u[1])||e.set(u[1],new Set),e.get(u[0]).add(u[1])}return e}(e),o=function(t){for(var e=new Map,n=0,r=t.length;n<r;n++)e.set(t[n],n);return e}(t);for(e.forEach(function(t){if(!o.has(t[0])||!o.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)u[i]||s(t[i],i,new Set);return r;function s(t,e,i){if(i.has(t)){var f;try{f=", node was:"+JSON.stringify(t)}catch(t){f=""}throw new Error("Cyclic dependency"+f)}if(!o.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!u[e]){u[e]=!0;var c=a.get(t)||new Set;if(e=(c=Array.from(c)).length){i.add(t);do{var l=c[--e];s(l,o.get(l),i)}while(e);i.delete(t)}r[--n]=t}}}t.exports=function(t){return e(function(t){for(var e=new Set,n=0,r=t.length;n<r;n++){var u=t[n];e.add(u[0]),e.add(u[1])}return Array.from(e)}(t),t)},t.exports.array=e},99044:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=void 0;var u=r(n(23973)),i=r(n(3098)),a=function(){function t(t,e){if(this.refs=t,"function"!=typeof e){if(!(0,u.default)(e,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var n=e.is,r=e.then,i=e.otherwise,a="function"==typeof n?n:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.every(function(t){return t===n})};this.fn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=e.pop(),o=e.pop(),s=a.apply(void 0,e)?r:i;if(s)return"function"==typeof s?s(o):o.concat(s.resolve(u))}}else this.fn=e}return t.prototype.resolve=function(t,e){var n=this.refs.map(function(t){return t.getValue(e)}),r=this.fn.apply(t,n.concat(t,e));if(void 0===r||r===t)return t;if(!(0,i.default)(r))throw new TypeError("conditions must return a schema object");return r.resolve(e)},t}(),o=a;e.default=o,t.exports=e.default},78664:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=void 0;var u=r(n(3098)),i=function(){function t(t){this._resolve=function(e,n){var r=t(e,n);if(!(0,u.default)(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(n)}}var e=t.prototype;return e.resolve=function(t){return this._resolve(t.value,t)},e.cast=function(t,e){return this._resolve(t,e).cast(t,e)},e.validate=function(t,e){return this._resolve(t,e).validate(t,e)},e.validateSync=function(t,e){return this._resolve(t,e).validateSync(t,e)},e.validateAt=function(t,e,n){return this._resolve(e,n).validateAt(t,e,n)},e.validateSyncAt=function(t,e,n){return this._resolve(e,n).validateSyncAt(t,e,n)},t}();i.prototype.__isYupSchema__=!0;var a=i;e.default=a,t.exports=e.default},44618:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=void 0;var u=r(n(448)),i=n(18479),a=function(){function t(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;var n=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,i.getter)(this.path,!0),this.map=e.map}var e=t.prototype;return e.getValue=function(t){var e=this.isContext?t.context:this.isValue?t.value:t.parent;return this.getter&&(e=this.getter(e||{})),this.map&&(e=this.map(e)),e},e.cast=function(t,e){return this.getValue((0,u.default)({},e,{value:t}))},e.resolve=function(){return this},e.describe=function(){return{type:"ref",key:this.key}},e.toString=function(){return"Ref("+this.key+")"},t.isRef=function(t){return t&&t.__isYupRef},t}();e.default=a,a.prototype.__isYupRef=!0,t.exports=e.default},81699:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=a;var u=r(n(74107)),i=/\$\{\s*(\w+)\s*\}/g;function a(t,e,n,r){var u=this;this.name="ValidationError",this.value=e,this.path=n,this.type=r,this.errors=[],this.inner=[],t&&[].concat(t).forEach(function(t){u.errors=u.errors.concat(t.errors||t),t.inner&&(u.inner=u.inner.concat(t.inner.length?t.inner:t))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,a)}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.isError=function(t){return t&&"ValidationError"===t.name},a.formatError=function(t,e){var n;"string"==typeof t&&(n=t,t=function(t){return n.replace(i,function(e,n){return(0,u.default)(t[n])})});var r=function(e){return e.path=e.label||e.path||"this","function"==typeof t?t(e):t};return 1===arguments.length?r:r(e)},t.exports=e.default},41249:function(t,e,n){"use strict";var r=n(54168),u=n(34169);e.__esModule=!0,e.default=void 0;var i=u(n(448)),a=u(n(82683)),o=u(n(9122)),s=u(n(58628)),f=u(n(3098)),c=u(n(29331)),l=u(n(74107)),d=u(n(96199)),h=n(12293),v=r(n(65638));function p(){var t=(0,a.default)(["","[","]"]);return p=function(){return t},t}var m=_;function _(t){var e=this;if(!(this instanceof _))return new _(t);d.default.call(this,{type:"array"}),this._subType=void 0,this.withMutation(function(){e.transform(function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null}),t&&e.of(t)})}e.default=m,(0,o.default)(_,d.default,{_typeCheck:function(t){return Array.isArray(t)},_cast:function(t,e){var n=this,r=d.default.prototype._cast.call(this,t,e);if(!this._typeCheck(r)||!this._subType)return r;var u=!1,i=r.map(function(t){var r=n._subType.cast(t,e);return r!==t&&(u=!0),r});return u?i:r},_validate:function(t,e){var n=this;void 0===e&&(e={});var r=[],u=e.sync,a=e.path,o=this._subType,s=this._option("abortEarly",e),f=this._option("recursive",e),l=null!=e.originalValue?e.originalValue:t;return d.default.prototype._validate.call(this,t,e).catch((0,v.propagateErrors)(s,r)).then(function(t){if(!f||!o||!n._typeCheck(t)){if(r.length)throw r[0];return t}l=l||t;var d=t.map(function(n,r){var u=(0,c.default)(p(),e.path,r),a=(0,i.default)({},e,{path:u,strict:!0,parent:t,originalValue:l[r]});return!o.validate||o.validate(n,a)});return(0,v.default)({sync:u,path:a,value:t,errors:r,endEarly:s,validations:d})})},_isPresent:function(t){return d.default.prototype._cast.call(this,t)&&t.length>0},of:function(t){var e=this.clone();if(!1!==t&&!(0,f.default)(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+(0,l.default)(t));return e._subType=t,e},min:function(t,e){return e=e||h.array.min,this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,s.default)(e)||e.length>=this.resolve(t)}})},max:function(t,e){return e=e||h.array.max,this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(e){return(0,s.default)(e)||e.length<=this.resolve(t)}})},ensure:function(){var t=this;return this.default(function(){return[]}).transform(function(e){return t.isType(e)?e:null===e?[]:[].concat(e)})},compact:function(t){var e=t?function(e,n,r){return!t(e,n,r)}:function(t){return!!t};return this.transform(function(t){return null!=t?t.filter(e):t})},describe:function(){var t=d.default.prototype.describe.call(this);return this._subType&&(t.innerType=this._subType.describe()),t}}),t.exports=e.default},26071:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=void 0;var u=r(n(9122)),i=r(n(96199)),a=o;function o(){var t=this;if(!(this instanceof o))return new o;i.default.call(this,{type:"boolean"}),this.withMutation(function(){t.transform(function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(t))return!0;if(/^(false|0)$/i.test(t))return!1}return t})})}e.default=a,(0,u.default)(o,i.default,{_typeCheck:function(t){return t instanceof Boolean&&(t=t.valueOf()),"boolean"==typeof t}}),t.exports=e.default},61353:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=void 0;var u=r(n(96199)),i=r(n(9122)),a=r(n(43138)),o=n(12293),s=r(n(58628)),f=r(n(44618)),c=new Date(""),l=d;function d(){var t=this;if(!(this instanceof d))return new d;u.default.call(this,{type:"date"}),this.withMutation(function(){t.transform(function(t){return this.isType(t)?t:(t=(0,a.default)(t))?new Date(t):c})})}e.default=l,(0,i.default)(d,u.default,{_typeCheck:function(t){return e=t,"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(t.getTime());var e},min:function(t,e){void 0===e&&(e=o.date.min);var n=t;if(!f.default.isRef(n)&&(n=this.cast(t),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(t){return(0,s.default)(t)||t>=this.resolve(n)}})},max:function(t,e){void 0===e&&(e=o.date.max);var n=t;if(!f.default.isRef(n)&&(n=this.cast(t),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(t){return(0,s.default)(t)||t<=this.resolve(n)}})}}),t.exports=e.default},5173:function(t,e,n){"use strict";var r=n(34169);e.O7=void 0,r(n(96199)).default;var u=r(n(26071));u.default;var i=r(n(76921));e.Z_=i.default,r(n(44489)).default,r(n(61353)).default;var a=r(n(4509));e.Ry=a.default;var o=r(n(41249));e.IX=o.default;r(n(44618)),r(n(78664));r(n(81699)).default,r(n(55058)).default,r(n(3098)).default,r(n(60757)).default;var s=u.default;e.O7=s},12293:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=e.array=e.object=e.boolean=e.date=e.number=e.string=e.mixed=void 0;var u=r(n(74107)),i={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(t){var e=t.path,n=t.type,r=t.value,i=t.originalValue,a=null!=i&&i!==r,o=e+" must be a `"+n+"` type, but the final value was: `"+(0,u.default)(r,!0)+"`"+(a?" (cast from the value `"+(0,u.default)(i,!0)+"`).":".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o}};e.mixed=i;var a={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};e.string=a;var o={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};e.number=o;var s={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};e.date=s;var f={};e.boolean=f;var c={noUnknown:"${path} field cannot have keys not specified in the object shape"};e.object=c;var l={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"};e.array=l;var d={mixed:i,string:a,number:o,date:s,object:c,array:l,boolean:f};e.default=d},96199:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=y;var u=r(n(448)),i=r(n(23973)),a=r(n(13382)),o=r(n(22702)),s=n(12293),f=r(n(99044)),c=r(n(65638)),l=r(n(39403)),d=r(n(3098)),h=r(n(79473)),v=r(n(74107)),p=r(n(44618)),m=n(55058),_=function(){function t(){this.list=new Set,this.refs=new Map}var e=t.prototype;return e.toArray=function(){return(0,o.default)(this.list).concat((0,o.default)(this.refs.values()))},e.add=function(t){p.default.isRef(t)?this.refs.set(t.key,t):this.list.add(t)},e.delete=function(t){p.default.isRef(t)?this.refs.delete(t.key,t):this.list.delete(t)},e.has=function(t,e){if(this.list.has(t))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(e(n.value)===t)return!0;return!1},t}();function y(t){var e=this;if(void 0===t&&(t={}),!(this instanceof y))return new y;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new _,this._blacklist=new _,this.tests=[],this.transforms=[],this.withMutation(function(){e.typeError(s.mixed.notType)}),(0,i.default)(t,"default")&&(this._defaultDefault=t.default),this._type=t.type||"mixed"}for(var g=y.prototype={__isYupSchema__:!0,constructor:y,clone:function(){var t=this;return this._mutate?this:(0,a.default)(this,function(e){if((0,d.default)(e)&&e!==t)return e})},label:function(t){var e=this.clone();return e._label=t,e},meta:function(t){if(0===arguments.length)return this._meta;var e=this.clone();return e._meta=(0,u.default)(e._meta||{},t),e},withMutation:function(t){var e=this._mutate;this._mutate=!0;var n=t(this);return this._mutate=e,n},concat:function(t){if(!t||t===this)return this;if(t._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+t._type);var e=(0,l.default)(t.clone(),this);return(0,i.default)(t,"_default")&&(e._default=t._default),e.tests=this.tests,e._exclusive=this._exclusive,e.withMutation(function(e){t.tests.forEach(function(t){e.test(t.OPTIONS)})}),e},isType:function(t){return!(!this._nullable||null!==t)||!this._typeCheck||this._typeCheck(t)},resolve:function(t){var e=this;if(e._conditions.length){var n=e._conditions;(e=e.clone())._conditions=[],e=(e=n.reduce(function(e,n){return n.resolve(e,t)},e)).resolve(t)}return e},cast:function(t,e){void 0===e&&(e={});var n=this.resolve((0,u.default)({},e,{value:t})),r=n._cast(t,e);if(void 0!==t&&!1!==e.assert&&!0!==n.isType(r)){var i=(0,v.default)(t),a=(0,v.default)(r);throw new TypeError("The value of "+(e.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+i+" \n"+(a!==i?"result of cast: "+a:""))}return r},_cast:function(t){var e=this,n=void 0===t?t:this.transforms.reduce(function(n,r){return r.call(e,n,t)},t);return void 0===n&&(0,i.default)(this,"_default")&&(n=this.default()),n},_validate:function(t,e){var n=this;void 0===e&&(e={});var r=t,i=null!=e.originalValue?e.originalValue:t,a=this._option("strict",e),o=this._option("abortEarly",e),s=e.sync,f=e.path,l=this._label;a||(r=this._cast(r,(0,u.default)({assert:!1},e)));var d={value:r,path:f,schema:this,options:e,label:l,originalValue:i,sync:s},h=[];return this._typeError&&h.push(this._typeError(d)),this._whitelistError&&h.push(this._whitelistError(d)),this._blacklistError&&h.push(this._blacklistError(d)),(0,c.default)({validations:h,endEarly:o,value:r,path:f,sync:s}).then(function(t){return(0,c.default)({path:f,sync:s,value:t,endEarly:o,validations:n.tests.map(function(t){return t(d)})})})},validate:function(t,e){return void 0===e&&(e={}),this.resolve((0,u.default)({},e,{value:t}))._validate(t,e)},validateSync:function(t,e){var n,r;if(void 0===e&&(e={}),this.resolve((0,u.default)({},e,{value:t}))._validate(t,(0,u.default)({},e,{sync:!0})).then(function(t){return n=t}).catch(function(t){return r=t}),r)throw r;return n},isValid:function(t,e){return this.validate(t,e).then(function(){return!0}).catch(function(t){if("ValidationError"===t.name)return!1;throw t})},isValidSync:function(t,e){try{return this.validateSync(t,e),!0}catch(t){if("ValidationError"===t.name)return!1;throw t}},getDefault:function(t){return void 0===t&&(t={}),this.resolve(t).default()},default:function(t){if(0===arguments.length){var e=(0,i.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof e?e.call(this):(0,a.default)(e)}var n=this.clone();return n._default=t,n},strict:function(t){void 0===t&&(t=!0);var e=this.clone();return e._options.strict=t,e},_isPresent:function(t){return null!=t},required:function(t){return void 0===t&&(t=s.mixed.required),this.test({message:t,name:"required",exclusive:!0,test:function(t){return this.schema._isPresent(t)}})},notRequired:function(){var t=this.clone();return t.tests=t.tests.filter(function(t){return"required"!==t.OPTIONS.name}),t},nullable:function(t){void 0===t&&(t=!0);var e=this.clone();return e._nullable=t,e},transform:function(t){var e=this.clone();return e.transforms.push(t),e},test:function(){var t;if(void 0===(t=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(t.message=s.mixed.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");var e=this.clone(),n=(0,h.default)(t),r=t.exclusive||t.name&&!0===e._exclusive[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e._exclusive[t.name]=!!t.exclusive,e.tests=e.tests.filter(function(e){if(e.OPTIONS.name===t.name){if(r)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),e.tests.push(n),e},when:function(t,e){1===arguments.length&&(e=t,t=".");var n=this.clone(),r=[].concat(t).map(function(t){return new p.default(t)});return r.forEach(function(t){t.isSibling&&n._deps.push(t.key)}),n._conditions.push(new f.default(r,e)),n},typeError:function(t){var e=this.clone();return e._typeError=(0,h.default)({message:t,name:"typeError",test:function(t){return!(void 0!==t&&!this.schema.isType(t))||this.createError({params:{type:this.schema._type}})}}),e},oneOf:function(t,e){void 0===e&&(e=s.mixed.oneOf);var n=this.clone();return t.forEach(function(t){n._whitelist.add(t),n._blacklist.delete(t)}),n._whitelistError=(0,h.default)({message:e,name:"oneOf",test:function(t){if(void 0===t)return!0;var e=this.schema._whitelist;return!!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),n},notOneOf:function(t,e){void 0===e&&(e=s.mixed.notOneOf);var n=this.clone();return t.forEach(function(t){n._blacklist.add(t),n._whitelist.delete(t)}),n._blacklistError=(0,h.default)({message:e,name:"notOneOf",test:function(t){var e=this.schema._blacklist;return!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),n},strip:function(t){void 0===t&&(t=!0);var e=this.clone();return e._strip=t,e},_option:function(t,e){return(0,i.default)(e,t)?e[t]:this._options[t]},describe:function(){var t=this.clone();return{type:t._type,meta:t._meta,label:t._label,tests:t.tests.map(function(t){return{name:t.OPTIONS.name,params:t.OPTIONS.params}}).filter(function(t,e,n){return n.findIndex(function(e){return e.name===t.name})===e})}}},x=["validate","validateSync"],F=function(){var t=x[b];g[t+"At"]=function(e,n,r){void 0===r&&(r={});var i=(0,m.getIn)(this,e,n,r.context),a=i.parent,o=i.parentPath;return i.schema[t](a&&a[o],(0,u.default)({},r,{parent:a,path:e}))}},b=0;b<x.length;b++)F();for(var w=["equals","is"],E=0;E<w.length;E++)g[w[E]]=g.oneOf;for(var D=["not","nope"],O=0;O<D.length;O++)g[D[O]]=g.notOneOf;g.optional=g.notRequired,t.exports=e.default},44489:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=f;var u=r(n(9122)),i=r(n(96199)),a=n(12293),o=r(n(58628)),s=function(t){return(0,o.default)(t)||t===(0|t)};function f(){var t=this;if(!(this instanceof f))return new f;i.default.call(this,{type:"number"}),this.withMutation(function(){t.transform(function(t){var e=t;if("string"==typeof e){if(""===(e=e.replace(/\s/g,"")))return NaN;e=+e}return this.isType(e)?e:parseFloat(e)})})}(0,u.default)(f,i.default,{_typeCheck:function(t){return t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&!function(t){return t!=+t}(t)},min:function(t,e){return void 0===e&&(e=a.number.min),this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,o.default)(e)||e>=this.resolve(t)}})},max:function(t,e){return void 0===e&&(e=a.number.max),this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(e){return(0,o.default)(e)||e<=this.resolve(t)}})},lessThan:function(t,e){return void 0===e&&(e=a.number.lessThan),this.test({message:e,name:"max",exclusive:!0,params:{less:t},test:function(e){return(0,o.default)(e)||e<this.resolve(t)}})},moreThan:function(t,e){return void 0===e&&(e=a.number.moreThan),this.test({message:e,name:"min",exclusive:!0,params:{more:t},test:function(e){return(0,o.default)(e)||e>this.resolve(t)}})},positive:function(t){return void 0===t&&(t=a.number.positive),this.moreThan(0,t)},negative:function(t){return void 0===t&&(t=a.number.negative),this.lessThan(0,t)},integer:function(t){return void 0===t&&(t=a.number.integer),this.test({name:"integer",message:t,test:s})},truncate:function(){return this.transform(function(t){return(0,o.default)(t)?t:0|t})},round:function(t){var e=["ceil","floor","round","trunc"];if("trunc"===(t=t&&t.toLowerCase()||"round"))return this.truncate();if(-1===e.indexOf(t.toLowerCase()))throw new TypeError("Only valid options for round() are: "+e.join(", "));return this.transform(function(e){return(0,o.default)(e)?e:Math[t](e)})}}),t.exports=e.default},4509:function(t,e,n){"use strict";var r=n(54168),u=n(34169);e.__esModule=!0,e.default=w;var i=u(n(82683)),a=u(n(448)),o=u(n(23973)),s=u(n(54002)),f=u(n(39935)),c=u(n(52169)),l=u(n(53792)),d=n(18479),h=u(n(96199)),v=n(12293),p=u(n(91688)),m=u(n(20055)),_=u(n(9122)),y=u(n(29331)),g=r(n(65638));function x(){var t=(0,i.default)(["",".",""]);return x=function(){return t},t}function F(){var t=(0,i.default)(["",".",""]);return F=function(){return t},t}var b=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function w(t){var e=this;if(!(this instanceof w))return new w(t);h.default.call(this,{type:"object",default:function(){var t=this;if(this._nodes.length){var e={};return this._nodes.forEach(function(n){e[n]=t.fields[n].default?t.fields[n].default():void 0}),e}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation(function(){e.transform(function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null}),t&&e.shape(t)})}(0,_.default)(w,h.default,{_typeCheck:function(t){return b(t)||"function"==typeof t},_cast:function(t,e){var n=this;void 0===e&&(e={});var r=h.default.prototype._cast.call(this,t,e);if(void 0===r)return this.default();if(!this._typeCheck(r))return r;var u=this.fields,i=!0===this._option("stripUnknown",e),s=this._nodes.concat(Object.keys(r).filter(function(t){return-1===n._nodes.indexOf(t)})),f={},c=(0,a.default)({},e,{parent:f,__validating:!1}),l=!1;return s.forEach(function(t){var n=u[t],a=(0,o.default)(r,t);if(n){var s,d=n._options&&n._options.strict;if(c.path=(0,y.default)(F(),e.path,t),c.value=r[t],!0===(n=n.resolve(c))._strip)return void(l=l||t in r);void 0!==(s=e.__validating&&d?r[t]:n.cast(r[t],c))&&(f[t]=s)}else a&&!i&&(f[t]=r[t]);f[t]!==r[t]&&(l=!0)}),l?f:r},_validate:function(t,e){var n,r,u=this;void 0===e&&(e={});var i=e.sync,o=[],s=null!=e.originalValue?e.originalValue:t;return n=this._option("abortEarly",e),r=this._option("recursive",e),e=(0,a.default)({},e,{__validating:!0,originalValue:s}),h.default.prototype._validate.call(this,t,e).catch((0,g.propagateErrors)(n,o)).then(function(t){if(!r||!b(t)){if(o.length)throw o[0];return t}s=s||t;var f=u._nodes.map(function(n){var r=(0,y.default)(x(),e.path,n),i=u.fields[n],o=(0,a.default)({},e,{path:r,parent:t,originalValue:s[n]});return i&&i.validate?(o.strict=!0,i.validate(t[n],o)):Promise.resolve(!0)});return(0,g.default)({sync:i,validations:f,value:t,errors:o,endEarly:n,path:e.path,sort:(0,m.default)(u.fields)})})},concat:function(t){var e=h.default.prototype.concat.call(this,t);return e._nodes=(0,p.default)(e.fields,e._excludedEdges),e},shape:function(t,e){void 0===e&&(e=[]);var n=this.clone(),r=(0,a.default)(n.fields,t);if(n.fields=r,e.length){Array.isArray(e[0])||(e=[e]);var u=e.map(function(t){return t[0]+"-"+t[1]});n._excludedEdges=n._excludedEdges.concat(u)}return n._nodes=(0,p.default)(r,n._excludedEdges),n},from:function(t,e,n){var r=(0,d.getter)(t,!0);return this.transform(function(u){if(null==u)return u;var i=u;return(0,o.default)(u,t)&&(i=(0,a.default)({},u),n||delete i[t],i[e]=r(u)),i})},noUnknown:function(t,e){void 0===t&&(t=!0),void 0===e&&(e=v.object.noUnknown),"string"==typeof t&&(e=t,t=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:e,test:function(e){return null==e||!t||0===function(t,e){var n=Object.keys(t.fields);return Object.keys(e).filter(function(t){return-1===n.indexOf(t)})}(this.schema,e).length}});return n._options.stripUnknown=t,n},unknown:function(t,e){return void 0===t&&(t=!0),void 0===e&&(e=v.object.noUnknown),this.noUnknown(!t,e)},transformKeys:function(t){return this.transform(function(e){return e&&(0,c.default)(e,function(e,n){return t(n)})})},camelCase:function(){return this.transformKeys(f.default)},snakeCase:function(){return this.transformKeys(s.default)},constantCase:function(){return this.transformKeys(function(t){return(0,s.default)(t).toUpperCase()})},describe:function(){var t=h.default.prototype.describe.call(this);return t.fields=(0,l.default)(this.fields,function(t){return t.describe()}),t}}),t.exports=e.default},60757:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=function(t){Object.keys(t).forEach(function(e){Object.keys(t[e]).forEach(function(n){u.default[e][n]=t[e][n]})})};var u=r(n(12293));t.exports=e.default},76921:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=l;var u=r(n(9122)),i=r(n(96199)),a=n(12293),o=r(n(58628)),s=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,f=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,c=function(t){return(0,o.default)(t)||t===t.trim()};function l(){var t=this;if(!(this instanceof l))return new l;i.default.call(this,{type:"string"}),this.withMutation(function(){t.transform(function(t){return this.isType(t)?t:null!=t&&t.toString?t.toString():t})})}(0,u.default)(l,i.default,{_typeCheck:function(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t},_isPresent:function(t){return i.default.prototype._cast.call(this,t)&&t.length>0},length:function(t,e){return void 0===e&&(e=a.string.length),this.test({message:e,name:"length",exclusive:!0,params:{length:t},test:function(e){return(0,o.default)(e)||e.length===this.resolve(t)}})},min:function(t,e){return void 0===e&&(e=a.string.min),this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,o.default)(e)||e.length>=this.resolve(t)}})},max:function(t,e){return void 0===e&&(e=a.string.max),this.test({name:"max",exclusive:!0,message:e,params:{max:t},test:function(e){return(0,o.default)(e)||e.length<=this.resolve(t)}})},matches:function(t,e){var n,r=!1;return e&&(e.message||e.hasOwnProperty("excludeEmptyString")?(r=e.excludeEmptyString,n=e.message):n=e),this.test({message:n||a.string.matches,params:{regex:t},test:function(e){return(0,o.default)(e)||""===e&&r||t.test(e)}})},email:function(t){return void 0===t&&(t=a.string.email),this.matches(s,{message:t,excludeEmptyString:!0})},url:function(t){return void 0===t&&(t=a.string.url),this.matches(f,{message:t,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(t){return null===t?"":t})},trim:function(t){return void 0===t&&(t=a.string.trim),this.transform(function(t){return null!=t?t.trim():t}).test({message:t,name:"trim",test:c})},lowercase:function(t){return void 0===t&&(t=a.string.lowercase),this.transform(function(t){return(0,o.default)(t)?t:t.toLowerCase()}).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,o.default)(t)||t===t.toLowerCase()}})},uppercase:function(t){return void 0===t&&(t=a.string.uppercase),this.transform(function(t){return(0,o.default)(t)?t:t.toUpperCase()}).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,o.default)(t)||t===t.toUpperCase()}})}}),t.exports=e.default},79473:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.createErrorFactory=d,e.default=function(t){var e=t.name,n=t.message,r=t.test,a=t.params;function c(t){var c=t.value,h=t.path,v=t.label,p=t.options,m=t.originalValue,_=t.sync,y=(0,u.default)(t,["value","path","label","options","originalValue","sync"]),g=p.parent,x=function(t){return s.default.isRef(t)?t.getValue({value:c,parent:g,context:p.context}):t},F=d({message:n,path:h,value:c,originalValue:m,params:a,label:v,resolve:x,name:e}),b=(0,i.default)({path:h,parent:g,type:e,createError:F,resolve:x,options:p},y);return function(t,e,n,r){var u=t.call(e,n);if(!r)return Promise.resolve(u);if(l(u))throw new Error('Validation test of type: "'+e.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return f.SynchronousPromise.resolve(u)}(r,b,c,_).then(function(t){if(o.default.isError(t))throw t;if(!t)throw F()})}return c.OPTIONS=t,c};var u=r(n(77213)),i=r(n(448)),a=r(n(53792)),o=r(n(81699)),s=r(n(44618)),f=n(63958),c=o.default.formatError,l=function(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch};function d(t){var e=t.value,n=t.label,r=t.resolve,s=t.originalValue,f=(0,u.default)(t,["value","label","resolve","originalValue"]);return function(t){var u=void 0===t?{}:t,l=u.path,d=void 0===l?f.path:l,h=u.message,v=void 0===h?f.message:h,p=u.type,m=void 0===p?f.name:p,_=u.params;return _=(0,i.default)({path:d,value:e,originalValue:s,label:n},function(t,e,n){return(0,a.default)((0,i.default)({},t,e),n)}(f.params,_,r)),(0,i.default)(new o.default(c(v,_),e,d,m),{params:_})}}},9122:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=function(t,e,n){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,u.default)(t.prototype,n)};var u=r(n(448));t.exports=e.default},58628:function(t,e){"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return null==t},t.exports=e.default},3098:function(t,e){"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return t&&t.__isYupSchema__},t.exports=e.default},43138:function(t,e){"use strict";e.__esModule=!0,e.default=function(t){var e,r,u=[1,4,5,6,7,10,11],i=0;if(r=n.exec(t)){for(var a,o=0;a=u[o];++o)r[a]=+r[a]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,void 0!==r[8]&&""!==r[8]||void 0!==r[9]&&""!==r[9]?("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),e=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7])):e=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7])}else e=Date.parse?Date.parse(t):NaN;return e};var n=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.exports=e.default},29331:function(t,e){"use strict";e.__esModule=!0,e.default=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.reduce(function(t,e){var r=n.shift();return t+(null==r?"":r)+e}).replace(/^\./,"")},t.exports=e.default},39403:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=function t(e,n){for(var r in n)if((0,u.default)(n,r)){var o=n[r],s=e[r];if(void 0===s)e[r]=o;else{if(s===o)continue;(0,i.default)(s)?(0,i.default)(o)&&(e[r]=o.concat(s)):a(s)?a(o)&&(e[r]=t(s,o)):Array.isArray(s)&&Array.isArray(o)&&(e[r]=o.concat(s))}}return e};var u=r(n(23973)),i=r(n(3098)),a=function(t){return"[object Object]"===Object.prototype.toString.call(t)};t.exports=e.default},74107:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){var n=o(t,e);return null!==n?n:JSON.stringify(t,function(t,n){var r=o(this[t],e);return null!==r?r:n},2)};var n=Object.prototype.toString,r=Error.prototype.toString,u=RegExp.prototype.toString,i="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},a=/^Symbol\((.*)\)(.*)$/;function o(t,e){if(void 0===e&&(e=!1),null==t||!0===t||!1===t)return""+t;var o=typeof t;if("number"===o)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===o)return e?'"'+t+'"':t;if("function"===o)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===o)return i.call(t).replace(a,"Symbol($1)");var s=n.call(t).slice(8,-1);return"Date"===s?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===s||t instanceof Error?"["+r.call(t)+"]":"RegExp"===s?u.call(t):null}t.exports=e.default},55058:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.getIn=o,e.default=void 0;var u=n(18479),i=r(n(23973)),a=function(t){return t.substr(0,t.length-1).substr(1)};function o(t,e,n,r){var o,s,f;return r=r||n,e?((0,u.forEach)(e,function(u,c,l){var d=c?a(u):u;if(l||(0,i.default)(t,"_subType")){var h=l?parseInt(d,10):0;if(t=t.resolve({context:r,parent:o,value:n})._subType,n){if(l&&h>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+u+", in the path: "+e+". because there is no value at that index. ");n=n[h]}}if(!l){if(t=t.resolve({context:r,parent:o,value:n}),!(0,i.default)(t,"fields")||!(0,i.default)(t.fields,d))throw new Error("The schema does not contain the path: "+e+". (failed at: "+f+' which is a type: "'+t._type+'") ');t=t.fields[d],o=n,n=n&&n[d],s=d,f=c?"["+u+"]":"."+u}}),{schema:t,parent:o,parentPath:s}):{parent:o,parentPath:e,schema:t}}e.default=function(t,e,n,r){return o(t,e,n,r).schema}},65638:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.propagateErrors=function(t,e){return t?null:function(t){return e.push(t),t.value}},e.settled=f,e.collectErrors=c,e.default=function(t){var e,n,r,i=t.endEarly,a=(0,u.default)(t,["endEarly"]);return i?(e=a.validations,n=a.value,r=a.sync,o(r).all(e).catch(function(t){throw"ValidationError"===t.name&&(t.value=n),t}).then(function(){return n})):c(a)};var u=r(n(77213)),i=n(63958),a=r(n(81699)),o=function(t){return t?i.SynchronousPromise:Promise},s=function(t){return void 0===t&&(t=[]),t.inner&&t.inner.length?t.inner:[].concat(t)};function f(t,e){var n=o(e);return n.all(t.map(function(t){return n.resolve(t).then(function(t){return{fulfilled:!0,value:t}},function(t){return{fulfilled:!1,value:t}})}))}function c(t){var e=t.validations,n=t.value,r=t.path,u=t.sync,i=t.errors,o=t.sort;return i=s(i),f(e,u).then(function(t){var e=t.filter(function(t){return!t.fulfilled}).reduce(function(t,e){var n=e.value;if(!a.default.isError(n))throw n;return t.concat(n)},[]);if(o&&e.sort(o),(i=e.concat(i)).length)throw new a.default(i,n,r);return n})}},20055:function(t,e){"use strict";function n(t,e){var n=1/0;return t.some(function(t,r){if(-1!==e.path.indexOf(t))return n=r,!0}),n}e.__esModule=!0,e.default=function(t){var e=Object.keys(t);return function(t,r){return n(e,t)-n(e,r)}},t.exports=e.default},91688:function(t,e,n){"use strict";var r=n(34169);e.__esModule=!0,e.default=function(t,e){void 0===e&&(e=[]);var n=[],r=[];function f(t,u){var i=(0,a.split)(t)[0];~r.indexOf(i)||r.push(i),~e.indexOf(u+"-"+i)||n.push([u,i])}for(var c in t)if((0,u.default)(t,c)){var l=t[c];~r.indexOf(c)||r.push(c),o.default.isRef(l)&&l.isSibling?f(l.path,c):(0,s.default)(l)&&l._deps&&l._deps.forEach(function(t){return f(t,c)})}return i.default.array(r,n).reverse()};var u=r(n(23973)),i=r(n(99556)),a=n(18479),o=r(n(44618)),s=r(n(3098));t.exports=e.default},34169:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},54168:function(t,e,n){var r=n(8114).default;function u(e,n){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(t.exports=u=function(t,e){if(!e&&t&&t.__esModule)return t;var n,u,o={__proto__:null,default:t};if(null===t||"object"!=r(t)&&"function"!=typeof t)return o;if(n=e?a:i){if(n.has(t))return n.get(t);n.set(t,o)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((u=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(u.get||u.set)?n(o,s,u):o[s]=t[s]);return o},t.exports.__esModule=!0,t.exports.default=t.exports)(e,n)}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports},77213:function(t){t.exports=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},82683:function(t){t.exports=function(t,e){return e||(e=t.slice(0)),t.raw=e,t},t.exports.__esModule=!0,t.exports.default=t.exports},8114:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5180],{11224:function(e,t,n){"use strict";n.r(t),n.d(t,{AddToExchangeView:function(){return j}});var r=n(21186),o=n(21679),i=n(57857),l=n(68003),u=n(31647),a=n(25692),c=n(98985),s=n(10101),f=n(88172),p=n(75917),d=n(45390),y=n(67670),b=n(48404),h=n(93569),v=n(264),m=n(28274),g=n.n(m);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(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,O(r.key),r)}}function O(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var j=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=S(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,u=[{key:"initialize",value:function(){this.libraryDataService=o.u.getInstance(d.Or.Library,this),this.videoDataService=o.u.getInstance(d.Or.Video,this),this.alertService=o.u.getInstance(d.K9.Alerts,this),this.listenTo(d.Vk.LIBRARY,"exchange:".concat(10,":sync"),this.render),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"AddToExchangeView"}},{key:"lang",get:function(){return"libraryEditor.addToExchange"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return g()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{folderDropdown:".folder-dropdown-region"}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new y.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"add"),onClick:function(t){return e.onClickSubmit(t)}}}]}},{key:"getExchange",value:function(){return this.exchangeLibraries.first()}},{key:"onClickSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.spinnerModel.set(f.ZV.ShowSpinner,!0),this.videoDataService.copyVideo(this.options.videoId,this.getExchange().get("id"),this.folder.get("id"),function(){t.alertService.createAlert({heading:"Request submitted",message:"We will notify you once your Exchange request has been approved",type:r.NK.Success}),t.triggerMethod("hide")})}},{key:"onFolderSelected",value:function(e){this.folder=e,this.spinnerModel.set(f.ZV.Disabled,!1),h.PU.setSelected(this.folderTreeKey,e,this.getExchange().children)}},{key:"requiredResources",get:function(){return{config:b.p.config}}},{key:"onBeforeRender",value:function(){this.exchangeLibraries=this.libraryDataService.getExchange(10)}},{key:"onRender",value:function(){this.exchangeLibraries&&this.showChildView("folderDropdown",new p.Y({collection:this.getExchange().children,channelName:this.channelName,folderTreeKey:this.folderTreeKey}))}},{key:"viewOptions",value:function(){return{foldersLoaded:!!this.exchangeLibraries,guidelinesUrl:v.g.hasLite?c.o.getLiteArticle(a.b.ContentGuidelines):l._.safeUrlConcat(this.config.get("onlineUrl"),"/exchange/community-guidelines"),spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}}],u&&k(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(u.Q.G7)},75917:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var r=n(43823),o=n(57857),i=n(31647),l=n(50299),u=n(93569),a=n(68979),c=n.n(a),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="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},f(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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce(function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o},{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=u.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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,a(r.key),r)}}function a(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},28274:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<div class="alert alert-info" role="alert">\n The ClickView Exchange is a community for educators, read our <a class="info-link" href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.guidelinesUrl:i,t))+'" target="_blank">community guidelines</a> and let\'s ensure that we keep the Exchange a place we\'re proud of!\n</div>\n<p>After you submit your video to the Exchange, we will review it and notify you when your video has been made available.</p>\n<div class="form-group">\n <label>Select a folder</label>\n <div class="folder-dropdown-region"></div>\n</div>\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable," "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.foldersLoaded:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},68979:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return' <button\n class="'+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+u(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+u(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5327],{86257:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return r}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},21974:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(57857),o=n(75459),i=n(86257),u=n(85475);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="shared.shared-utils",s={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case o.r.HostedLibrary:case o.r.CustomLibrary:return e.name;case o.r.Exchange:return r.T.getPhrase(c,"exchange");case o.r.Workspace:return r.T.getPhrase(c,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case o.r.HostedLibrary:case o.r.CustomLibrary:return"bg-blue";case o.r.Exchange:return"bg-green";case o.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=l(l(l(l(l(l(l({},i.L.Pdf,u.vn.FilePDF),i.L.Image,u.vn.FileImg),i.L.PowerPoint,u.vn.FilePowerpoint),i.L.Document,u.vn.FileWord),i.L.Excel,u.vn.FileExcel),i.L.Zip,u.vn.FileZip),i.L.File,u.vn.File)[e];return t||(t=u.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(c,"pdf");case i.L.Image:return r.T.getPhrase(c,"image");case i.L.Document:return r.T.getPhrase(c,"document");case i.L.Excel:return r.T.getPhrase(c,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(c,"presentation");case i.L.Zip:return r.T.getPhrase(c,"zipArchive");case i.L.File:return r.T.getPhrase(c,"file");default:return""}}}},90835:function(e,t,n){"use strict";n.d(t,{c:function(){return R}});var r=n(31647),o=n(43823),i=n(57857),u=n(52076),a=n(70065),l=n(85475),c=n(45390),s=n(93569),p=n(76431),f=n.n(p),y={container:"vvTSf"};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=v(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return f()}},{key:"className",get:function(){return"".concat(y.container," rounded p-2 mb-2 d-flex align-items-center")}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"attributes",get:function(){return{title:this.model.get("name")}}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}},{key:"onClickEdit",value:function(){var e=u.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Edit,entity:a.py.Resource,workflowPhase:a.eu.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};u.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new s.Mr({title:i.T.getPhrase(this.lang,"removeHeading"),text:i.T.getPhrase(this.lang,"removeConfirm",{name:s.m$.escapeExpression(this.model.get("name"))}),buttons:[{text:i.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:i.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:s.N0.generateUniqueChannelName(this)}).render().done(function(){o.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))})}},{key:"viewOptions",value:function(){return{styles:y,editable:this.options.editable,linkSvg:l.Nj.getSvg(l.vn.Link),editSvg:l.Nj.getSvg(l.vn.Edit),trashSvg:l.Nj.getSvg(l.vn.Delete)}}}])&&m(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),k=n(52929),O=n.n(k);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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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,j(r.key),r)}}function E(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function x(e,t,n){return t=_(t),function(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)}(e,C()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function L(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&&I(e,t)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var R=function(e){function t(e){return T(this,t),x(this,t,[e])}return L(t,e),E(t,[{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return O()}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new N({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}}])}(r.Q.wA),N=function(e){function t(e){return T(this,t),x(this,t,[e])}return L(t,e),E(t,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return w}}])}(r.Q.$W)},2119:function(e,t,n){"use strict";n.d(t,{c:function(){return F},h:function(){return D}});var r=n(43823),o=n(57857),i=n(31647),u=n(53808),a=n(52076),l=n(70065),c=n(85475),s=n(21974),p=n(95117),f=n.n(p);function y(e){return y="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},y(e)}function d(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,m(r.key),r)}}function m(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=h(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return f()}},{key:"className",get:function(){return"".concat("CdlNn"," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":this.options.getEditAppLink(this.model.get("id"))}}},{key:"onClickEdit",value:function(){var e=a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Edit,entity:l.py.Resource,workflowPhase:l.eu.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};a.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){u.q.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,extension:s.u.mapTypeToExtension(t),svg:c.Nj.getSvg(s.u.mapTypeToSvg(t)),iconClass:s.u.mapTypeToClass(t),resourceType:s.u.mapTypeToName(t),editSvg:c.Nj.getSvg(c.vn.Edit),trashSvg:c.Nj.getSvg(c.vn.Delete)}}}])&&d(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.wA),w=n(41934),k=n(25094),O=n(54758),P=n(99114),T=n.n(P);function S(e){return S="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},S(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function x(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}function _(e,t,n){return t=I(t),function(e,t){if(t&&("object"==S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function R(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)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}var D=function(e){function t(e){return E(this,t),_(this,t,[e])}return R(t,e),x(t,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"childView",get:function(){return g}},{key:"childViewOptions",get:function(){var e=this;return{editable:this.options.editable,videoId:this.options.videoId,analyticsOptions:this.options.analyticsOptions,onClickDelete:function(t){return e.onClickDelete(t)},getEditAppLink:function(t){return{application:k.OV.LIBRARY_EDITOR,action:w.e.LibraryEditor.EDIT_RESOURCE,args:[e.options.videoId,t]}}}}},{key:"onClickDelete",value:function(e){var t=this;new O.M({title:o.T.getPhrase(this.lang,"removeHeading"),text:o.T.getPhrase(this.lang,"removeBody",{resourceName:e.get("name")}),buttons:[{text:o.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:o.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done(function(){r.Radio.channel(t.options.channelName).trigger("delete:resource",e.get("id"))})}}])}(i.Q.$W),F=function(e){function t(e){return E(this,t),_(this,t,[e])}return R(t,e),x(t,[{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return T()}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new D({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||o.T.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}}])}(i.Q.wA)},95117:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u=e.lambda;return'<a class="float-end svg-container cursor-pointer text-secondary delete">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\n<a class="float-end svg-container cursor-pointer text-secondary edit">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u,a=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,p="function";return'<span title="'+l(a(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle me-2 svg-container '+l(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\n<a href="'+l(typeof(u=null!=(u=n.url||(null!=t?t.url:t))?u:s)===p?u.call(c,{name:"url",hash:{},data:o}):u)+"?name="+l(typeof(u=null!=(u=n.name||(null!=t?t.name:t))?u:s)===p?u.call(c,{name:"name",hash:{},data:o}):u)+'" class="align-middle">\n '+l(typeof(u=null!=(u=n.name||(null!=t?t.name:t))?u:s)===p?u.call(c,{name:"name",hash:{},data:o}):u)+"\n</a>\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},76431:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u=e.lambda;return' <a class="ms-auto me-1 svg-container cursor-pointer text-secondary edit">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+'</a>\n <a class="svg-container cursor-pointer text-secondary delete">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",s=e.escapeExpression;return'<span class="svg-container text-info me-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\n<a class="w-75 text-truncate" href="'+s(typeof(u=null!=(u=n.url||(null!=t?t.url:t))?u:l)===c?u.call(a,{name:"url",hash:{},data:o}):u)+'" target="_blank">'+s(typeof(u=null!=(u=n.name||(null!=t?t.name:t))?u:l)===c?u.call(a,{name:"name",hash:{},data:o}):u)+"</a>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},52929:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'\n<div class="links-region"></div>'},useData:!0})},99114:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'\n<div class="resource-list-region"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5346],{79472:function(e,t,n){"use strict";n.d(t,{W:function(){return b}});var o=n(43823),i=n(57857),r=n(31647),a=n(57085),s=n(65078),l=n(45390),u=n(43791),c=n.n(u),d={svgContainer:"mtegw"};function f(e){return f="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},f(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=m(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{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 c()}},{key:"viewOptions",value:function(){return{styles:d}}},{key:"onSave",value:function(){o.Radio.channel(l.OV.LIBRARY_EDITOR).trigger(l.eX.LibraryEditor.SAVE_VIDEO)}},{key:"getLocationBreadcrumb",value:function(){switch(this.options.context){case"edit":return{name:i.T.getPhrase(this.lang,"videoDetails")};case"chapters":return{name:i.T.getPhrase(this.lang,"chapters")};case"resources":return{name:i.T.getPhrase(this.lang,"resources")}}}},{key:"onRender",value:function(){this.showChildView("tabs",new s.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new a.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&h(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},77151:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var o=n(43823),i=n(57857),r=n(31647),a=n(88172),s=n(93569),l=n(40622),u=n(99724),c=n.n(u),d={saveButton:"G_FDK",undo:"dcV70"};function f(e){return f="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},f(e)}function h(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function v(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,u=[{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}},{key:"getParentChannel",value:function(){return o.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){this.model||(this.model=new r.Q.Hn(h(h({},a.ZV.ShowSpinner,this.options.showSpinner),a.ZV.Disabled,this.options.isDisabled)));var e=this.options.channelName;this.listenTo(e,l.NT.DisableSave,this.onDisableSave),this.listenTo(e,l.NT.EnableSave,this.onEnableSave),this.listenTo(e,l.NT.CancelSave,this.onCancelSave);var t=o.Radio.channel(this.getSaveChannelName());this.listenTo(t,l.NT.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(a.ZV.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(a.ZV.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(a.ZV.ShowSpinner)&&this.model.set(a.ZV.ShowSpinner,!1,{silent:!0}),this.model.set(a.ZV.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(l.NT.Undo)}},{key:"onSave",value:function(){this.model.set(a.ZV.ShowSpinner,!0),this.getParentChannel().trigger(l.NT.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:d}}},{key:"renderSaveButton",value:function(){var e=new a.Py({saveEvent:l.NT.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:i.T.getPhrase(this.lang,"save"),extraButtonClass:"btn-dark ".concat(d.saveButton),spinnerOptions:{size:s.Ey.Small,type:s.dR.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}}],u&&p(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},24959:function(e,t,n){"use strict";n.d(t,{K:function(){return T}});var o=n(11306),i=n(31647),r=n(43823),a=n(45390),s=n(25887),l=n(15564),u=n.n(l);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),t="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(e).concat(t).concat(n)}},{key:"template",get:function(){return u()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:a.OV.SEARCH,action:a.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var e=this.model.pick("id","name","remove"),t=e.id,n=e.name;return!!e.remove||!t||!n}}},{key:"onRemoveTag",value:function(e){if(e.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"getTrimmedName",value:function(){var e=this.model.get("name");return e.length>36?"".concat(e.substring(0,36),"..."):e}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent,trimmedName:this.getTrimmedName()}}},{key:"onRender",value:function(){this.resetClassName()}}],o&&d(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function y(e){return y="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},y(e)}function b(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var T=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=k(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],k(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(e)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return m}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},25887:function(e,t,n){"use strict";var o,i,r;n.d(t,{Dm:function(){return o},zM:function(){return i},x_:function(){return r}}),function(e){e[e.Link=1]="Link",e[e.Edit=2]="Edit",e[e.Disabled=3]="Disabled",e[e.Filter=4]="Filter"}(o||(o={})),function(e){e[e.Flex=1]="Flex",e[e.Vertical=2]="Vertical"}(i||(i={})),function(e){e[e.Folder=0]="Folder",e[e.Series=1]="Series"}(r||(r={}))},56613:function(e,t,n){"use strict";n.r(t),n.d(t,{EditVideoView:function(){return ot}});var o=n(43823),i=n(21161),r=n(25417),a=n(99748),s=n(11306),l=n(21679),u=n(57857),c=n(99249),d=n(31647),f=n(52076),h=n(70065),p=n(8371),v=n(13156),m=n(29625),y=n(45390),b=n(29457),g=n(68619),w=n(85847),k=n(19226),S=n(93569),T=n(45837),O=n(51594),E=n(32035),C=n(95168),P=n(44106),j=n.n(P),N=n(72059),D=n(72891),M=n.n(D);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function V(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function _(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(R=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}var U=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=I(t),function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){var e=this;this.listenTo(this.model,"change",function(){return e.options.viewModel.validate()})}},{key:"template",get:function(){return M()}},{key:"name",get:function(){return"ExtraInfoItemComponent"}},{key:"regions",value:function(){return{textArea:{el:".text-area-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=value]":{observe:"value",setOptions:{validate:!0}}}}},{key:"onRender",value:function(){this.showChildView("textArea",new N.F({name:"value",class:"form-control",placeholder:this.model.get("placeholder"),id:"admin-notes"})),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&V(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(d.Q.wA);function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Q(o.key),o)}}function z(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function J(e,t,n){return t=H(t),function(e,t){if(t&&("object"==L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Z()?Reflect.construct(t,n||[],H(e).constructor):t.apply(e,n))}function Z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Z=function(){return!!e})()}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function K(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&&G(e,t)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}var W=function(e){function t(e){return A(this,t),J(this,t,[e])}return K(t,e),z(t,[{key:"name",get:function(){return"ExtraInfoComponentCollection"}},{key:"childView",get:function(){return U}},{key:"childViewOptions",get:function(){return{viewModel:this.options.viewModel}}}])}(d.Q.$W),Y=function(e){function t(e){return A(this,t),J(this,t,[e])}return K(t,e),z(t,[{key:"name",get:function(){return"ExtraInfoComponent"}},{key:"template",get:function(){return j()}},{key:"className",get:function(){return"border-top pt-3"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new W({collection:this.model.fields,viewModel:this.model}))}}])}(d.Q.wA),q=n(88483),X=n(53825),$=n(10101),ee=n(86272),te=n.n(ee);function ne(e){return ne="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},ne(e)}function oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ie(o.key),o)}}function ie(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(re=function(){return!!e})()}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}var le=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ae(t),function(e,t){if(t&&("object"==ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,re()?Reflect.construct(t,n||[],ae(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=c.r.get("image:storage")}},{key:"name",get:function(){return"EditThumbnailComponent"}},{key:"lang",get:function(){return"libraryEditor.editThumbnail"}},{key:"template",get:function(){return te()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:$.YR,channelName:this.options.channelName,buttonSelector:".upload-thumbnail",imageType:b.__.Thumbnails,appLink:{application:y.OV.LIBRARY_EDITOR,action:y.eX.LibraryEditor.UPLOAD_THUMBNAIL,args:[this.options.model.id]},saveImage:function(t){return e.viewModel.set({dataUrl:t})}}]}},{key:"defaults",get:function(){return{editable:!0}}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{editable:this.options.editable,dimensions:y.nq[b.__.Thumbnails]}}},{key:"onRender",value:function(){this.showChildView("thumbnail",new X.Z({model:this.model,thumbnailOptions:{size:q.h2.Medium}}))}}])&&oe(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),ue=n(77151),ce=n(62312),de=n(52808),fe=n(83980),he=n(24959),pe=n(25887),ve=n(30992),me=n.n(ve);function ye(e){return ye="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},ye(e)}function be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ge(o.key),o)}}function ge(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(we=function(){return!!e})()}function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}var Te=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ke(t),function(e,t){if(t&&("object"==ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,we()?Reflect.construct(t,n||[],ke(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TagsComponent"}},{key:"template",get:function(){return me()}},{key:"lang",get:function(){return"libraryEditor.tags"}},{key:"defaults",get:function(){return{headerText:u.T.getPhrase(this.lang,"heading"),orientation:pe.zM.Flex}}},{key:"regions",value:function(){return{tagList:{el:".tag-list-region",replaceElement:!0},tagSelector:{el:".tag-selector-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.options.behavior!==pe.Dm.Edit||this.options.parentId||d.Q.Ry.throw(new s.H("parentId is required to edit tags."))}},{key:"getTypeaheadConfigs",value:function(){var e=fe.M.getTypeaheadConfig(),t=fe.M.getBloodhoundConfig(),n={newType:y.n8.TagsRaw},o={newType:y.n8.TagsRaw,footerTemplate:ce.J.getConfirmSelectionTemplate()};return[{name:y.n8.TagsRaw,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:o}]}},{key:"viewOptions",value:function(){var e;return this.showEmptyStateText()&&(e=this.options.emptyStateText),{headerText:this.options.headerText,editable:this.options.behavior===pe.Dm.Edit,emptyStateText:e}}},{key:"showEmptyStateText",value:function(){return this.options.behavior!==pe.Dm.Edit&&!this.collection.length&&!!this.options.emptyStateText}},{key:"renderTagSelector",value:function(){this.options.behavior===pe.Dm.Edit&&this.showChildView("tagSelector",new de.M({model:this.model,parentChannelName:this.options.channelName,inputId:"tag-select",selectEvent:"add:tag",typeaheadConfigs:this.getTypeaheadConfigs(),placeholderText:u.T.getPhrase(this.lang,"placeholder"),callbacks:{onRender:ce.J.selectFirstResult,onBlur:ce.J.clearInputOnBlur},typeaheadOptions:{hint:!1},actionOptions:{clearOnSelect:!0},autofocus:this.options.autofocus}))}},{key:"renderTagList",value:function(){this.showEmptyStateText()||this.showChildView("tagList",new he.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent}))}},{key:"onRender",value:function(){this.renderTagSelector(),this.renderTagList()}}])&&be(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),Oe=n(58259),Ee=n.n(Oe);function Ce(e){return Ce="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},Ce(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,je(o.key),o)}}function je(e){var t=function(e){if("object"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}function Ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ne=function(){return!!e})()}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}var xe=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=De(t),function(e,t){if(t&&("object"==Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ne()?Reflect.construct(t,n||[],De(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"CollapseButtonComponent"}},{key:"className",get:function(){return"d-inline-block cursor-pointer expand-details info-link mb-3"}},{key:"lang",get:function(){return"libraryEditor.collapseButton"}},{key:"template",get:function(){return Ee()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.options.onClick()}},{key:"viewOptions",value:function(){return{showMorePhrase:this.options.collapse?"showMore":"showLess"}}}])&&Pe(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),Ve=n(23468),_e=n.n(Ve),Re={suggestEdit:"AgfOM"};function Ie(e){return Ie="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},Ie(e)}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ue(o.key),o)}}function Ue(e){var t=function(e){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ie(t)?t:t+""}function Le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Le=function(){return!!e})()}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}var ze=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Le()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.listenTo(this.options.channelName,"update:tags",function(){return e.renderCustomerTags(!0)}),this.initializeCollapse()}},{key:"name",get:function(){return"EditVideoDetailsComponent"}},{key:"className",get:function(){return"edit-video-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editVideoDetails"}},{key:"template",get:function(){return _e()}},{key:"appLinks",get:function(){return{".suggest-edit":{application:y.OV.LIBRARY_EDITOR,action:y.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.id]}}}},{key:"events",value:function(){return{"click .expand-details":"onClickExpandDetails"}}},{key:"elements",get:function(){return{expandable:".collapse-area"}}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0},collapseButton:{el:".collapse-button-region",replaceElement:!0},additionalInfo:{el:".additional-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},fields:{el:".fields-region",replaceElement:!0},clickViewTags:{el:".cv-tags-region",replaceElement:!1},customerTags:{el:".customer-tags-region",replaceElement:!0}}}},{key:"initializeCollapse",value:function(){var e,t,n,o,i,r;if(this.collapseViewModel=c.r.get("edit:video:details:collapse:".concat(this.model.get("id"))),"boolean"!=typeof this.collapseViewModel.get("collapse")){var a=!(this.model.get("broadcastDate")||(null===(e=this.model.channel)||void 0===e?void 0:e.get("id"))||this.model.get("productionYear")||(null===(t=this.model.productionCompanies)||void 0===t?void 0:t.any(function(e){return e.get("id")}))||(null===(n=this.model.distributors)||void 0===n?void 0:n.any(function(e){return e.get("id")}))||(null===(o=this.model.producers)||void 0===o?void 0:o.any(function(e){return e.get("id")}))||(null===(i=this.model.directors)||void 0===i?void 0:i.any(function(e){return e.get("id")}))||(null===(r=this.model.fields)||void 0===r?void 0:r.any(function(e){return e.get("id")>0})));this.collapseViewModel.set({collapse:a})}}},{key:"onClickCollapse",value:function(){var e=this.collapseViewModel.get("collapse");this.collapseViewModel.set("collapse",!e),this.renderCollapseButton(),e?this.getUI("expandable").show():this.getUI("expandable").hide()}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new ue.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"})),this.showChildView("bottomSave",new ue.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new E.J({model:this.model,ratings:this.options.ratings,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new le({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderCollapseButton",value:function(){this.showChildView("collapseButton",new xe({onClick:this.onClickCollapse.bind(this),collapse:this.collapseViewModel.get("collapse")}))}},{key:"renderAdditionalInfo",value:function(){this.options.currentUser.get("instanceRegion")!==p.b.US&&this.showChildView("additionalInfo",new O.a({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderProductionInfo",value:function(){this.showChildView("productionInfo",new C.O({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderFields",value:function(){this.options.currentUser.get("instanceRegion")!==p.b.US&&this.showChildView("fields",new Y({model:this.model,channelName:this.options.channelName}))}},{key:"renderClickViewTags",value:function(){if(!this.options.editable){var e=S.BK.filterObjectsByOwnerType(this.model.tags,T.N.ClickView,this.options.currentUser.get("customerId"));this.showChildView("clickViewTags",new Te({parentId:this.model.get("id"),collection:e,orientation:pe.zM.Flex,behavior:pe.Dm.Disabled,channelName:this.options.channelName,headerText:u.T.getPhrase(this.lang,"clickviewTags"),emptyStateText:u.T.getPhrase(this.lang,"clickviewTagsEmpty")}))}}},{key:"renderCustomerTags",value:function(e){var t=S.BK.filterObjectsByOwnerType(this.model.tags,T.N.Customer,this.options.currentUser.get("customerId"));this.showChildView("customerTags",new Te({parentId:this.model.get("id"),collection:t,channelName:this.options.channelName,behavior:pe.Dm.Edit,headerText:this.options.editable?u.T.getPhrase(this.lang,"tags"):u.T.getPhrase(this.lang,"customerTags"),removeEvent:"remove:tag",autofocus:!!e}))}},{key:"renderTags",value:function(){this.renderClickViewTags(),this.renderCustomerTags()}},{key:"viewOptions",value:function(){return{styles:Re,editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:S.M2.isExchangeVideo(this.model),collapse:this.collapseViewModel.get("collapse")}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail(),this.renderTags(),this.renderCollapseButton(),this.renderAdditionalInfo(),this.renderProductionInfo(),this.renderFields()}}])&&Be(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),Qe=n(79472),Je=n(40622),Ze=n(53854),He=n(75535),Ke=n(95061),Ge=n(57785),We=n(55230),Ye=n.n(We);function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$e(o.key),o)}}function $e(e){var t=function(e){if("object"!=qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qe(t)?t:t+""}function et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(et=function(){return!!e})()}function tt(e){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tt(e)}function nt(e,t){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nt(e,t)}var ot=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=tt(t),function(e,t){if(t&&("object"==qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,et()?Reflect.construct(t,n||[],tt(e).constructor):t.apply(e,n))}(this,t,[e])).editable=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nt(e,t)}(t,e),n=t,T=[{key:"name",get:function(){return"EditVideoView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editVideo"}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"template",get:function(){return Ye()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0,partialLoading:b.LP.EditVideoTabs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:b.LP.EditVideoDetails}}}},{key:"initialize",value:function(){this.navLock=l.u.getInstance(y.K9.NavLock,this),this.initDataListeners(),S.Si.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=l.u.getInstance(y.Or.Video,this),this.tagDataService=l.u.getInstance(y.Or.Tags,this),this.seriesDataService=l.u.getInstance(y.Or.Series,this),this.ratingsDataService=l.u.getInstance(y.Or.Ratings,this),this.fieldsDataService=l.u.getInstance(y.Or.Fields,this),this.alertService=l.u.getInstance(y.K9.Alerts,this),this.personDataService=l.u.getInstance(y.Or.Person,this),this.companyDataService=l.u.getInstance(y.Or.Company,this)}},{key:"initDataListeners",value:function(){this.listenTo(r.G.SHELL,d.Q.Vy.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(y.Vk.VIDEO,"videos:".concat(this.options.videoId,":sync"),this.render),this.listenTo(y.Vk.VIDEO,"videos:".concat(this.options.videoId,":error"),this.onError),this.listenTo(y.Vk.RATINGS,"".concat(y.M_.RATINGS,":sync"),this.render),this.listenTo(y.Vk.VIDEO,"".concat(y.M_.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),this.onThumbnailUpdated),this.listenTo(this.channelName,"select:rating",i.default.partial(this.onTypeaheadSelection,i.default,"rating")),this.listenTo(this.channelName,"select:channel",i.default.partial(this.onTypeaheadSelection,i.default,"channel")),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:tag",this.onAddTag),this.listenTo(this.channelName,"remove:distributors",this.onRemoveDistributor),this.listenTo(this.channelName,"remove:productionCompanies",this.onRemoveProductionCompany),this.listenTo(this.channelName,"remove:directors",this.onRemoveDirector),this.listenTo(this.channelName,"remove:producers",this.onRemoveProducer),this.listenTo(this.channelName,"remove:tag",this.onRemoveTag),this.listenTo(this.channelName,Je.NT.Save,this.onSave),this.listenTo(this.channelName,Je.NT.Undo,this.onUndo),this.listenTo(this.channelName,Je.NT.DetectInput,this.onTypeaheadInput),this.listenTo(this.channelName,"image:load",this.onBeforeThumbnailUpload)}},{key:"onError",value:function(e){switch(e.type){case a.h.NotFound:d.Q.Ry.throw(new He.l);break;case a.h.Forbidden:d.Q.Ry.throw(new Ze.a)}}},{key:"onTypeaheadSelection",value:function(e,t,n){if(n){var o=this.viewModel.get(t),r=o.filter({name:e.name});i.default.each(r,function(e){return o.remove(e)}),o.add(e)}else this.viewModel.set(t,e);this.onModelChange(e,{manualUpdate:!0})}},{key:"onTypeaheadInput",value:function(e,t,n){e.get("name")||(n&&n.isCollection?this.viewModel.get(t).remove(e.get("id"),{silent:!0}):this.viewModel.get(t).clear({silent:!0}),this.onModelChange(null,{manualUpdate:!0}),"series"===t&&(this.validateSeries(),o.Radio.channel(this.channelName).trigger("clear:series")))}},{key:"onSelectSeries",value:function(e){var t=this;e.id?this.seriesDataService.getSeries(e.id,function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection(e.toJSON(),"series")}):e.name&&this.seriesDataService.createSeries(e.name,function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection({id:e.id},"series")})}},{key:"onSelectSeason",value:function(e){var t=this;if(i.default.isNull(e))return this.viewModel.get("season").clear({silent:!0}),this.viewModel.set("episodeNumber",null),S.yV.deselectAll(this.viewModel.get("series.seasons")),void this.onModelChange(null,{manualUpdate:!0});if(e.id)return this.viewModel.set("season",e),S.yV.setSelected(e.id,this.viewModel.get("series.seasons")),void this.onModelChange(e,{manualUpdate:!0});if(e.number){var n=this.viewModel.get("series.id");this.seriesDataService.createSeason(e,n,function(e){t.viewModel.set("season",e.toJSON()),!t.viewModel.get("series.seasons")&&t.viewModel.get("series").set("seasons",new m.i),t.viewModel.get("series.seasons").add(e.toJSON()),S.yV.setSelected(e.id,t.viewModel.get("series.seasons")),t.onModelChange(e.toJSON(),{manualUpdate:!0}),t.render()})}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"distributors",!0):e.name&&this.companyDataService.createCompany(e.name,function(e){t.onTypeaheadSelection(e.toJSON(),"distributors",!0)})}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"productionCompanies",!0):e.name&&this.companyDataService.createCompany(e.name,function(e){t.onTypeaheadSelection(e.toJSON(),"productionCompanies",!0)})}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"directors",!0):e.name&&this.personDataService.createPerson(e.name,function(e){t.onTypeaheadSelection(e.toJSON(),"directors",!0)})}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"producers",!0):e.name&&this.personDataService.createPerson(e.name,function(e){t.onTypeaheadSelection(e.toJSON(),"producers",!0)})}},{key:"onRemoveDistributor",value:function(e){this.removeFromCollection(e,"distributors")}},{key:"onRemoveProductionCompany",value:function(e){this.removeFromCollection(e,"productionCompanies")}},{key:"onRemoveDirector",value:function(e){this.removeFromCollection(e,"directors")}},{key:"onRemoveProducer",value:function(e){this.removeFromCollection(e,"producers")}},{key:"removeFromCollection",value:function(e,t){e&&e.id&&t&&(this.viewModel.get(t).remove(e.id),this.onModelChange(null,{manualUpdate:!0}))}},{key:"onAddTag",value:function(e){var t=this;if(e&&e.name){var n=e.name.trim().toLowerCase();if(n&&!S.yV.findModelByName(n,this.viewModel.tags)){var i=new g.V({name:n});this.viewModel.tags.add(i),this.tagDataService.createTag(n,this.model.get("id"),function(e){i.set(e.toJSON()),o.Radio.channel(t.channelName).trigger("update:tags")})}}}},{key:"onRemoveTag",value:function(e){var t=this;e instanceof g.V&&e.id&&this.tagDataService.dissociateTag(e.id,this.model.get("id"),function(){t.viewModel.tags.remove(e),o.Radio.channel(t.channelName).trigger("update:tags"),t.logDissocAction(t.model.get("id"),e,h.py.Tag)})}},{key:"saveFields",value:function(e,t){var n=this,o=0;e.updatedVideo=i.default.extend({},e.updatedVideo||{});var r=function(){++o===e.dataChanges.fields.length&&t(e)};i.default.each(e.dataChanges.fields,function(e){if(e.id&&!e.value)return n.viewModel.fields.remove(n.viewModel.fields.findWhere({id:e.id})),void n.fieldsDataService.deleteField(e.id,r);!e.id||e.id>0?n.fieldsDataService.updateField(e,r):n.fieldsDataService.addField(n.options.videoId,e,function(t){n.viewModel.fields.findWhere({id:e.id}).set("id",t.id),r()})})}},{key:"bulkDissoc",value:function(e,t){this.videoDataService.bulkDissoc(this.model.id,e.pendingDissocs,function(){t(e)})}},{key:"saveVideo",value:function(e,t){var n=this,o=i.default.omit(e.dataChanges,"fields");if(i.default.isEmpty(o))t(e);else{var r=i.default.omit(e.dataChanges,"fields");this.videoDataService.updateVideo(this.model.get("id"),this.folder.get("id"),r,function(o){(e.dataChanges.series&&e.dataChanges.series.id||e.dataChanges.episodeNumber||e.dataChanges.season)&&n.videoDataService.clearVideoCache(),e.updatedVideo=i.default.extend({},e.updatedVideo||{},o),t(e)})}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(Je.NT.DisableSave),this.logEditAction(e.dataChanges,h.eu.Save);var t=v.J.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Video was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(Je.NT.CancelSave),!1;this.validateSeries();var e=Ge.xC.getChanges(this.model,this.viewModel),t=Ge.xC.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!i.default.keys(t).length)return this.updateSaveButton(Je.NT.CancelSave),!1;var n=new d.Q.dM;return e&&e.fields&&n.useAsync(i.default.bind(this.saveFields,this)),t&&i.default.keys(t).length&&n.useAsync(i.default.bind(this.bulkDissoc,this)),this.editable&&n.useAsync(i.default.bind(this.saveVideo,this)),n.useAsync(i.default.bind(this.afterSave,this)),n.goAsync({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new S.Mr({title:u.T.getPhrase(this.lang,"undoTitle"),text:u.T.getPhrase(this.lang,"undoBody",{videoName:this.model.get("name")}),buttons:[{text:u.T.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:u.T.getPhrase(this.lang,"cancel"),className:"btn btn-link",close:!0}]}).render().done(function(){e.logEditAction({},h.eu.Discard),e.revertState({undo:!0}),e.render()})}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),Ge.xC.updateModelState(this.model,this.viewModel,e),c.r.clear(this.viewModelName),this.getViewModel(),this.renderContent(),this.renderTabs()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).undo;this.stopListening(this.viewModel),c.r.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),e&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:u.T.getPhrase(this.lang,"navLockHeading"),text:u.T.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onBeforeThumbnailUpload",value:function(){this.navLock.isLocked()&&(this.navLock.unlock(),c.r.get("upload:thumbnail:options").set("lockNav",!0))}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){if(!Ge.xC.getChanges(this.model,this.viewModel)&&!i.default.keys(Ge.xC.getRemovedObjectIds(this.model,this.viewModel)).length)return this.unlockNav(),void this.updateSaveButton(Je.NT.DisableSave);this.lockNav(),this.updateSaveButton(Je.NT.EnableSave)}else this.updateSaveButton(Je.NT.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=o.Radio.channel(this.channelName),n=Je.NT.EnableSave,i=Je.NT.DisableSave,r=Je.NT.CancelSave;switch(e){case n:return void t.trigger(n);case i:return void t.trigger(i);case r:return void t.trigger(r)}d.Q.Ry.throw(new s.H("Save action type is not valid."))}},{key:"onThumbnailUpdated",value:function(){var e=this;this.videoDataService.clearCacheAndGetVideo(this.options.videoId,function(t){e.model=t,e.viewModel.set("thumbnail",e.model.thumbnail.toJSON())})}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);f.k.logUserAction(n,{actionType:h.Vw.Edit,entity:h.py.Video,location:h.LZ.EditVideoDetails,workflowPhase:t})}},{key:"logDissocAction",value:function(e,t,n){var o=Object.assign({videoId:e},t.pick("id","name"));f.k.logUserAction(o,{actionType:h.Vw.Dissociate,entity:n,location:h.LZ.EditVideoDetails})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.model.fields&&this.model.fields.length||this.model.set("fields",(0,Ge.aj)()),this.viewModel=c.r.get(this.viewModelName,this.model.toJSON(),{ctor:w.n}),this.editable&&(this.viewModel.addValidation(Ge.rr),this.viewModel.addValidation(Ge.tD));var e=this.currentUser.get("instanceRegion")!==p.b.US;e&&this.viewModel.addValidation(Ge.oJ),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange),this.listenTo(this.viewModel,"change:dateBroadcast",i.default.partial(this.onModelChange,i.default,{manualUpdate:!0})),this.viewModel.fields&&e&&(this.viewModel.fields&&this.viewModel.fields.each(function(e){return e.addValidation(Ge.Zg)}),this.listenTo(this.viewModel.fields,"change",this.onModelChange))}},{key:"validateSeries",value:function(){this.viewModel.get("series.id")||(this.viewModel.unset("season"),this.viewModel.set("episodeNumber",null))}},{key:"fetchData",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId),this.ratings=this.ratingsDataService.getAllRatings(),this.model&&(this.editable=S.BK.canEditVideo(this.model),this.folder=this.model.categories.first(),this.ratings&&(this.viewModel instanceof w.n||this.getViewModel()))}},{key:"requiredResources",get:function(){return{currentUser:k.K.currentUser,libraries:Ke.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.ratings&&!!this.viewModel}},{key:"renderContent",value:function(){var e=Ge.xC.getChanges(this.model,this.viewModel)||i.default.keys(Ge.xC.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new ze({model:this.viewModel,ratings:this.ratings,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser}))}},{key:"renderTabs",value:function(){this.showChildView("tabs",new Qe.W({model:this.viewModel,tabs:S.Si.getEditVideoTabs(this.options.videoId,this.editable),activeTab:".edit-video-applink",context:"edit",folder:this.folder,libraries:this.libraries}))}},{key:"onRender",value:function(){this.renderTabs(),this.renderContent()}}],T&&Xe(n.prototype,T),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,T}(d.Q.G7)},86272:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return e.propertyIsEnumerable,"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:i}))+"</h5>\n"},3:function(e,t,n,o,i){return"my-2"},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="text-secondary mt-3 mb-1"><em>'+l((n.lang||t&&t.lang||s).call(a,"recommendedSize",{name:"lang",hash:{height:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.height:r,width:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.width:r},data:i}))+'</em></div>\n <button class="upload-thumbnail btn btn-outline-dark mb-3 w-100">'+l((n.lang||t&&t.lang||s).call(a,"upload",{name:"lang",hash:{},data:i}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="thumbnail-region"></div>\n<div class="'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},43791:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region ps-2"></div>'},useData:!0})},23468:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"mb-4"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <p class="mb-2 py-1 px-2 alert alert-info '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.suggestEdit:r,t))+'">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(6,i,0),data:i}))?r:"")+" </p>\n"},4:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},6:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},8:function(e,t,n,o,i){return"none"},10:function(e,t,n,o,i){return"block"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="row">\n <div class="left-pane col-4">\n <div class="thumbnail-region"></div>\n <div class="cv-tags-region '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\n <div class="customer-tags-region"></div>\n </div>\n <div class="right-pane col-8">\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="top-save-region"></div>\n <div class="basic-info-region mb-4"></div> \n <div class="collapse-button-region"></div>\n <div class="collapse-area" style="display: '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.collapse:r,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.program(10,i,0),data:i}))?r:"")+';">\n <div class="additional-details-region"></div> \n <div class="production-info-region mb-4"></div> \n <div class="fields-region mb-4"></div>\n </div>\n <div class="bottom-save-region"></div>\n </div>\n</div>'},useData:!0})},58259:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.showMorePhrase:r,{name:"lang",hash:{},data:i}))},useData:!0})},99724:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-secondary mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="save-region"></div>'},useData:!0})},15564:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,s=null!=t?t:e.nullContext||{},l=e.escapeExpression;return'<span title="'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:i}):a)+'">'+l(e.lambda(null!=(r=null!=t?t.options:t)?r.trimmedName:r,t))+"</span>\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.removable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},30992:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.headerText:r,t))+"</h5>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.emptyStateText:r,t))+"</p>\n"},5:function(e,t,n,o,i){return'<div class="tag-selector-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.headerText:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.emptyStateText:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="tag-list-region"></div>'},useData:!0})},55230:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dialog-region"></div>\n<div class="tab-region"></div>\n<div class="edit-content-region"></div>'},useData:!0})},44106:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<h5 class="mb-0">Extra Information</h5>\n<div class="text-secondary mb-3">This information is only visible to administrators and will not be searchable</div>\n<div class="fields-region"></div>'},useData:!0})},72891:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="form-group">\n <label for="edit-description">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'</label>\n <div class="text-area-region"></div>\n <div class="form-feedback"></div>\n</div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(t,e,n){"use strict";n.r(e),n.d(e,{DeleteVideosView:function(){return j}});var r=n(43823),o=n(21161),i=n(21679),u=n(57857),l=n(31647),a=n(52076),c=n(10101),s=n(88172),f=n(45390),p=n(67670),y=n(93569),b=n(21218),d=n.n(b);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var j=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,(b=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(f.Or.Library,this),this.videoDataService=i.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&u.T.getPhrase(this.lang,"removeVideos",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t,e,n,r,o=this;return[{title:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(e=null===(t=this.options.videoIds)||void 0===t?void 0:t.length)&&void 0!==e?e:1}),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(r=null===(n=this.options.videoIds)||void 0===n?void 0:n.length)&&void 0!==r?r:1}),extraButtonClass:"btn-danger",onClick:function(){return o.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){var t=this;this.library&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,function(){t.options.routeToFolderOnDelete?l.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.FOLDER,args:[t.options.folderId]}):t.triggerMethod("hide")}),this.logAction())}},{key:"logAction",value:function(){var t=this.options.videoIds,e={libraryId:this.library.id,folderId:this.options.folderId,count:t.length};1===t.length&&(e.id=o.first(t)),a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var t=this;this.library?this.spinnerModel.set(s.ZV.Disabled,!1):this.libraryDataService.getLibraries(function(e){t.library=y.PU.getLibrary(t.options.folderId,e),t.render()})}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}}])&&v(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(l.Q.G7)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return p}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"defaults",value:function(){return u(u({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},21218:function(t,e,n){var r=n(31197);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:o}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.libraryFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(31647),o=n(10101),i=n(75917),l=n(93569),a=n(11653),u=n(14538),c=n.n(u);function s(e){return s="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},s(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,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(21161),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},75917:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(43823),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="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},f(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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce(function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o},{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},14538:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{77151:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var o=n(43823),i=n(57857),r=n(31647),a=n(88172),s=n(93569),l=n(40622),u=n(99724),c=n.n(u),d={saveButton:"G_FDK",undo:"dcV70"};function f(e){return f="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},f(e)}function h(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function v(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,u=[{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}},{key:"getParentChannel",value:function(){return o.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){this.model||(this.model=new r.Q.Hn(h(h({},a.ZV.ShowSpinner,this.options.showSpinner),a.ZV.Disabled,this.options.isDisabled)));var e=this.options.channelName;this.listenTo(e,l.NT.DisableSave,this.onDisableSave),this.listenTo(e,l.NT.EnableSave,this.onEnableSave),this.listenTo(e,l.NT.CancelSave,this.onCancelSave);var t=o.Radio.channel(this.getSaveChannelName());this.listenTo(t,l.NT.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(a.ZV.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(a.ZV.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(a.ZV.ShowSpinner)&&this.model.set(a.ZV.ShowSpinner,!1,{silent:!0}),this.model.set(a.ZV.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(l.NT.Undo)}},{key:"onSave",value:function(){this.model.set(a.ZV.ShowSpinner,!0),this.getParentChannel().trigger(l.NT.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:d}}},{key:"renderSaveButton",value:function(){var e=new a.Py({saveEvent:l.NT.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:i.T.getPhrase(this.lang,"save"),extraButtonClass:"btn-dark ".concat(d.saveButton),spinnerOptions:{size:s.Ey.Small,type:s.dR.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}}],u&&p(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},18007:function(e,t,n){"use strict";n.r(t),n.d(t,{EditInteractiveView:function(){return H}});var o=n(43823),i=n(21161),r=n(25417),a=n(99748),s=n(11306),l=n(21679),u=n(57857),c=n(99249),d=n(31647),f=n(52076),h=n(70065),p=n(13156),v=n(57085),b=n(45390),y=n(29457),m=n(5048),g=n(48404),w=n(19226),k=n(93569),S=n(88483),E=n(53825),O=n(32035),C=n(77151),T=n(49965),j=n.n(T);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function _(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}var D=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=x(t),function(e,t){if(t&&("object"==N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],x(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"EditInteractiveDetailsComponent"}},{key:"className",get:function(){return"edit-interactive-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editInteractiveDetails"}},{key:"template",get:function(){return j()}},{key:"appLinks",get:function(){return{".suggest-edit":{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")]}}}},{key:"events",value:function(){return{"click .expand-details":"onClickExpandDetails"}}},{key:"elements",get:function(){return{expandable:".collapse-area"}}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new C.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"})),this.showChildView("bottomSave",new C.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new O.J({model:this.model,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new E.Z({model:this.model,thumbnail:k.M2.getThumbnail(this.model),thumbnailOptions:{size:S.h2.Medium},duration:k.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"viewOptions",value:function(){return{editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:k.M2.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail()}}])&&P(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),B=n(40622),M=n(53854),R=n(75535),L=n(95061),A=n(57785),U=n(44665),Q=n.n(U);function Z(e){return Z="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},Z(e)}function z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,K(o.key),o)}}function K(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var H=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=G(t),function(e,t){if(t&&("object"==Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,F()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}(this,t,[e])).editable=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(t,e),n=t,S=[{key:"name",get:function(){return"EditInteractiveView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editInteractive"}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.interactiveId)}},{key:"template",get:function(){return Q()}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:y.LP.Breadcrumbs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:y.LP.EditInteractiveDetails}}}},{key:"initialize",value:function(){this.navLock=l.u.getInstance(b.K9.NavLock,this),this.initDataListeners(),k.Si.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=l.u.getInstance(b.Or.Video,this),this.alertService=l.u.getInstance(b.K9.Alerts,this)}},{key:"initDataListeners",value:function(){this.listenTo(r.G.SHELL,d.Q.Vy.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.INTERACTIVES,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.INTERACTIVES,":").concat(this.options.interactiveId,":error"),this.onError),this.listenTo(this.channelName,B.NT.Save,this.onSave),this.listenTo(this.channelName,B.NT.Undo,this.onUndo)}},{key:"onError",value:function(e){switch(e.type){case a.h.NotFound:d.Q.Ry.throw(new R.l);break;case a.h.Forbidden:d.Q.Ry.throw(new M.a)}}},{key:"saveVideo",value:function(e,t){var n=this,o=e.dataChanges;if(i.isEmpty(o))t(e);else{var r=e.dataChanges;this.videoDataService.updateInteractive(this.model.get("id"),this.folder.get("id"),r,function(o){n.videoDataService.clearVideoCache(),e.updatedVideo=i.extend({},e.updatedVideo||{},o),t(e)})}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(B.NT.DisableSave),this.logEditAction(e.dataChanges,h.eu.Save);var t=p.J.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Interactive was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(B.NT.CancelSave),!1;var e=A.xC.getChanges(this.model,this.viewModel),t=A.xC.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!i.keys(t).length)return this.updateSaveButton(B.NT.CancelSave),!1;var n=new d.Q.dM;return this.editable&&n.useAsync(i.bind(this.saveVideo,this)),n.useAsync(i.bind(this.afterSave,this)),n.goAsync({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new k.Mr({title:u.T.getPhrase(this.lang,"undoTitle"),text:u.T.getPhrase(this.lang,"undoBody",{interactiveName:this.model.get("name")}),buttons:[{text:u.T.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:u.T.getPhrase(this.lang,"cancel"),className:"btn btn-link",close:!0}]}).render().done(function(){e.logEditAction({},h.eu.Discard),e.revertState({undo:!0}),e.render()})}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),A.xC.updateModelState(this.model,this.viewModel,e),c.r.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).undo;this.stopListening(this.viewModel),c.r.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),e&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:u.T.getPhrase(this.lang,"navLockHeading"),text:u.T.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){if(!A.xC.getChanges(this.model,this.viewModel)&&!i.keys(A.xC.getRemovedObjectIds(this.model,this.viewModel)).length)return this.unlockNav(),void this.updateSaveButton(B.NT.DisableSave);this.lockNav(),this.updateSaveButton(B.NT.EnableSave)}else this.updateSaveButton(B.NT.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=o.Radio.channel(this.channelName),n=B.NT.EnableSave,i=B.NT.DisableSave,r=B.NT.CancelSave;switch(e){case n:return void t.trigger(n);case i:return void t.trigger(i);case r:return void t.trigger(r)}d.Q.Ry.throw(new s.H("Save action type is not valid."))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);f.k.logUserAction(n,{actionType:h.Vw.Edit,entity:h.py.Interactive,location:h.LZ.EditInteractiveVideoDetails,workflowPhase:t})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.viewModel=c.r.get(this.viewModelName,this.model.toJSON(),{ctor:m.v}),this.editable&&this.viewModel.addValidation(A.B9),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange)}},{key:"fetchData",value:function(){this.model=this.videoDataService.getInteractive(this.options.interactiveId),this.model&&(this.editable=k.BK.canEditVideo(this.model),this.folder=this.model.categories.first(),this.viewModel instanceof m.v||this.getViewModel())}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:w.K.currentUser,libraries:L.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.viewModel}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.showChildView("breadcrumbs",new v.n({folder:this.folder,libraries:this.libraries,video:this.model,enableLastItemAppLink:!1}))}},{key:"renderContent",value:function(){var e=A.xC.getChanges(this.model,this.viewModel)||i.keys(A.xC.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new D({model:this.viewModel,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser}))}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderContent()}}],S&&z(n.prototype,S),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,S}(d.Q.G7)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return N}});var o=n(31647),i=n(45390),r=n(22557),a=n(86363),s=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(){return u(this,t),h(this,t,arguments)}return b(t,e),d(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(e){function t(){return u(this,t),h(this,t,arguments)}return b(t,e),d(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}])}(o.Q.$W),w=n(93933),k=n.n(w);function S(e){return S="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},S(e)}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,O(o.key),o)}}function O(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var N=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=T(t),function(e,t){if(t&&("object"==S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],T(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new o.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=r.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach(function(t){return e.breadcrumbCollection.add(t)}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?i.eX.LibraryEditor.FOLDER:i.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&E(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},49965:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <p class="mb-2 py-1 px-2 alert alert-info rounded fw-semibold">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+" </p>\n"},2:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},4:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="row">\n <div class="left-pane col-4">\n <div class="thumbnail-region"></div>\n </div>\n <div class="right-pane col-8">\n'+(null!=(r=n.unless.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="top-save-region"></div>\n <div class="basic-info-region mb-4"></div> \n <div class="bottom-save-region"></div>\n </div>\n</div>'},useData:!0})},99724:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-secondary mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="save-region"></div>'},useData:!0})},44665:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="row pb-3 border-bottom">\n <h1 class="h3">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'</h1>\n\n <div class="breadcrumbs-region"></div>\n</div>\n<div class="edit-content-region"></div>'},useData:!0})},86363:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</span>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},93933:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
|