%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/editor-guest.js |
"use strict";(self.webpackChunk_nextcloud_text=self.webpackChunk_nextcloud_text||[]).push([["editor-guest"],{62177:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(87537),a=s.n(n),i=s(23645),r=s.n(i)()(a());r.push([e.id,".avatar[data-v-1bf0295d],.avatar-wrapper[data-v-1bf0295d]{border-radius:50%;width:var(--size);height:var(--size);text-align:center;color:#fff;line-height:var(--size);font-size:var(--font-size);font-weight:normal;display:flex;justify-content:center;align-items:center}","",{version:3,sources:["webpack://./src/components/Editor/AvatarWrapper.vue"],names:[],mappings:"AAEA,0DACC,iBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,UAAA,CACA,uBAAA,CACA,0BAAA,CACA,kBAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA",sourcesContent:["\n\n.avatar, .avatar-wrapper {\n\tborder-radius: 50%;\n\twidth: var(--size);\n\theight: var(--size);\n\ttext-align: center;\n\tcolor: #ffffff;\n\tline-height: var(--size);\n\tfont-size: var(--font-size);\n\tfont-weight: normal;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n"],sourceRoot:""}]);const o=r},81521:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(87537),a=s.n(n),i=s(23645),r=s.n(i)()(a());r.push([e.id,"form.guest-name-dialog[data-v-67092edc]{display:flex;align-items:center;padding:6px}form.guest-name-dialog[data-v-67092edc] img{margin:0 !important}form.guest-name-dialog input[type=text][data-v-67092edc]{flex-grow:1}form.guest-name-dialog label[data-v-67092edc]{padding-right:3px;height:32px}","",{version:3,sources:["webpack://./src/components/Editor/GuestNameDialog.vue"],names:[],mappings:"AACA,wCACC,YAAA,CACA,kBAAA,CACA,WAAA,CAEA,4CACC,mBAAA,CAGD,yDACC,WAAA,CAED,8CACC,iBAAA,CACA,WAAA",sourcesContent:["\nform.guest-name-dialog {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 6px;\n\n\t&:deep(img) {\n\t\tmargin: 0 !important;\n\t}\n\n\tinput[type=text] {\n\t\tflex-grow: 1;\n\t}\n\tlabel {\n\t\tpadding-right: 3px;\n\t\theight: 32px;\n\t}\n}\n"],sourceRoot:""}]);const o=r},12850:(e,t,s)=>{s.d(t,{Z:()=>h});const n={name:"AvatarWrapper",components:{NcAvatar:s(66726).Xn},props:{session:{type:Object,required:!0},size:{type:Number,default:()=>32}},computed:{sessionAvatarStyle(){return{...this.sessionBackgroundStyle,"border-color":this.session.color,"border-width":"2px","border-style":"solid","--size":this.size+"px","--font-size":this.size/2+"px"}},sessionBackgroundStyle(){return{"background-color":this.session.userId?this.session.color+" !important":"#b9b9b9"}},guestInitial(){return""===this.session.guestName?"?":this.session.guestName.slice(0,1).toUpperCase()}}};var a=s(93379),i=s.n(a),r=s(7795),o=s.n(r),u=s(90569),l=s.n(u),A=s(3565),d=s.n(A),c=s(19216),m=s.n(c),p=s(44589),g=s.n(p),f=s(62177),v={};v.styleTagTransform=g(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=m();i()(f.Z,v);f.Z&&f.Z.locals&&f.Z.locals;const h=(0,s(51900).Z)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"avatar-wrapper",style:e.sessionAvatarStyle},[e.session.userId?t("NcAvatar",{attrs:{user:e.session.userId?e.session.userId:e.session.guestName,"is-guest":null===e.session.userId,"disable-menu":!0,"show-user-status":!1,"disable-tooltip":!0,size:e.size}}):t("div",{staticClass:"avatar",style:e.sessionBackgroundStyle},[e._v("\n\t\t"+e._s(e.guestInitial)+"\n\t")])],1)}),[],!1,null,"1bf0295d",null).exports},84550:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var n=s(11480),a=s(12850),i=s(31728);const r={name:"GuestNameDialog",components:{AvatarWrapper:a.Z},mixins:[i.BG],props:{session:{type:Object,required:!0}},data:()=>({guestName:"",guestNameBuffered:""}),computed:{avatarUrl(){const e=(0,n.nu)("/avatar/guest/{user}/{size}",{user:this.guestNameBuffered,size:32});return window.location.protocol+"//"+window.location.host+e}},beforeMount(){this.guestName=this.$syncService.connection.session.guestName,this.updateBufferedGuestName()},methods:{setGuestName(){const e=this.$syncService.connection.session.guestName;this.$syncService.updateSession(this.guestName).then((()=>{localStorage.setItem("nick",this.guestName),this.updateBufferedGuestName()})).catch((t=>{this.guestName=e}))},updateBufferedGuestName(){this.guestNameBuffered=this.guestName}}};var o=s(93379),u=s.n(o),l=s(7795),A=s.n(l),d=s(90569),c=s.n(d),m=s(3565),p=s.n(m),g=s(19216),f=s.n(g),v=s(44589),h=s.n(v),C=s(81521),b={};b.styleTagTransform=h(),b.setAttributes=p(),b.insert=c().bind(null,"head"),b.domAPI=A(),b.insertStyleElement=f();u()(C.Z,b);C.Z&&C.Z.locals&&C.Z.locals;const x=(0,s(51900).Z)(r,(function(){var e=this,t=e._self._c;return t("form",{staticClass:"guest-name-dialog",attrs:{title:e.t("text","Enter your name so other people can see who is editing")},on:{submit:function(t){return t.preventDefault(),e.setGuestName()}}},[t("label",[t("AvatarWrapper",{attrs:{session:e.session,size:32}})],1),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.guestName,expression:"guestName"}],attrs:{type:"text","aria-label":e.t("text","Edit guest name"),placeholder:e.t("text","Guest")},domProps:{value:e.guestName},on:{input:function(t){t.target.composing||(e.guestName=t.target.value)}}}),e._v(" "),t("input",{staticClass:"icon-confirm",attrs:{type:"submit","aria-label":e.t("text","Save guest name"),value:""}})])}),[],!1,null,"67092edc",null).exports}}]); //# sourceMappingURL=editor-guest.js.map?v=12129a06228425d93b70