(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-020a16dd"],{"0fd9":function(t,e,s){"use strict";s("4b85");var i=s("2b0e"),n=s("d9f7"),a=s("80d2");const o=["sm","md","lg","xl"],r=["start","end","center"];function l(t,e){return o.reduce((s,i)=>(s[t+Object(a["E"])(i)]=e(),s),{})}const c=t=>[...r,"baseline","stretch"].includes(t),u=l("align",()=>({type:String,default:null,validator:c})),h=t=>[...r,"space-between","space-around"].includes(t),d=l("justify",()=>({type:String,default:null,validator:h})),p=t=>[...r,"space-between","space-around","stretch"].includes(t),f=l("alignContent",()=>({type:String,default:null,validator:p})),g={align:Object.keys(u),justify:Object.keys(d),alignContent:Object.keys(f)},v={align:"align",justify:"justify",alignContent:"align-content"};function m(t,e,s){let i=v[t];if(null!=s){if(e){const s=e.replace(t,"");i+="-"+s}return i+="-"+s,i.toLowerCase()}}const b=new Map;e["a"]=i["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...u,justify:{type:String,default:null,validator:h},...d,alignContent:{type:String,default:null,validator:p},...f},render(t,{props:e,data:s,children:i}){let a="";for(const n in e)a+=String(e[n]);let o=b.get(a);if(!o){let t;for(t in o=[],g)g[t].forEach(s=>{const i=e[s],n=m(t,s,i);n&&o.push(n)});o.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,o)}return t(e.tag,Object(n["a"])(s,{staticClass:"row",class:o}),i)}})},1681:function(t,e,s){},"1f91":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{attrs:{"fill-height":""}},[s("v-row",{attrs:{justify:"center",align:"center"}},[s("v-col",[s("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("h3",[t._v(" 网页设置")])])],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{label:"网页名"},model:{value:t.setting.name,callback:function(e){t.$set(t.setting,"name",e)},expression:"setting.name"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-textarea",{attrs:{label:"简介"},model:{value:t.setting.describe,callback:function(e){t.$set(t.setting,"describe",e)},expression:"setting.describe"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{label:"LOGO URL"},model:{value:t.setting.logoUrl,callback:function(e){t.$set(t.setting,"logoUrl",e)},expression:"setting.logoUrl"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-switch",{attrs:{label:"非vip观看次数限制"},model:{value:t.setting.openNoVipLimit,callback:function(e){t.$set(t.setting,"openNoVipLimit",e)},expression:"setting.openNoVipLimit"}})],1)],1),t.setting.openNoVipLimit?s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{label:"非VIP观看次数",type:"number"},model:{value:t.setting.noVipViewCount,callback:function(e){t.$set(t.setting,"noVipViewCount",e)},expression:"setting.noVipViewCount"}})],1)],1):t._e(),t.setting.openNoVipLimit?s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-switch",{attrs:{label:"开启上传视频增加观看次数"},model:{value:t.setting.openUploadVideoAddViewCount,callback:function(e){t.$set(t.setting,"openUploadVideoAddViewCount",e)},expression:"setting.openUploadVideoAddViewCount"}})],1)],1):t._e(),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-switch",{attrs:{label:"开启审核"},model:{value:t.setting.openExamine,callback:function(e){t.$set(t.setting,"openExamine",e)},expression:"setting.openExamine"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{label:"首页最大显示数量",type:"number"},model:{value:t.setting.homeMaxVideoCount,callback:function(e){t.$set(t.setting,"homeMaxVideoCount",e)},expression:"setting.homeMaxVideoCount"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}})],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-btn",{attrs:{color:"primary",block:""},on:{click:t.save}},[t._v("保存")])],1)],1)],1)],1)],1)],1)},n=[],a=(s("d3b7"),{data:function(){return{setting:{}}},created:function(){},methods:{getSetting:function(){var t=this;fetch("/api/media/web/info",{headers:{"Content-Type":"application/json; charset=UTF-8"},method:"GET",credentials:"include"}).then((function(t){return t.json()})).then((function(e){t.setting=e.data})).catch((function(t){return null}))},save:function(){fetch("/api/admin/setting/save",{headers:{"Content-Type":"application/json; charset=UTF-8","X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:JSON.stringify(this.setting)}).then((function(t){return t.json()})).then((function(t){})).catch((function(t){return null}))}}}),o=a,r=s("2877"),l=s("6544"),c=s.n(l),u=s("8336"),h=s("b0af"),d=s("62ad"),p=s("a523"),f=s("0fd9"),g=s("b73d"),v=s("8654"),m=s("a844"),b=Object(r["a"])(o,i,n,!1,null,null,null);e["default"]=b.exports;c()(b,{VBtn:u["a"],VCard:h["a"],VCol:d["a"],VContainer:p["a"],VRow:f["a"],VSwitch:g["a"],VTextField:v["a"],VTextarea:m["a"]})},"615b":function(t,e,s){},"62ad":function(t,e,s){"use strict";s("4b85");var i=s("2b0e"),n=s("d9f7"),a=s("80d2");const o=["sm","md","lg","xl"],r=(()=>o.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>o.reduce((t,e)=>(t["offset"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>o.reduce((t,e)=>(t["order"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),u={col:Object.keys(r),offset:Object.keys(l),order:Object.keys(c)};function h(t,e,s){let i=t;if(null!=s&&!1!==s){if(e){const s=e.replace(t,"");i+="-"+s}return"col"!==t||""!==s&&!0!==s?(i+="-"+s,i.toLowerCase()):i.toLowerCase()}}const d=new Map;e["a"]=i["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...r,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:s,children:i,parent:a}){let o="";for(const n in e)o+=String(e[n]);let r=d.get(o);if(!r){let t;for(t in r=[],u)u[t].forEach(s=>{const i=e[s],n=h(t,s,i);n&&r.push(n)});const s=r.some(t=>t.startsWith("col-"));r.push({col:!s||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),d.set(o,r)}return t(e.tag,Object(n["a"])(s,{class:r}),i)}})},8547:function(t,e,s){"use strict";var i=s("2b0e"),n=s("80d2");e["a"]=i["default"].extend({name:"comparable",props:{valueComparator:{type:Function,default:n["i"]}}})},"9d01":function(t,e,s){},a844:function(t,e,s){"use strict";s("1681");var i=s("8654"),n=s("58df");const a=Object(n["a"])(i["a"]);e["a"]=a.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:t=>!isNaN(parseFloat(t))},rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseInt(t,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...i["a"].options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const t=this.$refs.input;if(!t)return;t.style.height="0";const e=t.scrollHeight,s=parseInt(this.rows,10)*parseFloat(this.rowHeight);t.style.height=Math.max(s,e)+"px"},genInput(){const t=i["a"].options.methods.genInput.call(this);return t.tag="textarea",delete t.data.attrs.type,t.data.attrs.rows=this.rows,t},onInput(t){i["a"].options.methods.onInput.call(this,t),this.autoGrow&&this.calculateInputHeight()},onKeyDown(t){this.isFocused&&13===t.keyCode&&t.stopPropagation(),this.$emit("keydown",t)}}})},b0af:function(t,e,s){"use strict";s("615b");var i=s("10d2"),n=s("297c"),a=s("1c87"),o=s("58df");e["a"]=Object(o["a"])(n["a"],a["a"],i["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...a["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...i["a"].options.computed.classes.call(this)}},styles(){const t={...i["a"].options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},b73d:function(t,e,s){"use strict";s("ec29"),s("9d01");var i=s("c37a"),n=s("5607"),a=s("2b0e"),o=a["default"].extend({name:"rippleable",directives:{ripple:n["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}}),r=s("8547"),l=s("58df");function c(t){t.preventDefault()}var u=Object(l["a"])(i["a"],o,r["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=i["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:c},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:c},ref:"input"})},onBlur(){this.isFocused=!1},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const s=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===s&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(){this.isFocused=!0},onKeydown(t){}}}),h=s("c3f0"),d=s("0789"),p=s("490a"),f=s("80d2");e["a"]=u.extend({name:"v-switch",directives:{Touch:h["a"]},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes(){return{...i["a"].options.computed.classes.call(this),"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset}},attrs(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0},switchData(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot(){return[this.genSwitch(),this.genLabel()]},genSwitch(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",{...this.attrs,...this.attrs$}),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",{staticClass:"v-input--switch__track",...this.switchData}),this.$createElement("div",{staticClass:"v-input--switch__thumb",...this.switchData},[this.genProgress()])])},genProgress(){return this.$createElement(d["c"],{},[!1===this.loading?null:this.$slots.progress||this.$createElement(p["a"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft(){this.isActive&&this.onChange()},onSwipeRight(){this.isActive||this.onChange()},onKeydown(t){(t.keyCode===f["x"].left&&this.isActive||t.keyCode===f["x"].right&&!this.isActive)&&this.onChange()}}})},c3f0:function(t,e,s){"use strict";var i=s("80d2");const n=t=>{const{touchstartX:e,touchendX:s,touchstartY:i,touchendY:n}=t,a=.5,o=16;t.offsetX=s-e,t.offsetY=n-i,Math.abs(t.offsetY)e+o&&t.right(t)),Math.abs(t.offsetX)i+o&&t.down(t))};function a(t,e){const s=t.changedTouches[0];e.touchstartX=s.clientX,e.touchstartY=s.clientY,e.start&&e.start(Object.assign(t,e))}function o(t,e){const s=t.changedTouches[0];e.touchendX=s.clientX,e.touchendY=s.clientY,e.end&&e.end(Object.assign(t,e)),n(e)}function r(t,e){const s=t.changedTouches[0];e.touchmoveX=s.clientX,e.touchmoveY=s.clientY,e.move&&e.move(Object.assign(t,e))}function l(t){const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:t=>a(t,e),touchend:t=>o(t,e),touchmove:t=>r(t,e)}}function c(t,e,s){const n=e.value,a=n.parent?t.parentElement:t,o=n.options||{passive:!0};if(!a)return;const r=l(e.value);a._touchHandlers=Object(a._touchHandlers),a._touchHandlers[s.context._uid]=r,Object(i["y"])(r).forEach(t=>{a.addEventListener(t,r[t],o)})}function u(t,e,s){const n=e.value.parent?t.parentElement:t;if(!n||!n._touchHandlers)return;const a=n._touchHandlers[s.context._uid];Object(i["y"])(a).forEach(t=>{n.removeEventListener(t,a[t])}),delete n._touchHandlers[s.context._uid]}const h={inserted:c,unbind:u};e["a"]=h},ec29:function(t,e,s){}}]);