mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
1 line
174 KiB
JavaScript
1 line
174 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{24:function(t,e,n){t.exports=n("apDT")},"2Jpm":function(t,e,n){"use strict";n.r(e);var i={props:["status"],methods:{playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())}}},o=n("KHd+"),s=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("div",{staticClass:"embed-responsive embed-responsive-1by1"},[n("video",{staticClass:"video",attrs:{preload:"none",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id},on:{click:function(e){return t.playOrPause(e)}}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):n("div",{staticClass:"embed-responsive embed-responsive-16by9"},[n("video",{staticClass:"video",attrs:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])}),[],!1,null,null,null);e.default=s.exports},"6xVh":function(t,e,n){t.exports=function t(e,n,i){function o(a,r){if(!n[a]){if(!e[a]){if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,(function(t){return o(e[a][1][t]||t)}),c,c.exports,t,e,n,i)}return n[a].exports}for(var s=!1,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(t("./utils"));var i=r(t("./TributeEvents")),o=r(t("./TributeMenuEvents")),s=r(t("./TributeRange")),a=r(t("./TributeSearch"));function r(t){return t&&t.__esModule?t:{default:t}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,o=!1,s=void 0;try{for(var a,r=t[Symbol.iterator]();!(i=(a=r.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,s=t}finally{try{i||null==r.return||r.return()}finally{if(o)throw s}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d=function(){function t(e){var n,r=this,l=e.values,c=void 0===l?null:l,d=e.iframe,u=void 0===d?null:d,f=e.selectClass,m=void 0===f?"highlight":f,h=e.trigger,p=void 0===h?"@":h,v=e.autocompleteMode,g=void 0!==v&&v,b=e.selectTemplate,w=void 0===b?null:b,x=e.menuItemTemplate,y=void 0===x?null:x,_=e.lookup,C=void 0===_?"key":_,k=e.fillAttr,S=void 0===k?"value":k,M=e.collection,E=void 0===M?null:M,T=e.menuContainer,A=void 0===T?null:T,z=e.noMatchTemplate,L=void 0===z?null:z,$=e.requireLeadingSpace,P=void 0===$||$,I=e.allowSpaces,N=void 0!==I&&I,R=e.replaceTextSuffix,O=void 0===R?null:R,D=e.positionMenu,j=void 0===D||D,H=e.spaceSelectsMatch,U=void 0!==H&&H,W=e.searchOpts,F=void 0===W?{}:W,B=e.menuItemLimit,q=void 0===B?null:B;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.autocompleteMode=g,this.menuSelected=0,this.current={},this.inputEvent=!1,this.isActive=!1,this.menuContainer=A,this.allowSpaces=N,this.replaceTextSuffix=O,this.positionMenu=j,this.hasTrailingSpace=!1,this.spaceSelectsMatch=U,this.autocompleteMode&&(p="",N=!1),c)this.collection=[{trigger:p,iframe:u,selectClass:m,selectTemplate:(w||t.defaultSelectTemplate).bind(this),menuItemTemplate:(y||t.defaultMenuItemTemplate).bind(this),noMatchTemplate:(n=L,"function"==typeof n?n.bind(r):L||function(){return""}.bind(r)),lookup:C,fillAttr:S,values:c,requireLeadingSpace:P,searchOpts:F,menuItemLimit:
|