(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[191],{249:function(e,t,a){"use strict";a.r(t);var n=a(250),u=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t.default=u.a},250:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a(200)),u=i(a(409)),s=a(27);function i(e){return e&&e.__esModule?e:{default:e}}var r={name:"GuestNameDialog",components:{Avatar:u.default},directives:{tooltip:n.default},props:{syncService:{type:Object,default:null}},data:function(){return{guestName:"",guestNameBuffered:""}},computed:{avatarUrl:function(){var e=(0,s.generateUrl)("/avatar/guest/{user}/{size}",{user:this.guestNameBuffered,size:32});return window.location.protocol+"//"+window.location.host+e}},beforeMount:function(){this.guestName=this.syncService.session.guestName,this.updateBufferedGuestName()},methods:{setGuestName:function(){var e=this,t=this.syncService.session.guestName;this.syncService.updateSession(this.guestName).then((function(){localStorage.setItem("nick",e.guestName),e.updateBufferedGuestName()})).catch((function(a){e.guestName=t}))},updateBufferedGuestName:function(){this.guestNameBuffered=this.guestName}}};t.default=r},417:function(e,t,a){var n=a(757);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a(51).default)("dca7bb3a",n,!0,{})},727:function(e,t,a){"use strict";a.r(t);var n=a(768),u=a(249);for(var s in u)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return u[e]}))}(s);a(756);var i=a(17),r=Object(i.a)(u.default,n.a,n.b,!1,null,"295cde23",null);t.default=r.exports},756:function(e,t,a){"use strict";a(417)},757:function(e,t,a){(t=a(50)(!1)).push([e.i,"form.guest-name-dialog[data-v-295cde23]{display:flex;max-width:200px;margin:auto;margin-top:-2px;padding:3px}form.guest-name-dialog[data-v-295cde23] img{margin:0 !important}form.guest-name-dialog input[type=text][data-v-295cde23]{flex-grow:1}form.guest-name-dialog label[data-v-295cde23]{padding:3px;height:32px}\n",""]),e.exports=t},768:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return u}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.t("text","Enter your name so other users can see who is editing"),expression:"t('text', 'Enter your name so other users can see who is editing')"}],staticClass:"guest-name-dialog",on:{submit:function(t){return t.preventDefault(),e.setGuestName()}}},[a("label",[a("Avatar",{attrs:{url:e.avatarUrl,"disable-tooltip":!0,size:32}})],1),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.guestName,expression:"guestName"}],attrs:{type:"text","aria-label":e.t("text","Edit guest name")},domProps:{value:e.guestName},on:{input:function(t){t.target.composing||(e.guestName=t.target.value)}}}),e._v(" "),a("input",{staticClass:"icon-confirm",attrs:{type:"submit","aria-label":e.t("text","Save guest name"),value:""}})])},u=[]}}]);
//# sourceMappingURL=editor-guest.js.map?v=22b382e225173683c1f9