"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[70118],{7780:function(t,e,n){n.r(e),n.d(e,{default:function(){return c}}),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(78557),n(90076),n(83994),n(82367);var r=n(15995),o=n(67430),i=n(95569);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name="Photo Player",this.type=r.Q.MediaPlayer,this.id="photoplayer",this.priority=1},(e=[{key:"play",value:function(t){return new Promise((function(e){n.e(27884).then(n.bind(n,27884)).then((function(n){var r=n.default,a=t.startIndex||0;o.tF.currentApiClient().getCurrentUser().then((function(n){new r({showTitle:!1,cover:!1,items:t.items,startIndex:a,interval:11e3,interactive:!0,autoplay:{delay:1e3*i.slideshowInterval()},user:n}).show(),e()}))}))}))}},{key:"canPlayMediaType",value:function(t){return"photo"===(t||"").toLowerCase()}}])&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}}]);