@clickview/library-editor 1.5.0 → 1.5.1-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/1086-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/1409-library-editor-c2f01466c5.chunk.css +2 -0
- package/dist/css/1832-library-editor-761fcb8755.chunk.css +2 -0
- package/dist/css/243-library-editor-ef57ff2380.chunk.css +4 -0
- package/dist/css/2526-library-editor-4e1576c40b.chunk.css +32 -0
- package/dist/css/2692-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/3427-library-editor-d2c6b60f4b.chunk.css +18 -0
- package/dist/css/3803-library-editor-780ab340b7.chunk.css +28 -0
- package/dist/css/409-library-editor-38562d76cd.chunk.css +10 -0
- package/dist/css/4198-library-editor-b1bd4cf413.chunk.css +2 -0
- package/dist/css/4269-library-editor-deb40a91d3.chunk.css +14 -0
- package/dist/css/435-library-editor-cc1aed9a29.chunk.css +10 -0
- package/dist/css/4353-library-editor-ab9b6e56f4.chunk.css +8 -0
- package/dist/css/4463-library-editor-31ad107af8.chunk.css +30 -0
- package/dist/css/469-library-editor-e4fb95eadc.chunk.css +80 -0
- package/dist/css/4810-library-editor-f78ee0ac30.chunk.css +24 -0
- package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +2 -0
- package/dist/css/5047-library-editor-616fd087e9.chunk.css +22 -0
- package/dist/css/514-library-editor-58793ed69e.chunk.css +2 -0
- package/dist/css/5248-library-editor-673111a906.chunk.css +30 -0
- package/dist/css/5356-library-editor-84c7439a3a.chunk.css +32 -0
- package/dist/css/5624-library-editor-6d43685081.chunk.css +14 -0
- package/dist/css/5747-library-editor-a3e5ded646.chunk.css +2 -0
- package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +2 -0
- package/dist/css/7053-library-editor-96752915ef.chunk.css +2 -0
- package/dist/css/8080-library-editor-fbbbd8b68b.chunk.css +14 -0
- package/dist/css/8343-library-editor-ecb0d73baf.chunk.css +20 -0
- package/dist/css/8420-library-editor-f8846ec2c2.chunk.css +40 -0
- package/dist/css/8762-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/8906-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/9298-library-editor-8876725368.chunk.css +12 -0
- package/dist/css/9383-library-editor-33aa5f52c7.chunk.css +32 -0
- package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +2 -0
- package/dist/css/library-editor-app-80e343eeaa.css +121 -0
- package/dist/en.json +1 -1
- package/dist/scripts/1010-187155c696.chunk.js +1 -0
- package/dist/scripts/1086-f133353b06.chunk.js +1 -0
- package/dist/scripts/1409-5012f7ef74.chunk.js +1 -0
- package/dist/scripts/1832-a7aa0ecef5.chunk.js +1 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js +2 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js.LICENSE.txt +9 -0
- package/dist/scripts/2098-ad8754cfb1.chunk.js +1 -0
- package/dist/scripts/243-395c50486d.chunk.js +1 -0
- package/dist/scripts/2526-3655c9227a.chunk.js +1 -0
- package/dist/scripts/259-ee63296af8.chunk.js +1 -0
- package/dist/scripts/2692-68c581fa09.chunk.js +1 -0
- package/dist/scripts/2733-953a077283.chunk.js +1 -0
- package/dist/scripts/2803-3d9658a39f.chunk.js +1 -0
- package/dist/scripts/2888-dcb3f9554c.chunk.js +1 -0
- package/dist/scripts/299-8561db699d.chunk.js +1 -0
- package/dist/scripts/3019-8c7fdaf749.chunk.js +1 -0
- package/dist/scripts/3096-81108d029e.chunk.js +1 -0
- package/dist/scripts/3122-ef94efcef2.chunk.js +1 -0
- package/dist/scripts/3400-3a56ad67d9.chunk.js +1 -0
- package/dist/scripts/3427-c1019a852e.chunk.js +1 -0
- package/dist/scripts/3639-0889b8796c.chunk.js +1 -0
- package/dist/scripts/3763-66fb4f7ab9.chunk.js +1 -0
- package/dist/scripts/3803-ecb9aa097f.chunk.js +1 -0
- package/dist/scripts/400-1e23b44b3d.chunk.js +1 -0
- package/dist/scripts/409-7b2d72c33c.chunk.js +1 -0
- package/dist/scripts/4198-f2de3da811.chunk.js +1 -0
- package/dist/scripts/4201-a43528d101.chunk.js +1 -0
- package/dist/scripts/4245-85613e8ec8.chunk.js +1 -0
- package/dist/scripts/4269-6f9e82e570.chunk.js +1 -0
- package/dist/scripts/435-aacf684517.chunk.js +1 -0
- package/dist/scripts/4353-ef2f79f90d.chunk.js +1 -0
- package/dist/scripts/4463-71fd94bfb3.chunk.js +1 -0
- package/dist/scripts/4591-a6e8818803.chunk.js +1 -0
- package/dist/scripts/469-a5b931f910.chunk.js +2 -0
- package/dist/scripts/469-a5b931f910.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/4810-2d812b1847.chunk.js +1 -0
- package/dist/scripts/4860-1db82c2cda.chunk.js +1 -0
- package/dist/scripts/4885-0de9aceda4.chunk.js +1 -0
- package/dist/scripts/5047-4ca0d480d2.chunk.js +1 -0
- package/dist/scripts/514-e2257e58bd.chunk.js +1 -0
- package/dist/scripts/5248-b1f7b8d9fd.chunk.js +1 -0
- package/dist/scripts/5356-7abbf73447.chunk.js +1 -0
- package/dist/scripts/5412-6a3117fa77.chunk.js +1 -0
- package/dist/scripts/5418-94a6b15be1.chunk.js +1 -0
- package/dist/scripts/546-9f0093aa66.chunk.js +1 -0
- package/dist/scripts/5624-8aa90b5f57.chunk.js +1 -0
- package/dist/scripts/5747-9a64e93671.chunk.js +1 -0
- package/dist/scripts/6093-c2088a505f.chunk.js +1 -0
- package/dist/scripts/6420-218dd42b2a.chunk.js +1 -0
- package/dist/scripts/6774-de07d107a4.chunk.js +1 -0
- package/dist/scripts/6788-f6b0a8cc33.chunk.js +1 -0
- package/dist/scripts/693-26dce53392.chunk.js +1 -0
- package/dist/scripts/7053-4c386601c3.chunk.js +1 -0
- package/dist/scripts/7190-6574587b99.chunk.js +1 -0
- package/dist/scripts/7251-a247842ccb.chunk.js +2 -0
- package/dist/scripts/7251-a247842ccb.chunk.js.LICENSE.txt +13 -0
- package/dist/scripts/733-3dc29f5775.chunk.js +1 -0
- package/dist/scripts/8074-2f29dcbf11.chunk.js +1 -0
- package/dist/scripts/8080-34a458a81c.chunk.js +1 -0
- package/dist/scripts/8343-5ea346ff5b.chunk.js +1 -0
- package/dist/scripts/8362-a0a23ba68a.chunk.js +1 -0
- package/dist/scripts/8420-1a5b232743.chunk.js +1 -0
- package/dist/scripts/8726-7e3e7b6535.chunk.js +1 -0
- package/dist/scripts/8727-64c035a56f.chunk.js +1 -0
- package/dist/scripts/8762-02bdc15632.chunk.js +1 -0
- package/dist/scripts/8906-9920a2a83d.chunk.js +1 -0
- package/dist/scripts/9167-a9d920d75e.chunk.js +1 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js +2 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js.LICENSE.txt +17 -0
- package/dist/scripts/9298-8438cbb300.chunk.js +1 -0
- package/dist/scripts/9355-3a23e503c3.chunk.js +1 -0
- package/dist/scripts/9357-f0b8bc48ad.chunk.js +1 -0
- package/dist/scripts/9383-69a59536d6.chunk.js +1 -0
- package/dist/scripts/9592-de190aca67.chunk.js +1 -0
- package/dist/scripts/9695-dd63b52766.chunk.js +1 -0
- package/dist/scripts/bundle-60541f84c7.min.js +2 -0
- package/dist/scripts/bundle-60541f84c7.min.js.LICENSE.txt +1 -0
- package/dist/scripts/polyfills-c62d0e7aec.min.js +1 -0
- package/package.json +3 -25
- package/typings/libs/google-api.d.ts +5 -0
- package/typings/libs/microsoft-teams.d.ts +3 -0
- package/typings/libs/videojs-contrib-quality-levels.d.ts +31 -0
- package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
- package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
- package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
- package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
- package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
- package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
- package/dist/css/15-library-editor-6fd06eea2a.chunk.css +0 -4
- package/dist/css/16-library-editor-6b9ba08288.chunk.css +0 -4
- package/dist/css/17-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/18-library-editor-89ad109c63.chunk.css +0 -2
- package/dist/css/22-library-editor-2bd52b5a32.chunk.css +0 -34
- package/dist/css/23-library-editor-a7633bece5.chunk.css +0 -26
- package/dist/css/24-library-editor-459b106aec.chunk.css +0 -24
- package/dist/css/25-library-editor-33acb75c24.chunk.css +0 -18
- package/dist/css/26-library-editor-b180014922.chunk.css +0 -18
- package/dist/css/27-library-editor-4c64aed388.chunk.css +0 -16
- package/dist/css/28-library-editor-b72d0e2d36.chunk.css +0 -10
- package/dist/css/29-library-editor-de55d150ef.chunk.css +0 -10
- package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
- package/dist/css/30-library-editor-b0e16f882d.chunk.css +0 -8
- package/dist/css/31-library-editor-10f54d8a75.chunk.css +0 -8
- package/dist/css/32-library-editor-9dfe56513f.chunk.css +0 -10
- package/dist/css/36-library-editor-d18b8a3619.chunk.css +0 -4
- package/dist/css/37-library-editor-8b225d15f4.chunk.css +0 -4
- package/dist/css/38-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor-9a2d011500.chunk.css +0 -4
- package/dist/css/41-library-editor-234f39ca94.chunk.css +0 -4
- package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
- package/dist/css/43-library-editor-ca20e9d127.chunk.css +0 -2
- package/dist/css/44-library-editor-aa3e9bea9a.chunk.css +0 -2
- package/dist/css/45-library-editor-7b1cd4a5cc.chunk.css +0 -2
- package/dist/css/46-library-editor-f1820aeeff.chunk.css +0 -2
- package/dist/css/47-library-editor-547abc7492.chunk.css +0 -2
- package/dist/css/48-library-editor-3f6fb7f3ab.chunk.css +0 -2
- package/dist/css/49-library-editor-467e156ba3.chunk.css +0 -2
- package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
- package/dist/css/51-library-editor-7aca18778d.chunk.css +0 -2
- package/dist/css/52-library-editor-81c5aced1f.chunk.css +0 -2
- package/dist/css/56-library-editor-d3b8bb68f9.chunk.css +0 -2
- package/dist/css/57-library-editor-94a8c4e7fa.chunk.css +0 -2
- package/dist/css/58-library-editor-61808b02a0.chunk.css +0 -2
- package/dist/css/59-library-editor-c49b3847df.chunk.css +0 -2
- package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
- package/dist/css/60-library-editor-8f5e04b64a.chunk.css +0 -2
- package/dist/css/61-library-editor-b64f6f3e74.chunk.css +0 -2
- package/dist/css/63-library-editor-7f123672b2.chunk.css +0 -2
- package/dist/css/64-library-editor-61e4c24a7b.chunk.css +0 -2
- package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
- package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
- package/dist/css/library-editor-app-bc12f8ea16.css +0 -135
- package/dist/scripts/0-01f04d6d56.chunk.js +0 -1
- package/dist/scripts/1-55d605c2c4.chunk.js +0 -1
- package/dist/scripts/10-3f2a274869.chunk.js +0 -1
- package/dist/scripts/11-f164d2f418.chunk.js +0 -11
- package/dist/scripts/12-c1693e5672.chunk.js +0 -1
- package/dist/scripts/13-c2b9880d80.chunk.js +0 -1
- package/dist/scripts/14-a8bbfcc005.chunk.js +0 -1
- package/dist/scripts/15-46f82eb565.chunk.js +0 -1
- package/dist/scripts/16-b2e034d835.chunk.js +0 -1
- package/dist/scripts/17-cf12ff6692.chunk.js +0 -1
- package/dist/scripts/18-3d7b2bb66b.chunk.js +0 -1
- package/dist/scripts/19-4050e84d9e.chunk.js +0 -1
- package/dist/scripts/2-cd7f1d10b5.chunk.js +0 -1
- package/dist/scripts/22-10eeb6ed95.chunk.js +0 -1
- package/dist/scripts/23-3176524b2e.chunk.js +0 -1
- package/dist/scripts/24-2620726cc2.chunk.js +0 -1
- package/dist/scripts/25-4277b864b4.chunk.js +0 -1
- package/dist/scripts/26-29a13a6b02.chunk.js +0 -1
- package/dist/scripts/27-66f129aade.chunk.js +0 -1
- package/dist/scripts/28-2cb1321628.chunk.js +0 -1
- package/dist/scripts/29-7d3e020b57.chunk.js +0 -1
- package/dist/scripts/3-408b6c2e20.chunk.js +0 -1
- package/dist/scripts/30-59dc5e292e.chunk.js +0 -1
- package/dist/scripts/31-e5be7f6d55.chunk.js +0 -1
- package/dist/scripts/32-9d14a73828.chunk.js +0 -1
- package/dist/scripts/33-2b7afd675e.chunk.js +0 -1
- package/dist/scripts/34-3449671540.chunk.js +0 -1
- package/dist/scripts/35-a553d5a148.chunk.js +0 -1
- package/dist/scripts/36-e494df0f54.chunk.js +0 -1
- package/dist/scripts/37-4f2ae73dc5.chunk.js +0 -1
- package/dist/scripts/38-a569e85303.chunk.js +0 -1
- package/dist/scripts/39-04168942c9.chunk.js +0 -1
- package/dist/scripts/4-512c8f05c3.chunk.js +0 -1
- package/dist/scripts/40-203241bd8d.chunk.js +0 -1
- package/dist/scripts/41-5d00db5a16.chunk.js +0 -1
- package/dist/scripts/42-493f93fd61.chunk.js +0 -1
- package/dist/scripts/43-f03b40f6bc.chunk.js +0 -1
- package/dist/scripts/44-cdca04fbae.chunk.js +0 -1
- package/dist/scripts/45-2f3e679889.chunk.js +0 -1
- package/dist/scripts/46-af1a164c00.chunk.js +0 -1
- package/dist/scripts/47-bd07b4acee.chunk.js +0 -1
- package/dist/scripts/48-f709ce0290.chunk.js +0 -1
- package/dist/scripts/49-dafac4cd90.chunk.js +0 -1
- package/dist/scripts/5-706a90d50a.chunk.js +0 -1
- package/dist/scripts/50-9d66026f2b.chunk.js +0 -1
- package/dist/scripts/51-f37ca8fa1b.chunk.js +0 -1
- package/dist/scripts/52-d1d8bedaad.chunk.js +0 -1
- package/dist/scripts/53-a42f975523.chunk.js +0 -1
- package/dist/scripts/54-d02dcc88dd.chunk.js +0 -1
- package/dist/scripts/55-37223f5e6c.chunk.js +0 -1
- package/dist/scripts/56-a90ebf7e95.chunk.js +0 -1
- package/dist/scripts/57-952cbdd523.chunk.js +0 -1
- package/dist/scripts/58-4d4d2ab11c.chunk.js +0 -1
- package/dist/scripts/59-6ce8d22854.chunk.js +0 -1
- package/dist/scripts/6-90ce8bfc8e.chunk.js +0 -1
- package/dist/scripts/60-18494da9d7.chunk.js +0 -1
- package/dist/scripts/61-86685720a1.chunk.js +0 -1
- package/dist/scripts/62-96300609c4.chunk.js +0 -1
- package/dist/scripts/63-5cf8bf730e.chunk.js +0 -1
- package/dist/scripts/64-a9e7449778.chunk.js +0 -1
- package/dist/scripts/65-55bda72c96.chunk.js +0 -1
- package/dist/scripts/66-55a1693f05.chunk.js +0 -1
- package/dist/scripts/67-86aac165f9.chunk.js +0 -1
- package/dist/scripts/68-fed6d09e61.chunk.js +0 -1
- package/dist/scripts/69-3ae70614ff.chunk.js +0 -1
- package/dist/scripts/7-1dc25bf167.chunk.js +0 -1
- package/dist/scripts/70-a06f10c030.chunk.js +0 -1
- package/dist/scripts/71-879b44e721.chunk.js +0 -1
- package/dist/scripts/72-68e8c56940.chunk.js +0 -1
- package/dist/scripts/73-2e1903d7ed.chunk.js +0 -1
- package/dist/scripts/74-8e2e1cb7a9.chunk.js +0 -1
- package/dist/scripts/8-02b96935fe.chunk.js +0 -1
- package/dist/scripts/9-ae30afaedb.chunk.js +0 -1
- package/dist/scripts/bundle-dec56a0065.min.js +0 -10
- package/dist/scripts/polyfills-0fbc27cd8a.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[0],{1054:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1055:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression;return'<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1068:function(t,e,n){"use strict";var o=n(1054),r=n.n(o),i=n(1055),s=n.n(i);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})(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(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)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!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&&c(t,e)}(a,t);var e,n,o,i=u(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}))},1109:function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),s=n(16),a=n(4),l=n(12),c=n(0),u=n(1110),p=n(1116),f=n(1247),h=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(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,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!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&&b(t,e)}(g,t);var e,n,f,d=v(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.a,ui:"anchor",channelNames:[c.w.VIDEO_DRAG_DROP,c.w.FOLDER_DRAG_DROP],analyticsOptions:{location:a.LocationContext.LeftNav}},{behaviorClass:p.a}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h.a}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return l.f.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return l.f.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-white font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new R(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:s.a.getSvg(s.b.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(e.prototype,n),f&&y(e,f),Object.defineProperty(e,"prototype",{writable:!1}),g}(r.a.Component),O=n(1209),k=n.n(O);function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _(t,e){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=j(t);if(e){var r=j(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return R}));var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(s,t);var e,n,r,i=x(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),t.styles=o.extend({},k.a,t.styles),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return w}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&P(e.prototype,n),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.a.ComponentCollection)},1110:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),s=n(155);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})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(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)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!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&&u(t,e)}(f,t);var e,n,i,a=p(f);function f(){return l(this,f),a.apply(this,arguments)}return e=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.droppable,"ui-droppable-active":s.active,"ui-droppable-hover":s.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.a.Behavior)},1116:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(1),r=n(6),i=n(2),s=n(16),a=n(0),l=n(1068),c=n(1121),u=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})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(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)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!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)}(p,t);var e,n,i,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.c.draggable,"ui-draggable-handle":l.c.handle,"ui-draggable-disabled":l.c.disabled,"ui-draggable-dragging":l.c.dragging}}},{key:"helper",value:function(){return new l.b({text:this.view.model.get("name"),svg:s.a.getSvg(s.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(e.prototype,n),i&&h(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a.Behavior)},1121:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1209:function(t,e,n){t.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},1247:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<div class="position-relative '+a(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+a(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+a(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+a(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[1],{1057:function(e,t,n){"use strict";var r=n(1061),i=n(1058),a=(n(1059),n(3),n(1062)),o=(n(1064),n(1060));n.d(t,"a",(function(){return r.a})),n.d(t,"d",(function(){return i.g})),n.d(t,"g",(function(){return i.j})),n.d(t,"f",(function(){return i.i})),n.d(t,"c",(function(){return i.f})),n.d(t,"e",(function(){return i.h})),n.d(t,"b",(function(){return a.a})),n.d(t,"h",(function(){return o.a}))},1058:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return E})),n.d(t,"h",(function(){return b}));var r=n(2),i=n(1),a=n(19),o=n(29),s=n(3),u="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=i.reduce(e,(function(e,n,r){var a=t[r];return n||a?i.isObject(n)&&i.isObject(a)&&!i.isUndefined(n.id)&&n.id===a.id?e:i.isArray(n)?d(n,a).length?e.concat(r):e:i.isEqual(n,a)?e:e.concat(r):e}),[]);if(n.length)return i.object(i.map(n,(function(n){return i.isArray(t[n])?[n,d(e[n],t[n])]:[n,t[n]]})))}}function d(e,t){var n=[];return i.each(t,(function(t){var r=i.findWhere(e,{id:t.id});if(!i.isUndefined(r)||0!==Object.keys(t).length){var a=i.isUndefined(r)?t:l(r,t);a&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(a.id=t.id,n.push(a))))}})),n}var f={getChanges:function(e,t){var n=l(i.omit(e.toJSON(),c),i.omit(t.toJSON(),c));if(n)return i.object(i.map(i.keys(n),(function(e){return[e,f.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(i.isObject(t)&&i.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":case"seriesSort":return;default:r.a.ErrorHelper.throw(new a.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var a=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(n),(function(e){a.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(i.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var s=e.get(o);(s instanceof r.a.Model||s instanceof r.a.NestedModel)&&s.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return i.each(i.keys(e.toJSON()),(function(a){if(i.contains(n,a)){var o=e.get(a).map((function(e){return e.id})),s=t.get(a).map((function(e){return e.id})),u=i.filter(o,(function(e){return e&&!i.contains(s,e)}));u.length&&(r[a]=u)}})),r}},p={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"videoTitleRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?s.a.getPhrase(u,"episodeNumberLessThanOne"):e&&e>2147483647?s.a.getPhrase(u,"episodeNumberExceeds"):e%1!=0?s.a.getPhrase(u,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?s.a.getPhrase(u,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":s.a.getPhrase(u,"seasonNoEpisodeNumber")}},h=o().year(),y={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>h?s.a.getPhrase(u,"validProductionYears",{currentYear:h}):void 0):""}},v={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"resourceNameRequired")}}]},g={suggestion:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditRequired")}},{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditReasonRequired")}},{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"suggestEditReasonExceeds")}}]},b={number:function(e){return e?+e<1?s.a.getPhrase(u,"seasonLessThanOne"):+e>3e3?s.a.getPhrase(u,"seasonExceeds"):+e%1!=0?s.a.getPhrase(u,"seasonNotWhole"):"":s.a.getPhrase(u,"seasonRequired")}},m={empty:function(){return s.a.getPhrase(u,"suggestEditRatingRequired")},original:function(){return s.a.getPhrase(u,"suggestEditRatingInvalid")}},E={url:[{required:!0,pattern:"url",msg:function(){return s.a.getPhrase(u,"linkUrlRequired")}},{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return s.a.getPhrase(u,"linkNameRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"linkNameExceeds")}}]},P={name:[{maxLength:128,msg:function(){return s.a.getPhrase(u,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"fieldValueExceeds")}}]},k={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":s.a.getPhrase(u,"fieldsInvalid"):""}};function w(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(48),a=n(169),o=n(3),s="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.a.getPhrase(s,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(s,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?i.a.calculateDestinationFolderDepth(e,n,t)>a.a.MAX_FOLDER_DEPTH?o.a.getPhrase(s,"maxFolderDepth",{maxDepth:a.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(s,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,i=e.folder,a=e.collection;return t&&n?r.extend({},u,c(i,a)):t?u:n?c(i,a):void 0}},1060:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(16),i=n(3),a=n(201),o=n(1077),s=n(63);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var d={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case s.a.HostedLibrary:case s.a.CustomLibrary:return e.get("name");case s.a.Exchange:return i.a.getPhrase(l,"exchange");case s.a.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case s.a.HostedLibrary:case s.a.CustomLibrary:return"bg-info";case s.a.Exchange:return"bg-green";case s.a.Workspace:default:return"bg-red"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(u(t={},c.Pdf,r.b.FilePDF),u(t,c.Image,r.b.FileImg),u(t,c.PowerPoint,r.b.FilePowerpoint),u(t,c.Document,r.b.FileWord),u(t,c.Excel,r.b.FileExcel),u(t,c.Zip,r.b.FileZip),u(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return i.a.getPhrase(l,"pdf");case c.Image:return i.a.getPhrase(l,"image");case c.Document:return i.a.getPhrase(l,"document");case c.Excel:return i.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return i.a.getPhrase(l,"presentation");case c.Zip:return i.a.getPhrase(l,"zipArchive");case c.File:return i.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:d.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case a.MetadataType.VideoTitle:t+="VideoTitle";break;case a.MetadataType.Description:t+="Description";break;case a.MetadataType.Rating:t+="Rating";break;case a.MetadataType.SeriesTitle:t+="SeriesTitle";break;case a.MetadataType.Season:t+="SeasonNumber";break;case a.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case a.MetadataType.BroadcastDate:t+="BroadcastDate";break;case a.MetadataType.Channel:t+="Channel";break;case a.MetadataType.ProductionYear:t+="ProductionYear";break;case a.MetadataType.Distributors:t+="Distributors";break;case a.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case a.MetadataType.Directors:t+="Directors";break;case a.MetadataType.Producers:t+="Producers";break;case a.MetadataType.Other:t+="Other"}return i.a.getPhrase(l,t)}}},1061:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(12),a=n(3),o="libraryEditor.utils",s={isValidChapterTime:function(e,t,n,a){if(a){if(!r.isNumber(t))return u.StartTime.Invalid();if(t<0)return u.StartTime.Invalid();if(t>i.x.millisecondsToSeconds(n))return u.StartTime.Exceeds();if(a.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return u.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?u.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?u.Name.Exists():r.isEmpty(t.trim())?u.Name.Invalid():void 0:u.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},u={Name:{Invalid:function(){return a.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return a.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return a.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return a.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1062:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i="libraryEditor.utils",a={name:[{required:!0,msg:function(){return r.a.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(i,"libraryNameExceeds")}}]}},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(1058),a=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return a("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return a("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?a("episodeNumberLessThanOne"):e&&e>255?a("episodeNumberExceeds"):e&&e%1!=0?a("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?a("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":a("seasonNoEpisodeNumber")},productionYear:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.e.productionYear.apply(null,t)}}},1077:function(e,t,n){"use strict";function r(e){return(r="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(c,e);var t,n,r,u=s(c);function c(){return a(this,c),u.apply(this,arguments)}return t=c,n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(2).a.Collection)},1202:function(e,t,n){"use strict";var r=n(1),i=n(6),a=n(1235),o={PLAY:"cv-player-play",PAUSE:"cv-player-pause",VIDEO_END:"cv-player-ended",VOLUME_CHANGE:"cv-player-volumechange",CHAPTER_CHANGE:"cv-player-chapterchange",TIME_UPDATE:"cv-player-timeupdate",FULLSCREEN_CHANGE:"cv-player-fullscreenchange",CLIP_POINTS_UPDATE:"cv-player-cliptoolupdate",QUALITY_CHANGE:"cv-player-qualitychange",QUERY_CALLBACK:"cv-player-querycallback",SUBTITLES_ENABLED:"cv-player-hassubtitles",SUBTITLES:"cv-player-subtitles",PONG:"cv-player-pong",FULLSCREEN_CLICK:"_cvwp:fsc",DEVICES_BTN_CLICK:"_cvwp:devices:click"},s={PLAY:"cv-player-play",PAUSE:"cv-player-pause",SET_VOLUME:"cv-player-setvolume",NEXT_CHAPTER:"cv-player-nextchapter",PREV_CHAPTER:"cv-player-previouschapter",CHANGE_CHAPTER:"cv-player-changechapter",TOGGLE_CLIPPING:"cv-player-cliptooltoggle",SET_CLIP_POINTS:"cv-player-cliptoolset",CLIP:"cv-player-setclip",CLEAR_CLIP:"cv-player-clearclip",SEEK_TO:"cv-player-seekto",CONTROLS:"cv-player-showcontrols",SUBTITLES:"cv-player-subtitles",SET_QUALITY:"cv-player-setquality",QUERY:"cv-player-query",ADD_LISTENER:"cv-player-addlistener",REMOVE_LISTENER:"cv-player-removelistener",PING:"cv-player-ping",TOGGLE_DEVICES_BTN:"_cv:toggledevicesbtn",SHOW_DEVICES_BTN:"_cv:showdevicesbtn",SHOW_FS_BTN:"_cv:showfsbtn"},u={GET_AVAILABLE_QUALITIES:"getAvailableQualities",GET_CURRENT_QUALITY:"currentQuality",IS_PAUSED:"paused",GET_CURRENT_TIME:"currentTime",GET_CHAPTERS:"getChapters",HAS_METADATA_CHAPTERS:"hasMetadataChapters"},c=n(2),l=n(30),d=n(19),f=n(53),p=n(16),h=n(1048),y=n(0),v=function(e){return e instanceof c.a.Model||e instanceof c.a.Collection||e instanceof i.Model||e instanceof i.Collection?e.toJSON():e},g=n(4),b=n(126),m=n(42);function E(e){if(e&&e.code)return e.code}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function k(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var w=function(e){var t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=E(t.rating),i=P(t.series),a=k(t.categories),o=P(t.owner,{ignoreTitle:!0}),s=P(t.playlist);return r&&(n.rating=r),o&&(n.ownerId=o.id),i&&(n.seriesId=i.id,n.series=i.title),a&&(n.category=a.title),s&&(n.playlist=s),n};function T(e){return(T="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})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(l,e);var t,n,i,a=N(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).captureInterval=60,t}return t=l,(n=[{key:"name",get:function(){return"VideoAnalyticsTracker"}},{key:"initialize",value:function(){this.eventsApi=this.options.eventsApi,this.options.video||c.a.ErrorHelper.throw(new d.a("Video logging requires video to be passed in.")),this.model=this.options.video,this.playbackStatus=this.getNewPlaybackStatus(),this.options.captureInterval&&(this.captureInterval=this.options.captureInterval),this.bindListeners(),this.getChapters()}},{key:"bindListeners",value:function(){this.eventsApi.on(o.TIME_UPDATE,r.bind(this.onPlayerTimeUpdate,this)),this.eventsApi.on(o.VIDEO_END,r.bind(this.onEnd,this)),this.eventsApi.on(o.FULLSCREEN_CHANGE,r.bind(this.onFullScreen,this)),this.eventsApi.on(o.CHAPTER_CHANGE,r.bind(this.onChapterChange,this))}},{key:"unbindListeners",value:function(){this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.FULLSCREEN_CHANGE),this.eventsApi.off(o.CHAPTER_CHANGE)}},{key:"getChapters",value:function(){var e=this;this.queryWebplayer(u.GET_CHAPTERS,(function(t,n){e.setInitialChapter(n),e.setVideoDuration(n)}))}},{key:"queryWebplayer",value:function(e,t){var n=r.uniqueId(this.name),i="".concat(o.QUERY_CALLBACK,"-").concat(n);this.eventsApi.one(i,t),this.eventsApi.trigger(s.QUERY,e,n)}},{key:"onEnd",value:function(){this.setCurrentPosition(this.playbackStatus.totalDuration),this.logVerbose(g.PlaybackDescriptor.Finish),this.resetPlaybackStatus()}},{key:"onFullScreen",value:function(e,t){var n=t?g.PlaybackDescriptor.FullScreenEnter:g.PlaybackDescriptor.FullScreenExit;this.logVerbose(n)}},{key:"onPlayerTimeUpdate",value:function(e,t){var n=this;this.queryWebplayer(u.IS_PAUSED,(function(e,r){n.updateTime(t,r)}))}},{key:"onChapterChange",value:function(e,t){r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"updateTime",value:function(e,t){var n=Math.floor(e);n&&n!==this.getCurrentPositon()&&(this.setCurrentPosition(n),t||(this.playbackHasStarted()||(this.logVerbose(g.PlaybackDescriptor.Start),this.setPlaybackStarted()),this.incrementWatchTime(),this.getWatchTime()%this.captureInterval==0&&this.logVerbose(g.PlaybackDescriptor.Playback),8===this.getWatchTime()&&this.logStream()))}},{key:"setInitialChapter",value:function(e){var t=r.find(e,(function(e){return!0===e.current}));r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"setVideoDuration",value:function(e){var t=r.reduce(e,(function(e,t){return e+t.duration}),0);!r.isNaN(t)&&r.isNumber(t)&&(this.playbackStatus.totalDuration=Math.floor(t))}},{key:"setCurrentPosition",value:function(e){this.playbackStatus.position=e}},{key:"getCurrentPositon",value:function(){return this.playbackStatus.position}},{key:"setCurrentChapter",value:function(e){this.playbackStatus.chapter=e}},{key:"setPlaybackStarted",value:function(){this.playbackStatus.hasStarted=!0}},{key:"playbackHasStarted",value:function(){return this.playbackStatus.hasStarted}},{key:"getWatchTime",value:function(){return this.playbackStatus.totalWatched}},{key:"incrementWatchTime",value:function(){this.playbackStatus.totalWatched+=1}},{key:"getNewPlaybackStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,n=e.watched;return{position:0,chapter:0,hasStarted:!1,totalWatched:n||0,totalDuration:t||0}}},{key:"resetPlaybackStatus",value:function(){var e={duration:this.playbackStatus.totalDuration,watched:this.playbackStatus.totalWatched};this.playbackStatus=this.getNewPlaybackStatus(e)}},{key:"unbindUnload",value:function(){$(window).off("unload")}},{key:"bindUnload",value:function(){$(window).on("unload",r.bind(this.logUnload,this))}},{key:"logUnload",value:function(){this.playbackHasStarted()&&this.logVerbose(g.PlaybackDescriptor.Terminate)}},{key:"logStream",value:function(){var e=m.a.buildActionContext(this.options.analyticsOptions),t=w(this.getPlaybackData());b.a.log(g.UserAction.Stream,t,e)}},{key:"logVerbose",value:function(e){}},{key:"getPlaybackData",value:function(){return{model:v(this.model),playbackStatus:r.omit(this.playbackStatus,"hasStarted")}}},{key:"onDestroy",value:function(){this.unbindListeners(),this.unbindUnload(),this.logUnload()}}])&&S(t.prototype,n),i&&S(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(c.a.Service),I=n(1236),D=n.n(I),L=n(1237),R=n.n(L);function M(e){return(M="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})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var i=q(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return V}));var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(g,e);var t,n,u,v=j(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),v.call(this,e)}return t=g,(n=[{key:"elements",get:function(){return{iframe:"iframe"}}},{key:"name",get:function(){return"WebPlayerView"}},{key:"template",get:function(){return D.a}},{key:"className",get:function(){return"".concat(R.a.webPlayerContainer," embed-responsive embed-responsive-16by9")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"defaults",get:function(){return{captureAnalytics:!0,showDevicesButton:!1}}},{key:"viewModelDefaults",get:function(){return{width:640,height:360,autoplay:!!this.options.autoplay,parameters:{s:!1,bc:!1,bf:!1,uid:this.options.currentUser.get("id"),cid:this.options.currentUser.get("customerId")},webPlayerHost:this.options.webPlayerUrl}}},{key:"initialize",value:function(){this.enableIeFs=this.isTop(),this.getViewModel()}},{key:"seekTo",value:function(e){this.eventsApi&&this.eventsApi.trigger(s.SEEK_TO,e)}},{key:"seekToChapter",value:function(e){this.eventsApi&&this.eventsApi.trigger("cv-player-changechapter",e)}},{key:"getViewModel",value:function(){var e=this.model.get("id");e||(e=this.model.get("trackingCode")),this.viewModel=l.a.get("".concat(y.y.NAME,"-").concat(e)),this.viewModel.get("initialized")||this.initViewModel(),this.setUrl()}},{key:"initViewModel",value:function(){var e=this.model.pick("id");e.id||(e=this.model.pick("trackingCode")),e.id||e.trackingCode||c.a.ErrorHelper.throw(new d.a("Must provide either a master id or a tracking code to ".concat(this.name)));var t=r.extend({},this.viewModelDefaults,e,this.viewModel.toJSON(),{initialized:!0});this.viewModel.set(t)}},{key:"initWebPlayerEvents",value:function(){if(this.enableIeFs){var e=this.getUI("iframe");e&&0!==e.length&&e.on("load",this.bindWebPlayerEvents.bind(this))}}},{key:"bindWebPlayerEvents",value:function(){if(!this.iframeReady){var e=this.getUI("iframe").get(0);this.eventsApi=new h.CVEventsApi(e.contentWindow),this.eventsApi.on(o.PONG,this.onPong.bind(this)),this.eventsApi.trigger(s.PING),this.eventsApi.on(o.FULLSCREEN_CLICK,this.onFullscreenChange.bind(this)),this.eventsApi.trigger(s.SHOW_FS_BTN),this.eventsApi.on(o.TIME_UPDATE,this.onTimeUpdate.bind(this)),this.eventsApi.on(o.PLAY,this.onPlay.bind(this)),this.eventsApi.on(o.PAUSE,this.onPause.bind(this)),this.eventsApi.on(o.VIDEO_END,this.onEnded.bind(this)),this.options.showDevicesButton&&(this.eventsApi.on(o.DEVICES_BTN_CLICK,this.showDeviceToggle.bind(this)),this.eventsApi.trigger(s.SHOW_DEVICES_BTN)),this.options.captureAnalytics&&(this.tracker=new O({video:this.model.toJSON(),eventsApi:this.eventsApi,analyticsOptions:this.options.analyticsOptions}))}}},{key:"unbindWebPlayerEvents",value:function(){this.eventsApi&&(this.eventsApi.off(o.FULLSCREEN_CLICK),this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.PLAY),this.eventsApi.off(o.PAUSE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.PONG),this.eventsApi.off(o.DEVICES_BTN_CLICK))}},{key:"setUrl",value:function(){var e="".concat(this.viewModel.get("webPlayerHost"),"embed"),t=r.omit(this.viewModel.get("parameters"),["p","vid"])||{};t.a=!!this.viewModel.get("autoplay");var n=this.viewModel.get("id");n&&(t.vid=n);var i=this.viewModel.get("trackingCode");i&&(t.p=i),this.viewModel.get("currenttime")&&(t.t=this.viewModel.get("currenttime"),t.a=!this.viewModel.get("paused"));var o=f.a.urlBuilder(e,t),s=Object(a.signUrl)(o,{timestamp:!0});this.viewModel.set({url:s})}},{key:"isTop",value:function(){return window.top===window}},{key:"onTimeUpdate",value:function(e,t){this.viewModel.set("ready",!0),this.viewModel.set("currenttime",t)}},{key:"onPlay",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!1)}},{key:"onPause",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!0)}},{key:"onEnded",value:function(){this.viewModel.trigger("ended")}},{key:"onPong",value:function(){this.iframeReady=!0,this.viewModel.set("ready",!0),i.Radio.channel(this.channelName).trigger("loaded"),this.options.parentChannelName&&i.Radio.channel(this.options.parentChannelName).trigger("webplayer:loaded")}},{key:"onFullscreenChange",value:function(e,t,n){t?this.requestFs(n):this.cancelFs(n)}},{key:"requestFs",value:function(e){e||$("html").addClass("player-fullscreen")}},{key:"cancelFs",value:function(e){e||$("html").removeClass("player-fullscreen")}},{key:"showDeviceToggle",value:function(e){this.viewModel.trigger("showDevices",!!e)}},{key:"query",value:function(e,t){var n=this;if(this.iframeReady){var i=r.uniqueId("cveventsapi");this.eventsApi.one("".concat(o.QUERY_CALLBACK,"-").concat(i),(function(e,n){t(n)})),this.eventsApi.trigger(s.QUERY,e,i)}else this.listenToOnce(this.channelName,"loaded",(function(){return n.query(e,t)}))}},{key:"viewOptions",value:function(){return r.extend({},{styles:R.a,playSvg:p.a.getSvg(p.b.Play)},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.initWebPlayerEvents()}},{key:"onBeforeDestroy",value:function(){this.unbindWebPlayerEvents(),this.tracker&&this.tracker.destroy()}}])&&x(t.prototype,n),u&&x(t,u),Object.defineProperty(t,"prototype",{writable:!1}),g}(c.a.Component)},1236:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var a,o=e.lambda,s=e.escapeExpression;return'<iframe class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.webPlayer:a,t))+' embed-responsive-item" id="'+s(o(null!=(a=null!=t?t.options:t)?a.id:a,t))+'" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay; fullscreen" frameborder="0" width="'+s(o(null!=(a=null!=t?t.options:t)?a.width:a,t))+'" height="'+s(o(null!=(a=null!=t?t.options:t)?a.height:a,t))+'" src="'+s(o(null!=(a=null!=t?t.options:t)?a.url:a,t))+'"></iframe>\r\n<div class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.svgContainer:a,t))+'">'+(null!=(a=o(null!=(a=null!=t?t.options:t)?a.playSvg:a,t))?a:"")+"</div>"},useData:!0})},1237:function(e,t,n){e.exports={webPlayerContainer:"_2S4VF",webPlayer:"_3569L",svgContainer:"_1WsxD"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[10],{1264:function(e,t,n){e.exports={container:"_2SYyd",embedInput:"ozkKz",textareaContainer:"_1monr",shareInput:"_36Arj",copyBtn:"_2UGxe",embedCopyBtn:"gaJap",footerText:"_3ydjG"}},1265:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,l){var a;e.propertyIsEnumerable;return(null!=(a=e.lambda(null!=(a=null!=t?t.options:t)?a.spinnerEl:a,t))?a:"")+"\r\n"},3:function(e,t,n,o,l){e.propertyIsEnumerable;var a,i,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'\r\n<div class="'+s(r(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.container:a,t))+'">\r\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||c).call(u,"shareLink",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="input-group mb-2">\r\n <input type="text" autocomplete="off" class="form-control '+s(r(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.shareInput:a,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(i=null!=(i=n.shortUrl||(null!=t?t.shortUrl:t))?i:c)?i.call(u,{name:"shortUrl",hash:{},data:l}):i)+'>\r\n <div class="input-group-append">\r\n <button class="btn bg-white copy '+s(r(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.copyBtn:a,t))+'" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||c).call(u,"copy",{name:"lang",hash:{},data:l}))+"</button>\r\n </div>\r\n </div>\r\n\r\n"+(null!=(a=n.unless.call(u,null!=(a=null!=t?t.options:t)?a.showEmbed:a,{name:"unless",hash:{},fn:e.program(4,l,0),inverse:e.noop,data:l}))?a:"")+"\r\n"+(null!=(a=n.if.call(u,null!=(a=null!=t?t.options:t)?a.showEmbed:a,{name:"if",hash:{},fn:e.program(6,l,0),inverse:e.noop,data:l}))?a:"")+"</div>\r\n"},4:function(e,t,n,o,l){e.propertyIsEnumerable;return' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:l}))+"</a></small>\r\n"},6:function(e,t,n,o,l){e.propertyIsEnumerable;var a,i=null!=t?t:e.nullContext||{},r=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <hr class="mt-4">\r\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||r).call(i,"linkOptions",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="custom-control custom-checkbox mb-2">\r\n <input type="checkbox" autocomplete="off" class="custom-control-input public-checkbox" id="public-checkbox" name="public" '+(null!=(a=n.unless.call(i,null!=(a=null!=t?t.options:t)?a.canPublicShare:a,{name:"unless",hash:{},fn:e.program(7,l,0),inverse:e.noop,data:l}))?a:"")+'>\r\n <label class="custom-control-label" for="public-checkbox">'+s((n.lang||t&&t.lang||r).call(i,"publicCheckbox",{name:"lang",hash:{},data:l}))+"</label>\r\n "+(null!=(a=n.unless.call(i,null!=(a=null!=t?t.options:t)?a.canPublicShare:a,{name:"unless",hash:{},fn:e.program(9,l,0),inverse:e.noop,data:l}))?a:"")+'\r\n </div>\r\n <hr class="mt-4">\r\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||r).call(i,"embed",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="input-group mb-2 '+s(u(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.textareaContainer:a,t))+'">\r\n <textarea type="text" class="form-control rounded w-100 h-100 '+s(u(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.embedInput:a,t))+'" id="embed-input" spellcheck="false" readonly="true">'+s(u(null!=(a=null!=t?t.options:t)?a.embedString:a,t))+'</textarea>\r\n <div class="input-group-append '+s(u(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.embedCopyBtn:a,t))+' rounded">\r\n <button class="btn bg-white copy '+s(u(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.copyBtn:a,t))+'" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||r).call(i,"copy",{name:"lang",hash:{},data:l}))+"</button>\r\n </div>\r\n </div>\r\n"+(null!=(a=n.if.call(i,null!=(a=null!=t?t.options:t)?a.videoSizes:a,{name:"if",hash:{},fn:e.program(11,l,0),inverse:e.noop,data:l}))?a:"")+' <div class="custom-control custom-checkbox d-inline-block">\r\n <input type="checkbox" autocomplete="off" class="custom-control-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\r\n <label class="custom-control-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||r).call(i,"autoplay",{name:"lang",hash:{},data:l}))+"</label>\r\n </div>\r\n"},7:function(e,t,n,o,l){return"disabled"},9:function(e,t,n,o,l){var a;e.propertyIsEnumerable;return'<div class="text-muted">'+e.escapeExpression(e.lambda(null!=(a=null!=t?t.options:t)?a.cannotPublicShareText:a,t))+"</div>"},11:function(e,t,n,o,l){e.propertyIsEnumerable;return' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:l}))+'</label>\r\n <select class="custom-select w-25 mr-4 size-select" id="#size-select" name="selectedVideoSize"></select>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){var a;e.propertyIsEnumerable;return null!=(a=n.if.call(null!=t?t:e.nullContext||{},null!=(a=null!=t?t.options:t)?a.showLoader:a,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?a:""},useData:!0})},1266:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){e.propertyIsEnumerable;var a,i=e.lambda,r=e.escapeExpression;return'<small class="text-left w-100 mb-0 '+r(i(null!=(a=null!=t?t.options:t)?a.footerTextClass:a,t))+'">'+r(i(null!=(a=null!=t?t.options:t)?a.privacyDescription:a,t))+"</small>"},useData:!0})},1267:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,l){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,l){e.propertyIsEnumerable;var a,i=e.lambda,r=e.escapeExpression;return'width="'+r(i(null!=(a=null!=t?t.videoSize:t)?a.width:a,t))+'" height="'+r(i(null!=(a=null!=t?t.videoSize:t)?a.height:a,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){e.propertyIsEnumerable;var a,i,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(a=n.if.call(r,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?a:"")+' src="'+u("function"==typeof(i=null!=(i=n.baseUrl||(null!=t?t.baseUrl:t))?i:s)?i.call(r,{name:"baseUrl",hash:{},data:l}):i)+"?shareCode="+u("function"==typeof(i=null!=(i=n.shortCode||(null!=t?t.shortCode:t))?i:s)?i.call(r,{name:"shortCode",hash:{},data:l}):i)+"&a="+u("function"==typeof(i=null!=(i=n.autoplay||(null!=t?t.autoplay:t))?i:s)?i.call(r,{name:"autoplay",hash:{},data:l}):i)+'"></iframe>'},useData:!0})},1493:function(e,t,n){"use strict";n.r(t);var o=n(1),l=n(1049),a=n(5),i=n(30),r=n(2),s=n(3),u=n(53),c="shared.shared-utils",p=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:s.a.getPhrase(c,"small"),width:"640",height:"360"},{label:s.a.getPhrase(c,"medium"),width:"1014",height:"576"},{label:s.a.getPhrase(c,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:s.a.getPhrase(c,"responsive"),width:"100%",height:"100%"}),t},h=n(305),d=n(202),f=n(14),b=n(9),y=n(12),m=n(1264),g=n.n(m),v=n(1265),k=n.n(v),w=n(1266),S=n.n(w),x=n(1267),C=n.n(x),E=n(0);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_(e);if(t){var l=_(this).constructor;n=Reflect.construct(o,arguments,l)}else n=o.apply(this,arguments);return T(this,n)}}function T(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"ShareView",(function(){return R}));var M=function(e){z(n,e);var t=D(n);function n(e){return O(this,n),t.call(this,e)}return j(n,[{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return S.a}},{key:"viewOptions",value:function(){return{footerTextClass:g.a.footerText,privacyDescription:this.options.privacyDescription}}}]),n}(r.a.Component),R=function(e){z(n,e);var t=D(n);function n(e){var o;return O(this,n),(o=t.call(this,e)).clipboards=[],o}return j(n,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=a.a.getInstance(f.a.Video,this)}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return k.a}},{key:"lang",get:function(){return"sharedLe.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(g.a.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:p()}}},{key:"behaviors",get:function(){return[{behaviorClass:h.e,title:s.a.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:h.f,bindViewModel:!0}]}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(E.e.VIDEO,"".concat(E.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return o.map(e.options.videoSizes,(function(e,t){return{label:e.label,value:t}}))}}},"[name=public]":"public"}}},{key:"setUpViewModel",value:function(){this.viewModel=i.a.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?b.j.Public:b.j.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,(function(n){n.set("privacyId",t),e.onSharedResourceSync(n)}))}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===b.j.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,o.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=o.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=u.a.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var l=C()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(l,"</div>"):l}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(s.a.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case b.j[b.j.Private]:return s.a.getPhrase(this.lang,"private");case b.j[b.j.SchoolOnly]:return s.a.getPhrase(this.lang,"schoolOnly");case b.j[b.j.Public]:return s.a.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each((function(t,n){e.clipboards.push(new l(n))}))}},{key:"destroyClipboards",value:function(){o.each(this.clipboards,(function(e){return e.destroy()})),this.clipboards=[]}},{key:"requiredResources",get:function(){return{config:d.b.config}}},{key:"getCannotPublicShareText",value:function(){return this.video?y.y.isExchangeVideo(this.video)?s.a.getPhrase(this.lang,"cannotShareExchange"):s.a.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new M({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:g.a},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:y.r.getSpinner({size:y.s.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&y.j.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}}]),n}(r.a.View)}}]);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[11],{1171:function(t,e,i){
|
|
2
|
-
/*!
|
|
3
|
-
* Cropper.js v1.5.6
|
|
4
|
-
* https://fengyuanchen.github.io/cropperjs
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2015-present Chen Fengyuan
|
|
7
|
-
* Released under the MIT license
|
|
8
|
-
*
|
|
9
|
-
* Date: 2019-10-04T04:33:48.372Z
|
|
10
|
-
*/
|
|
11
|
-
t.exports=function(){"use strict";function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(i,!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h="undefined"!=typeof window&&void 0!==window.document,s=h?window:{},c=!!h&&"ontouchstart"in s.document.documentElement,l=!!h&&"PointerEvent"in s,p="".concat("cropper","-crop"),d="".concat("cropper","-disabled"),m="".concat("cropper","-hidden"),u="".concat("cropper","-hide"),g="".concat("cropper","-invisible"),f="".concat("cropper","-modal"),v="".concat("cropper","-move"),w="".concat("cropper","Action"),b="".concat("cropper","Preview"),y=c?"touchstart":"mousedown",x=c?"touchmove":"mousemove",M=c?"touchend touchcancel":"mouseup",C=l?"pointerdown":y,D=l?"pointermove":x,k=l?"pointerup pointercancel":M,B=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,O=/^data:/,T=/^data:image\/jpeg;base64,/,E=/^img|canvas$/i,W={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},N=Number.isNaN||s.isNaN;function H(t){return"number"==typeof t&&!N(t)}var z=function(t){return t>0&&t<1/0};function L(t){return void 0===t}function Y(e){return"object"===t(e)&&null!==e}var X=Object.prototype.hasOwnProperty;function R(t){if(!Y(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&X.call(i,"isPrototypeOf")}catch(t){return!1}}function S(t){return"function"==typeof t}var A=Array.prototype.slice;function j(t){return Array.from?Array.from(t):A.call(t)}function P(t,e){return t&&S(e)&&(Array.isArray(t)||H(t.length)?j(t).forEach((function(i,a){e.call(t,i,a,t)})):Y(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var I=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return Y(t)&&i.length>0&&i.forEach((function(e){Y(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},U=/\.\d*(?:0|9){12}\d*$/;function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return U.test(t)?Math.round(t*e)/e:t}var $=/^width|height|left|top|marginLeft|marginTop$/;function _(t,e){var i=t.style;P(e,(function(t,e){$.test(e)&&H(t)&&(t="".concat(t,"px")),i[e]=t}))}function Q(t,e){if(e)if(H(t.length))P(t,(function(t){Q(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function K(t,e){e&&(H(t.length)?P(t,(function(t){K(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Z(t,e,i){e&&(H(t.length)?P(t,(function(t){Z(t,e,i)})):i?Q(t,e):K(t,e))}var J=/([a-z\d])([A-Z])/g;function G(t){return t.replace(J,"$1-$2").toLowerCase()}function V(t,e){return Y(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(G(e)))}function F(t,e,i){Y(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(G(e)),i)}var tt=/\s\s*/,et=function(){var t=!1;if(h){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",i,a),s.removeEventListener("test",i,a)}return t}();function it(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(tt).forEach((function(e){if(!et){var o=t.listeners;o&&o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,n,a)}))}function at(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(tt).forEach((function(e){if(a.once&&!et){var o=t.listeners,r=void 0===o?{}:o;n=function(){delete r[e][i],t.removeEventListener(e,n,a);for(var o=arguments.length,h=new Array(o),s=0;s<o;s++)h[s]=arguments[s];i.apply(t,h)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],a),r[e][i]=n,t.listeners=r}t.addEventListener(e,n,a)}))}function nt(t,e,i){var a;return S(Event)&&S(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function ot(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var rt=s.location,ht=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function st(t){var e=t.match(ht);return null!==e&&(e[1]!==rt.protocol||e[2]!==rt.hostname||e[3]!==rt.port)}function ct(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function lt(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];H(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),H(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),H(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),H(i)&&1!==i&&r.push("scaleX(".concat(i,")")),H(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function pt(t,e){var i=t.pageX,a=t.pageY,n={endX:i,endY:a};return e?n:o({startX:i,startY:a},n)}function dt(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=z(a),r=z(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}function mt(t,e,i,a){var n=e.aspectRatio,o=e.naturalWidth,h=e.naturalHeight,s=e.rotate,c=void 0===s?0:s,l=e.scaleX,p=void 0===l?1:l,d=e.scaleY,m=void 0===d?1:d,u=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=a.fillColor,w=void 0===v?"transparent":v,b=a.imageSmoothingEnabled,y=void 0===b||b,x=a.imageSmoothingQuality,M=void 0===x?"low":x,C=a.maxWidth,D=void 0===C?1/0:C,k=a.maxHeight,B=void 0===k?1/0:k,O=a.minWidth,T=void 0===O?0:O,E=a.minHeight,W=void 0===E?0:E,N=document.createElement("canvas"),H=N.getContext("2d"),z=dt({aspectRatio:u,width:D,height:B}),L=dt({aspectRatio:u,width:T,height:W},"cover"),Y=Math.min(z.width,Math.max(L.width,g)),X=Math.min(z.height,Math.max(L.height,f)),R=dt({aspectRatio:n,width:D,height:B}),S=dt({aspectRatio:n,width:T,height:W},"cover"),A=Math.min(R.width,Math.max(S.width,o)),j=Math.min(R.height,Math.max(S.height,h)),P=[-A/2,-j/2,A,j];return N.width=q(Y),N.height=q(X),H.fillStyle=w,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(c*Math.PI/180),H.scale(p,m),H.imageSmoothingEnabled=y,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(r(P.map((function(t){return Math.floor(q(t))}))))),H.restore(),N}var ut=String.fromCharCode,gt=/^data:.*,/;function ft(t){var e,i=new DataView(t);try{var a,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,h=2;h+1<r;){if(255===i.getUint8(h)&&225===i.getUint8(h+1)){n=h;break}h+=1}if(n){var s=n+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=ut(t.getUint8(n));return a}(i,n+4,4)){var c=i.getUint16(s);if(((a=18761===c)||19789===c)&&42===i.getUint16(s+2,a)){var l=i.getUint32(s+4,a);l>=8&&(o=s+l)}}}if(o){var p,d,m=i.getUint16(o,a);for(d=0;d<m;d+=1)if(p=o+12*d+2,274===i.getUint16(p,a)){p+=8,e=i.getUint16(p,a),i.setUint16(p,1,a);break}}}catch(t){e=1}return e}var vt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper;Q(a,m),K(t,m);var n={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};this.containerData=n,_(a,{width:n.width,height:n.height}),Q(t,m),K(a,m)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};c.left=(t.width-h)/2,c.top=(t.height-s)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=I({},e),this.initialCanvasData=I({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var p=dt({aspectRatio:h,width:c,height:l});c=p.width,l=p.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e)if(r>(s?0:1)){var d=a.width-n.width,m=a.height-n.height;n.minLeft=Math.min(0,d),n.minTop=Math.min(0,m),n.maxLeft=Math.max(0,d),n.maxTop=Math.max(0,m),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,d),n.maxLeft=Math.max(0,d)),n.height>=a.height&&(n.minTop=Math.min(0,m),n.maxTop=Math.max(0,m))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,_(this.canvas,I({width:i.width,height:i.height},lt({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);I(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),_(this.image,I({width:i.width,height:i.height},lt(I({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=I({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,p=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),p*h>l?p=l/h:l=p*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,p),o.maxWidth=l,o.maxHeight=p}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&F(this.face,w,i.width>=e.width&&i.height>=e.height?"move":"all"),_(this.cropBox,I({width:i.width,height:i.height},lt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),nt(this.element,"crop",this.getData())}},wt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,P(r,(function(t){var i=document.createElement("img");F(t,b,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){P(this.previews,(function(t){var e=V(t,b);_(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(Y(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(G(e)))}(t,b)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(_(this.viewBoxImage,I({width:o,height:r},lt(I({translateX:-h,translateY:-s},t)))),P(this.previews,(function(e){var i=V(e,b),c=i.width,l=i.height,p=c,d=l,m=1;a&&(d=n*(m=c/a)),n&&d>l&&(p=a*(m=l/n),d=l),_(e,{width:p,height:d}),_(e.getElementsByTagName("img")[0],I({width:o*m,height:r*m},lt(I({translateX:-h*m,translateY:-s*m},t))))})))}},bt={bind:function(){var t=this.element,e=this.options,i=this.cropper;S(e.cropstart)&&at(t,"cropstart",e.cropstart),S(e.cropmove)&&at(t,"cropmove",e.cropmove),S(e.cropend)&&at(t,"cropend",e.cropend),S(e.crop)&&at(t,"crop",e.crop),S(e.zoom)&&at(t,"zoom",e.zoom),at(i,C,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&at(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&at(i,"dblclick",this.onDblclick=this.dblclick.bind(this)),at(t.ownerDocument,D,this.onCropMove=this.cropMove.bind(this)),at(t.ownerDocument,k,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&at(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;S(e.cropstart)&&it(t,"cropstart",e.cropstart),S(e.cropmove)&&it(t,"cropmove",e.cropmove),S(e.cropend)&&it(t,"cropend",e.cropend),S(e.crop)&&it(t,"crop",e.crop),S(e.zoom)&&it(t,"zoom",e.zoom),it(i,C,this.onCropStart),e.zoomable&&e.zoomOnWheel&&it(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&it(i,"dblclick",this.onDblclick),it(t.ownerDocument,D,this.onCropMove),it(t.ownerDocument,k,this.onCropEnd),e.responsive&&it(window,"resize",this.onResize)}},yt={resize:function(){var t=this.options,e=this.container,i=this.containerData,a=Number(t.minContainerWidth)||200,n=Number(t.minContainerHeight)||100;if(!(this.disabled||i.width<=a||i.height<=n)){var o,r,h=e.offsetWidth/i.width;1===h&&e.offsetHeight===i.height||(t.restore&&(o=this.getCanvasData(),r=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(P(o,(function(t,e){o[e]=t*h}))),this.setCropBoxData(P(r,(function(t,e){r[e]=t*h})))))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=p,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(H(e)&&1!==e||H(i)&&0!==i||t.ctrlKey))){var a,n=this.options,o=this.pointers;t.changedTouches?P(t.changedTouches,(function(t){o[t.identifier]=pt(t)})):o[t.pointerId||0]=pt(t),a=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":V(t.target,w),B.test(a)&&!1!==nt(this.element,"cropstart",{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,"crop"===a&&(this.cropping=!0,Q(this.dragBox,f)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==nt(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?P(t.changedTouches,(function(t){I(i[t.identifier]||{},pt(t,!0))})):I(i[t.pointerId||0]||{},pt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?P(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Z(this.dragBox,f,this.cropped&&this.options.modal)),nt(this.element,"cropend",{originalEvent:t,action:e}))}}},xt={change:function(t){var e,i=this.options,a=this.canvasData,n=this.containerData,r=this.cropBoxData,h=this.pointers,s=this.action,c=i.aspectRatio,l=r.left,p=r.top,d=r.width,u=r.height,g=l+d,f=p+u,v=0,w=0,b=n.width,y=n.height,x=!0;!c&&t.shiftKey&&(c=d&&u?d/u:1),this.limited&&(v=r.minLeft,w=r.minTop,b=v+Math.min(n.width,a.width,a.left+a.width),y=w+Math.min(n.height,a.height,a.top+a.height));var M=h[Object.keys(h)[0]],C={x:M.endX-M.startX,y:M.endY-M.startY},D=function(t){switch(t){case"e":g+C.x>b&&(C.x=b-g);break;case"w":l+C.x<v&&(C.x=v-l);break;case"n":p+C.y<w&&(C.y=w-p);break;case"s":f+C.y>y&&(C.y=y-f)}};switch(s){case"all":l+=C.x,p+=C.y;break;case"e":if(C.x>=0&&(g>=b||c&&(p<=w||f>=y))){x=!1;break}D("e"),(d+=C.x)<0&&(s="w",l-=d=-d),c&&(u=d/c,p+=(r.height-u)/2);break;case"n":if(C.y<=0&&(p<=w||c&&(l<=v||g>=b))){x=!1;break}D("n"),u-=C.y,p+=C.y,u<0&&(s="s",p-=u=-u),c&&(d=u*c,l+=(r.width-d)/2);break;case"w":if(C.x<=0&&(l<=v||c&&(p<=w||f>=y))){x=!1;break}D("w"),d-=C.x,l+=C.x,d<0&&(s="e",l-=d=-d),c&&(u=d/c,p+=(r.height-u)/2);break;case"s":if(C.y>=0&&(f>=y||c&&(l<=v||g>=b))){x=!1;break}D("s"),(u+=C.y)<0&&(s="n",p-=u=-u),c&&(d=u*c,l+=(r.width-d)/2);break;case"ne":if(c){if(C.y<=0&&(p<=w||g>=b)){x=!1;break}D("n"),u-=C.y,p+=C.y,d=u*c}else D("n"),D("e"),C.x>=0?g<b?d+=C.x:C.y<=0&&p<=w&&(x=!1):d+=C.x,C.y<=0?p>w&&(u-=C.y,p+=C.y):(u-=C.y,p+=C.y);d<0&&u<0?(s="sw",p-=u=-u,l-=d=-d):d<0?(s="nw",l-=d=-d):u<0&&(s="se",p-=u=-u);break;case"nw":if(c){if(C.y<=0&&(p<=w||l<=v)){x=!1;break}D("n"),u-=C.y,p+=C.y,d=u*c,l+=r.width-d}else D("n"),D("w"),C.x<=0?l>v?(d-=C.x,l+=C.x):C.y<=0&&p<=w&&(x=!1):(d-=C.x,l+=C.x),C.y<=0?p>w&&(u-=C.y,p+=C.y):(u-=C.y,p+=C.y);d<0&&u<0?(s="se",p-=u=-u,l-=d=-d):d<0?(s="ne",l-=d=-d):u<0&&(s="sw",p-=u=-u);break;case"sw":if(c){if(C.x<=0&&(l<=v||f>=y)){x=!1;break}D("w"),d-=C.x,l+=C.x,u=d/c}else D("s"),D("w"),C.x<=0?l>v?(d-=C.x,l+=C.x):C.y>=0&&f>=y&&(x=!1):(d-=C.x,l+=C.x),C.y>=0?f<y&&(u+=C.y):u+=C.y;d<0&&u<0?(s="ne",p-=u=-u,l-=d=-d):d<0?(s="se",l-=d=-d):u<0&&(s="nw",p-=u=-u);break;case"se":if(c){if(C.x>=0&&(g>=b||f>=y)){x=!1;break}D("e"),u=(d+=C.x)/c}else D("s"),D("e"),C.x>=0?g<b?d+=C.x:C.y>=0&&f>=y&&(x=!1):d+=C.x,C.y>=0?f<y&&(u+=C.y):u+=C.y;d<0&&u<0?(s="nw",p-=u=-u,l-=d=-d):d<0?(s="sw",l-=d=-d):u<0&&(s="ne",p-=u=-u);break;case"move":this.move(C.x,C.y),x=!1;break;case"zoom":this.zoom(function(t){var e=o({},t),i=[];return P(t,(function(t,a){delete e[a],P(e,(function(e){var a=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(a*a+n*n),s=(Math.sqrt(o*o+r*r)-h)/h;i.push(s)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(h),t),x=!1;break;case"crop":if(!C.x||!C.y){x=!1;break}e=ot(this.cropper),l=M.startX-e.left,p=M.startY-e.top,d=r.minWidth,u=r.minHeight,C.x>0?s=C.y>0?"se":"ne":C.x<0&&(l-=d,s=C.y>0?"sw":"nw"),C.y<0&&(p-=u),this.cropped||(K(this.cropBox,m),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}x&&(r.width=d,r.height=u,r.left=l,r.top=p,this.action=s,this.renderCropBox()),P(h,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Mt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Q(this.dragBox,f),K(this.cropBox,m),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=I({},this.initialImageData),this.canvasData=I({},this.initialCanvasData),this.cropBoxData=I({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(I(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),K(this.dragBox,f),Q(this.cropBox,m)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,P(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,K(this.cropper,d)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Q(this.cropper,d)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(L(t)?t:a+Number(t),L(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(H(t)&&(i.left=t,a=!0),H(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===nt(this.element,"zoom",{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var p=this.pointers,d=ot(this.cropper),m=p&&Object.keys(p).length?function(t){var e=0,i=0,a=0;return P(t,(function(t){var n=t.startX,o=t.startY;e+=n,i+=o,a+=1})),{pageX:e/=a,pageY:i/=a}}(p):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((m.pageX-d.left-n.left)/o),n.top-=(l-r)*((m.pageY-d.top-n.top)/r)}else R(e)&&H(e.x)&&H(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return H(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,H(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(H(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(H(t)&&(i.scaleX=t,a=!0),H(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(P(t,(function(e,i){t[i]=e/r})),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&R(t)){var o=!1;e.rotatable&&H(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(H(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),H(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;H(t.x)&&(n.left=t.x*r+a.left),H(t.y)&&(n.top=t.y*r+a.top),H(t.width)&&(n.width=t.width*r),H(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?I({},this.containerData):{}},getImageData:function(){return this.sized?I({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&P(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&R(t)&&(H(t.left)&&(e.left=t.left),H(t.top)&&(e.top=t.top),H(t.width)?(e.width=t.width,e.height=t.width/i):H(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&R(t)&&(H(t.left)&&(a.left=t.left),H(t.top)&&(a.top=t.top),H(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),H(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=mt(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),n=a.x,o=a.y,h=a.width,s=a.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(n*=c,o*=c,h*=c,s*=c);var l=h/s,p=dt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=dt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=dt({aspectRatio:l,width:t.width||(1!==c?i.width:h),height:t.height||(1!==c?i.height:s)}),u=m.width,g=m.height;u=Math.min(p.width,Math.max(d.width,u)),g=Math.min(p.height,Math.max(d.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=q(u),f.height=q(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,u,g);var w=t.imageSmoothingEnabled,b=void 0===w||w,y=t.imageSmoothingQuality;v.imageSmoothingEnabled=b,y&&(v.imageSmoothingQuality=y);var x,M,C,D,k,B,O=i.width,T=i.height,E=n,W=o;E<=-h||E>O?(E=0,x=0,C=0,k=0):E<=0?(C=-E,E=0,k=x=Math.min(O,h+E)):E<=O&&(C=0,k=x=Math.min(h,O-E)),x<=0||W<=-s||W>T?(W=0,M=0,D=0,B=0):W<=0?(D=-W,W=0,B=M=Math.min(T,s+W)):W<=T&&(D=0,B=M=Math.min(s,T-W));var N=[E,W,x,M];if(k>0&&B>0){var H=u/h;N.push(C*H,D*H,k*H,B*H)}return v.drawImage.apply(v,[i].concat(r(N.map((function(t){return Math.floor(q(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||L(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n="crop"===t,o=e.movable&&"move"===t;t=n||o?t:"none",e.dragMode=t,F(i,w,t),Z(i,p,n),Z(i,v,o),e.cropBoxMovable||(F(a,w,t),Z(a,p,n),Z(a,v,o))}return this}},Ct=s.Cropper,Dt=function(){function t(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!i||!E.test(i.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=i,this.options=I({},W,R(a)&&a),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var a,n,o;return a=t,o=[{key:"noConflict",value:function(){return window.Cropper=Ct,t}},{key:"setDefaults",value:function(t){I(W,R(t)&&t)}}],(n=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var i=this.element,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),a.checkOrientation&&window.ArrayBuffer)if(O.test(t))T.test(t)?this.read((n=t.replace(gt,""),o=atob(n),r=new ArrayBuffer(o.length),P(h=new Uint8Array(r),(function(t,e){h[e]=o.charCodeAt(e)})),r)):this.clone();else{var n,o,r,h,s=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=c,s.onerror=c,s.ontimeout=c,s.onprogress=function(){"image/jpeg"!==s.getResponseHeader("content-type")&&s.abort()},s.onload=function(){e.read(s.response)},s.onloadend=function(){e.reloading=!1,e.xhr=null},a.checkCrossOrigin&&st(t)&&i.crossOrigin&&(t=ct(t)),s.open("GET",t),s.responseType="arraybuffer",s.withCredentials="use-credentials"===i.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=ft(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(ut.apply(null,j(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,"image/jpeg");var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&st(e)&&(i||(i="anonymous"),a=ct(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),Q(n,u),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=s.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(s.navigator.userAgent),a=function(e,i){I(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else a(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat("cropper","-container")),r=o.querySelector(".".concat("cropper","-canvas")),h=o.querySelector(".".concat("cropper","-drag-box")),s=o.querySelector(".".concat("cropper","-crop-box")),c=s.querySelector(".".concat("cropper","-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=c,r.appendChild(i),Q(t,m),a.insertBefore(o,t.nextSibling),this.isImg||K(i,u),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Q(s,m),e.guides||Q(s.getElementsByClassName("".concat("cropper","-dashed")),m),e.center||Q(s.getElementsByClassName("".concat("cropper","-center")),m),e.background&&Q(o,"".concat("cropper","-bg")),e.highlight||Q(c,g),e.cropBoxMovable&&(Q(c,v),F(c,w,"all")),e.cropBoxResizable||(Q(s.getElementsByClassName("".concat("cropper","-line")),m),Q(s.getElementsByClassName("".concat("cropper","-point")),m)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),S(e.ready)&&at(t,"ready",e.ready,{once:!0}),nt(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),K(this.element,m))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&i(a.prototype,n),o&&i(a,o),t}();return I(Dt.prototype,vt,wt,bt,yt,xt,Mt),Dt}()}}]);
|