| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-265a9286"],{"0fd9":function(t,e,i){"use strict";i("4b85");var s=i("2b0e"),n=i("d9f7"),a=i("80d2");const r=["sm","md","lg","xl"],o=["start","end","center"];function l(t,e){return r.reduce((i,s)=>(i[t+Object(a["E"])(s)]=e(),i),{})}const c=t=>[...o,"baseline","stretch"].includes(t),d=l("align",()=>({type:String,default:null,validator:c})),u=t=>[...o,"space-between","space-around"].includes(t),h=l("justify",()=>({type:String,default:null,validator:u})),g=t=>[...o,"space-between","space-around","stretch"].includes(t),p=l("alignContent",()=>({type:String,default:null,validator:g})),f={align:Object.keys(d),justify:Object.keys(h),alignContent:Object.keys(p)},v={align:"align",justify:"justify",alignContent:"align-content"};function m(t,e,i){let s=v[t];if(null!=i){if(e){const i=e.replace(t,"");s+="-"+i}return s+="-"+i,s.toLowerCase()}}const b=new Map;e["a"]=s["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...d,justify:{type:String,default:null,validator:u},...h,alignContent:{type:String,default:null,validator:g},...p},render(t,{props:e,data:i,children:s}){let a="";for(const n in e)a+=String(e[n]);let r=b.get(a);if(!r){let t;for(t in r=[],f)f[t].forEach(i=>{const s=e[i],n=m(t,i,s);n&&r.push(n)});r.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),b.set(a,r)}return t(e.tag,Object(n["a"])(i,{staticClass:"row",class:r}),s)}})},"132d":function(t,e,i){"use strict";i("4804");var s,n=i("7e2b"),a=i("a9ad"),r=i("af2b"),o=i("7560"),l=i("80d2"),c=i("2b0e"),d=i("58df");function u(t){return["fas","far","fal","fab","fad"].some(e=>t.includes(e))}function h(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(s||(s={}));const g=Object(d["a"])(n["a"],a["a"],r["a"],o["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["B"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["y"])(t).find(e=>t[e]);return e&&s[e]||Object(l["g"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const i=[],s=this.getDefaultData();let n="material-icons";const a=t.indexOf("-"),r=a<=-1;r?i.push(t):(n=t.slice(0,a),u(n)&&(n="")),s.class[n]=!0,s.class[t]=!r;const o=this.getSize();return o&&(s.style={fontSize:o}),this.applyColors(s),e(this.hasClickListener?"button":this.tag,s,i)},renderSvgIcon(t,e){const i=this.getSize(),s={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:i||"24",width:i||"24",role:"img","aria-hidden":!0}};return e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",s,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const i={class:{"v-icon__svg":!0}},s=this.getSize();s&&(i.style={fontSize:s,height:s,width:s}),this.applyColors(i);const n=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(n,i)])}},render(t){const e=this.getIcon();return"string"===typeof e?h(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["default"].extend({name:"v-icon",$_wrapperFor:g,functional:!0,render(t,{data:e,children:i}){let s="";return e.domProps&&(s=e.domProps.textContent||e.domProps.innerHTML||s,delete e.domProps.textContent,delete e.domProps.innerHTML),t(g,e,s?[s]:i)}})},"17b3":function(t,e,i){},"1c2b":function(t,e,i){"use strict";i.d(e,"i",(function(){return a})),i.d(e,"g",(function(){return r})),i.d(e,"h",(function(){return o})),i.d(e,"a",(function(){return l})),i.d(e,"f",(function(){return c})),i.d(e,"j",(function(){return d})),i.d(e,"e",(function(){return u})),i.d(e,"c",(function(){return h})),i.d(e,"b",(function(){return g})),i.d(e,"d",(function(){return p}));var s=i("365c"),n={videoTimelineApi:"/api/media/video/post/timeline",videoRecommendApi:"/api/media/video/post/recommend",videoTagApi:"/api/media/video/post/tag",similarVideoApi:"/api/media/video/post/similar",videoInfoApi:"/api/media/video/post/detail",videoUrlApi:"/api/media/video/url",videoCategoryApi:"/api/media/video/category",videoPostSubmitApi:"/api/media/video/post/submit",playerRecordApi:"/api/media/video/play/record",userVideoListApi:"/api/media/video/post/user"};function a(t){return s["a"].get(n.videoTimelineApi+"/"+t)}function r(t){return s["a"].get(n.videoRecommendApi+"/"+t)}function o(t,e){return s["a"].get(n.videoTagApi+"?tag="+t+"&page="+e)}function l(t){return s["a"].get(n.similarVideoApi+"?videoId="+t)}function c(t){return s["a"].get(n.videoInfoApi+"/"+t)}function d(t){return s["a"].get(n.videoUrlApi+"/"+t)}function u(){return s["a"].get(n.videoCategoryApi)}function h(t){return s["a"].post(n.videoPostSubmitApi,t)}function g(t){return s["a"].post(n.playerRecordApi,t)}function p(t,e){return s["a"].get(n.userVideoListApi+"?page="+t+"&userId="+e)}},"24b2":function(t,e,i){"use strict";var s=i("80d2"),n=i("2b0e");e["a"]=n["default"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const t={},e=Object(s["g"])(this.height),i=Object(s["g"])(this.minHeight),n=Object(s["g"])(this.minWidth),a=Object(s["g"])(this.maxHeight),r=Object(s["g"])(this.maxWidth),o=Object(s["g"])(this.width);return e&&(t.height=e),i&&(t.minHeight=i),n&&(t.minWidth=n),a&&(t.maxHeight=a),r&&(t.maxWidth=r),o&&(t.width=o),t}}})},3408:function(t,e,i){},"36a7":function(t,e,i){},"371f":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{width:"320px"}},[i("router-link",{attrs:{to:"/video/"+t.videoInfo.videoId}},[i("div",{staticStyle:{position:"relative",width:"320px",height:"180px"}},[i("v-img",{attrs:{src:t.videoInfo.coverUrl,outlined:"","aspect-ratio":"1.77"}}),i("span",{staticStyle:{position:"absolute",bottom:"0",right:"0",color:"red"}},[t._v(t._s(t.videoInfo.duration))])],1)]),i("v-row",[i("v-col",{attrs:{cols:"2"}},[null!==t.videoInfo.userId?i("router-link",{attrs:{to:"/u/"+t.videoInfo.userId}},[i("v-avatar",{attrs:{size:"48"}},[i("v-img",{attrs:{src:t.videoInfo.avatarUrl}})],1)],1):t._e()],1),i("v-col",{attrs:{cols:"10"}},[i("p",{staticStyle:{"font-size":"15px","margin-bottom":"0px",color:"black"}},[i("router-link",{staticStyle:{color:"black"},attrs:{to:"/video/"+t.videoInfo.videoId}},[t._v(" "+t._s(t.videoInfo.title)+" ")])],1),i("p",{staticStyle:{"font-size":"10px",color:"#606060"}},[null!==t.videoInfo.userId?i("router-link",{attrs:{to:"/u/"+t.videoInfo.userId}},[t._v(" "+t._s(t.videoInfo.username))]):t._e(),i("br"),t._v(" "+t._s(t.videoInfo.viewCount)+" 观看 "),i("span",{domProps:{innerHTML:t._s(" ")}}),t._v(" "+t._s(t.videoInfo.commentCount)+" 评论 "),i("span",{domProps:{innerHTML:t._s(" ")}})],1)])],1)],1)},n=[],a=i("9878"),r={name:"ItemCard",props:{video:{type:Object,default:function(){}}},data:function(){return{TimeUtil:a["a"],videoInfo:this.video}},created:function(){}},o=r,l=i("2877"),c=i("6544"),d=i.n(c),u=i("8212"),h=i("62ad"),g=i("adda"),p=i("0fd9"),f=Object(l["a"])(o,s,n,!1,null,null,null);e["a"]=f.exports;d()(f,{VAvatar:u["a"],VCol:h["a"],VImg:g["a"],VRow:p["a"]})},4804:function(t,e,i){},"62ad":function(t,e,i){"use strict";i("4b85");var s=i("2b0e"),n=i("d9f7"),a=i("80d2");const r=["sm","md","lg","xl"],o=(()=>r.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>r.reduce((t,e)=>(t["offset"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>r.reduce((t,e)=>(t["order"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),d={col:Object.keys(o),offset:Object.keys(l),order:Object.keys(c)};function u(t,e,i){let s=t;if(null!=i&&!1!==i){if(e){const i=e.replace(t,"");s+="-"+i}return"col"!==t||""!==i&&!0!==i?(s+="-"+i,s.toLowerCase()):s.toLowerCase()}}const h=new Map;e["a"]=s["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:i,children:s,parent:a}){let r="";for(const n in e)r+=String(e[n]);let o=h.get(r);if(!o){let t;for(t in o=[],d)d[t].forEach(i=>{const s=e[i],n=u(t,i,s);n&&o.push(n)});const i=o.some(t=>t.startsWith("col-"));o.push({col:!i||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),h.set(r,o)}return t(e.tag,Object(n["a"])(i,{class:o}),s)}})},"7e2b":function(t,e,i){"use strict";var s=i("2b0e");function n(t){return function(e,i){for(const s in i)Object.prototype.hasOwnProperty.call(e,s)||this.$delete(this.$data[t],s);for(const s in e)this.$set(this.$data[t],s,e[s])}}e["a"]=s["default"].extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",n("attrs$"),{immediate:!0}),this.$watch("$listeners",n("listeners$"),{immediate:!0})}})},8212:function(t,e,i){"use strict";i("3408");var s=i("a9ad"),n=i("24b2"),a=i("a236"),r=i("80d2"),o=i("58df");e["a"]=Object(o["a"])(s["a"],n["a"],a["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:Object(r["g"])(this.size),minWidth:Object(r["g"])(this.size),width:Object(r["g"])(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},"891e":function(t,e,i){"use strict";i("17b3");var s=i("9d26"),n=i("dc22"),a=i("a9ad"),r=i("de2c"),o=i("7560"),l=i("58df");e["a"]=Object(l["a"])(a["a"],Object(r["a"])({onVisible:["init"]}),o["a"]).extend({name:"v-pagination",directives:{Resize:n["a"]},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:t=>t%1===0},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},totalVisible:[Number,String],value:{type:Number,default:0},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},wrapperAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.wrapper"}},data(){return{maxButtons:0,selected:null}},computed:{classes(){return{"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled,...this.themeClasses}},items(){const t=parseInt(this.totalVisible,10),e=Math.min(Math.max(0,t)||this.length,Math.max(0,this.maxButtons)||this.length,this.length);if(this.length<=e)return this.range(1,this.length);const i=e%2===0?1:0,s=Math.floor(e/2),n=this.length-s+1+i;if(this.value>s&&this.value<n){const t=this.value-s+2,e=this.value+s-2-i;return[1,"...",...this.range(t,e),"...",this.length]}if(this.value===s){const t=this.value+s-1-i;return[...this.range(1,t),"...",this.length]}if(this.value===n){const t=this.value-s+1;return[1,"...",...this.range(t,this.length)]}return[...this.range(1,s),"...",...this.range(n,this.length)]}},watch:{value(){this.init()}},mounted(){this.init()},methods:{init(){this.selected=null,this.$nextTick(this.onResize),setTimeout(()=>this.selected=this.value,100)},onResize(){const t=this.$el&&this.$el.parentElement?this.$el.parentElement.clientWidth:window.innerWidth;this.maxButtons=Math.floor((t-96)/42)},next(t){t.preventDefault(),this.$emit("input",this.value+1),this.$emit("next")},previous(t){t.preventDefault(),this.$emit("input",this.value-1),this.$emit("previous")},range(t,e){const i=[];t=t>0?t:1;for(let s=t;s<=e;s++)i.push(s);return i},genIcon(t,e,i,n,a){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":i},attrs:{type:"button","aria-label":a},on:i?{}:{click:n}},[t(s["a"],[e])])])},genItem(t,e){const i=e===this.value&&(this.color||"primary"),s=e===this.value,n=s?this.currentPageAriaLabel:this.pageAriaLabel;return t("button",this.setBackgroundColor(i,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button","aria-current":s,"aria-label":this.$vuetify.lang.t(n,e)},on:{click:()=>this.$emit("input",e)}}),[e.toString()])},genItems(t){return this.items.map((e,i)=>t("li",{key:i},[isNaN(Number(e))?t("span",{class:"v-pagination__more"},[e.toString()]):this.genItem(t,e)]))},genList(t,e){return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}},render(t){const e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous,this.$vuetify.lang.t(this.previousAriaLabel)),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next,this.$vuetify.lang.t(this.nextAriaLabel))];return t("nav",{attrs:{role:"navigation","aria-label":this.$vuetify.lang.t(this.wrapperAriaLabel)}},[this.genList(t,e)])}})},"8ce9":function(t,e,i){},"8efc":function(t,e,i){},"90a2":function(t,e,i){"use strict";function s(t,e){const i=e.modifiers||{},s=e.value,{handler:a,options:r}="object"===typeof s?s:{handler:s,options:{}},o=new IntersectionObserver((e=[],s)=>{if(t._observe){if(a&&(!i.quiet||t._observe.init)){const t=Boolean(e.find(t=>t.isIntersecting));a(e,s,t)}t._observe.init&&i.once?n(t):t._observe.init=!0}},r);t._observe={init:!1,observer:o},o.observe(t)}function n(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}const a={inserted:s,unbind:n};e["a"]=a},9878:function(t,e,i){"use strict";i("b65f");function s(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}function n(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日 "+e.getHours()+"时"+e.getMinutes()+"分"}function a(t,e){return n(t)+" ~ "+n(e)}function r(t){var e=(new Date).getTime(),i=e-t;return i=Math.trunc(i/1e3),i<60?i+"秒前":(i=Math.trunc(i/60),i<60?i+"分钟前":(i=Math.trunc(i/60),i<24?i+"小时前":(i=Math.trunc(i/24),i<30?i+"天前":s(t))))}var o,l,c={timeToNowStrning:r,renderTime:s,formateTimeToChinese:n,formateTime:a},d=c,u=i("2877"),h=Object(u["a"])(d,o,l,!1,null,null,null);e["a"]=h.exports},"9d26":function(t,e,i){"use strict";var s=i("132d");e["a"]=s["a"]},a236:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["default"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){const i=e.split(" ");for(const e of i)t.push("rounded-"+e)}else e&&t.push("rounded");return t.length>0?{[t.join(" ")]:!0}:{}}}})},a9ad:function(t,e,i){"use strict";var s=i("2b0e"),n=i("d9bd"),a=i("7bc6");e["a"]=s["default"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(t,e={}){return"string"===typeof e.style?(Object(n["b"])("style must be an object",this),e):"string"===typeof e.class?(Object(n["b"])("class must be an object",this),e):(Object(a["d"])(t)?e.style={...e.style,"background-color":""+t,"border-color":""+t}:t&&(e.class={...e.class,[t]:!0}),e)},setTextColor(t,e={}){if("string"===typeof e.style)return Object(n["b"])("style must be an object",this),e;if("string"===typeof e.class)return Object(n["b"])("class must be an object",this),e;if(Object(a["d"])(t))e.style={...e.style,color:""+t,"caret-color":""+t};else if(t){const[i,s]=t.toString().trim().split(" ",2);e.class={...e.class,[i+"--text"]:!0},s&&(e.class["text--"+s]=!0)}return e}}})},adda:function(t,e,i){"use strict";i("8efc");var s=i("90a2"),n=(i("36a7"),i("24b2")),a=i("58df"),r=Object(a["a"])(n["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),o=r,l=i("7560"),c=i("d9f7"),d=i("d9bd");const u="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(a["a"])(o,l["a"]).extend({name:"v-img",directives:{intersect:s["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!u||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,t.src=this.normalisedSrc.src,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:s,naturalWidth:n}=t;s||n?(this.naturalWidth=n,this.calculatedAspectRatio=n/s):null!=e&&!this.hasError&&setTimeout(i,e)};i()},genContent(){const t=o.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){if(this.$slots.placeholder){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(t){const e=o.options.render.call(this,t),i=Object(c["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:u?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},af2b:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["default"].extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},b65f:function(t,e,i){var s=i("23e7"),n=Math.ceil,a=Math.floor;s({target:"Math",stat:!0},{trunc:function(t){return(t>0?a:n)(t)}})},ce7e:function(t,e,i){"use strict";i("8ce9");var s=i("7560");e["a"]=s["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},dc22:function(t,e,i){"use strict";function s(t,e){const i=e.value,s=e.options||{passive:!0};window.addEventListener("resize",i,s),t._onResize={callback:i,options:s},e.modifiers&&e.modifiers.quiet||i()}function n(t){if(!t._onResize)return;const{callback:e,options:i}=t._onResize;window.removeEventListener("resize",e,i),delete t._onResize}const a={inserted:s,unbind:n};e["a"]=a},de2c:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var s=i("90a2"),n=i("d9bd"),a=i("2b0e");function r(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?a["default"].extend({name:"intersectable",mounted(){s["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed(){s["a"].unbind(this.$el)},methods:{onObserve(e,i,s){if(s)for(let a=0,r=t.onVisible.length;a<r;a++){const e=this[t.onVisible[a]];"function"!==typeof e?Object(n["c"])(t.onVisible[a]+" method is not available on the instance but referenced in intersectable mixin options"):e()}}}}):a["default"].extend({name:"intersectable"})}},e39b:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-container",{attrs:{"fill-height":""}},[i("div",[i("v-row",[i("v-col",[i("h3",[t._v("标签结果")])])],1),i("v-row",[i("v-col",[i("v-divider")],1)],1),i("v-row",t._l(t.videoList,(function(t){return i("v-col",{key:t.id},[i("ItemCard",{attrs:{video:t}})],1)})),1),i("v-row",{attrs:{justify:"center"}},[i("v-pagination",{attrs:{length:t.length,"total-visible":7},on:{input:t.pageChange},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}})],1)],1)])},n=[],a=i("1c2b"),r=i("371f"),o={name:"TagResult",components:{ItemCard:r["a"]},data:function(){return{page:1,currentPage:1,size:12,length:1,videoList:[]}},created:function(){this.page=parseInt(this.$route.query.page),this.getVideos(this.$route.query.tag,this.$route.query.page)},methods:{getVideos:function(t,e){var i=this;Object(a["h"])(t,e).then((function(t){if(0===t.code){var e=t.data;i.videoList=e.list,i.currentPage=e.currentPage,i.length=e.totalPages,i.$vuetify.goTo(0)}else console.error(t.msg)})).catch((function(t){console.error(t.message)}))},pageChange:function(t){t!==this.currentPage&&(this.currentPage=t,this.$router.push({path:this.$route.path,query:{tag:this.$route.query.tag,page:t}}))}}},l=o,c=i("2877"),d=i("6544"),u=i.n(d),h=i("62ad"),g=i("a523"),p=i("ce7e"),f=i("891e"),v=i("0fd9"),m=Object(c["a"])(l,s,n,!1,null,null,null);e["default"]=m.exports;u()(m,{VCol:h["a"],VContainer:g["a"],VDivider:p["a"],VPagination:f["a"],VRow:v["a"]})}}]);
|