@clickview/library-editor 1.57.0 → 1.58.0-rc.1
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 +3 -3
- package/dist/css/{152-library-editor-01b4461ff1.chunk.css → 463-library-editor-911bfc41fe.chunk.css} +1 -1
- package/dist/css/{5524-library-editor-de77327cdc.chunk.css → 4719-library-editor-7e2ac516b4.chunk.css} +1 -1
- package/dist/css/{61-library-editor-b5c939f10f.chunk.css → 4796-library-editor-2a18ebe0b9.chunk.css} +4 -4
- package/dist/css/{4001-library-editor-da87291909.chunk.css → 5319-library-editor-fe54adac16.chunk.css} +2 -2
- package/dist/css/library-editor-app-380eaa3fce.css +62 -0
- package/dist/scripts/{1010-f1c8bca022.chunk.js → 1010-a34c5ba546.chunk.js} +1 -1
- package/dist/scripts/1015-fde8b5ba1e.chunk.js +2 -0
- package/dist/scripts/1015-fde8b5ba1e.chunk.js.LICENSE.txt +41 -0
- package/dist/scripts/{7408-c1551d3e0d.chunk.js → 1080-78e6c18aa7.chunk.js} +1 -1
- package/dist/scripts/1115-c6cc1353bd.chunk.js +1 -0
- package/dist/scripts/1200-193f4b5bbd.chunk.js +1 -0
- package/dist/scripts/1524-1e4a0330df.chunk.js +1 -0
- package/dist/scripts/{1934-562cd9f48b.chunk.js → 1934-84460445ad.chunk.js} +1 -1
- package/dist/scripts/1973-47ac2859c2.chunk.js +1 -0
- package/dist/scripts/{2998-aae0ec14de.chunk.js → 2035-d874bdac26.chunk.js} +1 -1
- package/dist/scripts/2539-915297f0b5.chunk.js +1 -0
- package/dist/scripts/2591-fba291a9c0.chunk.js +1 -0
- package/dist/scripts/2598-225a27335b.chunk.js +1 -0
- package/dist/scripts/2614-aed18ce4af.chunk.js +1 -0
- package/dist/scripts/2648-3893c6b865.chunk.js +1 -0
- package/dist/scripts/{2803-fbb9d2439d.chunk.js → 2803-7a2cdecd93.chunk.js} +1 -1
- package/dist/scripts/{2888-c2c8b859cd.chunk.js → 2888-3298161a61.chunk.js} +1 -1
- package/dist/scripts/299-df09594cf4.chunk.js +1 -0
- package/dist/scripts/3288-ab3ca0da7f.chunk.js +1 -0
- package/dist/scripts/3305-b4175d4211.chunk.js +1 -0
- package/dist/scripts/3373-3286d26d40.chunk.js +1 -0
- package/dist/scripts/{5286-c574f5b574.chunk.js → 3391-469c93ab2c.chunk.js} +1 -1
- package/dist/scripts/{3400-ebc91cde7a.chunk.js → 3400-7a082a0377.chunk.js} +1 -1
- package/dist/scripts/3450-ad966a93e7.chunk.js +1 -0
- package/dist/scripts/{1832-52444b0088.chunk.js → 3475-d6fd75feeb.chunk.js} +1 -1
- package/dist/scripts/{3639-c5cc04c72d.chunk.js → 3639-631906e5be.chunk.js} +1 -1
- package/dist/scripts/3643-a191b71123.chunk.js +1 -0
- package/dist/scripts/{3763-47619f0e54.chunk.js → 3763-7ae73d91fa.chunk.js} +1 -1
- package/dist/scripts/3873-42f43a345f.chunk.js +1 -0
- package/dist/scripts/4027-fd3b5a0220.chunk.js +1 -0
- package/dist/scripts/416-4e7988439a.chunk.js +1 -0
- package/dist/scripts/{4201-ffd35af9cb.chunk.js → 4201-8856b389f1.chunk.js} +1 -1
- package/dist/scripts/4245-bcb3d8e3e4.chunk.js +1 -0
- package/dist/scripts/{4860-6001ab4e2a.chunk.js → 4327-b8cd9a74f9.chunk.js} +1 -1
- package/dist/scripts/{6732-85afd02f41.chunk.js → 4567-3ca6ef4308.chunk.js} +1 -1
- package/dist/scripts/{4591-78600e384c.chunk.js → 4591-9ea0b32ac6.chunk.js} +1 -1
- package/dist/scripts/463-f5f80e35df.chunk.js +2 -0
- package/dist/scripts/4719-8c6ca32259.chunk.js +1 -0
- package/dist/scripts/4796-c4944c64e0.chunk.js +2 -0
- package/dist/scripts/4851-5877fa3e54.chunk.js +1 -0
- package/dist/scripts/{5173-f2d72d7c3e.chunk.js → 5173-9338a14ee3.chunk.js} +1 -1
- package/dist/scripts/{8906-2ae58fb990.chunk.js → 5180-37c1d4f9bd.chunk.js} +1 -1
- package/dist/scripts/5182-0c4b67f64d.chunk.js +2 -0
- package/dist/scripts/5193-e559c4c41a.chunk.js +1 -0
- package/dist/scripts/5319-4f146e8e39.chunk.js +2 -0
- package/dist/scripts/{259-ef5133c0fd.chunk.js → 5327-9b16f6b411.chunk.js} +1 -1
- package/dist/scripts/5346-6ecbb5b2b1.chunk.js +1 -0
- package/dist/scripts/{5412-e2505df3a4.chunk.js → 5412-bc03f5a901.chunk.js} +1 -1
- package/dist/scripts/{5418-f84d0ff359.chunk.js → 5418-a9d060f9d0.chunk.js} +1 -1
- package/dist/scripts/5424-fa6c668f42.chunk.js +1 -0
- package/dist/scripts/{546-2ee5c90feb.chunk.js → 546-36e1e11039.chunk.js} +1 -1
- package/dist/scripts/{7295-49780496e2.chunk.js → 5736-83fa0776d5.chunk.js} +1 -1
- package/dist/scripts/576-243c823838.chunk.js +1 -0
- package/dist/scripts/5814-5a46f1f264.chunk.js +1 -0
- package/dist/scripts/5972-d637eea712.chunk.js +1 -0
- package/dist/scripts/6239-92a0bebbeb.chunk.js +1 -0
- package/dist/scripts/6350-862d3edb93.chunk.js +1 -0
- package/dist/scripts/6439-8aac0bd92a.chunk.js +1 -0
- package/dist/scripts/{8762-be126e413d.chunk.js → 6450-a3ca4cdb2a.chunk.js} +1 -1
- package/dist/scripts/6467-db60883ef6.chunk.js +1 -0
- package/dist/scripts/{1086-7632f7b45b.chunk.js → 6587-eed4f0308b.chunk.js} +1 -1
- package/dist/scripts/{1409-ae672618b1.chunk.js → 6677-66b4b60478.chunk.js} +1 -1
- package/dist/scripts/6768-5f9040eac8.chunk.js +1 -0
- package/dist/scripts/{6774-a002ac7253.chunk.js → 6774-7ed47e1b8c.chunk.js} +1 -1
- package/dist/scripts/{6788-dc6b522995.chunk.js → 6788-d3b052f1a9.chunk.js} +1 -1
- package/dist/scripts/7071-4b42b6a81f.chunk.js +1 -0
- package/dist/scripts/7153-b8a8099148.chunk.js +1 -0
- package/dist/scripts/7182-9378cbae60.chunk.js +2 -0
- package/dist/scripts/7182-9378cbae60.chunk.js.LICENSE.txt +8 -0
- package/dist/scripts/{7190-2b40df1e89.chunk.js → 7190-35f785a3e3.chunk.js} +1 -1
- package/dist/scripts/{5747-7ca7ad6c1d.chunk.js → 7366-1132e85416.chunk.js} +1 -1
- package/dist/scripts/7384-29be02029c.chunk.js +1 -0
- package/dist/scripts/7416-4d6b9b9a5b.chunk.js +1 -0
- package/dist/scripts/7696-08e022c4b5.chunk.js +1 -0
- package/dist/scripts/775-2c991c9c6e.chunk.js +1 -0
- package/dist/scripts/777-1b328a0073.chunk.js +2 -0
- package/dist/scripts/8113-e17a857adc.chunk.js +1 -0
- package/dist/scripts/{9695-636ea0ef64.chunk.js → 8143-3c844e6f7b.chunk.js} +1 -1
- package/dist/scripts/{8362-267efdac61.chunk.js → 8362-a48a464bd6.chunk.js} +1 -1
- package/dist/scripts/8542-6f5077cb9a.chunk.js +1 -0
- package/dist/scripts/8591-047736d51e.chunk.js +1 -0
- package/dist/scripts/8757-9ff47570ba.chunk.js +2 -0
- package/dist/scripts/8757-9ff47570ba.chunk.js.LICENSE.txt +44 -0
- package/dist/scripts/{7376-e3bf3a94f9.chunk.js → 8797-2e772deab9.chunk.js} +1 -1
- package/dist/scripts/8862-0ce7a20f11.chunk.js +1 -0
- package/dist/scripts/{5707-b2b239ff4e.chunk.js → 8915-53b71a635d.chunk.js} +1 -1
- package/dist/scripts/{2692-1ddd87476e.chunk.js → 8989-258e7f8a87.chunk.js} +1 -1
- package/dist/scripts/9011-4862aa077d.chunk.js +1 -0
- package/dist/scripts/{6093-e19df1d1fa.chunk.js → 9037-7ce5f91571.chunk.js} +1 -1
- package/dist/scripts/9217-9c61b07e9e.chunk.js +1 -0
- package/dist/scripts/{9357-e71ea6a34d.chunk.js → 9357-64d247d840.chunk.js} +1 -1
- package/dist/scripts/{3551-d2ea1832c5.chunk.js → 95-bd02e086ac.chunk.js} +1 -1
- package/dist/scripts/{8726-2d0bc64637.chunk.js → 9620-3ba8334ebc.chunk.js} +1 -1
- package/dist/scripts/{5424-65be3c657c.chunk.js → 9734-37ab55da4e.chunk.js} +1 -1
- package/dist/scripts/9766-753d188467.chunk.js +2 -0
- package/dist/scripts/9766-753d188467.chunk.js.LICENSE.txt +6 -0
- package/dist/scripts/{9927-7a935c955d.chunk.js → 9825-965bc63629.chunk.js} +1 -1
- package/dist/scripts/9928-f43d6de0a3.chunk.js +1 -0
- package/dist/scripts/bundle-ff9de2ae3a.min.js +2 -0
- package/dist/scripts/bundle-ff9de2ae3a.min.js.LICENSE.txt +124 -0
- package/dist/scripts/{polyfills-5ce436cbbe.min.js → polyfills-4c06ebd0dd.min.js} +1 -1
- package/package.json +4 -5
- package/dist/css/library-editor-app-6b401b236c.css +0 -62
- package/dist/scripts/101-c2af2cc10c.chunk.js +0 -1
- package/dist/scripts/112-5209a9a2d0.chunk.js +0 -1
- package/dist/scripts/1216-83f6fbc7be.chunk.js +0 -1
- package/dist/scripts/1269-02d8d91784.chunk.js +0 -1
- package/dist/scripts/152-808e046b1f.chunk.js +0 -2
- package/dist/scripts/1703-0f9e8a489f.chunk.js +0 -1
- package/dist/scripts/1876-0a931d62d9.chunk.js +0 -1
- package/dist/scripts/1973-7a1768228d.chunk.js +0 -1
- package/dist/scripts/2417-9731b9da6b.chunk.js +0 -1
- package/dist/scripts/243-c4bb9e995e.chunk.js +0 -1
- package/dist/scripts/2482-ded3090c15.chunk.js +0 -1
- package/dist/scripts/2601-0bbd055a92.chunk.js +0 -1
- package/dist/scripts/2644-17c596a0c9.chunk.js +0 -1
- package/dist/scripts/2648-0a58c0fc05.chunk.js +0 -1
- package/dist/scripts/2802-d428814c29.chunk.js +0 -2
- package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/299-5585deab1d.chunk.js +0 -1
- package/dist/scripts/343-a3dabdd615.chunk.js +0 -1
- package/dist/scripts/35-dde0c25008.chunk.js +0 -1
- package/dist/scripts/3746-588ea9d62d.chunk.js +0 -1
- package/dist/scripts/376-d76b864238.chunk.js +0 -1
- package/dist/scripts/3969-c636ff3159.chunk.js +0 -1
- package/dist/scripts/3978-46652b7a6d.chunk.js +0 -1
- package/dist/scripts/4001-e9f2e6c242.chunk.js +0 -2
- package/dist/scripts/4024-e9e014aae3.chunk.js +0 -1
- package/dist/scripts/4245-db2d86c59d.chunk.js +0 -1
- package/dist/scripts/4523-4dc52522e2.chunk.js +0 -1
- package/dist/scripts/471-8eefc9b28a.chunk.js +0 -2
- package/dist/scripts/471-8eefc9b28a.chunk.js.LICENSE.txt +0 -13
- package/dist/scripts/5046-b65e8db7c0.chunk.js +0 -1
- package/dist/scripts/514-eeb95eba47.chunk.js +0 -1
- package/dist/scripts/535-794be8eab5.chunk.js +0 -1
- package/dist/scripts/5524-04583b6e40.chunk.js +0 -1
- package/dist/scripts/5850-fd3912ade8.chunk.js +0 -1
- package/dist/scripts/5891-ac4d3f803a.chunk.js +0 -1
- package/dist/scripts/61-4b8d6a6f6d.chunk.js +0 -2
- package/dist/scripts/6352-50c10c1bc6.chunk.js +0 -1
- package/dist/scripts/6963-254d82f6c2.chunk.js +0 -1
- package/dist/scripts/7002-6d9f52d6d3.chunk.js +0 -1
- package/dist/scripts/7053-91a52f57d7.chunk.js +0 -1
- package/dist/scripts/7071-6d98c3dcfa.chunk.js +0 -1
- package/dist/scripts/708-f7536cb7a4.chunk.js +0 -1
- package/dist/scripts/7153-fc080e3d53.chunk.js +0 -1
- package/dist/scripts/7827-c1f1b4f608.chunk.js +0 -1
- package/dist/scripts/8113-d678e76098.chunk.js +0 -1
- package/dist/scripts/8213-6c873c853e.chunk.js +0 -1
- package/dist/scripts/8542-64733a5c92.chunk.js +0 -1
- package/dist/scripts/8591-149f4a2b62.chunk.js +0 -1
- package/dist/scripts/8727-188101f028.chunk.js +0 -1
- package/dist/scripts/8952-4201ae6599.chunk.js +0 -2
- package/dist/scripts/9369-d0cfe79b64.chunk.js +0 -2
- package/dist/scripts/9383-4ed13f5993.chunk.js +0 -1
- package/dist/scripts/bundle-e23c97dca7.min.js +0 -2
- package/dist/scripts/bundle-e23c97dca7.min.js.LICENSE.txt +0 -1
- package/typings/libs/CVLanguages.d.ts +0 -24
- package/typings/libs/LazyLoad.d.ts +0 -30
- package/typings/libs/LazyLoad.ts +0 -27
- package/typings/libs/cookiesjs.d.ts +0 -24
- /package/dist/css/{7408-library-editor-2a67dae087.chunk.css → 1080-library-editor-2a67dae087.chunk.css} +0 -0
- /package/dist/css/{376-library-editor-ce09c2fd78.chunk.css → 1524-library-editor-ce09c2fd78.chunk.css} +0 -0
- /package/dist/css/{6352-library-editor-33de5ce339.chunk.css → 2591-library-editor-33de5ce339.chunk.css} +0 -0
- /package/dist/css/{3978-library-editor-5a1c6fc3b4.chunk.css → 2598-library-editor-5a1c6fc3b4.chunk.css} +0 -0
- /package/dist/css/{3746-library-editor-46e4b6af59.chunk.css → 2614-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{7053-library-editor-cbe896c46a.chunk.css → 3288-library-editor-cbe896c46a.chunk.css} +0 -0
- /package/dist/css/{2644-library-editor-9a25c88900.chunk.css → 3305-library-editor-9a25c88900.chunk.css} +0 -0
- /package/dist/css/{5046-library-editor-765ea88cb0.chunk.css → 3373-library-editor-765ea88cb0.chunk.css} +0 -0
- /package/dist/css/{1832-library-editor-e123877850.chunk.css → 3475-library-editor-e123877850.chunk.css} +0 -0
- /package/dist/css/{3969-library-editor-30997910e2.chunk.css → 3643-library-editor-30997910e2.chunk.css} +0 -0
- /package/dist/css/{4860-library-editor-f5eddb2400.chunk.css → 4327-library-editor-f5eddb2400.chunk.css} +0 -0
- /package/dist/css/{6732-library-editor-0be4d10f09.chunk.css → 4567-library-editor-0be4d10f09.chunk.css} +0 -0
- /package/dist/css/{1086-library-editor-9f7cd4e27e.chunk.css → 5180-library-editor-9f7cd4e27e.chunk.css} +0 -0
- /package/dist/css/{9369-library-editor-e354d61dfe.chunk.css → 5182-library-editor-e354d61dfe.chunk.css} +0 -0
- /package/dist/css/{4024-library-editor-b0081783ab.chunk.css → 5193-library-editor-b0081783ab.chunk.css} +0 -0
- /package/dist/css/{2601-library-editor-8922d361d6.chunk.css → 5346-library-editor-8922d361d6.chunk.css} +0 -0
- /package/dist/css/{1703-library-editor-3334df179f.chunk.css → 5424-library-editor-3334df179f.chunk.css} +0 -0
- /package/dist/css/{7295-library-editor-34087db2b0.chunk.css → 5736-library-editor-34087db2b0.chunk.css} +0 -0
- /package/dist/css/{535-library-editor-fa24102d7f.chunk.css → 576-library-editor-fa24102d7f.chunk.css} +0 -0
- /package/dist/css/{5891-library-editor-46e4b6af59.chunk.css → 5814-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{708-library-editor-7ffe353138.chunk.css → 5972-library-editor-7ffe353138.chunk.css} +0 -0
- /package/dist/css/{243-library-editor-decee8d957.chunk.css → 6239-library-editor-decee8d957.chunk.css} +0 -0
- /package/dist/css/{4523-library-editor-c52f3ffbb0.chunk.css → 6350-library-editor-c52f3ffbb0.chunk.css} +0 -0
- /package/dist/css/{2482-library-editor-1b6dc45d45.chunk.css → 6439-library-editor-1b6dc45d45.chunk.css} +0 -0
- /package/dist/css/{2692-library-editor-9f7cd4e27e.chunk.css → 6450-library-editor-9f7cd4e27e.chunk.css} +0 -0
- /package/dist/css/{1876-library-editor-3334df179f.chunk.css → 6467-library-editor-3334df179f.chunk.css} +0 -0
- /package/dist/css/{8762-library-editor-9f7cd4e27e.chunk.css → 6587-library-editor-9f7cd4e27e.chunk.css} +0 -0
- /package/dist/css/{1409-library-editor-bc215e1152.chunk.css → 6677-library-editor-bc215e1152.chunk.css} +0 -0
- /package/dist/css/{9383-library-editor-02381b537c.chunk.css → 6768-library-editor-02381b537c.chunk.css} +0 -0
- /package/dist/css/{5747-library-editor-de4ea80bfc.chunk.css → 7366-library-editor-de4ea80bfc.chunk.css} +0 -0
- /package/dist/css/{2417-library-editor-46f8e6e95b.chunk.css → 7384-library-editor-46f8e6e95b.chunk.css} +0 -0
- /package/dist/css/{101-library-editor-cc4c4155eb.chunk.css → 7696-library-editor-cc4c4155eb.chunk.css} +0 -0
- /package/dist/css/{8952-library-editor-5d85817bef.chunk.css → 777-library-editor-5d85817bef.chunk.css} +0 -0
- /package/dist/css/{9695-library-editor-c5004a1fec.chunk.css → 8143-library-editor-c5004a1fec.chunk.css} +0 -0
- /package/dist/css/{343-library-editor-d2f704c6a5.chunk.css → 8862-library-editor-d2f704c6a5.chunk.css} +0 -0
- /package/dist/css/{8906-library-editor-9f7cd4e27e.chunk.css → 8989-library-editor-9f7cd4e27e.chunk.css} +0 -0
- /package/dist/css/{112-library-editor-6a2d152d7d.chunk.css → 9011-library-editor-6a2d152d7d.chunk.css} +0 -0
- /package/dist/css/{6093-library-editor-446ee2e049.chunk.css → 9037-library-editor-446ee2e049.chunk.css} +0 -0
- /package/dist/css/{6963-library-editor-46e4b6af59.chunk.css → 9217-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{3551-library-editor-787101ac7a.chunk.css → 95-library-editor-787101ac7a.chunk.css} +0 -0
- /package/dist/css/{5424-library-editor-30b3c7de26.chunk.css → 9734-library-editor-30b3c7de26.chunk.css} +0 -0
- /package/dist/css/{514-library-editor-4cb4f22674.chunk.css → 9766-library-editor-4cb4f22674.chunk.css} +0 -0
- /package/dist/css/{9927-library-editor-a11669ad9d.chunk.css → 9825-library-editor-a11669ad9d.chunk.css} +0 -0
- /package/dist/scripts/{1934-562cd9f48b.chunk.js.LICENSE.txt → 1934-84460445ad.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{152-808e046b1f.chunk.js.LICENSE.txt → 463-f5f80e35df.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4001-e9f2e6c242.chunk.js.LICENSE.txt → 4796-c4944c64e0.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{61-4b8d6a6f6d.chunk.js.LICENSE.txt → 5182-0c4b67f64d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8952-4201ae6599.chunk.js.LICENSE.txt → 5319-4f146e8e39.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9369-d0cfe79b64.chunk.js.LICENSE.txt → 777-1b328a0073.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2601],{21053:function(e,t,n){"use strict";n.d(t,{W:function(){return b}});var o=n(48088),i=n(57857),r=n(31647),a=n(57085),s=n(35630),l=n(57098),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)},74250:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var o=n(48088),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)},44391:function(e,t,n){"use strict";n.d(t,{K:function(){return T}});var o=n(11306),i=n(31647),r=n(48088),a=n(57098),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={}))},18974:function(e,t,n){"use strict";n.r(t),n.d(t,{EditVideoView:function(){return ot}});var o=n(48088),i=n(39479),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(57098),b=n(29457),g=n(68619),w=n(85847),k=n(19226),S=n(93569),T=n(45837),O=n(24184),E=n(72998),C=n(95168),P=n(44106),j=n.n(P),N=n(99844),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(2772),$=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(74250),ce=n(17391),de=n(36022),fe=n(3974),he=n(44391),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(21053),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.partial(this.onTypeaheadSelection,i,"rating")),this.listenTo(this.channelName,"select:channel",i.partial(this.onTypeaheadSelection,i,"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.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.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.extend({},e.updatedVideo||{});var r=function(){++o===e.dataChanges.fields.length&&t(e)};i.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.omit(e.dataChanges,"fields");if(i.isEmpty(o))t(e);else{var r=i.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.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.keys(t).length)return this.updateSaveButton(Je.NT.CancelSave),!1;var n=new d.Q.dM;return e&&e.fields&&n.useAsync(i.bind(this.saveFields,this)),t&&i.keys(t).length&&n.useAsync(i.bind(this.bulkDissoc,this)),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 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.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.partial(this.onModelChange,i,{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.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(32227);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(32227);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(32227);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(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},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(32227);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(32227);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(32227);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(32227);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(32227);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(32227);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})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2644],{8371:function(e,n,t){"use strict";var r;t.d(n,{b:function(){return r}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},48362:function(e,n,t){"use strict";t.d(n,{_:function(){return E}});var r=t(31647),i=t(70065),o=t(45837),l=t(7427),s=t(61356),a=t(19226),u=t(93569),c=t(44391),p=t(25887),d=t(70042),f=t(17349),h=t.n(f),m={interactive:"N1mrU"};function v(e){return v="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},v(e)}function g(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var n=function(e){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=v(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(n)?n:n+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,n){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},k(e,n)}var E=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=w(n),function(e,n){if(n&&("object"==v(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],w(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}(n,e),t=n,(r=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!u.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return h()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:a.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new s.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:i.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new c.K({collection:this.model.get("tags"),orientation:p.zM.Flex,behavior:p.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new l.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:m,interactive:d.u.isInteractive(this.model),duration:u.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&u.BK.filterObjectsByOwnerType(this.model.tags,o.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},16246:function(e,n,t){"use strict";t.r(n),t.d(n,{VideoDetailsView:function(){return Pe}});var r,i=t(39479),o=t.n(i),l=t(99748),s=t(21679),a=t(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var u=t(8371),c=t(59054),p=t(57085),d=t(23130),f=t(10386),h=t.n(f),m=t(90118),v=t.n(m),g={columnNames:"Hs0Sh"};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,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){var n=function(e){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=y(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(n)?n:n+""}function C(e,n,t){return n=x(n),function(e,n){if(n&&("object"==y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(n,t||[],x(e).constructor):n.apply(e,t))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function S(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&I(e,n)}function I(e,n){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},I(e,n)}var P=function(e){function n(){return b(this,n),C(this,n,arguments)}return S(n,e),k(n,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return h()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:g}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new d.Z({model:new a.Q.Hn({description:this.model.get("value")}),linkify:!0,size:d.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}])}(a.Q.wA),j=function(e){function n(){return b(this,n),C(this,n,arguments)}return S(n,e),k(n,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return P}}])}(a.Q.$W),V=function(e){function n(){return b(this,n),C(this,n,arguments)}return S(n,e),k(n,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new j({collection:this.collection}))}}])}(a.Q.wA),T=t(57857),D=t(93569),_=t(26835),R=t.n(_),L={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function N(e,n){for(var t=0;t<n.length;t++){var r=n[t];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 n=function(e){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=U(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(n)?n:n+""}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function H(e,n){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},H(e,n)}var F=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=A(n),function(e,n){if(n&&("object"==U(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(n,t||[],A(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&H(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return R()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return D.mU.isInContentRegion(this.options.contentRegion,r.UK)?L.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return T.T.getPhrase(this.lang,"era");case r.AU:return T.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=D.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:L,logoClass:this.getLogoClass(),labelText:e?T.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&N(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(a.Q.wA),K=t(10657),Q=t(56210),Z=t(37570),Y=t(29457),z=t(89707),q=t(7190),G=t(95982),J=t.n(G),$={columnNames:"knYPJ",seriesContainer:"nBq4d",icon:"F9VfV",citationValues:"igMNQ"};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 X(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function ee(e){var n=function(e){if("object"!=W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=W(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(n)?n:n+""}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ne=function(){return!!e})()}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function re(e,n){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},re(e,n)}var ie=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=te(n),function(e,n){if(n&&("object"==W(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ne()?Reflect.construct(n,t||[],te(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&re(e,n)}(n,e),t=n,(r=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return J()}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:Q.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:Y.LP.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?K.O.format(this.model.get("dateBroadcast"),Y.K4.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series){var e="series/".concat(this.model.series.id);return z.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new Z.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new d.Z({model:this.model,linkify:!0,size:d.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?i.uniq(this.model.get("subtitles").map((function(n){var t,r=n.get("language"),i=CVLanguages.getFullEnglishName(r);return(null===(t=n.get("metadata"))||void 0===t?void 0:t.autoGenerated)?T.T.getPhrase(e.lang,"autoGenerated",{name:i}):i}))).join(", "):""}},{key:"getCitationHeading",value:function(e,n,t){return this.model.get(e)?this.model.get(e).length>1?t:n:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(Y.Zn.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(Y.Zn.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(Y.Zn.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(Y.Zn.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:$,ratingClass:this.model.rating&&q.uB.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),hideUploadedDate:this.model.get("_isClickViewCurated").get("value"),uploadedDate:K.O.format(this.model.get("dateCreated"),Y.K4.FULL_YEAR),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),hideBroadcastInfo:this.options.hideBroadcastInfo},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&X(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(a.Q.wA),oe=t(57098),le=t(21251),se=t(33800),ae=t(3059),ue=t(48404),ce=t(64649),pe=t(19226),de=t(70693),fe=t(68708),he=t(24397),me=t(77605),ve=t(48362),ge=t(53854),ye=t(75535),be=t(95061),we=t(91865),ke=t.n(we);function Ee(e){return Ee="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},Ee(e)}function Ce(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function Oe(e){var n=function(e){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=Ee(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(n)?n:n+""}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xe=function(){return!!e})()}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function Ie(e,n){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ie(e,n)}var Pe=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=Se(n),function(e,n){if(n&&("object"==Ee(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xe()?Reflect.construct(n,t||[],Se(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ie(e,n)}(n,e),t=n,i=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=s.u.getInstance(se.O.Video,this),this.videoMixinService=s.u.getInstance(se.K.VideoMixin,this),this.localCacheDataService=s.u.getInstance(se.O.LocalCache,this),this.playerDataService=s.u.getInstance(se.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(oe.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(oe.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(oe.Vk.RESTRICTED_VIDEO,"".concat(le.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(oe.Vk.RESTRICTED_VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(oe.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":error"),this.onError),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.DELETE_VIDEO,":sync"),this.destroy)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return ke()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case l.h.NotFound:a.Q.Ry.throw(new ye.l);break;case l.h.Forbidden:a.Q.Ry.throw(new ge.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:Y.LP.Breadcrumbs},header:{replaceElement:!0,el:".video-header-region",partialLoading:Y.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:Y.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:Y.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||D.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,n){this.playerDataService.createViewKey(e,c.f.MasterObject,n)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var n=this.libraries.reduce((function(e,n){return e[n.id]=!0,e}),{});return this.video.categories.filter((function(e){var t=e.libraries.first().get("id");return n[t]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.video&&this.showChildView("breadcrumbs",new p.n({folder:this.folder,libraries:this.libraries,video:this.video,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new he.U({model:this.video,customerHasLocalCache:D.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new ae.F7(this.folder.id,D.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new ve._({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new ie({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===u.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.any((function(e){return e.get("value")}))&&this.currentUser.get("instanceRegion")!==u.b.US&&this.showChildView("fields",new V({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new de.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new me.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new fe.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new F({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:ue.p.config,currentUser:pe.K.currentUser,libraries:be.T.libraries,exchanges:be.T.exchanges,products:ce.s.products}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=o().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,n=e.chapters,t=e.resources,r=e.fields,i=e.links;return{hasFolder:!!this.folder,hasChapters:n&&n.length,hasResources:t&&t.length,hasFields:r&&r.length,hasLinks:i&&i.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],i&&Ce(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(a.Q.G7)},37570:function(e,n,t){"use strict";t.d(n,{O:function(){return v}});var r=t(31647),i=t(63791),o=t(57098),l=t(93569),s=t(19021),a=t.n(s),u={svgContainer:"kKrQJ",series:"zJvxj"};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 p(e,n){for(var t=0;t<n.length;t++){var r=n[t];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 n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var v=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,(r=[{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return a()}},{key:"appLinks",get:function(){return this.options.seriesUrl||!this.model.series?{}:{".series-applink":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}},{key:"padNumber",value:function(e){if(!e)return null;var n=e.toString(),t=2;if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}},{key:"getSeriesName",value:function(){var e=l.m$.escapeExpression(this.model.series.get("name"));return this.options.highlight?l.m$.wordsHighlighter(e,this.model.get("_matchedWords")):e}},{key:"viewOptions",value:function(){return this.model.series?{styles:u,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:i.Nj.getSvg(i.vn.NewWindow),styleUppercase:this.options.styleUppercase}:{}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},17349:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.interactive:o,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=n?n.options:n)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,n,t,r,i){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <div class="mt-3">\n <h5>'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:i}))+"</h5>\n <p>"+l(e.lambda(null!=(o=null!=n?n.options:n)?o.links:o,n))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<div class="h-100 ps-2 pe-2">\n <div class="video-preview-region"></div>\n <div class="mt-3">\n'+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.interactive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.folders:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.tags:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.links:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},91865:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return' <div class="fields-region"></div>\n'},3:function(e,n,t,r,i){return' <div class="video-chapters-region"></div>\n'},5:function(e,n,t,r,i){return' <div class="video-resources-region"></div>\n'},7:function(e,n,t,r,i){return' <div class="video-links-region"></div>\n'},9:function(e,n,t,r,i){return' <div class="screenright-disclaimer-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<div class="row border-bottom">\n <div class="video-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-video-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-video-information-region py-3 pe-2"></div>\n'+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasFields:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasChapters:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasResources:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasLinks:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.showScreenrightsDisclaimer:o,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n</div>"},useData:!0})},10386:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression;return'<div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</div>\n<div class="col-9">\n <div class="description-region"></div>\n</div>'},useData:!0})},90118:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,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})},26835:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return'<div class="d-inline-block '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.licenseContainer:o,n))+'">\n <div class="'+s(l(null!=(o=null!=n?n.options:n)?o.logoClass:o,n))+'">'+s(l(null!=(o=null!=n?n.options:n)?o.labelText:o,n))+'</div>\n <p class="'+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.license:o,n))+' bg-white p-2 border box-shadow">\n '+(null!=(o=l(null!=(o=null!=n?n.options:n)?o.licenseText:o,n))?o:"")+"\n </p>\n</div>"},useData:!0})},95982:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable,'<div class="position-relative">\n <h5 class="d-inline-block">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"basicInfo",{name:"lang",hash:{},data:i}))+"</h5>\n</div>\n"},3:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression,a=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||u).call(a,"videoTitle",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:u)?l.call(a,{name:"name",hash:{},data:i}):l)+"</p>\n"},5:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"series",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.seriesContainer:o,n))+'"><div class="series-region"></div></div>\n'},7:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(o=null!=n?n.options:n)?o.ratingClass:o,n))+" "+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.rating:o,n))+'" title="'+s(l(null!=(o=null!=n?n.rating:n)?o.name:o,n))+'">'+s(l(null!=(o=null!=n?n.rating:n)?o.code:o,n))+"</span></p>\n"},9:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},11:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression,a=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||u).call(a,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(a,{name:"productionYear",hash:{},data:i}):l)+"</p>\n"},13:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.producers:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},14:function(e,n,t,r,i){var o;return e.propertyIsEnumerable," <span>"+e.escapeExpression("function"==typeof(o=null!=(o=t.name||(null!=n?n.name:n))?o:e.hooks.helperMissing)?o.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</span>\n"},16:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.directors:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},18:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.productionCompanies:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},20:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.distributors:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},22:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return" "+(null!=(o=t.if.call(l,null!=(o=null!=n?n.channel:n)?o.name:o,{name:"if",hash:{},fn:e.program(23,i,0),inverse:e.noop,data:i}))?o:"")+"\n\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.broadcastDate:o,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?o:"")},23:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,null!=(o=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.channel:n,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?o:""},24:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return'\n <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"channel",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.channel:n)?o.name:o,n))+"</p>\n "},26:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.broadcastDate:o,n))+"</p>\n"},28:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"dateUploaded",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.uploadedDate:o,n))+"</p>\n"},30:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.subtitles:o,n))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.showHeading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'<div class="row mb-0">\n'+(null!=(o=t.if.call(l,null!=n?n.name:n,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.series:n)?o.name:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.rating:n)?o.code:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=n?n.description:n,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.producers:n)?o.length:o,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.directors:n)?o.length:o,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.productionCompanies:n)?o.length:o,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.distributors:n)?o.length:o,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.unless.call(l,null!=(o=null!=n?n.options:n)?o.hideBroadcastInfo:o,{name:"unless",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.unless.call(l,null!=(o=null!=n?n.options:n)?o.hideUploadedDate:o,{name:"unless",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.subtitles:o,{name:"if",hash:{},fn:e.program(30,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},19021:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.series:o,n))},3:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,'href="'+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.seriesUrl:o,n))+'" target="_blank"'},5:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,(null!=(o=t.if.call(null!=n?n:e.nullContext||{},null!=(o=null!=n?n.options:n)?o.seasonNumber:o,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+" E"+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.episodeNumber:o,n))+"\n"},6:function(e,n,t,r,i){var o;return e.propertyIsEnumerable," S"+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.seasonNumber:o,n))+" •"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<a class="series-applink text-reset '+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.styleUppercase:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'" '+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.seriesUrl:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+">\n "+(null!=(o=e.lambda(null!=(o=null!=n?n.options:n)?o.seriesName:o,n))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.episodeNumber:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"</a>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2648],{80489:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,i){return"number"!=typeof i||t[e]?i:i+"px"}},17333:function(e,t,i){var n=i(90758),r=i(66777),o={float:"cssFloat"},l=i(80489);function a(e,t,i){var a=o[t];if(void 0===a&&(a=function(e){var t=r(e),i=n(t);return o[t]=o[e]=o[i]=i,i}(t)),a){if(void 0===i)return e.style[a];e.style[a]=l(a,i)}}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i])}(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,i){return t[i]=a(e,i||""),t}),{}):a(e,t||"")}},62930:function(e){(function(){var t,i,n,r,o,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},i=process.hrtime,r=(t=function(){var e;return 1e9*(e=i())[0]+e[1]})(),l=1e9*process.uptime(),o=r-l):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},90758:function(e){var t=null,i=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var n=t.style;if(e in n)return e;for(var r=e.charAt(0).toUpperCase()+e.slice(1),o=i.length;o>=0;o--){var l=i[o]+r;if(l in n)return l}return!1}},459:function(e,t,i){"use strict";var n=i(15704);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,l){if(l!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}},60216:function(e,t,i){e.exports=i(459)()},15704:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48729:function(e,t,i){for(var n=i(62930),r="undefined"==typeof window?i.g:window,o=["moz","webkit"],l="AnimationFrame",a=r["request"+l],u=r["cancel"+l]||r["cancelRequest"+l],s=0;!a&&s<o.length;s++)a=r[o[s]+"Request"+l],u=r[o[s]+"Cancel"+l]||r[o[s]+"CancelRequest"+l];if(!a||!u){var c=0,d=0,h=[],f=1e3/60;a=function(e){if(0===h.length){var t=n(),i=Math.max(0,f-(t-c));c=i+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(i))}return h.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(r,e)},e.exports.cancel=function(){u.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}},11305:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderTrackVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderThumbHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))},t.renderThumbVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))};var r,o=(r=i(1024))&&r.__esModule?r:{default:r};function l(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}},3845:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(48729),l=m(o),a=m(i(17333)),u=i(1024),s=m(i(60216)),c=m(i(71175)),d=m(i(33961)),h=m(i(63417)),f=m(i(11478)),v=m(i(37723)),p=i(2211),g=i(11305);function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i=t.__proto__||Object.getPrototypeOf(t)).call.apply(i,[this,e].concat(r)));return l.getScrollLeft=l.getScrollLeft.bind(l),l.getScrollTop=l.getScrollTop.bind(l),l.getScrollWidth=l.getScrollWidth.bind(l),l.getScrollHeight=l.getScrollHeight.bind(l),l.getClientWidth=l.getClientWidth.bind(l),l.getClientHeight=l.getClientHeight.bind(l),l.getValues=l.getValues.bind(l),l.getThumbHorizontalWidth=l.getThumbHorizontalWidth.bind(l),l.getThumbVerticalHeight=l.getThumbVerticalHeight.bind(l),l.getScrollLeftForOffset=l.getScrollLeftForOffset.bind(l),l.getScrollTopForOffset=l.getScrollTopForOffset.bind(l),l.scrollLeft=l.scrollLeft.bind(l),l.scrollTop=l.scrollTop.bind(l),l.scrollToLeft=l.scrollToLeft.bind(l),l.scrollToTop=l.scrollToTop.bind(l),l.scrollToRight=l.scrollToRight.bind(l),l.scrollToBottom=l.scrollToBottom.bind(l),l.handleTrackMouseEnter=l.handleTrackMouseEnter.bind(l),l.handleTrackMouseLeave=l.handleTrackMouseLeave.bind(l),l.handleHorizontalTrackMouseDown=l.handleHorizontalTrackMouseDown.bind(l),l.handleVerticalTrackMouseDown=l.handleVerticalTrackMouseDown.bind(l),l.handleHorizontalThumbMouseDown=l.handleHorizontalThumbMouseDown.bind(l),l.handleVerticalThumbMouseDown=l.handleVerticalThumbMouseDown.bind(l),l.handleWindowResize=l.handleWindowResize.bind(l),l.handleScroll=l.handleScroll.bind(l),l.handleDrag=l.handleDrag.bind(l),l.handleDragEnd=l.handleDragEnd.bind(l),l.state={didMountUniversal:!1},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,i=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n,o=e.scrollWidth,l=void 0===o?0:o,a=e.scrollHeight,u=void 0===a?0:a,s=e.clientWidth,c=void 0===s?0:s,d=e.clientHeight,h=void 0===d?0:d;return{left:i/(l-c)||0,top:r/(u-h)||0,scrollLeft:i,scrollTop:r,scrollWidth:l,scrollHeight:u,clientWidth:c,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollWidth,o=n.clientWidth,l=(0,f.default)(this.trackHorizontal),a=Math.ceil(o/r*l);return l<=a?0:t||Math.max(a,i)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollHeight,o=n.clientHeight,l=(0,v.default)(this.trackVertical),a=Math.ceil(o/r*l);return l<=a?0:t||Math.max(a,i)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,i=t.scrollWidth,n=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(i-n)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,i=t.scrollHeight,n=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(i-n)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.addEventListener("mouseenter",this.handleTrackMouseEnter),i.addEventListener("mouseleave",this.handleTrackMouseLeave),i.addEventListener("mousedown",this.handleVerticalTrackMouseDown),n.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.removeEventListener("mouseenter",this.handleTrackMouseEnter),i.removeEventListener("mouseleave",this.handleTrackMouseLeave),i.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),n.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,i=this.props,n=i.onScroll,r=i.onScrollFrame;n&&n(e),this.update((function(e){var i=e.scrollLeft,n=e.scrollTop;t.viewScrollLeft=i,t.viewScrollTop=n,r&&r(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientX,n=t.getBoundingClientRect().left,r=this.getThumbHorizontalWidth(),o=Math.abs(n-i)-r/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientY,n=t.getBoundingClientRect().top,r=this.getThumbVerticalHeight(),o=Math.abs(n-i)-r/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientX,n=t.offsetWidth,r=t.getBoundingClientRect().left;this.prevPageX=n-(i-r)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientY,n=t.offsetHeight,r=t.getBoundingClientRect().top;this.prevPageY=n-(i-r)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=h.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,i=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var n=e.clientY,r=-this.trackVertical.getBoundingClientRect().top+n-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(r)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&l.default.cancel(this.requestFrame),this.requestFrame=(0,l.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,i=t.onUpdate,n=t.hideTracksWhenNotNeeded,r=this.getValues();if((0,d.default)()){var o=r.scrollLeft,l=r.clientWidth,u=r.scrollWidth,s=(0,f.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),h={width:c,transform:"translateX("+o/(u-l)*(s-c)+"px)"},p=r.scrollTop,g=r.clientHeight,m=r.scrollHeight,y=(0,v.default)(this.trackVertical),b=this.getThumbVerticalHeight(),T={height:b,transform:"translateY("+p/(m-g)*(y-b)+"px)"};if(n){var k={visibility:u>l?"visible":"hidden"},w={visibility:m>g?"visible":"hidden"};(0,a.default)(this.trackHorizontal,k),(0,a.default)(this.trackVertical,w)}(0,a.default)(this.thumbHorizontal,h),(0,a.default)(this.thumbVertical,T)}i&&i(r),"function"==typeof e&&e(r)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),i=this.props,r=(i.onScroll,i.onScrollFrame,i.onScrollStart,i.onScrollStop,i.onUpdate,i.renderView),o=i.renderTrackHorizontal,l=i.renderTrackVertical,a=i.renderThumbHorizontal,s=i.renderThumbVertical,h=i.tagName,f=(i.hideTracksWhenNotNeeded,i.autoHide),v=(i.autoHideTimeout,i.autoHideDuration),g=(i.thumbSize,i.thumbMinSize,i.universal),m=i.autoHeight,y=i.autoHeightMin,b=i.autoHeightMax,T=i.style,k=i.children,w=function(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(i,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,H=n({},p.containerStyleDefault,m&&n({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),T),M=n({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&n({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),m&&g&&!S&&{minHeight:y,maxHeight:b},g&&!S&&p.viewStyleUniversalInitial),D={transition:"opacity "+v+"ms",opacity:0},L=n({},p.trackHorizontalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"}),z=n({},p.trackVerticalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"});return(0,u.createElement)(h,n({},w,{style:H,ref:function(t){e.container=t}}),[(0,u.cloneElement)(r({style:M}),{key:"view",ref:function(t){e.view=t}},k),(0,u.cloneElement)(o({style:L}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(a({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(l({style:z}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=y,y.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},y.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},2211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},42648:function(e,t,i){"use strict";t.$B=void 0;var n,r=(n=i(3845))&&n.__esModule?n:{default:n};t.ZP=r.default,t.$B=r.default},37723:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,i=getComputedStyle(e),n=i.paddingTop,r=i.paddingBottom;return t-parseFloat(n)-parseFloat(r)}},11478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,i=getComputedStyle(e),n=i.paddingLeft,r=i.paddingRight;return t-parseFloat(n)-parseFloat(r)}},33961:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!1!==o)return o;if("undefined"!=typeof document){var e=document.createElement("div");(0,r.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else o=0;return o||0};var n,r=(n=i(17333))&&n.__esModule?n:{default:n},o=!1},71175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},63417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},66777:function(e,t,i){var n=i(2690);e.exports=function(e){return n(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},38278:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():i.test(e)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():n.test(e)?function(e){return e.replace(o,(function(e,t,i){return t+" "+i.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,i=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,o=/(.)([A-Z]+)/g},2690:function(e,t,i){var n=i(38278);e.exports=function(e){return n(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2802-d428814c29.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2802],{92802:function(e,t,r){r.d(t,{Bc:function(){return Lr},gN:function(){return Pr},l0:function(){return Mr},J9:function(){return Fr},k5:function(){return _r},u9:function(){return br},u6:function(){return Er}});var n=r(1024),o=r(8266),a=r.n(o),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===u}(e)}(e)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function l(e,t,r){return e.concat(t).map((function(e){return c(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||i;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=c(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=s(e[o],t[o],r):n[o]=c(t[o],r)})),n}(e,t,r):c(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var f=s,p="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,y=p||d||Function("return this")(),v=y.Symbol,h=Object.prototype,b=h.hasOwnProperty,m=h.toString,g=v?v.toStringTag:void 0,_=Object.prototype.toString,j=v?v.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=b.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var o=m.call(e);return n&&(t?e[g]=r:delete e[g]),o}(e):function(e){return _.call(e)}(e)},E=function(e,t){return function(r){return e(t(r))}},O=E(Object.getPrototypeOf,Object),A=function(e){return null!=e&&"object"==typeof e},T=Function.prototype,w=Object.prototype,F=T.toString,R=w.hasOwnProperty,C=F.call(Object),k=function(e){if(!A(e)||"[object Object]"!=S(e))return!1;var t=O(e);if(null===t)return!0;var r=R.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&F.call(r)==C},I=function(e,t){return e===t||e!=e&&t!=t},P=function(e,t){for(var r=e.length;r--;)if(I(e[r][0],t))return r;return-1},M=Array.prototype.splice;function x(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}x.prototype.clear=function(){this.__data__=[],this.size=0},x.prototype.delete=function(e){var t=this.__data__,r=P(t,e);return!(r<0||(r==t.length-1?t.pop():M.call(t,r,1),--this.size,0))},x.prototype.get=function(e){var t=this.__data__,r=P(t,e);return r<0?void 0:t[r][1]},x.prototype.has=function(e){return P(this.__data__,e)>-1},x.prototype.set=function(e,t){var r=this.__data__,n=P(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var D,U=x,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=function(e){if(!$(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},L=y["__core-js_shared__"],B=(D=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",N=Function.prototype.toString,z=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},G=/^\[object .+?Constructor\]$/,W=Function.prototype,H=Object.prototype,K=W.toString,q=H.hasOwnProperty,Y=RegExp("^"+K.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=function(e){return!(!$(e)||(t=e,B&&B in t))&&(V(e)?Y:G).test(z(e));var t},Q=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return J(r)?r:void 0},X=Q(y,"Map"),Z=Q(Object,"create"),ee=Object.prototype.hasOwnProperty,te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=re,oe=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(X||U),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function ue(e){var t=this.__data__=new U(e);this.size=t.size}ue.prototype.clear=function(){this.__data__=new U,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof U){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ce=ue,le=function(){try{var e=Q(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),se=function(e,t,r){"__proto__"==t&&le?le(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,pe=function(e,t,r){var n=e[t];fe.call(e,t)&&I(n,r)&&(void 0!==r||t in e)||se(e,t,r)},de=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?se(r,u,c):pe(r,u,c)}return r},ye=function(e){return A(e)&&"[object Arguments]"==S(e)},ve=Object.prototype,he=ve.hasOwnProperty,be=ve.propertyIsEnumerable,me=ye(function(){return arguments}())?ye:function(e){return A(e)&&he.call(e,"callee")&&!be.call(e,"callee")},ge=me,_e=Array.isArray,je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=Se&&Se.exports===je?y.Buffer:void 0,Oe=(Ee?Ee.isBuffer:void 0)||function(){return!1},Ae=/^(?:0|[1-9]\d*)$/,Te=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ae.test(e))&&e>-1&&e%1==0&&e<t},we=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Fe={};Fe["[object Float32Array]"]=Fe["[object Float64Array]"]=Fe["[object Int8Array]"]=Fe["[object Int16Array]"]=Fe["[object Int32Array]"]=Fe["[object Uint8Array]"]=Fe["[object Uint8ClampedArray]"]=Fe["[object Uint16Array]"]=Fe["[object Uint32Array]"]=!0,Fe["[object Arguments]"]=Fe["[object Array]"]=Fe["[object ArrayBuffer]"]=Fe["[object Boolean]"]=Fe["[object DataView]"]=Fe["[object Date]"]=Fe["[object Error]"]=Fe["[object Function]"]=Fe["[object Map]"]=Fe["[object Number]"]=Fe["[object Object]"]=Fe["[object RegExp]"]=Fe["[object Set]"]=Fe["[object String]"]=Fe["[object WeakMap]"]=!1;var Re=function(e){return function(t){return e(t)}},Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,ke=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=ke&&ke.exports===Ce&&p.process,Pe=function(){try{return ke&&ke.require&&ke.require("util").types||Ie&&Ie.binding&&Ie.binding("util")}catch(e){}}(),Me=Pe&&Pe.isTypedArray,xe=Me?Re(Me):function(e){return A(e)&&we(e.length)&&!!Fe[S(e)]},De=Object.prototype.hasOwnProperty,Ue=function(e,t){var r=_e(e),n=!r&&ge(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&xe(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!De.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,c))||u.push(l);return u},$e=Object.prototype,Ve=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)},Le=E(Object.keys,Object),Be=Object.prototype.hasOwnProperty,Ne=function(e){return null!=e&&we(e.length)&&!V(e)},ze=function(e){return Ne(e)?Ue(e):function(e){if(!Ve(e))return Le(e);var t=[];for(var r in Object(e))Be.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},Ge=Object.prototype.hasOwnProperty,We=function(e){if(!$(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Ve(e),r=[];for(var n in e)("constructor"!=n||!t&&Ge.call(e,n))&&r.push(n);return r},He=function(e){return Ne(e)?Ue(e,!0):We(e)},Ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=qe&&qe.exports===Ke?y.Buffer:void 0,Je=Ye?Ye.allocUnsafe:void 0,Qe=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Xe=function(){return[]},Ze=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols,tt=et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(et(e),(function(t){return Ze.call(e,t)})))}:Xe,rt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},nt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,tt(e)),e=O(e);return t}:Xe,ot=function(e,t,r){var n=t(e);return _e(e)?n:rt(n,r(e))},at=function(e){return ot(e,ze,tt)},it=function(e){return ot(e,He,nt)},ut=Q(y,"DataView"),ct=Q(y,"Promise"),lt=Q(y,"Set"),st=Q(y,"WeakMap"),ft="[object Map]",pt="[object Promise]",dt="[object Set]",yt="[object WeakMap]",vt="[object DataView]",ht=z(ut),bt=z(X),mt=z(ct),gt=z(lt),_t=z(st),jt=S;(ut&&jt(new ut(new ArrayBuffer(1)))!=vt||X&&jt(new X)!=ft||ct&&jt(ct.resolve())!=pt||lt&&jt(new lt)!=dt||st&&jt(new st)!=yt)&&(jt=function(e){var t=S(e),r="[object Object]"==t?e.constructor:void 0,n=r?z(r):"";if(n)switch(n){case ht:return vt;case bt:return ft;case mt:return pt;case gt:return dt;case _t:return yt}return t});var St=jt,Et=Object.prototype.hasOwnProperty,Ot=y.Uint8Array,At=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},Tt=/\w*$/,wt=v?v.prototype:void 0,Ft=wt?wt.valueOf:void 0,Rt=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return At(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?At(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?At(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,Tt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,Ft?Object(Ft.call(n)):{}}},Ct=Object.create,kt=function(){function e(){}return function(t){if(!$(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),It=Pe&&Pe.isMap,Pt=It?Re(It):function(e){return A(e)&&"[object Map]"==St(e)},Mt=Pe&&Pe.isSet,xt=Mt?Re(Mt):function(e){return A(e)&&"[object Set]"==St(e)},Dt="[object Arguments]",Ut="[object Function]",$t="[object Object]",Vt={};Vt[Dt]=Vt["[object Array]"]=Vt["[object ArrayBuffer]"]=Vt["[object DataView]"]=Vt["[object Boolean]"]=Vt["[object Date]"]=Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Map]"]=Vt["[object Number]"]=Vt[$t]=Vt["[object RegExp]"]=Vt["[object Set]"]=Vt["[object String]"]=Vt["[object Symbol]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt["[object Error]"]=Vt[Ut]=Vt["[object WeakMap]"]=!1;var Lt=function e(t,r,n,o,a,i){var u,c=1&r,l=2&r,s=4&r;if(n&&(u=a?n(t,o,a,i):n(t)),void 0!==u)return u;if(!$(t))return t;var f=_e(t);if(f){if(u=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Et.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Qe(t,u)}else{var p=St(t),d=p==Ut||"[object GeneratorFunction]"==p;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Je?Je(r):new e.constructor(r);return e.copy(n),n}(t,c);if(p==$t||p==Dt||d&&!a){if(u=l||d?{}:function(e){return"function"!=typeof e.constructor||Ve(e)?{}:kt(O(e))}(t),!c)return l?function(e,t){return de(e,nt(e),t)}(t,function(e,t){return e&&de(t,He(t),e)}(u,t)):function(e,t){return de(e,tt(e),t)}(t,function(e,t){return e&&de(t,ze(t),e)}(u,t))}else{if(!Vt[p])return a?t:{};u=Rt(t,p,c)}}i||(i=new ce);var y=i.get(t);if(y)return y;i.set(t,u),xt(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,i))})):Pt(t)&&t.forEach((function(o,a){u.set(a,e(o,r,n,a,t,i))}));var v=f?void 0:(s?l?it:at:l?He:ze)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(v||t,(function(o,a){v&&(o=t[a=o]),pe(u,a,e(o,r,n,a,t,i))})),u},Bt=function(e){return Lt(e,4)},Nt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},zt=function(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==S(e)};function Gt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Gt.Cache||ie),r}Gt.Cache=ie;var Wt,Ht,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Yt=(Wt=Gt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Kt,(function(e,r,n,o){t.push(n?o.replace(qt,"$1"):r||e)})),t}),(function(e){return 500===Ht.size&&Ht.clear(),e})),Ht=Wt.cache,Wt),Jt=function(e){if("string"==typeof e||zt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Qt=v?v.prototype:void 0,Xt=Qt?Qt.toString:void 0,Zt=function e(t){if("string"==typeof t)return t;if(_e(t))return Nt(t,e)+"";if(zt(t))return Xt?Xt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},er=function(e){return null==e?"":Zt(e)},tr=function(e){return _e(e)?Nt(e,Jt):zt(e)?[e]:Qe(Yt(er(e)))},rr=function(e,t){},nr=r(86058),or=r.n(nr),ar=function(e){return Lt(e,5)};function ir(){return ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function cr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var sr=function(e){return Array.isArray(e)&&0===e.length},fr=function(e){return"function"==typeof e},pr=function(e){return null!==e&&"object"==typeof e},dr=function(e){return String(Math.floor(Number(e)))===e},yr=function(e){return"[object String]"===Object.prototype.toString.call(e)},vr=function(e){return 0===n.Children.count(e)},hr=function(e){return pr(e)&&fr(e.then)};function br(e,t,r,n){void 0===n&&(n=0);for(var o=tr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function mr(e,t,r){for(var n=Bt(e),o=n,a=0,i=tr(t);a<i.length-1;a++){var u=i[a],c=br(e,i.slice(0,a+1));if(c&&(pr(c)||Array.isArray(c)))o=o[u]=Bt(c);else{var l=i[a+1];o=o[u]=dr(l)&&Number(l)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function gr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],u=e[i];pr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},gr(u,t,r,n[i])):n[i]=t}return n}var _r=(0,n.createContext)(void 0);_r.displayName="FormikContext";var jr=_r.Provider,Sr=_r.Consumer;function Er(){var e=(0,n.useContext)(_r);return e||rr(!1),e}function Or(e,t){switch(t.type){case"SET_VALUES":return ir({},e,{values:t.payload});case"SET_TOUCHED":return ir({},e,{touched:t.payload});case"SET_ERRORS":return a()(e.errors,t.payload)?e:ir({},e,{errors:t.payload});case"SET_STATUS":return ir({},e,{status:t.payload});case"SET_ISSUBMITTING":return ir({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ir({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ir({},e,{values:mr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ir({},e,{touched:mr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ir({},e,{errors:mr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ir({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ir({},e,{touched:gr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ir({},e,{isSubmitting:!1});default:return e}}var Ar={},Tr={};function wr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,u=e.validateOnMount,c=void 0!==u&&u,l=e.isInitialValid,s=e.enableReinitialize,p=void 0!==s&&s,d=e.onSubmit,y=cr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:c,onSubmit:d},y),h=(0,n.useRef)(v.initialValues),b=(0,n.useRef)(v.initialErrors||Ar),m=(0,n.useRef)(v.initialTouched||Tr),g=(0,n.useRef)(v.initialStatus),_=(0,n.useRef)(!1),j=(0,n.useRef)({});(0,n.useEffect)((function(){return _.current=!0,function(){_.current=!1}}),[]);var S=(0,n.useReducer)(Or,{values:v.initialValues,errors:v.initialErrors||Ar,touched:v.initialTouched||Tr,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],O=S[1],A=(0,n.useCallback)((function(e,t){return new Promise((function(r,n){var o=v.validate(e,t);null==o?r(Ar):hr(o)?o.then((function(e){r(e||Ar)}),(function(e){n(e)})):r(o)}))}),[v.validate]),T=(0,n.useCallback)((function(e,t){var r=v.validationSchema,n=fr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Rr(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(Ar)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return mr(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;br(t,i.path)||(t=mr(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[v.validationSchema]),w=(0,n.useCallback)((function(e,t){return new Promise((function(r){return r(j.current[e].validate(t))}))}),[]),F=(0,n.useCallback)((function(e){var t=Object.keys(j.current).filter((function(e){return fr(j.current[e].validate)})),r=t.length>0?t.map((function(t){return w(t,br(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=mr(e,t[n],r)),e}),{})}))}),[w]),R=(0,n.useCallback)((function(e){return Promise.all([F(e),v.validationSchema?T(e):{},v.validate?A(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Cr})}))}),[v.validate,v.validationSchema,F,A,T]),C=Ir((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return _.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){c&&!0===_.current&&a()(h.current,v.initialValues)&&C(h.current)}),[c,C]);var k=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:b.current?b.current:v.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:v.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:v.initialStatus;h.current=t,b.current=r,m.current=n,g.current=o;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var i=v.onReset(E.values,J);hr(i)?i.then(a):a()}else a()}),[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)((function(){!0!==_.current||a()(h.current,v.initialValues)||(p&&(h.current=v.initialValues,k()),c&&C(h.current))}),[p,v.initialValues,k,c,C]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(b.current,v.initialErrors)&&(b.current=v.initialErrors||Ar,O({type:"SET_ERRORS",payload:v.initialErrors||Ar}))}),[p,v.initialErrors]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(m.current,v.initialTouched)&&(m.current=v.initialTouched||Tr,O({type:"SET_TOUCHED",payload:v.initialTouched||Tr}))}),[p,v.initialTouched]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(g.current,v.initialStatus)&&(g.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))}),[p,v.initialStatus,v.initialTouched]);var I=Ir((function(e){if(j.current[e]&&fr(j.current[e].validate)){var t=br(E.values,e),r=j.current[e].validate(t);return hr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),T(E.values,e).then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),P=(0,n.useCallback)((function(e,t){var r=t.validate;j.current[e]={validate:r}}),[]),M=(0,n.useCallback)((function(e){delete j.current[e]}),[]),x=Ir((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?C(E.values):Promise.resolve()})),D=(0,n.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),U=Ir((function(e,t){var n=fr(e)?e(E.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?C(n):Promise.resolve()})),$=(0,n.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),V=Ir((function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?C(mr(E.values,e,t)):Promise.resolve()})),L=(0,n.useCallback)((function(e,t){var r,n=t,o=e;if(!yr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,u=a.name,c=a.id,l=a.value,s=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||u||c,o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,o=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}(br(E.values,n),s,l):f&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}n&&V(n,o)}),[V,E.values]),B=Ir((function(e){if(yr(e))return function(t){return L(t,e)};L(e)})),N=Ir((function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?C(E.values):Promise.resolve()})),z=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);N(a,!0)}),[N]),G=Ir((function(e){if(yr(e))return function(t){return z(t,e)};z(e)})),W=(0,n.useCallback)((function(e){fr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,n.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),K=(0,n.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),q=Ir((function(){return O({type:"SUBMIT_ATTEMPT"}),C().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Q()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return _.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(_.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(_.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),Y=Ir((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),q().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),J={resetForm:k,validateForm:C,validateField:I,setErrors:D,setFieldError:$,setFieldTouched:N,setFieldValue:V,setStatus:H,setSubmitting:K,setTouched:x,setValues:U,setFormikState:W,submitForm:q},Q=Ir((function(){return d(E.values,J)})),X=Ir((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),k()})),Z=(0,n.useCallback)((function(e){return{value:br(E.values,e),error:br(E.errors,e),touched:!!br(E.touched,e),initialValue:br(h.current,e),initialTouched:!!br(m.current,e),initialError:br(b.current,e)}}),[E.errors,E.touched,E.values]),ee=(0,n.useCallback)((function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return N(e,t,r)},setError:function(t){return $(e,t)}}}),[V,N,$]),te=(0,n.useCallback)((function(e){var t=pr(e),r=t?e.name:e,n=br(E.values,r),o={name:r,value:n,onChange:B,onBlur:G};if(t){var a=e.type,i=e.value,u=e.as,c=e.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===u&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[G,B,E.values]),re=(0,n.useMemo)((function(){return!a()(h.current,E.values)}),[h.current,E.values]),ne=(0,n.useMemo)((function(){return void 0!==l?re?E.errors&&0===Object.keys(E.errors).length:!1!==l&&fr(l)?l(v):l:E.errors&&0===Object.keys(E.errors).length}),[l,re,E.errors,v]);return ir({},E,{initialValues:h.current,initialErrors:b.current,initialTouched:m.current,initialStatus:g.current,handleBlur:G,handleChange:B,handleReset:X,handleSubmit:Y,resetForm:k,setErrors:D,setFormikState:W,setFieldTouched:N,setFieldValue:V,setFieldError:$,setStatus:H,setSubmitting:K,setTouched:x,setValues:U,submitForm:q,validateForm:C,validateField:I,isValid:ne,dirty:re,unregisterField:M,registerField:P,getFieldProps:te,getFieldMeta:Z,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:c})}function Fr(e){var t=wr(e),r=e.component,o=e.children,a=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(jr,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?fr(o)?o(t):vr(o)?null:n.Children.only(o):null)}function Rr(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||k(e)?Rr(e):""!==e?e:void 0})):k(e[n])?t[n]=Rr(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Cr(e,t,r){var n=e.slice();return t.forEach((function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?f(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=f(e[o],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var kr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Ir(e){var t=(0,n.useRef)(e);return kr((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)}),[])}function Pr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,u=e.component,c=cr(e,["validate","name","render","children","as","component"]),l=cr(Er(),["validate","validationSchema"]),s=l.registerField,f=l.unregisterField;(0,n.useEffect)((function(){return s(r,{validate:t}),function(){f(r)}}),[s,f,r,t]);var p=l.getFieldProps(ir({name:r},c)),d=l.getFieldMeta(r),y={field:p,form:l};if(o)return o(ir({},y,{meta:d}));if(fr(a))return a(ir({},y,{meta:d}));if(u){if("string"==typeof u){var v=c.innerRef,h=cr(c,["innerRef"]);return(0,n.createElement)(u,ir({ref:v},p,h),a)}return(0,n.createElement)(u,ir({field:p,form:l},c),a)}var b=i||"input";if("string"==typeof b){var m=c.innerRef,g=cr(c,["innerRef"]);return(0,n.createElement)(b,ir({ref:m},p,g),a)}return(0,n.createElement)(b,ir({},p,c),a)}var Mr=(0,n.forwardRef)((function(e,t){var r=e.action,o=cr(e,["action"]),a=null!=r?r:"#",i=Er(),u=i.handleReset,c=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:u,action:a},o))}));function xr(e){var t=function(t){return(0,n.createElement)(Sr,null,(function(r){return r||rr(!1),(0,n.createElement)(e,Object.assign({},t,{formik:r}))}))},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",or()(t,e)}Mr.displayName="Form";var Dr=function(e,t,r){var n=Ur(e);return n.splice(t,0,r),n},Ur=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(ir({},e,{length:t+1}))}return[]},$r=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,a=o.name;(0,o.formik.setFormikState)((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e,u=mr(r.values,a,e(br(r.values,a))),c=n?o(br(r.errors,a)):void 0,l=t?i(br(r.touched,a)):void 0;return sr(c)&&(c=void 0),sr(l)&&(l=void 0),ir({},r,{values:u,errors:n?mr(r.errors,a,c):r.errors,touched:t?mr(r.touched,a,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Ur(t),[ar(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Ur(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Ur(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return Dr(r,e,t)}),(function(t){return Dr(t,e,null)}),(function(t){return Dr(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Ur(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(lr(r)),r.pop=r.pop.bind(lr(r)),r}ur(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(br(e.formik.values,e.name),br(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Ur(r):[];return t||(t=n[e]),fr(n.splice)&&n.splice(e,1),n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,o=t.render,a=t.children,i=t.name,u=ir({},e,{form:cr(t.formik,["validate","validationSchema"]),name:i});return r?(0,n.createElement)(r,u):o?o(u):a?"function"==typeof a?a(u):vr(a)?null:n.Children.only(a):null},t}(n.Component);$r.defaultProps={validateOnChange:!0};var Vr=function(e){function t(){return e.apply(this,arguments)||this}ur(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return br(this.props.formik.errors,this.props.name)!==br(e.formik.errors,this.props.name)||br(this.props.formik.touched,this.props.name)!==br(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,o=e.render,a=e.children,i=e.name,u=cr(e,["component","formik","render","children","name"]),c=br(r.touched,i),l=br(r.errors,i);return c&&l?o?fr(o)?o(l):null:a?fr(a)?a(l):null:t?(0,n.createElement)(t,u,l):l:null},t}(n.Component),Lr=xr(Vr);n.Component},86058:function(e,t,r){var n=r(72594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return n.isMemo(e)?i:u[e.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=d(r);o&&o!==y&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=c(t),v=c(r),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||n&&n[b]||v&&v[b]||u&&u[b])){var m=p(r,b);try{l(t,b,m)}catch(e){}}}}return t}},8266:function(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,s=t(e),f=t(i);if(s&&f){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(s!=f)return!1;var p=e instanceof Date,d=i instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==i.getTime();var y=e instanceof RegExp,v=i instanceof RegExp;if(y!=v)return!1;if(y&&v)return e.toString()==i.toString();var h=r(e);if((c=h.length)!==r(i).length)return!1;for(u=c;0!=u--;)if(!n.call(i,h[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=h[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},26697:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case a:case u:case i:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case h:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return j(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||j(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===h},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===m||e.$$typeof===g||e.$$typeof===_||e.$$typeof===b)},t.typeOf=j},72594:function(e,t,r){e.exports=r(26697)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(48088),r=n(39479),i=n(31647),s=n(63791),l=n(57098),a=n(93421),u="C8gyn";function c(t){return c="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},c(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var b=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=d(e),function(t,e){if(e&&("object"==c(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,h()?Reflect.construct(e,n||[],d(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&&y(t,e)}(e,t),n=e,(i=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u)}},{key:"stop",value:function(){o.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return d}});var o=n(48088),r=n(39479),i=n(31647),s=n(50997),l=n(10454);function a(t){return a="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},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,c(o.key),o)}}function c(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var d=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=f(e),function(t,e){if(e&&("object"==a(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,p()?Reflect.construct(e,n||[],f(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&&h(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:stop",this.stop),this.listenTo(s.jr.FOLDER_DRAG_DROP,"drag:stop",this.stop)}},{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e||(this.disabledElement=this.getDroppableElement(),this.disabledElement.addClass(l.Z.disabled)),e}},{key:"stop",value:function(){var t;null===(t=this.disabledElement)||void 0===t||t.removeClass(l.Z.disabled)}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",l.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":l.Z.droppable,"ui-droppable-active":l.Z.active,"ui-droppable-hover":l.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&u(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return h},ND:function(){return f},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};function s(t){return s="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},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=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=c(e),function(t,e){if(e&&("object"==s(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,u()?Reflect.construct(e,n||[],c(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&&p(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(i.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i},this.options)}}])&&l(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(n(31647).Q.wA),h={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return x}});var o=n(39479),r=n(31647),i=n(48088),s=n(70065),l=n(63791),a=n(57098),u=n(93569),c=n(91439),p=n(6929),f=n(42978),h=n.n(f);function d(t){return d="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},d(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var w=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=m(e),function(t,e){if(e&&("object"==d(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,v()?Reflect.construct(e,n||[],m(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&&g(t,e)}(e,t),n=e,(f=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:p.x,ui:"anchor",channelNames:[a.jr.VIDEO_DRAG_DROP,a.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:s.LZ.LeftNav}},{behaviorClass:c.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return u.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return u.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body fw-bold":this.isDisabled()?t+=" text-secondary":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-secondary"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body fw-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.C$.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new x(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:l.Nj.getSvg(l.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle me-1 ".concat(this.options.styles.actions),buttonClass:"text-secondary",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(n.prototype,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,f}(r.Q.wA),O=n(95308);function k(t){return k="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},k(t)}function C(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,P(o.key),o)}}function P(t){var e=function(t){if("object"!=k(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:e+""}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}var x=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),t.styles=o.extend({},O.Z,t.styles),function(t,e,n){return e=S(e),function(t,e){if(e&&("object"==k(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,j()?Reflect.construct(e,n||[],S(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&&_(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return w}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.model.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&C(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.$W)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' me-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\n </span>\n"},3:function(t,e,n,o,r){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|