text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["roomsession"],{"0c18":function(t,e,n){},ada6:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"room-session"},[n("v-container",[n("v-row",{attrs:{justify:"center"}},[n("v-col",{attrs:{cols:"12",sm:"10",md:"8",lg:"4",xl:"3"}},[n("v-card",[n("v-form",{ref:"enterform",on:{submit:function(t){t.preventDefault()}}},[n("v-alert",{attrs:{type:"info",color:t.theme.color}},[t._v(" "+t._s(t.theme.label+"チャンネル")+" ")]),n("v-text-field",{staticClass:"mx-10",attrs:{disabled:!t.enabled,label:"ユーザ名を入力(ex:テスト太郎)",rules:[t.required,t.limitLength],counter:"10"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),n("v-card-actions",{staticClass:"justify-center"},[n("v-btn",{attrs:{disabled:!t.enabled},on:{click:function(e){return e.stopPropagation(),t.showChat(e)}}},[t._v("入室")])],1)],1)],1)],1)],1)],1)],1)},i=[],o=(n("ac1f"),n("5319"),n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),c=n("262e"),l=n("2caf"),u=n("9ab4"),d=n("60a3"),h=n("1709"),f=n("cbe5"),p=n("2c15");d["a"].registerHooks(["beforeRouteEnter"]);var v=function(t){Object(c["a"])(n,t);var e=Object(l["a"])(n);function n(){var t;return Object(a["a"])(this,n),t=e.apply(this,arguments),t.enabled=!0,t.username="",t.theme={textColor:"",color:"",label:""},t.channelType="public",t.required=function(t){return!!t||"必ず入力してください。"},t.limitLength=function(t){return t.length<=10||"10文字以内で入力してください。"},t}return Object(s["a"])(n,[{key:"enableChanged",value:function(t){}},{key:"enabledChanged",value:function(t){this.enableChanged(t)}},{key:"mounted",value:function(){var t=this;this.$route.params.type&&Object(p["d"])(this.$route.params.type)&&(f["a"].SET_CHANNEL_TYPE(this.$route.params.type),this.channelType=this.$route.params.type),window.addEventListener("beforeunload",(function(e){var n;null===(n=t.chatWindow)||void 0===n||n.close()})),this.theme=Object(p["b"])(this.channelType)}},{key:"beforeRouteEnter",value:function(t,e,n){n((function(t){e.matched.length||t.$router.replace({path:"/"})}))}},{key:"showChat",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,n,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.$refs.enterform.validate()){t.next=2;break}return t.abrupt("return");case 2:f["a"].setUser(this.username),this.chatWindow=null!==(e=window.open("/chat","_blank","width=600,height=800"))&&void 0!==e?e:void 0,null===(n=this.chatWindow)||void 0===n||n.addEventListener("beforeunload",(function(t){f["a"].disconnect(),r.enabled=!0})),this.enabled=!1;case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),n}(d["d"]);Object(u["a"])([Object(d["b"])("headerButtonEnableChanged")],v.prototype,"enableChanged",null),Object(u["a"])([Object(d["e"])("enabled")],v.prototype,"enabledChanged",null),v=Object(u["a"])([Object(d["a"])({components:{Chat:h["a"]}})],v);var b=v,m=b,g=n("2877"),_=n("6544"),y=n.n(_),C=(n("caad"),n("5530")),w=n("ade3"),B=(n("0c18"),n("10d2")),$=n("afdd"),j=n("9d26"),O=n("f2e7"),E=n("7560"),x=n("2b0e"),k=x["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),V=n("58df"),I=n("d9bd"),S=Object(V["a"])(B["a"],O["a"],k).extend({name:"v-alert",props:{border:{type:String,validator:function(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator:function(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator:function(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder:function(){if(!this.border)return null;var t={staticClass:"v-alert__border",class:Object(w["a"])({},"v-alert__border--".concat(this.border),!0)};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible:function(){var t=this;if(!this.dismissible)return null;var e=this.iconColor;return this.$createElement($["a"],{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(){return t.isActive=!1}}},[this.$createElement(j["a"],{props:{color:e}},this.closeIcon)])},__cachedIcon:function(){return this.computedIcon?this.$createElement(j["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes:function(){var t=Object(C["a"])(Object(C["a"])({},B["a"].options.computed.classes.call(this)),{},{"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text});return this.border&&(t["v-alert--border-".concat(this.border)]=!0),t},computedColor:function(){return this.color||this.type},computedIcon:function(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$".concat(this.type))},hasColoredIcon:function(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText:function(){return this.text||this.outlined},iconColor:function(){return this.hasColoredIcon?this.computedColor:void 0},isDark:function(){return!(!this.type||this.coloredBorder||this.outlined)||E["a"].options.computed.isDark.call(this)}},created:function(){this.$attrs.hasOwnProperty("outline")&&Object(I["a"])("outline","outlined",this)},methods:{genWrapper:function(){var t=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent:function(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert:function(){var t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){var e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle:function(){this.isActive=!this.isActive}},render:function(t){var e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}}),T=n("8336"),A=n("b0af"),L=n("99d9"),D=n("62ad"),R=n("a523"),W=(n("4de4"),n("7db0"),n("4160"),n("07ac"),n("2532"),n("159b"),n("7e2b")),P=n("3206"),z=Object(V["a"])(W["a"],Object(P["b"])("form")).extend({name:"v-form",provide:function(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(t){var e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput:function(t){var e=this,n=function(t){return t.$watch("hasError",(function(n){e.$set(e.errorBag,t._uid,n)}),{immediate:!0})},r={_uid:t._uid,valid:function(){},shouldValidate:function(){}};return this.lazyValidation?r.shouldValidate=t.$watch("shouldValidate",(function(i){i&&(e.errorBag.hasOwnProperty(t._uid)||(r.valid=n(t)))})):r.valid=n(t),r},validate:function(){return 0===this.inputs.filter((function(t){return!t.validate(!0)})).length},reset:function(){this.inputs.forEach((function(t){return t.reset()})),this.resetErrorBag()},resetErrorBag:function(){var t=this;this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},resetValidation:function(){this.inputs.forEach((function(t){return t.resetValidation()})),this.resetErrorBag()},register:function(t){this.inputs.push(t),this.watchers.push(this.watchInput(t))},unregister:function(t){var e=this.inputs.find((function(e){return e._uid===t._uid}));if(e){var n=this.watchers.find((function(t){return t._uid===e._uid}));n&&(n.valid(),n.shouldValidate()),this.watchers=this.watchers.filter((function(t){return t._uid!==e._uid})),this.inputs=this.inputs.filter((function(t){return t._uid!==e._uid})),this.$delete(this.errorBag,e._uid)}}},render:function(t){var e=this;return t("form",{staticClass:"v-form",attrs:Object(C["a"])({novalidate:!0},this.attrs$),on:{submit:function(t){return e.$emit("submit",t)}}},this.$slots.default)}}),q=n("0fd9"),F=n("8654"),H=Object(g["a"])(m,r,i,!1,null,null,null);e["default"]=H.exports;y()(H,{VAlert:S,VBtn:T["a"],VCard:A["a"],VCardActions:L["a"],VCol:D["a"],VContainer:R["a"],VForm:z,VRow:q["a"],VTextField:F["a"]})},afdd:function(t,e,n){"use strict";var r=n("8336");e["a"]=r["a"]}}]);