You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/dist/user-status-modal-5133.js

2 lines
30 KiB

"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5133],{13596:(t,e,a)=>{a.d(e,{A:()=>i});var s=a(71354),n=a.n(s),r=a(76314),l=a.n(r)()(n());l.push([t.id,".custom-input[data-v-7f71fe3a]{display:flex;align-items:flex-end;gap:var(--default-grid-baseline);width:100%}.custom-input__container[data-v-7f71fe3a]{width:100%}","",{version:3,sources:["webpack://./apps/user_status/src/components/CustomMessageInput.vue"],names:[],mappings:"AACA,+BACC,YAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CAEA,0CACC,UAAA",sourcesContent:["\n.custom-input {\n\tdisplay: flex;\n\talign-items: flex-end;\n\tgap: var(--default-grid-baseline);\n\twidth: 100%;\n\n\t&__container {\n\t\twidth: 100%;\n\t}\n}\n"],sourceRoot:""}]);const i=l},25750:(t,e,a)=>{a.r(e),a.d(e,{default:()=>et});var s=a(85168),n=a(53334),r=a(63814),l=a(74095),i=a(80780),o=a(67607),d=a(51651),u=a(61913);function c(t){if(null===t)return(0,n.Tl)("user_status","Don't clear");if("end-of"===t.type)switch(t.time){case"day":return(0,n.Tl)("user_status","Today");case"week":return(0,n.Tl)("user_status","This week");default:return null}if("period"===t.type)return d.A.duration(1e3*t.time).humanize();if("_time"===t.type){const e=(0,d.A)((0,u.R)()),a=(0,d.A)(t.time,"X");return d.A.duration(e.diff(a)).humanize()}return null}const A={name:"ClearAtSelect",components:{NcSelect:o.default},props:{clearAt:{type:Object,default:null}},data:()=>({options:[{label:(0,n.Tl)("user_status","Don't clear"),clearAt:null},{label:(0,n.Tl)("user_status","30 minutes"),clearAt:{type:"period",time:1800}},{label:(0,n.Tl)("user_status","1 hour"),clearAt:{type:"period",time:3600}},{label:(0,n.Tl)("user_status","4 hours"),clearAt:{type:"period",time:14400}},{label:(0,n.Tl)("user_status","Today"),clearAt:{type:"end-of",time:"day"}},{label:(0,n.Tl)("user_status","This week"),clearAt:{type:"end-of",time:"week"}}]}),computed:{option(){return{clearAt:this.clearAt,label:c(this.clearAt)}}},methods:{select(t){t&&this.$emit("select-clear-at",t.clearAt)}}};var p=a(85072),g=a.n(p),C=a(97825),b=a.n(C),f=a(77659),v=a.n(f),_=a(55056),m=a.n(_),h=a(10540),k=a.n(h),x=a(41113),y=a.n(x),S=a(71150),w={};w.styleTagTransform=y(),w.setAttributes=m(),w.insert=v().bind(null,"head"),w.domAPI=b(),w.insertStyleElement=k(),g()(S.A,w),S.A&&S.A.locals&&S.A.locals;var I=a(14486);const D=(0,I.A)(A,function(){var t=this,e=t._self._c;return e("div",{staticClass:"clear-at-select"},[e("label",{staticClass:"clear-at-select__label",attrs:{for:"clearStatus"}},[t._v("\n\t\t"+t._s(t.$t("user_status","Clear status after"))+"\n\t")]),t._v(" "),e("NcSelect",{staticClass:"clear-at-select__select",attrs:{"input-id":"clearStatus",options:t.options,value:t.option,clearable:!1,placement:"top","label-outside":""},on:{"option:selected":t.select}})],1)},[],!1,null,"7b252264",null).exports;var B=a(66272);const M={name:"CustomMessageInput",components:{NcTextField:a(82182).A,NcButton:l.A,NcEmojiPicker:B.N},props:{icon:{type:String,default:"😀"},message:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["change","select-icon"],computed:{visibleIcon(){return this.icon||"😀"}},methods:{focus(){this.$refs.input.focus()},onChange(t){this.$emit("change",t.target.value)},setIcon(t){this.$emit("select-icon",t)}}};var $=a(13596),T={};T.styleTagTransform=y(),T.setAttributes=m(),T.insert=v().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=k(),g()($.A,T),$.A&&$.A.locals&&$.A.locals;const P=(0,I.A)(M,function(){var t=this,e=t._self._c;return e("div",{staticClass:"custom-input",attrs:{role:"group"}},[e("NcEmojiPicker",{attrs:{container:".custom-input"},on:{select:t.setIcon}},[e("NcButton",{attrs:{variant:"tertiary","aria-label":t.t("user_status","Emoji for your status message")},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v("\n\t\t\t\t"+t._s(t.visibleIcon)+"\n\t\t\t")]},proxy:!0}])})],1),t._v(" "),e("div",{staticClass:"custom-input__container"},[e("NcTextField",{ref:"input",attrs:{maxlength:"80",disabled:t.disabled,placeholder:t.t("user_status","What is your status?"),value:t.message,type:"text",label:t.t("user_status","What is your s
//# sourceMappingURL=user-status-modal-5133.js.map?v=35d75bd10b7925b0cd6c