1"use strict";(self.webpackChunkpleroma_fe=self.webpackChunkpleroma_fe||[]).push([[326],{8326:(t,e,n)=>{n.r(e),n.d(e,{default:()=>p});var a=n(641),i=n(3751),c={class:"sticker-picker"},r=["image-tooltip","image"],s=["onClick"],o=["src"],u=n(596);const l={components:{TabSwitcher:n(5535).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 n=this,a=this.$store;fetch(t).then((function(t){t.blob().then((function(t){var i=new File([t],e,{mimetype:"image/png"}),c=new FormData;c.append("file",i),u.A.uploadMedia({store:a,formData:c}).then((function(t){n.$emit("uploaded",t),n.clear()}),(function(t){console.warn("Can't attach sticker"),console.warn(t),n.$emit("upload-failed","default")}))}))}))}}},p=(0,n(6262).A)(l,[["render",function(t,e,n,u,l,p){var f=(0,a.g2)("tab-switcher");return(0,a.uX)(),(0,a.CE)("div",c,[(0,a.bF)(f,{class:"tab-switcher","render-only-focused":!0,"scrollable-tabs":""},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(t.pack,(function(e){return(0,a.uX)(),(0,a.CE)("div",{key:e.path,"image-tooltip":e.meta.title,image:e.path+e.meta.tabIcon,class:"sticker-picker-content"},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.meta.stickers,(function(n){return(0,a.uX)(),(0,a.CE)("div",{key:n,class:"sticker",onClick:(0,i.D$)((function(a){return t.pick(e.path+n,e.meta.title)}),["stop","prevent"])},[(0,a.Lk)("img",{src:e.path+n},null,8,o)],8,s)})),128))],8,r)})),128))]})),_:1})])}]])}}]); 2//# sourceMappingURL=326.7051c678fc818fe52033.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.