330c47e89790352adbd98e0f3ae41682fd73b4b8
1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([[4],{627:function(t
,e
,c
){},655:function(t
,e
,c
){"use strict";c(627)},709:function(t
,e
,c
){"use strict";c
.r(e
);var n
=c(0);const a
={class:"sticker-picker"},i
=["image-tooltip","image"],s
=["onClick"],o
=["src"];var r
=c(76),l
={components:{TabSwitcher:c(71).a
},data:function(){return{meta:{stickers:[]},path:""}},computed:{pack:function(){return this.$store
.state
.instance
.stickers
||[]}},methods:{clear:function(){this.meta
={stickers:[]}},pick:function(t
,e
){var c
=this,n
=this.$store
;fetch(t
).then((function(t
){t
.blob().then((function(t
){var a
=new File([t
],e
,{mimetype:"image/png"}),i
=new FormData
;i
.append("file",a
),r
.a
.uploadMedia({store:n
,formData:i
}).then((function(t
){c
.$emit("uploaded",t
),c
.clear()}),(function(t
){console
.warn("Can't attach sticker"),console
.warn(t
),c
.$emit("upload-failed","default")}))}))}))}}},p
=(c(655),c(4));const u
=c
.n(p
)()(l
,[["render",function(t
,e
,c
,r
,l
,p
){const u
=Object(n
.J
)("tab-switcher");return Object(n
.D
)(),Object(n
.j
)("div",a
,[Object(n
.m
)(u
,{class:"tab-switcher","render-only-focused":!0,"scrollable-tabs":""},{default:Object(n
.V
)(()=>[(Object(n
.D
)(!0),Object(n
.j
)(n
.a
,null,Object(n
.H
)(t
.pack
,e
=>(Object(n
.D
)(),Object(n
.j
)("div",{key:e
.path
,"image-tooltip":e
.meta
.title
,image:e
.path
+e
.meta
.tabIcon
,class:"sticker-picker-content"},[(Object(n
.D
)(!0),Object(n
.j
)(n
.a
,null,Object(n
.H
)(e
.meta
.stickers
,c
=>(Object(n
.D
)(),Object(n
.j
)("div",{key:c
,class:"sticker",onClick:Object(n
.Y
)(n
=>t
.pick(e
.path
+c
,e
.meta
.title
),["stop","prevent"])},[Object(n
.k
)("img",{src:e
.path
+c
},null,8,o
)],8,s
))),128))],8,i
))),128))]),_:1})])}]]);e
.default=u
}}]);
2 //# sourceMappingURL=4.927a84e2225924985925.js.map