@clickview/library-editor 1.57.0-rc.0 → 1.58.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +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-284cbfa43b.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-5438371664.min.js +2 -0
- package/dist/scripts/bundle-5438371664.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-159b9475aa.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-e858f2e474.min.js +0 -2
- package/dist/scripts/bundle-e858f2e474.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-159b9475aa.chunk.js.LICENSE.txt → 4796-284cbfa43b.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3643],{89375:function(e,r,t){t.d(r,{j:function(){return i}});var a=t(31647),n=" - ClickView",i={setPageTitle:function(e){e&&a.Q.Ab.SetPageTitle(function(e){return e.length+12<=60?e+n:e.substring(0,57)+"..."+n}(e))}}},86242:function(e,r,t){t.d(r,{Oo:function(){return f},b2:function(){return v}});var a=t(32735),n=t(57857),i=t(77105),c=t(90547),l=t(5256),o=t(89146),u=t(85475),s=t(39396);function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i,c,l=[],o=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;o=!1}else for(;!(o=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);o=!0);}catch(e){u=!0,n=e}finally{try{if(!o&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw n}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return b(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var d=n.T.encloseNamespace("shared.breadcrumbComponent"),y=a.forwardRef((function(e,r){var t=e.breadcrumb,n=t.name,c=t.appLink,l=t.active,o=e.withBackIcon,m=n,b=null;return m.length>48&&(m=n.slice(0,48)+"...",b=n),a.createElement("li",{className:"breadcrumb-item".concat(l?" active":""),title:b},l?a.createElement("strong",null,m):a.createElement(i.F,{appLink:c,ref:r},o&&a.createElement(s.x,{svgName:u.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:o?"ms-2":""},m)))})),f=function(e){var r=e.breadcrumbs,t=(0,l.a)(c.r.XS),n=(null==r?void 0:r.length)||0,i=m(a.useState(!1),2),o=i[0],u=i[1],s=m(a.useState(!1),2),b=s[0],f=s[1],v=a.useRef(null);if(a.useEffect((function(){var e,t=null!==(e=null==r?void 0:r.reduce((function(e,r){return e+r.name.length}),0))&&void 0!==e?e:0;n>4&&t>64&&u(!0)}),[null==r?void 0:r.length]),a.useLayoutEffect((function(){var e;b&&(null===(e=v.current)||void 0===e||e.focus())}),[v.current,b]),!n||t&&n<2)return a.createElement(a.Fragment,null);if(t)return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(y,{breadcrumb:r[n-2],withBackIcon:!0})));var g=a.createElement(y,{breadcrumb:r[0]}),p=n>2?a.createElement(y,{breadcrumb:r[1]}):a.createElement(a.Fragment,null),h=n>3?a.createElement(y,{breadcrumb:r[n-2]}):a.createElement(a.Fragment,null),E=n>1?a.createElement(y,{breadcrumb:r[n-1]}):a.createElement(a.Fragment,null),w=r.slice(2,n-2);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},g,p,o?a.createElement("li",{className:"breadcrumb-item"},a.createElement("button",{className:"btn-link",onClick:function(){u(!1),f(!0)},"aria-label":d("expand")},"...")):w.map((function(e,r){return a.createElement(y,{key:r,breadcrumb:e,ref:0===r?v:null})})),h,E))},v=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return(0,l.a)(c.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},23454:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(32735),n=t(39396),i={circle:"Uxnsl",img:"BQ87Y"};function c(e){var r;return e.imageUrl||e.svgName?e.imageUrl?a.createElement("div",{className:"".concat(i.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):a.createElement("div",{className:"".concat(i.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(r=e.svgWrapperClassName)&&void 0!==r?r:"")},a.createElement(n.x,{svgName:e.svgName,size:e.svgSize})):a.createElement(a.Fragment,null)}c.defaultProps={textVariant:"white"}},90547:function(e,r,t){var a;t.d(r,{r:function(){return a}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(a||(a={}))},34107:function(e,r,t){t.d(r,{D:function(){return l}});var a=t(2248),n=t(68003),i=t(40221),c=t(84657),l={domainLibraries:function(e,r,t,a){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:a}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,a){return e.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:a}},library:function(e,r,t,a){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:a}},exchange:function(e){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,n,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:a.k.PUT,data:{customerId:r,granted:t},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:n,error:i}},removeSubscriber:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:a.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:n}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:a}},videoFolders:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/categories?query=libraries"),key:"video:folders:".concat(e)}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:a.k.POST,data:e,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}}}},89146:function(e,r,t){function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{u:function(){return i}});var n={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},n),r);return(e=Array(t.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth),"px")}}))}}},52814:function(e,r,t){t.d(r,{y:function(){return n}});var a=t(32735);function n(){return a.createElement("div",{className:"partial-loading-background w-100 rounded-3",style:{height:"3.5rem"}}," ")}},43643:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsLibrariesView:function(){return w}});var a=t(32735),n=t(57857),i=t(31647),c=t(86120),l=t(40221),o=t(89375),u=t(86242),s=t(66703),m=t(34107),b=t(50997),d=t(52814),y=t(77105),f=t(23454),v=t(85475),g={libraryIcon:"hQt1a"};function p(e){var r,t;return a.createElement(y.F,{className:"p-2 border rounded-3 d-flex align-items-center mb-2 text-decoration-none",appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.library.id]}},a.createElement("div",{className:"".concat(g.libraryIcon," me-2")},a.createElement(f.f,{svgName:v.vn.Library,imageUrl:null===(t=null===(r=e.library.owner)||void 0===r?void 0:r.logo)||void 0===t?void 0:t.url,variant:"ultramarine"})),a.createElement("h3",{className:"h6 mb-0"},e.library.name))}var h="libraryEditor.libraryRequestSettingsLibraries",E=n.T.encloseNamespace(h);function w(){var e=c.a.useBasicFetch(m.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"]));a.useEffect((function(){return o.j.setPageTitle(E("libraryRequestSettings"))}),[]),a.useEffect((function(){e.data&&(e.data.length>1||i.Q.C$.trigger({application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[l.m.first(e.data).id]},{replace:!0}))}),[e.data]);var r=[{name:E("libraryEditor"),appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:E("libraryRequestSettings"),appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:!0}];return a.createElement("div",{className:"bg-white p-3"},a.createElement("h1",{className:"h3 mb-2"},a.createElement(s.x,{namespace:h,phrase:"libraryRequestSettings"})),a.createElement(u.Oo,{breadcrumbs:r}),a.createElement("hr",null),a.createElement("h2",{className:"h5 mb-2"},a.createElement(s.x,{namespace:h,phrase:"myLibraries"})),e.data?a.createElement(a.Fragment,null,e.data.map((function(e){return a.createElement(p,{key:e.id,library:e})}))):a.createElement(a.Fragment,null,a.createElement("div",{className:"mb-2"},a.createElement(d.y,null)),a.createElement("div",{className:"mb-2"},a.createElement(d.y,null))))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return E}});var r=n(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return E}});var r=n(43823),o=n(21161),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(45390),d=n(29457),y=n(18375),g=n(93569),m=n(66266),b=n.n(m);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 w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var E=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=O(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],O(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&&I(e,t)}(t,e),n=t,(m=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(h.Or.Library,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b()}},{key:"channelName",get:function(){return g.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.Ry.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new y.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Banners,minWidth:h.yE[d.__.Banners].width,minHeight:h.yE[d.__.Banners].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:g.Kp.getSpinner({size:g.Ey.Large,extraClasses:"mx-auto"})}}}])&&w(n.prototype,m),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,m}(l.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return g}});var r,o=n(43823),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));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=d(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA)},66266:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3873],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return d}});var o=n(43823),r=n(57857),i=n(31647),a=n(52076),u=n(70065),l=n(93569),c=n(91553),s=n.n(c);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(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,y(o.key),o)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(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=m(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(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&&v(t,e)}(e,t),n=e,(i=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(u.eu.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(u.eu.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:r.T.getPhrase(this.lang,"dialogTitle"),text:r.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:r.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:u.LZ.AwaitingReviewVideoListHeader,actionType:u.Vw.Approve,descriptor:u.yh.All,entity:u.py.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},97463:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(57857),r=n(31647),i=n(50997),a=n(57085),u=n(65078),l=n(39090),c=n(5181),s=n.n(c),p={tabsContainer:"PDRLS"};function f(t){return f="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},f(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"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=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=v(e),function(t,e){if(e&&("object"==f(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,m()?Reflect.construct(e,n||[],v(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&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"border-bottom px-3 d-flex flex-column"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new a.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:o.T.getPhrase(this.lang,"libraryEditor"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.HOME},active:!1},{name:o.T.getPhrase(this.lang,"contentUpdates"),active:!0}]}))}},{key:"renderTabs",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new u.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}},{key:"viewOptions",value:function(){return{styles:p}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderTabs()}}],r&&y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},69072:function(t,e,n){"use strict";n.d(e,{m:function(){return h}});var o=n(31647),r=n(52076),i=n(70065),a=n(25692),u=n(98985),l=n(45390),c=n(264),s=n(67732),p=n.n(s);function f(t){return f="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},f(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"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=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=v(e),function(t,e){if(e&&("object"==f(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,m()?Reflect.construct(e,n||[],v(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&&d(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:i.LZ.LeftNav,actionType:i.Vw.Disable,entity:i.py.CustomerSetting,descriptor:i.YK.LibraryReview,workflowPhase:i.eu.Start};r.k.logUserAction({},t)}},{key:"viewOptions",value:function(){return{supportUrl:!c.g.hasLite&&u.o.getOnlineArticle(a.s.LibraryReview)}}}])&&y(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return E}});var o=n(57857),r=n(31647),i=n(80758),a=n(58688),u=n(80867),l=n(45390),c=n(29457),s=n(14727),p=n.n(s),f=n(89364),y=n.n(f);function b(t){return b="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},b(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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,h(o.key),o)}}function d(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function g(t,e,n){return e=O(e),function(t,e){if(e&&("object"==b(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,w()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function k(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&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var P=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:l.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0,libraries:this.options.libraries}))}}])}(r.Q.wA),C=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return P}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),E=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:c.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:l.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===c.ub.AwaitingReview?{heading:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===c.ub.PastReleases?{heading:o.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new C(this.options))}}])}(r.Q.wA)},82936:function(t,e,n){"use strict";n.d(e,{wc:function(){return y},ND:function(){return f},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};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,l(o.key),o)}}function l(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 c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function 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=s(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,c()?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&&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)}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(n(31647).Q.wA),y={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},91553:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<div class="pt-3 pb-2">\n <h1 class="h3 m-0">\n '+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'\n </h1>\n</div>\n\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region d-inline-flex align-items-end '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return' <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+l(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+l((n.lang||e&&e.lang||u).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return'<div class="p-3 border-bottom">\n <h5>'+l((n.lang||e&&e.lang||u).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\n <p>"+l((n.lang||e&&e.lang||u).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+l((n.lang||e&&e.lang||u).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\n</div>\n<div class="p-3 border-bottom">\n <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="ps-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},62699:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,u=t.escapeExpression;return'<span class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' me-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+u(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},65351:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4027],{16616:function(e,t,r){r.d(t,{FT:function(){return i}});var n=r(32735),o=r(74512);const a=["as","disabled"];function i({tagName:e,disabled:t,href:r,target:n,rel:o,role:a,onClick:i,tabIndex:s=0,type:u}){e||(e=null!=r||null!=n||null!=o?"a":"button");const c={tagName:e};if("button"===e)return[{type:u||"button",disabled:t},c];const l=n=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(r))&&n.preventDefault(),t?n.stopPropagation():null==i||i(n)};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:l,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),l(e))}},c]}const s=n.forwardRef(((e,t)=>{let{as:r,disabled:n}=e,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,a);const[u,{tagName:c}]=i(Object.assign({tagName:r,disabled:n},s));return(0,o.jsx)(c,Object.assign({},s,u,{ref:t}))}));s.displayName="Button",t.ZP=s},27445:function(e,t,r){r.d(t,{PB:function(){return o}});const n="data-rr-ui-";function o(e){return`${n}${e}`}},16608:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(32735);function o(e){const t=(0,n.useRef)(null);return(0,n.useEffect)((()=>{t.current=e})),t.current}},30720:function(e,t,r){r.d(t,{Z:function(){return o}});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return n(e.querySelectorAll(t))}},92802:function(e,t,r){r.d(t,{Bc:function(){return Br},gN:function(){return Cr},l0:function(){return Ir},J9:function(){return Ar},k5:function(){return jr},u9:function(){return mr},u6:function(){return Sr}});var n=r(32735),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===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function c(e,t,r){return e.concat(t).map((function(e){return u(e,r)}))}function l(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||c,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]=u(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=l(e[o],t[o],r):n[o]=u(t[o],r)})),n}(e,t,r):u(t,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var f=l,d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,v=d||p||Function("return this")(),h=v.Symbol,y=Object.prototype,m=y.hasOwnProperty,b=y.toString,g=h?h.toStringTag:void 0,j=Object.prototype.toString,E=h?h.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=m.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[g]=r:delete e[g]),o}(e):function(e){return j.call(e)}(e)},S=function(e,t){return function(r){return e(t(r))}},O=S(Object.getPrototypeOf,Object),w=function(e){return null!=e&&"object"==typeof e},x=Function.prototype,T=Object.prototype,A=x.toString,R=T.hasOwnProperty,N=A.call(Object),k=function(e){if(!w(e)||"[object Object]"!=_(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&&A.call(r)==N},F=function(e,t){return e===t||e!=e&&t!=t},C=function(e,t){for(var r=e.length;r--;)if(F(e[r][0],t))return r;return-1},I=Array.prototype.splice;function P(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])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,r=C(t,e);return!(r<0||(r==t.length-1?t.pop():I.call(t,r,1),--this.size,0))},P.prototype.get=function(e){var t=this.__data__,r=C(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return C(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=C(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var M,D=P,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){if(!$(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},B=v["__core-js_shared__"],U=(M=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",Z=Function.prototype.toString,V=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},z=/^\[object .+?Constructor\]$/,W=Function.prototype,H=Object.prototype,G=W.toString,K=H.hasOwnProperty,q=RegExp("^"+G.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=function(e){return!(!$(e)||(t=e,U&&U in t))&&(L(e)?q:z).test(V(e));var t},J=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(r)?r:void 0},Q=J(v,"Map"),X=J(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__=X?X(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(X){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 X?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]=X&&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(Q||D),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function se(e){var t=this.__data__=new D(e);this.size=t.size}se.prototype.clear=function(){this.__data__=new D,this.size=0},se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof D){var n=r.__data__;if(!Q||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 ue=se,ce=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=function(e,t,r){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,de=function(e,t,r){var n=e[t];fe.call(e,t)&&F(n,r)&&(void 0!==r||t in e)||le(e,t,r)},pe=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?le(r,s,u):de(r,s,u)}return r},ve=function(e){return w(e)&&"[object Arguments]"==_(e)},he=Object.prototype,ye=he.hasOwnProperty,me=he.propertyIsEnumerable,be=ve(function(){return arguments}())?ve:function(e){return w(e)&&ye.call(e,"callee")&&!me.call(e,"callee")},ge=be,je=Array.isArray,Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,_e=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Se=_e&&_e.exports===Ee?v.Buffer:void 0,Oe=(Se?Se.isBuffer:void 0)||function(){return!1},we=/^(?:0|[1-9]\d*)$/,xe=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&we.test(e))&&e>-1&&e%1==0&&e<t},Te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ae={};Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae["[object Arguments]"]=Ae["[object Array]"]=Ae["[object ArrayBuffer]"]=Ae["[object Boolean]"]=Ae["[object DataView]"]=Ae["[object Date]"]=Ae["[object Error]"]=Ae["[object Function]"]=Ae["[object Map]"]=Ae["[object Number]"]=Ae["[object Object]"]=Ae["[object RegExp]"]=Ae["[object Set]"]=Ae["[object String]"]=Ae["[object WeakMap]"]=!1;var Re=function(e){return function(t){return e(t)}},Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,ke=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,Fe=ke&&ke.exports===Ne&&d.process,Ce=function(){try{return ke&&ke.require&&ke.require("util").types||Fe&&Fe.binding&&Fe.binding("util")}catch(e){}}(),Ie=Ce&&Ce.isTypedArray,Pe=Ie?Re(Ie):function(e){return w(e)&&Te(e.length)&&!!Ae[_(e)]},Me=Object.prototype.hasOwnProperty,De=function(e,t){var r=je(e),n=!r&&ge(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&Pe(e),i=r||n||o||a,s=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!Me.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,u))||s.push(c);return s},$e=Object.prototype,Le=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)},Be=S(Object.keys,Object),Ue=Object.prototype.hasOwnProperty,Ze=function(e){return null!=e&&Te(e.length)&&!L(e)},Ve=function(e){return Ze(e)?De(e):function(e){if(!Le(e))return Be(e);var t=[];for(var r in Object(e))Ue.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},ze=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=Le(e),r=[];for(var n in e)("constructor"!=n||!t&&ze.call(e,n))&&r.push(n);return r},He=function(e){return Ze(e)?De(e,!0):We(e)},Ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,qe=Ke&&Ke.exports===Ge?v.Buffer:void 0,Ye=qe?qe.allocUnsafe:void 0,Je=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Qe=function(){return[]},Xe=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 Xe.call(e,t)})))}:Qe,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}:Qe,ot=function(e,t,r){var n=t(e);return je(e)?n:rt(n,r(e))},at=function(e){return ot(e,Ve,tt)},it=function(e){return ot(e,He,nt)},st=J(v,"DataView"),ut=J(v,"Promise"),ct=J(v,"Set"),lt=J(v,"WeakMap"),ft="[object Map]",dt="[object Promise]",pt="[object Set]",vt="[object WeakMap]",ht="[object DataView]",yt=V(st),mt=V(Q),bt=V(ut),gt=V(ct),jt=V(lt),Et=_;(st&&Et(new st(new ArrayBuffer(1)))!=ht||Q&&Et(new Q)!=ft||ut&&Et(ut.resolve())!=dt||ct&&Et(new ct)!=pt||lt&&Et(new lt)!=vt)&&(Et=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?V(r):"";if(n)switch(n){case yt:return ht;case mt:return ft;case bt:return dt;case gt:return pt;case jt:return vt}return t});var _t=Et,St=Object.prototype.hasOwnProperty,Ot=v.Uint8Array,wt=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},xt=/\w*$/,Tt=h?h.prototype:void 0,At=Tt?Tt.valueOf:void 0,Rt=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return wt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,xt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,At?Object(At.call(n)):{}}},Nt=Object.create,kt=function(){function e(){}return function(t){if(!$(t))return{};if(Nt)return Nt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ft=Ce&&Ce.isMap,Ct=Ft?Re(Ft):function(e){return w(e)&&"[object Map]"==_t(e)},It=Ce&&Ce.isSet,Pt=It?Re(It):function(e){return w(e)&&"[object Set]"==_t(e)},Mt="[object Arguments]",Dt="[object Function]",$t="[object Object]",Lt={};Lt[Mt]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object DataView]"]=Lt["[object Boolean]"]=Lt["[object Date]"]=Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt[$t]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object Symbol]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Error]"]=Lt[Dt]=Lt["[object WeakMap]"]=!1;var Bt=function e(t,r,n,o,a,i){var s,u=1&r,c=2&r,l=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!$(t))return t;var f=je(t);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&St.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!u)return Je(t,s)}else{var d=_t(t),p=d==Dt||"[object GeneratorFunction]"==d;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Ye?Ye(r):new e.constructor(r);return e.copy(n),n}(t,u);if(d==$t||d==Mt||p&&!a){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||Le(e)?{}:kt(O(e))}(t),!u)return c?function(e,t){return pe(e,nt(e),t)}(t,function(e,t){return e&&pe(t,He(t),e)}(s,t)):function(e,t){return pe(e,tt(e),t)}(t,function(e,t){return e&&pe(t,Ve(t),e)}(s,t))}else{if(!Lt[d])return a?t:{};s=Rt(t,d,u)}}i||(i=new ue);var v=i.get(t);if(v)return v;i.set(t,s),Pt(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):Ct(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=f?void 0:(l?c?it:at:c?He:Ve)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(h||t,(function(o,a){h&&(o=t[a=o]),de(s,a,e(o,r,n,a,t,i))})),s},Ut=function(e){return Bt(e,4)},Zt=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},Vt=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==_(e)};function zt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(zt.Cache||ie),r}zt.Cache=ie;var Wt,Ht,Gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,qt=(Wt=zt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Gt,(function(e,r,n,o){t.push(n?o.replace(Kt,"$1"):r||e)})),t}),(function(e){return 500===Ht.size&&Ht.clear(),e})),Ht=Wt.cache,Wt),Yt=function(e){if("string"==typeof e||Vt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Jt=h?h.prototype:void 0,Qt=Jt?Jt.toString:void 0,Xt=function e(t){if("string"==typeof t)return t;if(je(t))return Zt(t,e)+"";if(Vt(t))return Qt?Qt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},er=function(e){return null==e?"":Xt(e)},tr=function(e){return je(e)?Zt(e,Yt):Vt(e)?[e]:Je(qt(er(e)))},rr=function(e,t){},nr=r(86058),or=r.n(nr),ar=function(e){return Bt(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 sr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var lr=function(e){return Array.isArray(e)&&0===e.length},fr=function(e){return"function"==typeof e},dr=function(e){return null!==e&&"object"==typeof e},pr=function(e){return String(Math.floor(Number(e)))===e},vr=function(e){return"[object String]"===Object.prototype.toString.call(e)},hr=function(e){return 0===n.Children.count(e)},yr=function(e){return dr(e)&&fr(e.then)};function mr(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 br(e,t,r){for(var n=Ut(e),o=n,a=0,i=tr(t);a<i.length-1;a++){var s=i[a],u=mr(e,i.slice(0,a+1));if(u&&(dr(u)||Array.isArray(u)))o=o[s]=Ut(u);else{var c=i[a+1];o=o[s]=pr(c)&&Number(c)>=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],s=e[i];dr(s)?r.get(s)||(r.set(s,!0),n[i]=Array.isArray(s)?[]:{},gr(s,t,r,n[i])):n[i]=t}return n}var jr=(0,n.createContext)(void 0);jr.displayName="FormikContext";var Er=jr.Provider,_r=jr.Consumer;function Sr(){var e=(0,n.useContext)(jr);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:br(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ir({},e,{touched:br(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ir({},e,{errors:br(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 wr={},xr={};function Tr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,s=e.validateOnMount,u=void 0!==s&&s,c=e.isInitialValid,l=e.enableReinitialize,d=void 0!==l&&l,p=e.onSubmit,v=ur(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:u,onSubmit:p},v),y=(0,n.useRef)(h.initialValues),m=(0,n.useRef)(h.initialErrors||wr),b=(0,n.useRef)(h.initialTouched||xr),g=(0,n.useRef)(h.initialStatus),j=(0,n.useRef)(!1),E=(0,n.useRef)({});(0,n.useEffect)((function(){return j.current=!0,function(){j.current=!1}}),[]);var _=(0,n.useReducer)(Or,{values:h.initialValues,errors:h.initialErrors||wr,touched:h.initialTouched||xr,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],O=_[1],w=(0,n.useCallback)((function(e,t){return new Promise((function(r,n){var o=h.validate(e,t);null==o?r(wr):yr(o)?o.then((function(e){r(e||wr)}),(function(e){n(e)})):r(o)}))}),[h.validate]),x=(0,n.useCallback)((function(e,t){var r=h.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(wr)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return br(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;mr(t,i.path)||(t=br(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[h.validationSchema]),T=(0,n.useCallback)((function(e,t){return new Promise((function(r){return r(E.current[e].validate(t))}))}),[]),A=(0,n.useCallback)((function(e){var t=Object.keys(E.current).filter((function(e){return fr(E.current[e].validate)})),r=t.length>0?t.map((function(t){return T(t,mr(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=br(e,t[n],r)),e}),{})}))}),[T]),R=(0,n.useCallback)((function(e){return Promise.all([A(e),h.validationSchema?x(e):{},h.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Nr})}))}),[h.validate,h.validationSchema,A,w,x]),N=Fr((function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return j.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){u&&!0===j.current&&a()(y.current,h.initialValues)&&N(y.current)}),[u,N]);var k=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:h.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:h.initialStatus;y.current=t,m.current=r,b.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(h.onReset){var i=h.onReset(S.values,Y);yr(i)?i.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)((function(){!0!==j.current||a()(y.current,h.initialValues)||(d&&(y.current=h.initialValues,k()),u&&N(y.current))}),[d,h.initialValues,k,u,N]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(m.current,h.initialErrors)&&(m.current=h.initialErrors||wr,O({type:"SET_ERRORS",payload:h.initialErrors||wr}))}),[d,h.initialErrors]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(b.current,h.initialTouched)&&(b.current=h.initialTouched||xr,O({type:"SET_TOUCHED",payload:h.initialTouched||xr}))}),[d,h.initialTouched]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(g.current,h.initialStatus)&&(g.current=h.initialStatus,O({type:"SET_STATUS",payload:h.initialStatus}))}),[d,h.initialStatus,h.initialTouched]);var F=Fr((function(e){if(E.current[e]&&fr(E.current[e].validate)){var t=mr(S.values,e),r=E.current[e].validate(t);return yr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),x(S.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()})),C=(0,n.useCallback)((function(e,t){var r=t.validate;E.current[e]={validate:r}}),[]),I=(0,n.useCallback)((function(e){delete E.current[e]}),[]),P=Fr((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?N(S.values):Promise.resolve()})),M=(0,n.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),D=Fr((function(e,t){var n=fr(e)?e(S.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?N(n):Promise.resolve()})),$=(0,n.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),L=Fr((function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?N(br(S.values,e,t)):Promise.resolve()})),B=(0,n.useCallback)((function(e,t){var r,n=t,o=e;if(!vr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,s=a.name,u=a.id,c=a.value,l=a.checked,f=(a.outerHTML,a.options),d=a.multiple;n=t||s||u,o=/number|range/.test(i)?(r=parseFloat(c),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}(mr(S.values,n),l,c):f&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):c}n&&L(n,o)}),[L,S.values]),U=Fr((function(e){if(vr(e))return function(t){return B(t,e)};B(e)})),Z=Fr((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)?N(S.values):Promise.resolve()})),V=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);Z(a,!0)}),[Z]),z=Fr((function(e){if(vr(e))return function(t){return V(t,e)};V(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})}),[]),G=(0,n.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),K=Fr((function(){return O({type:"SUBMIT_ATTEMPT"}),N().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=J()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return j.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(j.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(j.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),q=Fr((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Y={resetForm:k,validateForm:N,validateField:F,setErrors:M,setFieldError:$,setFieldTouched:Z,setFieldValue:L,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,setFormikState:W,submitForm:K},J=Fr((function(){return p(S.values,Y)})),Q=Fr((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),k()})),X=(0,n.useCallback)((function(e){return{value:mr(S.values,e),error:mr(S.errors,e),touched:!!mr(S.touched,e),initialValue:mr(y.current,e),initialTouched:!!mr(b.current,e),initialError:mr(m.current,e)}}),[S.errors,S.touched,S.values]),ee=(0,n.useCallback)((function(e){return{setValue:function(t,r){return L(e,t,r)},setTouched:function(t,r){return Z(e,t,r)},setError:function(t){return $(e,t)}}}),[L,Z,$]),te=(0,n.useCallback)((function(e){var t=dr(e),r=t?e.name:e,n=mr(S.values,r),o={name:r,value:n,onChange:U,onBlur:z};if(t){var a=e.type,i=e.value,s=e.as,u=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"===s&&u&&(o.value=o.value||[],o.multiple=!0)}return o}),[z,U,S.values]),re=(0,n.useMemo)((function(){return!a()(y.current,S.values)}),[y.current,S.values]),ne=(0,n.useMemo)((function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&fr(c)?c(h):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,h]);return ir({},S,{initialValues:y.current,initialErrors:m.current,initialTouched:b.current,initialStatus:g.current,handleBlur:z,handleChange:U,handleReset:Q,handleSubmit:q,resetForm:k,setErrors:M,setFormikState:W,setFieldTouched:Z,setFieldValue:L,setFieldError:$,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,submitForm:K,validateForm:N,validateField:F,isValid:ne,dirty:re,unregisterField:I,registerField:C,getFieldProps:te,getFieldMeta:X,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:u})}function Ar(e){var t=Tr(e),r=e.component,o=e.children,a=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(Er,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?fr(o)?o(t):hr(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 Nr(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 Fr(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 Cr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,s=e.component,u=ur(e,["validate","name","render","children","as","component"]),c=ur(Sr(),["validate","validationSchema"]),l=c.registerField,f=c.unregisterField;(0,n.useEffect)((function(){return l(r,{validate:t}),function(){f(r)}}),[l,f,r,t]);var d=c.getFieldProps(ir({name:r},u)),p=c.getFieldMeta(r),v={field:d,form:c};if(o)return o(ir({},v,{meta:p}));if(fr(a))return a(ir({},v,{meta:p}));if(s){if("string"==typeof s){var h=u.innerRef,y=ur(u,["innerRef"]);return(0,n.createElement)(s,ir({ref:h},d,y),a)}return(0,n.createElement)(s,ir({field:d,form:c},u),a)}var m=i||"input";if("string"==typeof m){var b=u.innerRef,g=ur(u,["innerRef"]);return(0,n.createElement)(m,ir({ref:b},d,g),a)}return(0,n.createElement)(m,ir({},d,u),a)}var Ir=(0,n.forwardRef)((function(e,t){var r=e.action,o=ur(e,["action"]),a=null!=r?r:"#",i=Sr(),s=i.handleReset,u=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:s,action:a},o))}));function Pr(e){var t=function(t){return(0,n.createElement)(_r,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)}Ir.displayName="Form";var Mr=function(e,t,r){var n=Dr(e);return n.splice(t,0,r),n},Dr=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,s=br(r.values,a,e(mr(r.values,a))),u=n?o(mr(r.errors,a)):void 0,c=t?i(mr(r.touched,a)):void 0;return lr(u)&&(u=void 0),lr(c)&&(c=void 0),ir({},r,{values:s,errors:n?br(r.errors,a,u):r.errors,touched:t?br(r.touched,a,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Dr(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=Dr(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=Dr(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 Mr(r,e,t)}),(function(t){return Mr(t,e,null)}),(function(t){return Mr(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=Dr(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(cr(r)),r.pop=r.pop.bind(cr(r)),r}sr(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(mr(e.formik.values,e.name),mr(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?Dr(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,s=ir({},e,{form:ur(t.formik,["validate","validationSchema"]),name:i});return r?(0,n.createElement)(r,s):o?o(s):a?"function"==typeof a?a(s):hr(a)?null:n.Children.only(a):null},t}(n.Component);$r.defaultProps={validateOnChange:!0};var Lr=function(e){function t(){return e.apply(this,arguments)||this}sr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return mr(this.props.formik.errors,this.props.name)!==mr(e.formik.errors,this.props.name)||mr(this.props.formik.touched,this.props.name)!==mr(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,s=ur(e,["component","formik","render","children","name"]),u=mr(r.touched,i),c=mr(r.errors,i);return u&&c?o?fr(o)?o(c):null:a?fr(a)?a(c):null:t?(0,n.createElement)(t,s,c):c:null},t}(n.Component),Br=Pr(Lr);n.Component},98269:function(e,t,r){var n=r(95685),o=r.n(n),a=r(32735),i=r(16616),s=r(46304),u=r(74512);const c=a.forwardRef((({as:e,bsPrefix:t,variant:r="primary",size:n,active:a=!1,disabled:c=!1,className:l,...f},d)=>{const p=(0,s.vE)(t,"btn"),[v,{tagName:h}]=(0,i.FT)({tagName:e,disabled:c,...f}),y=h;return(0,u.jsx)(y,{...v,...f,ref:d,disabled:c,className:o()(l,p,a&&"active",r&&`${p}-${r}`,n&&`${p}-${n}`,f.href&&c&&"disabled")})}));c.displayName="Button",t.Z=c},18881:function(e,t,r){r.d(t,{Z:function(){return Z}});var n=r(95685),o=r.n(n),a=r(60216),i=r.n(a),s=r(32735),u=r(74512);const c={type:i().string,tooltip:i().bool,as:i().elementType},l=s.forwardRef((({as:e="div",className:t,type:r="valid",tooltip:n=!1,...a},i)=>(0,u.jsx)(e,{...a,ref:i,className:o()(t,`${r}-${n?"tooltip":"feedback"}`)})));l.displayName="Feedback",l.propTypes=c;var f=l,d=s.createContext({}),p=r(46304);const v=s.forwardRef((({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:a=!1,isInvalid:i=!1,as:c="input",...l},f)=>{const{controlId:v}=(0,s.useContext)(d);return t=(0,p.vE)(t,"form-check-input"),(0,u.jsx)(c,{...l,ref:f,type:n,id:e||v,className:o()(r,t,a&&"is-valid",i&&"is-invalid")})}));v.displayName="FormCheckInput";var h=v;const y=s.forwardRef((({bsPrefix:e,className:t,htmlFor:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-check-label"),(0,u.jsx)("label",{...n,ref:a,htmlFor:r||i,className:o()(t,e)})}));y.displayName="FormCheckLabel";var m=y;const b=s.forwardRef((({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:n=!1,reverse:a=!1,disabled:i=!1,isValid:c=!1,isInvalid:l=!1,feedbackTooltip:v=!1,feedback:y,feedbackType:b,className:g,style:j,title:E="",type:_="checkbox",label:S,children:O,as:w="input",...x},T)=>{t=(0,p.vE)(t,"form-check"),r=(0,p.vE)(r,"form-switch");const{controlId:A}=(0,s.useContext)(d),R=(0,s.useMemo)((()=>({controlId:e||A})),[A,e]),N=!O&&null!=S&&!1!==S||function(e,t){return s.Children.toArray(e).some((e=>s.isValidElement(e)&&e.type===t))}(O,m),k=(0,u.jsx)(h,{...x,type:"switch"===_?"checkbox":_,ref:T,isValid:c,isInvalid:l,disabled:i,as:w});return(0,u.jsx)(d.Provider,{value:R,children:(0,u.jsx)("div",{style:j,className:o()(g,N&&t,n&&`${t}-inline`,a&&`${t}-reverse`,"switch"===_&&r),children:O||(0,u.jsxs)(u.Fragment,{children:[k,N&&(0,u.jsx)(m,{title:E,children:S}),y&&(0,u.jsx)(f,{type:b,tooltip:v,children:y})]})})})}));b.displayName="FormCheck";var g=Object.assign(b,{Input:h,Label:m});r(65719);const j=s.forwardRef((({bsPrefix:e,type:t,size:r,htmlSize:n,id:a,className:i,isValid:c=!1,isInvalid:l=!1,plaintext:f,readOnly:v,as:h="input",...y},m)=>{const{controlId:b}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-control"),(0,u.jsx)(h,{...y,type:t,size:n,ref:m,readOnly:v,id:a||b,className:o()(i,f?`${e}-plaintext`:e,r&&`${e}-${r}`,"color"===t&&`${e}-color`,c&&"is-valid",l&&"is-invalid")})}));j.displayName="FormControl";var E=Object.assign(j,{Feedback:f});const _=s.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},a)=>(t=(0,p.vE)(t,"form-floating"),(0,u.jsx)(r,{ref:a,className:o()(e,t),...n}))));_.displayName="FormFloating";var S=_;const O=s.forwardRef((({controlId:e,as:t="div",...r},n)=>{const o=(0,s.useMemo)((()=>({controlId:e})),[e]);return(0,u.jsx)(d.Provider,{value:o,children:(0,u.jsx)(t,{...r,ref:n})})}));O.displayName="FormGroup";var w=O;const x=s.forwardRef(((e,t)=>{const[{className:r,...n},{as:a="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=(0,p.vE)(t,"col");const a=(0,p.pi)(),i=(0,p.zG)(),s=[],u=[];return a.forEach((e=>{const r=n[e];let o,a,c;delete n[e],"object"==typeof r&&null!=r?({span:o,offset:a,order:c}=r):o=r;const l=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${l}`:`${t}${l}-${o}`),null!=c&&u.push(`order${l}-${c}`),null!=a&&u.push(`offset${l}-${a}`)})),[{...n,className:o()(r,...s,...u)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,u.jsx)(a,{...n,ref:t,className:o()(r,!s.length&&i)})}));x.displayName="Col";var T=x;const A=s.forwardRef((({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:n=!1,className:a,htmlFor:i,...c},l)=>{const{controlId:f}=(0,s.useContext)(d);t=(0,p.vE)(t,"form-label");let v="col-form-label";"string"==typeof r&&(v=`${v} ${v}-${r}`);const h=o()(a,t,n&&"visually-hidden",r&&v);return i=i||f,r?(0,u.jsx)(T,{ref:l,as:"label",className:h,htmlFor:i,...c}):(0,u.jsx)(e,{ref:l,className:h,htmlFor:i,...c})}));A.displayName="FormLabel";var R=A;const N=s.forwardRef((({bsPrefix:e,className:t,id:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-range"),(0,u.jsx)("input",{...n,type:"range",ref:a,className:o()(t,e),id:r||i})}));N.displayName="FormRange";var k=N;const F=s.forwardRef((({bsPrefix:e,size:t,htmlSize:r,className:n,isValid:a=!1,isInvalid:i=!1,id:c,...l},f)=>{const{controlId:v}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-select"),(0,u.jsx)("select",{...l,size:r,ref:f,className:o()(n,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:c||v})}));F.displayName="FormSelect";var C=F;const I=s.forwardRef((({bsPrefix:e,className:t,as:r="small",muted:n,...a},i)=>(e=(0,p.vE)(e,"form-text"),(0,u.jsx)(r,{...a,ref:i,className:o()(t,e,n&&"text-muted")}))));I.displayName="FormText";var P=I;const M=s.forwardRef(((e,t)=>(0,u.jsx)(g,{...e,ref:t,type:"switch"})));M.displayName="Switch";var D=Object.assign(M,{Input:g.Input,Label:g.Label});const $=s.forwardRef((({bsPrefix:e,className:t,children:r,controlId:n,label:a,...i},s)=>(e=(0,p.vE)(e,"form-floating"),(0,u.jsxs)(w,{ref:s,className:o()(t,e),controlId:n,...i,children:[r,(0,u.jsx)("label",{htmlFor:n,children:a})]}))));$.displayName="FloatingLabel";var L=$;const B={_ref:i().any,validated:i().bool,as:i().elementType},U=s.forwardRef((({className:e,validated:t,as:r="form",...n},a)=>(0,u.jsx)(r,{...n,ref:a,className:o()(e,t&&"was-validated")})));U.displayName="Form",U.propTypes=B;var Z=Object.assign(U,{Group:w,Control:E,Floating:S,Check:g,Switch:D,Label:R,Text:P,Range:k,Select:C,FloatingLabel:L})},54722:function(e,t,r){r.d(t,{Z:function(){return de}});var n,o=r(95685),a=r.n(o),i=r(14473),s=r(94278),u=r(79779),c=r(92324);function l(e){if((!n&&0!==n||e)&&s.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),n=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return n}var f=r(32735),d=r(65456),p=r(72080),v=r(49719),h=r(23438);function y(e){void 0===e&&(e=(0,u.Z)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}var m=r(47490),b=r(75476),g=r(12788),j=r(399);var E=r(16608),_=r(47597),S=r(11858);const O=(0,r(27445).PB)("modal-open");var w=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();e.style={overflow:n.style.overflow,[r]:n.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,S.Z)(n,r)||"0",10)+e.scrollBarWidth}px`),n.setAttribute(O,""),(0,S.Z)(n,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(O),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},x=r(19979),T=r(9418),A=r(52622),R=r(76e3),N=r(74512);const k=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let F;const C=(0,f.forwardRef)(((e,t)=>{let{show:r=!1,role:n="dialog",className:o,style:a,children:i,backdrop:u=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:d,transition:p,runTransition:v,backdropTransition:h,runBackdropTransition:S,autoFocus:O=!0,enforceFocus:C=!0,restoreFocus:I=!0,restoreFocusOptions:P,renderDialog:M,renderBackdrop:D=e=>(0,N.jsx)("div",Object.assign({},e)),manager:$,container:L,onShow:B,onHide:U=()=>{},onExit:Z,onExited:V,onExiting:z,onEnter:W,onEntering:H,onEntered:G}=e,K=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,k);const q=(0,T.Z)(),Y=(0,x.Z)(L),J=function(e){const t=(0,T.Z)(),r=e||function(e){return F||(F=new w({ownerDocument:null==e?void 0:e.document})),F}(t),n=(0,f.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:(0,f.useCallback)((e=>{n.current.dialog=e}),[]),setBackdropRef:(0,f.useCallback)((e=>{n.current.backdrop=e}),[])})}($),Q=(0,j.Z)(),X=(0,E.Z)(r),[ee,te]=(0,f.useState)(!r),re=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>J),[J]),s.Z&&!X&&r&&(re.current=y(null==q?void 0:q.document)),r&&ee&&te(!1);const ne=(0,_.Z)((()=>{if(J.add(),ce.current=(0,b.Z)(document,"keydown",se),ue.current=(0,b.Z)(document,"focus",(()=>setTimeout(ae)),!0),B&&B(),O){var e,t;const r=y(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==q?void 0:q.document);J.dialog&&r&&!(0,m.Z)(J.dialog,r)&&(re.current=r,J.dialog.focus())}})),oe=(0,_.Z)((()=>{var e;J.remove(),null==ce.current||ce.current(),null==ue.current||ue.current(),I&&(null==(e=re.current)||null==e.focus||e.focus(P),re.current=null)}));(0,f.useEffect)((()=>{r&&Y&&ne()}),[r,Y,ne]),(0,f.useEffect)((()=>{ee&&oe()}),[ee,oe]),function(e){const t=function(e){const t=(0,f.useRef)(e);return t.current=e,t}(e);(0,f.useEffect)((()=>()=>t.current()),[])}((()=>{oe()}));const ae=(0,_.Z)((()=>{if(!C||!Q()||!J.isTopModal())return;const e=y(null==q?void 0:q.document);J.dialog&&e&&!(0,m.Z)(J.dialog,e)&&J.dialog.focus()})),ie=(0,_.Z)((e=>{e.target===e.currentTarget&&(null==l||l(e),!0===u&&U())})),se=(0,_.Z)((e=>{c&&(0,R.kl)(e)&&J.isTopModal()&&(null==d||d(e),e.defaultPrevented||U())})),ue=(0,f.useRef)(),ce=(0,f.useRef)();if(!Y)return null;const le=Object.assign({role:n,ref:J.setDialogRef,"aria-modal":"dialog"===n||void 0},K,{style:a,className:o,tabIndex:-1});let fe=M?M(le):(0,N.jsx)("div",Object.assign({},le,{children:f.cloneElement(i,{role:"document"})}));fe=(0,A.sD)(p,v,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:Z,onExiting:z,onExited:(...e)=>{te(!0),null==V||V(...e)},onEnter:W,onEntering:H,onEntered:G,children:fe});let de=null;return u&&(de=D({ref:J.setBackdropRef,onClick:ie}),de=(0,A.sD)(h,S,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),(0,N.jsx)(N.Fragment,{children:g.createPortal((0,N.jsxs)(N.Fragment,{children:[de,fe]}),Y)})}));C.displayName="Modal";var I=Object.assign(C,{Manager:w}),P=r(31411),M=r(30720);function D(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const $=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",L=".sticky-top",B=".navbar-toggler";class U extends w{adjustAndStore(e,t,r){const n=t.style[e];t.dataset[e]=n,(0,S.Z)(t,{[e]:`${parseFloat((0,S.Z)(t,e))+r}px`})}restore(e,t){const r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,S.Z)(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var r,n;if(n="modal-open",(r=t).classList?r.classList.add(n):(0,P.Z)(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,$).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),(0,M.Z)(t,L).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),(0,M.Z)(t,B).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var r,n;n="modal-open",(r=t).classList?r.classList.remove(n):"string"==typeof r.className?r.className=D(r.className,n):r.setAttribute("class",D(r.className&&r.className.baseVal||"",n));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,$).forEach((e=>this.restore(o,e))),(0,M.Z)(t,L).forEach((e=>this.restore(a,e))),(0,M.Z)(t,B).forEach((e=>this.restore(a,e)))}}let Z;var V=r(29724),z=r(46304);const W=f.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-body"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));W.displayName="ModalBody";var H=W,G=f.createContext({onHide(){}});const K=f.forwardRef((({bsPrefix:e,className:t,contentClassName:r,centered:n,size:o,fullscreen:i,children:s,scrollable:u,...c},l)=>{const f=`${e=(0,z.vE)(e,"modal")}-dialog`,d="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return(0,N.jsx)("div",{...c,ref:l,className:a()(f,t,o&&`${e}-${o}`,n&&`${f}-centered`,u&&`${f}-scrollable`,i&&d),children:(0,N.jsx)("div",{className:a()(`${e}-content`,r),children:s})})}));K.displayName="ModalDialog";var q=K;const Y=f.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-footer"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));Y.displayName="ModalFooter";var J=Y,Q=r(60216),X=r.n(Q);const ee={"aria-label":X().string,onClick:X().func,variant:X().oneOf(["white"])},te=f.forwardRef((({className:e,variant:t,"aria-label":r="Close",...n},o)=>(0,N.jsx)("button",{ref:o,type:"button",className:a()("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...n})));te.displayName="CloseButton",te.propTypes=ee;var re=te,ne=f.forwardRef((({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:o,...a},i)=>{const s=(0,f.useContext)(G),u=(0,d.Z)((()=>{null==s||s.onHide(),null==n||n()}));return(0,N.jsxs)("div",{ref:i,...a,children:[o,r&&(0,N.jsx)(re,{"aria-label":e,variant:t,onClick:u})]})}));const oe=f.forwardRef((({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:n=!1,...o},i)=>(e=(0,z.vE)(e,"modal-header"),(0,N.jsx)(ne,{ref:i,...o,className:a()(t,e),closeLabel:r,closeButton:n}))));oe.displayName="ModalHeader";var ae=oe;const ie=f.forwardRef(((e,t)=>(0,N.jsx)("div",{...e,ref:t,className:a()(e.className,"h4")})));const se=f.forwardRef((({className:e,bsPrefix:t,as:r=ie,...n},o)=>(t=(0,z.vE)(t,"modal-title"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));se.displayName="ModalTitle";var ue=se;function ce(e){return(0,N.jsx)(V.Z,{...e,timeout:null})}function le(e){return(0,N.jsx)(V.Z,{...e,timeout:null})}const fe=f.forwardRef((({bsPrefix:e,className:t,style:r,dialogClassName:n,contentClassName:o,children:y,dialogAs:m=q,"data-bs-theme":b,"aria-labelledby":g,"aria-describedby":j,"aria-label":E,show:_=!1,animation:S=!0,backdrop:O=!0,keyboard:w=!0,onEscapeKeyDown:x,onShow:T,onHide:A,container:R,autoFocus:k=!0,enforceFocus:F=!0,restoreFocus:C=!0,restoreFocusOptions:P,onEntered:M,onExit:D,onExiting:$,onEnter:L,onEntering:B,onExited:V,backdropClassName:W,manager:H,...K},Y)=>{const[J,Q]=(0,f.useState)({}),[X,ee]=(0,f.useState)(!1),te=(0,f.useRef)(!1),re=(0,f.useRef)(!1),ne=(0,f.useRef)(null),[oe,ae]=(0,f.useState)(null),ie=(0,p.Z)(Y,ae),se=(0,d.Z)(A),ue=(0,z.SC)();e=(0,z.vE)(e,"modal");const fe=(0,f.useMemo)((()=>({onHide:se})),[se]);function de(){return H||(Z||(Z=new U({isRTL:ue})),Z)}function pe(e){if(!s.Z)return;const t=de().getScrollbarWidth()>0,r=e.scrollHeight>(0,u.Z)(e).documentElement.clientHeight;Q({paddingRight:t&&!r?l():void 0,paddingLeft:!t&&r?l():void 0})}const ve=(0,d.Z)((()=>{oe&&pe(oe.dialog)}));(0,v.Z)((()=>{(0,c.Z)(window,"resize",ve),null==ne.current||ne.current()}));const he=()=>{te.current=!0},ye=e=>{te.current&&oe&&e.target===oe.dialog&&(re.current=!0),te.current=!1},me=()=>{ee(!0),ne.current=(0,h.Z)(oe.dialog,(()=>{ee(!1)}))},be=e=>{"static"!==O?re.current||e.target!==e.currentTarget?re.current=!1:null==A||A():(e=>{e.target===e.currentTarget&&me()})(e)},ge=(0,f.useCallback)((t=>(0,N.jsx)("div",{...t,className:a()(`${e}-backdrop`,W,!S&&"show")})),[S,W,e]),je={...r,...J};return je.display="block",(0,N.jsx)(G.Provider,{value:fe,children:(0,N.jsx)(I,{show:_,ref:ie,backdrop:O,container:R,keyboard:!0,autoFocus:k,enforceFocus:F,restoreFocus:C,restoreFocusOptions:P,onEscapeKeyDown:e=>{w?null==x||x(e):(e.preventDefault(),"static"===O&&me())},onShow:T,onHide:A,onEnter:(e,t)=>{e&&pe(e),null==L||L(e,t)},onEntering:(e,t)=>{null==B||B(e,t),(0,i.ZP)(window,"resize",ve)},onEntered:M,onExit:e=>{null==ne.current||ne.current(),null==D||D(e)},onExiting:$,onExited:e=>{e&&(e.style.display=""),null==V||V(e),(0,c.Z)(window,"resize",ve)},manager:de(),transition:S?ce:void 0,backdropTransition:S?le:void 0,renderBackdrop:ge,renderDialog:r=>(0,N.jsx)("div",{role:"dialog",...r,style:je,className:a()(t,e,X&&`${e}-static`,!S&&"show"),onClick:O?be:void 0,onMouseUp:ye,"data-bs-theme":b,"aria-label":E,"aria-labelledby":g,"aria-describedby":j,children:(0,N.jsx)(m,{...K,onMouseDown:he,className:n,contentClassName:o,children:y})})})})}));fe.displayName="Modal";var de=Object.assign(fe,{Body:H,Header:ae,Title:ue,Footer:J,Dialog:q,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},80247:function(e,t,r){var n=r(95685),o=r.n(n),a=r(32735),i=r(46304),s=r(74512);const u=a.forwardRef((({bsPrefix:e,variant:t,animation:r="border",size:n,as:a="div",className:u,...c},l)=>{const f=`${e=(0,i.vE)(e,"spinner")}-${r}`;return(0,s.jsx)(a,{ref:l,...c,className:o()(u,f,n&&`${f}-${n}`,t&&`text-${t}`)})}));u.displayName="Spinner",t.Z=u},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 s,u,c,l=t(e),f=t(i);if(l&&f){if((u=e.length)!=i.length)return!1;for(s=u;0!=s--;)if(!a(e[s],i[s]))return!1;return!0}if(l!=f)return!1;var d=e instanceof Date,p=i instanceof Date;if(d!=p)return!1;if(d&&p)return e.getTime()==i.getTime();var v=e instanceof RegExp,h=i instanceof RegExp;if(v!=h)return!1;if(v&&h)return e.toString()==i.toString();var y=r(e);if((u=y.length)!==r(i).length)return!1;for(s=u;0!=s--;)if(!n.call(i,y[s]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(s=u;0!=s--;)if(!("_owner"===(c=y[s])&&e.$$typeof||a(e[c],i[c])))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}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[416],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(32735),r=n(21679);function a(e){var t,n;return t=e,n=r.u.getInstance(t),i.useEffect((function(){return function(){r.u.releaseInstance(t)}})),n}},77037:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(32735),r=n(68003),a=n(88483),o=n(87013),c=n(85475),u=n(39396),s={avatar:"Gvwzj",dot:"JJHBJ"};function l(e){var t,n,l=!e.anonymiseUsers&&e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?o.j.createUrl(r._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:a.h2.Small}):"");return i.createElement("div",{className:"position-relative h-100 w-100"},e.showAnonymousUser?i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""," bg-gray-700 text-light")},i.createElement(u.x,{svgName:c.vn.Anonymous,size:e.anonymousSvgSize||u.S.Large,className:"svg-container w-100 h-100"})):i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(l,"')")}}," "),e.showDot&&i.createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},41087:function(e,t,n){n.d(t,{C:function(){return b},g:function(){return s}});var i,r=n(32735),a=n(57857),o=n(39396),c=n(21326),u=n(50028);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(i||(i={}));var s,l=n(27866),d=n(45428),v=n(85475),p=n(21974),m=n(6665),f=a.T.encloseNamespace("shared.badges");!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}));var g={xs:o.S.ExtraSmall,sm:o.S.Small,std:o.S.Standard,lg:o.S.Large},y={xs:"badge-xs",sm:"badge-sm",std:"badge-std",lg:"badge-lg"};function b(e){var t=e.type,n=e.data,a=e.size,b=void 0===a?"std":a;if(!function(e,t){var n,i;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.length):e===s.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var h=function(e,t,n){var r,a=y[n],o="";if(e===s.DurationApproximate&&(o="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(o="duration-badge"),e===s.Interactive&&(o="interactive-badge"),e===s.Rating&&(o="rating-badge text-shadow ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(o="production-year-badge text-shadow"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case u.X.Published:return"bg-success";case u.X.Archived:case u.X.Rejected:return"bg-danger";case u.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case u.X.Pending:case u.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-1 d-flex align-items-center ".concat(a);if(e===s.Count&&(o="count-badge px-1 rounded"),e===s.Restriction){var c=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(c)}return e===s.Source&&(o=(r=t).includes(i.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(m.Z.streamable):r.includes(i.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(o)}(t,n,b);h="".concat(h," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var C=function(e,t,n){if(e===s.Interactive)return f("interactive");if(e===s.DurationApproximate)return l.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return l.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return r.createElement(o.x,{svgName:v.vn.CloseCaptionBadge});if(e===s.Status)return u.X[t];if(e===s.Trending)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:v.vn.Trending,size:g[n]}),r.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var a=t;return a.includes(i.Streamable)?"streamable":a.includes(i.MoviesAndTv)?"movies + tv":a.includes(i.Exchange)?"exchange":a.includes(i.Twig)?"twig":"-"}}(t,n,b),w=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),T=e.inline&&"d-inline-block";return w?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},w,{spanHack:!0,spanHackClassName:T}),r.createElement("span",{className:h},C))):r.createElement("span",{className:"".concat(h," badge-wrapper")},C)}},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(32735),r=n(6665);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t,n){return{key:"video:".concat(e,":clips:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t,cursor:n})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t,n){return{key:"video:".concat(e,":interactives:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n})}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e),normalize:!1}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}},removeInteractiveMetadata:function(e){var t=e.libraryId,n=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:n,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:i.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}},updateInteraction:function(e){return{url:"/api/domain/v1/interactions/bulk/".concat(e.id),key:"contribute:interactive",data:e,type:i.k.PUT,invalidationKeys:["interactive:".concat(e.interactiveId)]}}}},77131:function(e,t,n){n.d(t,{R:function(){return f}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=n,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},f={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,i,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:r.k.DELETE,success:i,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,u){var d=l.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,m=o.v.INTERACTIVE,f="videos[".concat(v,"]"),g="clips[".concat(p,"]"),y="interactives[".concat(m,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(g,"|").concat(y,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:i,error:r,always:u}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(92159),r=n(21186),a=n(54096);function o(){var e=(0,a.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},38e3:function(e,t,n){n.d(t,{G:function(){return r}});var i=n(74421),r={isType:function(e,t){var n;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===i.E[t].toLowerCase()},isResource:function(e){return r.isType(e,i.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},45428:function(e,t,n){n.d(t,{l:function(){return f}});var i=n(57857),r=n(10657),a=n(6665),o=n(87648),c=n(85475);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 s(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=f.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?1===t.length?l("restrictionStudents"):l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=f.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return f.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(85475);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 u(e,t,n){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",l={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(s,"exchange");case r.r.Workspace:return i.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-blue";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return i.T.getPhrase(s,"pdf");case a.L.Image:return i.T.getPhrase(s,"image");case a.L.Document:return i.T.getPhrase(s,"document");case a.L.Excel:return i.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(s,"presentation");case a.L.Zip:return i.T.getPhrase(s,"zipArchive");case a.L.File:return i.T.getPhrase(s,"file");default:return""}}}},11275:function(e,t,n){n.d(t,{M:function(){return b}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(10657),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),l=n(74421),d=n(87648),v=n(332),p=n(91432),m=n(77131),f=n(45428),g=n(13034),y=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===l.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===l.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===l.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(g.C.StudentExperience)},showInteractivesGuidance:function(e){var t,n;return!(!e||b.isInteractive(e)||!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length))},showResourcesGuidance:function(e){var t,n,i,r;return!(!e||b.isInteractive(e)||!(((null===(n=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)||0)+((null===(r=null===(i=e.links)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail)||(null===(i=e._parentClip)||void 0===i?void 0:i.thumbnail):void 0:null},getDuration:function(e){var t,n;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,n,i,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(n=e._parentVideo)||void 0===n?void 0:n.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(i=null==e?void 0:e._parentClip)||void 0===i?void 0:i.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,n;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=b.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return b.isClip(e)?y("clipLoginRequired"):b.isInteractive(e)?y("interactiveLoginRequired"):y("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return y("ratingNotAllowed");case"video-deleted":return b.isClip(e)?y("clipParentDeleted"):b.isInteractive(e)?y("interactiveParentDeleted"):y("videoDeleted");case"clickview-private":return y("clickViewPrivate");case"private":default:return y("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===d.c.Custom?y("awaitingApproval"):y("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return y(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case l.E.Video:return m.R.sharedVideo(e,n);case l.E.Clip:return v.e.sharedClip(e,n);case l.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case l.E.Video:return m.R.video(e);case l.E.Clip:return v.e.clip(e);case l.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.typeId===l.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(4705),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n,r){var o=function(e,t){return"".concat(t?"".concat(t,":"):"","video:sort:").concat(e)}(e,r);return!t&&i.SG.cacheExists(o)||i.SG.cacheSet(o,t||n||a),t||(t=i.SG.cacheGet(o)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";case r.D.ProductionYear:return"orderbydesc:productionyear";default:return}}}},6665:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4201],{74201:function(e,t,r){"use strict";r.r(t),r.d(t,{NewLibraryView:function(){return P}});var n=r(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4201],{74201:function(e,t,r){"use strict";r.r(t),r.d(t,{NewLibraryView:function(){return P}});var n=r(43823),o=r(21679),i=r(57857),a=r(99249),u=r(31647),c=r(36357),l=r(10101),s=r(88172),f=r(45390),b=r(67670),p=r(24539),y=r(19226),m=r(93569),h=r(56906),v=r(95061),d=r(7190),g=r(15110),w=r.n(g);function O(e){return O="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},O(e)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=_(t),function(e,t){if(t&&("object"==O(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,j()?Reflect.construct(t,r||[],_(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),r=t,g=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:p.Z}),this.bindListeners(),this.settingsDataService=o.u.getInstance(f.Or.Settings,this),this.libraryDataService=o.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SETTINGS,"".concat(f.M_.CUSTOMER_SETTINGS,":sync ").concat(f.M_.USER_SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return w()}},{key:"channelName",get:function(){return m.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.fS,modelValidation:d.Y7},{behaviorClass:l.Bp},{behaviorClass:l.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),u.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:y.K.currentUser,libraries:v.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),c.E.MaxCustomLibraries),this.libraries.length>this.maxCustomLibraries.get("value")?u.Q.Ry.throw(new h.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:m.Kp.getSpinner({size:m.Ey.Large,extraClasses:"mx-auto"})}}}],g&&S(r.prototype,g),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,g}(u.Q.G7)},67670:function(e,t,r){"use strict";r.d(t,{v:function(){return b}});var n=r(31647),o=r(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,(n=[{key:"defaults",value:function(){return a(a({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.Q.Hn)},15110:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({1:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,r,n,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4245],{34245:function(t,n,e){"use strict";e.r(n),e.d(n,{NotificationsView:function(){return C}});var i=e(21679),o=e(57857),r=e(31647),a=e(18199),s=e(23859),c=e(33955),u=e(11543),l=e(70125),p=e(47022),f=e(33303),y=e(4039),h=e(24355),v=e.n(h),b=e(38900),g=e.n(b),d=e(3495);function m(t){return m="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},m(t)}function k(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,w(i.key),i)}}function w(t){var n=function(t){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=m(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(n)?n:n+""}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}function j(t,n){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},j(t,n)}var C=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,n,e){return n=P(n),function(t,n){if(n&&("object"==m(n)||"function"==typeof n))return n;if(void 0!==n)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,O()?Reflect.construct(n,e||[],P(t).constructor):n.apply(t,e))}(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&j(t,n)}(n,t),e=n,(h=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return g()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:l.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:v(),className:"px-1 py-2",viewOptions:{styles:d.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(u.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new f.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new p.Q({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&k(e.prototype,h),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,h}(r.Q.G7)},47022:function(t,n,e){"use strict";e.d(n,{Q:function(){return b}});var i=e(21161),o=e(31647),r=e(52076),a=e(70065),s=e(99186),c=e.n(s);function u(t){return u="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},u(t)}function l(t,n,e){return(n=f(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function p(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function f(t){var n=function(t){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=u(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(n)?n:n+""}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},v(t,n)}var b=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,n,e){return n=h(n),function(t,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(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(n,e||[],h(t).constructor):n.apply(t,e))}(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&v(t,n)}(n,t),e=n,(o=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous,!0);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,n){var e=this.options.appLink.params;return n?(null==e?void 0:e.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==e?void 0:e.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:i.extend({},this.options.appLink.params,l(l({},this.options.cursorParamName,t),"previous",e.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=r.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),e={id:this.options.collectionId,page:t};r.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(e.prototype,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o}(o.Q.wA)},38900:function(t,n,e){var i=e(31197);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},99186:function(t,n,e){var i=e(31197);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4327],{94327:function(t,e,n){"use strict";n.r(e),n.d(e,{NotFoundView:function(){return b}});var r=n(31647),o=n(45390),i=n(74030),u=n.n(i),l={image:"dLQU1"};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 c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t){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 s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(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=p(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,s()?Reflect.construct(e,n||[],p(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,(r=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.G7)},74030:function(t,e,n){var r=n(31197);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" />\n<h2 class="h6 mt-3">'+l((n.lang||e&&e.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\n<p class="pb-5">'+(null!=(i=(n.lang||e&&e.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=e?e.options:e)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6732],{57733:function(e,t,r){"use strict";r.r(t),r.d(t,{AddToLibraryView:function(){return I}});var n,i=r(39479),o=r(21679),a=r(57857),l=r(31647);!function(e){e[e.MasterVideo=1]="MasterVideo",e[e.MasterClip=2]="MasterClip",e[e.MasterInteractive=3]="MasterInteractive"}(n||(n={}));var s=r(75459),u=r(10101),c=r(88172),d=r(20072),h=r(57098),f=r(67670),p=r(93569),b=r(79665),y=r(95061),m=r(99765),g=r.n(m),v={header:"S7CRE"};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 k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function w(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}var I=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,r){return t=T(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,S()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}(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&&C(e,t)}(t,e),r=t,l=[{key:"initialize",value:function(){this.videoDataService=o.u.getInstance(h.Or.Video,this),this.bindListeners()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"template",get:function(){return g()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.Yw,title:a.T.getPhrase(this.lang,"title"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.v,buttonText:a.T.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(c.ZV.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!0),p.PU.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!1),p.PU.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=i.map(e,(function(e){return"<strong>".concat(p.m$.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var r=a.T.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(r," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,r=this,o=p.PU.getSelected(this.folderTreeKey,this.customLibraries),a=o.get("id"),l=p.PU.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),u=this.model.libraries.filter((function(e){return e.get("type")===s.r.HostedLibrary})),c=this.model.categories;c&&c.last()&&(e=c.last().get("id")),u&&u.length&&(t=i.last(u).get("id"));var d={objectId:this.options.videoId,objectType:n.MasterVideo,sourceLibraryId:t,destinationLibraryId:l,metadata:{sourceCategoryId:e,destinationCategoryId:a}};this.videoDataService.addVideoToCustomLibrary(d,this.model,o,(function(){r.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(c.ZV.Disabled)&&this.hasAvailableLibraries())return{title:a.T.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary}));return i.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.PU.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.A({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.PU.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.PU.getSelected(this.libraryTreeKey,e),r=t.get("children")&&!!t.get("children").length,n=this.getUI("folderName");t&&r&&this.$(n).show(),this.showChildView("folderSelector",new d.Y({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"requiredResources",get:function(){return{customLibraries:y.T.libraries}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:v,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}}],l&&k(r.prototype,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l}(l.Q.G7)},99765:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.foundLibraries:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasAvailableLibraries:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.showNoFolderText:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(o=null!=t?t.options:t)?o.foundLibraries:o},data:i}))?o:"")+"</p>\n </div>\n"},4:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <span class="d-block pb-2">'+s((r.lang||t&&t.lang||l).call(a,"selectFolder",{name:"lang",hash:{},data:i}))+"</span>\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\n\n <span class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+' folder-name">'+s((r.lang||t&&t.lang||l).call(a,"folder",{name:"lang",hash:{},data:i}))+'</span>\n <div class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.folderSelector:o,t))+' mt-1 folder-selector-region"></div>\n'},5:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="'+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+'">'+a((r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+"</span>\n"},7:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return" <p>"+e.escapeExpression((r.lang||t&&t.lang||l).call(a,"noFolders1",{name:"lang",hash:{},data:i}))+"</p>\n <p>"+(null!=(o=(r.lang||t&&t.lang||l).call(a,"noFolders2",{name:"lang",hash:{},data:i}))?o:"")+"</p>\n"},9:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,null!=(o=r.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(9,i,0),data:i}))?o:""},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4567],{75583:function(e,t,r){"use strict";r.r(t),r.d(t,{AddToLibraryView:function(){return I}});var n,i=r(21161),o=r(21679),a=r(57857),l=r(31647);!function(e){e[e.MasterVideo=1]="MasterVideo",e[e.MasterClip=2]="MasterClip",e[e.MasterInteractive=3]="MasterInteractive"}(n||(n={}));var s=r(75459),u=r(10101),c=r(88172),d=r(75917),h=r(45390),f=r(67670),p=r(93569),b=r(79665),y=r(95061),m=r(99765),g=r.n(m),v={header:"S7CRE"};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 k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function w(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}var I=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,r){return t=T(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,S()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}(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&&C(e,t)}(t,e),r=t,l=[{key:"initialize",value:function(){this.videoDataService=o.u.getInstance(h.Or.Video,this),this.bindListeners()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"template",get:function(){return g()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.Yw,title:a.T.getPhrase(this.lang,"title"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.v,buttonText:a.T.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(c.ZV.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!0),p.PU.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!1),p.PU.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=i.map(e,(function(e){return"<strong>".concat(p.m$.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var r=a.T.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(r," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,r=this,o=p.PU.getSelected(this.folderTreeKey,this.customLibraries),a=o.get("id"),l=p.PU.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),u=this.model.libraries.filter((function(e){return e.get("type")===s.r.HostedLibrary})),c=this.model.categories;c&&c.last()&&(e=c.last().get("id")),u&&u.length&&(t=i.last(u).get("id"));var d={objectId:this.options.videoId,objectType:n.MasterVideo,sourceLibraryId:t,destinationLibraryId:l,metadata:{sourceCategoryId:e,destinationCategoryId:a}};this.videoDataService.addVideoToCustomLibrary(d,this.model,o,(function(){r.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(c.ZV.Disabled)&&this.hasAvailableLibraries())return{title:a.T.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary}));return i.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.PU.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.A({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.PU.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.PU.getSelected(this.libraryTreeKey,e),r=t.get("children")&&!!t.get("children").length,n=this.getUI("folderName");t&&r&&this.$(n).show(),this.showChildView("folderSelector",new d.Y({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"requiredResources",get:function(){return{customLibraries:y.T.libraries}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:v,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}}],l&&k(r.prototype,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l}(l.Q.G7)},99765:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({1:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.foundLibraries:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasAvailableLibraries:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.showNoFolderText:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(o=null!=t?t.options:t)?o.foundLibraries:o},data:i}))?o:"")+"</p>\n </div>\n"},4:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <span class="d-block pb-2">'+s((r.lang||t&&t.lang||l).call(a,"selectFolder",{name:"lang",hash:{},data:i}))+"</span>\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\n\n <span class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+' folder-name">'+s((r.lang||t&&t.lang||l).call(a,"folder",{name:"lang",hash:{},data:i}))+'</span>\n <div class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.folderSelector:o,t))+' mt-1 folder-selector-region"></div>\n'},5:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="'+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+'">'+a((r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+"</span>\n"},7:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return" <p>"+e.escapeExpression((r.lang||t&&t.lang||l).call(a,"noFolders1",{name:"lang",hash:{},data:i}))+"</p>\n <p>"+(null!=(o=(r.lang||t&&t.lang||l).call(a,"noFolders2",{name:"lang",hash:{},data:i}))?o:"")+"</p>\n"},9:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,null!=(o=r.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(9,i,0),data:i}))?o:""},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4591],{87120:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(57857),i="libraryEditor.utils",o={name:[{required:!0,msg:function(){return r.T.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.T.getPhrase(i,"libraryNameExceeds")}}]}},4591:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameLibraryView:function(){return S}});var r=n(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4591],{87120:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(57857),i="libraryEditor.utils",o={name:[{required:!0,msg:function(){return r.T.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.T.getPhrase(i,"libraryNameExceeds")}}]}},4591:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameLibraryView:function(){return S}});var r=n(43823),i=n(21679),o=n(57857),a=n(99249),u=n(31647),l=n(52076),c=n(10101),s=n(88172),f=n(45390),y=n(24539),b=n(93569),p=n(87120),h=n(34690),m=n.n(h);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var S=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=w(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],w(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&&O(e,t)}(t,e),n=t,u=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=i.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"RenameLibraryView"}},{key:"lang",get:function(){return"libraryEditor.renameLibrary"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return b.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.fS,modelValidation:p.Y},{behaviorClass:c.Bp},{behaviorClass:c.Yw,title:o.T.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.saveLibrary(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.model.get("name")};l.k.logUserAction(e,this.options.analyticsOptions)}},{key:"saveLibrary",value:function(){var e=this;this.libraryDataService.updateLibrary(this.model,(function(){e.triggerMethod("hide")}))}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model||(e.model=a.r.get("library:".concat(e.options.libraryId),t.toJSON(),{ctor:y.Z}))})),!!this.model}}],u&&v(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(u.Q.G7)},34690:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||a).call(o,"libraryName",{name:"lang",hash:{},data:i}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||a).call(o,"secondaryLibrary",{name:"lang",hash:{},data:i}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>'},useData:!0})}}]);
|