-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
1 lines (1 loc) · 24.1 KB
/
index.js
1
(function(){"use strict";function n(s,e,t,i,a,r,o,p){var l=typeof s=="function"?s.options:s;return e&&(l.render=e,l.staticRenderFns=t,l._compiled=!0),{exports:s,options:l}}const u={props:{year:Number,month:Number,nextYear:Number,nextMonth:Number,prevYear:Number,prevMonth:Number,summary:Object,targets:{type:Array,default:[]},sources:Array,sent:Array,itemsInQueue:Number},methods:{goToPrevMonth(){const s=window.location.pathname.split("webmentions");window.location.pathname=`${s[0]}webmentions/${this.prevYear}/${this.prevMonth}`},goToNextMonth(){const s=window.location.pathname.split("webmentions");window.location.pathname=`${s[0]}webmentions/${this.nextYear}/${this.nextMonth}`}}};var c=function(){var e=this,t=e._self._c;return t("k-inside",[t("div",{staticClass:"k-webmentions-view"},[t("k-header",[e._v("IndieConnector")]),t("k-tabs",{attrs:{tab:"webmentions",tabs:[{name:"webmentions",label:"Webmentions",link:"/webmentions"},{name:"queue",label:"Queue",link:"/webmentions/queue",badge:e.itemsInQueue}],theme:"warning"}}),t("div",{staticClass:"prev-next"},[t("button",{staticClass:"k-link k-button",on:{click:e.goToPrevMonth}},[t("k-icon",{attrs:{type:"angle-left"}})],1),e._v(" "+e._s(e.month)+" / "+e._s(e.year)+" "),t("button",{staticClass:"k-link k-button",on:{click:e.goToNextMonth}},[t("k-icon",{attrs:{type:"angle-right"}})],1)]),t("DetailsByMonth",{attrs:{summary:e.summary}}),t("Sources",{attrs:{sources:e.sources}}),t("k-grid",{staticStyle:{gap:"2rem","--columns":"2"}},[t("Sent",{attrs:{outbox:e.sent}}),t("Targets",{attrs:{targets:e.targets}})],1)],1)])},h=[],m=n(u,c,h);const d=m.exports,g={props:{summary:{summary:Number,likes:Number,replies:Number,reposts:Number,mentions:Number,bookmarks:Number}},methods:{printNumberValue(s){return`<span class="${s===0?"muted":""}">${s}</span>`}},computed:{targetList(){return{summary:this.printNumberValue(this.summary.summary),likes:this.printNumberValue(this.summary.likes),replies:this.printNumberValue(this.summary.replies),reposts:this.printNumberValue(this.summary.reposts),mentions:this.printNumberValue(this.summary.mentions),bookmarks:this.printNumberValue(this.summary.bookmarks)}}}};var C=function(){var e=this,t=e._self._c;return t("div",[t("k-headline",{attrs:{tag:"h2"}},[e._v("Summary")]),t("k-table",{attrs:{columns:{summary:{label:"Webmentions received",type:"html",align:"center"},likes:{label:"likes",type:"html",align:"center"},replies:{label:"replies",type:"html",align:"center"},reposts:{label:"reposts",type:"html",align:"center"},mentions:{label:"mentions",type:"html",align:"center"},bookmarks:{label:"bookmarks",type:"html",align:"center"}},index:!1,rows:[e.targetList]},scopedSlots:e._u([{key:"header",fn:function({columnIndex:i,label:a}){return[t("div",{staticClass:"center-icon"},[i==="likes"?t("k-icon",{staticStyle:{color:"var(--color-red-700)"},attrs:{type:"heart-filled"}}):i==="replies"?t("k-icon",{staticStyle:{color:"var(--color-yellow-700)"},attrs:{type:"chat"}}):i==="reposts"?t("k-icon",{staticStyle:{color:"var(--color-green-700)"},attrs:{type:"indie-repost"}}):i==="mentions"?t("k-icon",{staticStyle:{color:"var(--color-blue-700)"},attrs:{type:"indie-mention"}}):i==="bookmarks"?t("k-icon",{staticStyle:{color:"var(--color-purple-700)"},attrs:{type:"bookmark"}}):t("span",[e._v(e._s(a))])],1)]}}])})],1)},k=[],v=n(g,C,k);const b=v.exports,f={props:{targets:{type:Array,default:()=>[]}},data(){return{pagination:{page:1,limit:20,total:0}}},methods:{printNumberValue(s){return`<span class="${s===0?"muted":""}">${s}</span>`}},computed:{index(){return(this.pagination.page-1)*this.pagination.limit+1},targetList(){return this.pagination.total=this.targets.length,this.targets.map(e=>({title:`<a href="${e.panelUrl}">${e.title}</k-link>`,likes:this.printNumberValue(e.likes),replies:this.printNumberValue(e.replies),reposts:this.printNumberValue(e.reposts),mentions:this.printNumberValue(e.mentions),bookmarks:this.printNumberValue(e.bookmarks)})).slice(this.index-1,this.pagination.limit*this.pagination.page)}}};var w=function(){var e=this,t=e._self._c;return t("div",[t("k-headline",{attrs:{tag:"h2"}},[e._v("Targets")]),t("k-table",{attrs:{columns:{title:{label:"Page",type:"html"},likes:{label:"likes",type:"html",width:"40px",align:"center"},replies:{label:"replies",type:"html",width:"40px",align:"center"},reposts:{label:"reposts",type:"html",width:"40px",align:"center"},mentions:{label:"mentions",type:"html",width:"40px",align:"center"},bookmarks:{label:"bookmarks",type:"html",width:"40px",align:"center"}},index:!1,rows:e.targetList,pagination:{page:e.pagination.page,limit:e.pagination.limit,total:e.pagination.total,details:!0}},on:{paginate:function(i){e.pagination.page=i.page}},scopedSlots:e._u([{key:"header",fn:function({columnIndex:i,label:a}){return[t("span",[i==="likes"?t("k-icon",{staticStyle:{color:"var(--color-red-700)"},attrs:{type:"heart-filled"}}):i==="replies"?t("k-icon",{staticStyle:{color:"var(--color-yellow-700)"},attrs:{type:"chat"}}):i==="reposts"?t("k-icon",{staticStyle:{color:"var(--color-green-700)"},attrs:{type:"indie-repost"}}):i==="mentions"?t("k-icon",{staticStyle:{color:"var(--color-blue-700)"},attrs:{type:"indie-mention"}}):i==="bookmarks"?t("k-icon",{staticStyle:{color:"var(--color-purple-700)"},attrs:{type:"bookmark"}}):t("span",[e._v(e._s(a))])],1)]}}])})],1)},_=[],y=n(f,w,_);const L=y.exports,x={props:{sources:Object},data(){return{pagination:{page:1,limit:10,total:0}}},methods:{printNumberValue(s){return`<span class="${s===0?"muted":""}">${s}</span>`}},computed:{index(){return(this.pagination.page-1)*this.pagination.limit+1},sourceList(){const s=[];return this.pagination.total=0,this.sources.forEach(e=>{const t={source:`<strong class="group-label">${e.summary.host}</strong>`,likes:this.printNumberValue(e.summary.likes),replies:this.printNumberValue(e.summary.replies),reposts:this.printNumberValue(e.summary.reposts),mentions:this.printNumberValue(e.summary.mentions),bookmarks:this.printNumberValue(e.summary.bookmarks)};s.push(t),this.pagination.total++,Object.values(e.entries).forEach(i=>{const a={source:`<a href="${i.source}" class="source-entry"><img src="${i.image}" width="40px" height="40px" />${i.author}</a>`,icon:"",title:`<span class="shortened-text">${i.title}</span>`,likes:this.printNumberValue(i.likes),replies:this.printNumberValue(i.replies),reposts:this.printNumberValue(i.reposts),mentions:this.printNumberValue(i.mentions),bookmarks:this.printNumberValue(i.bookmarks)};s.push(a),this.pagination.total++})}),s.slice(this.index-1,this.pagination.limit*this.pagination.page)}}};var S=function(){var e=this,t=e._self._c;return t("div",[t("k-headline",{attrs:{tag:"h2"}},[e._v("Sources")]),t("k-table",{attrs:{columns:{source:{label:"Source",type:"html"},title:{label:"Title / Summary",type:"html"},likes:{label:"likes",type:"html",width:"40px",align:"center"},replies:{label:"replies",type:"html",width:"40px",align:"center"},reposts:{label:"reposts",type:"html",width:"40px",align:"center"},mentions:{label:"mentions",type:"html",width:"40px",align:"center"},bookmarks:{label:"bookmarks",type:"html",width:"40px",align:"center"}},index:!1,rows:e.sourceList,pagination:{page:e.pagination.page,limit:e.pagination.limit,total:e.pagination.total,details:!0}},on:{paginate:function(i){e.pagination.page=i.page}},scopedSlots:e._u([{key:"header",fn:function({columnIndex:i,label:a}){return[t("span",[i==="likes"?t("k-icon",{staticStyle:{color:"var(--color-red-700)"},attrs:{type:"heart-filled"}}):i==="replies"?t("k-icon",{staticStyle:{color:"var(--color-yellow-700)"},attrs:{type:"chat"}}):i==="reposts"?t("k-icon",{staticStyle:{color:"var(--color-green-700)"},attrs:{type:"indie-repost"}}):i==="mentions"?t("k-icon",{staticStyle:{color:"var(--color-blue-700)"},attrs:{type:"indie-mention"}}):i==="bookmarks"?t("k-icon",{staticStyle:{color:"var(--color-purple-700)"},attrs:{type:"bookmark"}}):t("span",[e._v(e._s(a))])],1)]}}])})],1)},$=[],M=n(x,S,$);const N=M.exports,V={props:{outbox:Array},data(){return{pagination:{page:1,limit:20,total:0}}},computed:{index(){return(this.pagination.page-1)*this.pagination.limit+1},sentList(){const s=[];return this.pagination.total=0,this.outbox.forEach(e=>{const t={title:`<a href="${e.page.panelUrl}" class="source group-label" >${e.page.title}</a>`,panelUrl:e.page.panelUrl,webmentions:e.entries.length,url:null,status:null,updates:null};s.push(t),this.pagination.total++,e.entries.forEach(i=>{const a={title:`<a href="${i.url}" class="target" target="_blank">${i.url}</a>`,panelUrl:null,webmentions:null,url:i.url,status:i.status==="success"?'<svg aria-hidden="true" data-type="check" class="k-icon" style="color: var(--color-green-700);"><use xlink:href="#icon-check"></use></svg>':'<svg aria-hidden="true" data-type="cancel" class="k-icon" style="color: var(--color-red-700);"><use xlink:href="#icon-cancel"></use></svg>',updates:i.updates};s.push(a),this.pagination.total++})}),s.slice(this.index-1,this.pagination.limit*this.pagination.page)}}};var q=function(){var e=this,t=e._self._c;return t("div",[t("k-headline",{attrs:{tag:"h2"}},[e._v("Sent Webmentions")]),t("k-table",{attrs:{columns:{title:{label:"Page / Target",type:"html"},updates:{label:"Updates",type:"text",width:"40px",align:"center"},status:{label:"Status",type:"html",width:"40px",align:"center"}},index:!1,rows:e.sentList,pagination:{page:e.pagination.page,limit:e.pagination.limit,total:e.pagination.total,details:!0}},on:{paginate:function(i){e.pagination.page=i.page}},scopedSlots:e._u([{key:"header",fn:function({columnIndex:i,label:a}){return[t("span",{attrs:{title:a}},[i==="status"?t("k-icon",{staticStyle:{color:"var(--color-purple-700)"},attrs:{type:"live"}}):i==="updates"?t("k-icon",{staticStyle:{color:"var(--color-purple-700)"},attrs:{type:"refresh"}}):t("span",[e._v(e._s(a))])],1)]}}])})],1)},H=[],Z=n(V,q,H);const Q=Z.exports,I={props:{disabled:Boolean,queuedItems:Object,itemsInQueue:Number},methods:{}};var T=function(){var e=this,t=e._self._c;return t("k-inside",[t("div",{staticClass:"k-webmentions-queue-view"},[t("k-header",[e._v("IndieConnector")]),t("k-tabs",{attrs:{tab:"queue",tabs:[{name:"webmentions",label:"Webmentions",link:"/webmentions"},{name:"queue",label:"Queue",link:"/webmentions/queue",badge:e.itemsInQueue}],theme:"warning"}}),e.disabled?t("k-info-field",{attrs:{label:"Queue disabled",text:"The queue feature is disabled. Configure it in your config.php"}}):e._e(),t("QueueList",{attrs:{queuedItems:e.queuedItems}})],1)])},B=[],R=n(I,T,B);const F=R.exports,U={props:{queuedItems:Array},data(){return{pagination:{page:1,limit:10,total:0},processIndex:0,processRunning:!1}},methods:{printNumberValue(s){return`<span class="${s===0?"muted":""}">${s}</span>`},processQueueItem(s){panel.api.post(`indieconnector/queue/processItem/${s}`).then(e=>{const t=this.queuedItems.find(i=>i.id===s);t.queueStatus=e.queueStatus,t.retries=e.retries,t.processLog=e.processLog})},processQueue(){if(this.processIndex>=this.queuedItems.length){this.processIndex=0,this.processRunning=!1,setTimeout(()=>{panel.reload()},500);return}this.processRunning=!0;const t=(this.processIndex>0?this.queuedItems.filter(a=>a.queueStatus!=="failed"&&a.queueStatus!=="error"&&a.queueStatus!=="success"):this.queuedItems.filter(a=>a.queueStatus!=="failed"&&a.queueStatus!=="success")).slice(0,2),i=t.map(a=>a.id);t.forEach(a=>{a.queueStatus="running"}),this.processIndex+=2,panel.api.post("indieconnector/queue/process",i).then(a=>{a.forEach(r=>{const o=this.queuedItems.find(p=>p.id===r.id);o.queueStatus=r.queueStatus,o.retries=r.retries,o.processLog=r.processLog})}).then(()=>{this.processQueue()})},deleteQueueItem(s){panel.dialog.open(`queue/delete/${s}`)},cleanQueue(s){panel.dialog.open(`queue/clean/${s}`)},dropdownOptions(s){return[{label:"Process",icon:"refresh",click:()=>this.processQueueItem(s.id)},{label:"Delete",icon:"trash",click:()=>this.deleteQueueItem(s.id)}]}},computed:{index(){return(this.pagination.page-1)*this.pagination.limit+1},hasErrors(){return this.queuedItems.filter(s=>s.queueStatus==="error").length>0},hasFailed(){return this.queuedItems.filter(s=>s.queueStatus==="failed").length>0},queueList(){const s=[];return this.pagination.total=0,this.queuedItems.forEach(e=>{const t={id:e.id,source:`<a href="${e.sourceUrl}" target="_blank">${e.sourceUrl}</a>`,target:`<a href="${e.targetUrl}" target="_blank">${e.targetUrl}</a>`,queueStatus:`<span class="status ${e.queueStatus}">${e.queueStatus}</span>`,message:e.processLog,retries:e.retries??0};s.push(t),this.pagination.total++}),s.slice(this.index-1,this.pagination.limit*this.pagination.page)}}};var j=function(){var e=this,t=e._self._c;return t("div",[t("k-headline",{attrs:{tag:"h2"}},[e._v("Queue")]),e.processRunning?t("k-info-field",{staticClass:"bottom-margin",attrs:{theme:"warning",text:"The queue is being processed. Do not leave this page!"}}):e._e(),t("k-button-group",{staticClass:"bottom-margin"},[t("k-button",{attrs:{variant:"filled",icon:"refresh",theme:"aqua-icon",click:this.processQueue}},[e._v("Process entire queue")]),t("k-button",{attrs:{variant:"filled",icon:"trash",theme:"red-icon",disabled:!e.hasFailed,click:()=>{this.cleanQueue("failed")}}},[e._v("Delete failed")]),t("k-button",{attrs:{variant:"filled",icon:"trash",theme:"orange-icon",disabled:!e.hasErrors,click:()=>{this.cleanQueue("error")}}},[e._v("Delete errors")])],1),t("k-table",{attrs:{columns:{queueStatus:{label:"Status",type:"html",width:"160px",align:"center"},source:{label:"Source",type:"html"},target:{label:"Target",type:"html"},message:{label:"Message",type:"text"},retries:{label:"Retries",type:"text",width:"80px",align:"center"}},index:!1,rows:e.queueList,pagination:{page:e.pagination.page,limit:e.pagination.limit,total:e.pagination.total,details:!0},empty:"The queue is empty"},on:{paginate:function(i){e.pagination.page=i.page}},scopedSlots:e._u([{key:"header",fn:function({label:i}){return[t("span",[t("span",[e._v(e._s(i))])])]}},{key:"options",fn:function({row:i}){return[t("k-options-dropdown",{attrs:{options:e.dropdownOptions(i)}})]}}])})],1)},P=[],D=n(U,j,P);const A=D.exports;panel.plugin("mauricerenck/indieConnector",{components:{"k-webmentions-view":d,Targets:L,DetailsByMonth:b,Sources:N,Sent:Q,"k-webmentions-queue-view":F,QueueList:A},icons:{"shape-icon-bookmark":'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><path fill = "#293449" d = "M18 22L12 16L6 22V3C6 2.45 6.45 2 7 2H17C17.55 2 18 2.45 18 3V22Z"></path></svg>',"shape-icon-fav":'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><path fill="#293449" d="M3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L6.70711 5.29289C7.09763 5.68342 7.09763 6.31658 6.70711 6.70711C6.31658 7.09763 5.68342 7.09763 5.29289 6.70711L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289Z" clip-rule="evenodd" fill-rule="evenodd"></path><path fill="#293449" d="M20.7071 3.29289C21.0976 3.68342 21.0976 4.31658 20.7071 4.70711L18.7071 6.70711C18.3166 7.09763 17.6834 7.09763 17.2929 6.70711C16.9024 6.31658 16.9024 5.68342 17.2929 5.29289L19.2929 3.29289C19.6834 2.90237 20.3166 2.90237 20.7071 3.29289Z" clip-rule="evenodd" fill-rule="evenodd" ></path><path fill="#293449" d="M12 2L15 9H22L17 15L19 22L12 18L5 22L7 15L2 9H9L12 2Z"></path><path fill="#293449" d="M19.7056 16.3528C19.9526 15.8588 20.5533 15.6586 21.0473 15.9056L22.4473 16.6056C22.9413 16.8526 23.1415 17.4533 22.8945 17.9472C22.6475 18.4412 22.0468 18.6414 21.5529 18.3945L20.1529 17.6945C19.6589 17.4475 19.4587 16.8468 19.7056 16.3528Z" clip-rule="evenodd" fill-rule="evenodd"></path><path fill="#293449" d="M4.2944 16.3528C4.54139 16.8468 4.34117 17.4475 3.84719 17.6945L2.44719 18.3945C1.95321 18.6414 1.35254 18.4412 1.10555 17.9472C0.858558 17.4533 1.05878 16.8526 1.55276 16.6056L2.95276 15.9056C3.44674 15.6586 4.04741 15.8588 4.2944 16.3528Z" clip-rule="evenodd" fill-rule="evenodd"></path></svg>',"shape-icon-mention":'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><path fill="#293449" d="M12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12Z" clip-rule="evenodd" fill-rule="evenodd" ></path><path fill="#293449" d="M20.9818 11.4403C20.6939 6.75101 16.6454 2.97295 11.9558 2.9999C10.3701 3.00891 8.89626 3.4225 7.60028 4.15149L7.59817 4.15267C4.4127 5.93438 2.43215 9.60364 3.14475 13.6458C3.80937 17.3894 6.89858 20.3711 10.6618 20.91C12.4448 21.1632 14.1248 20.9 15.5934 20.2463C16.0979 20.0217 16.689 20.2487 16.9136 20.7533C17.1382 21.2578 16.9112 21.8489 16.4067 22.0735C14.5956 22.8797 12.5359 23.1965 10.3793 22.89L10.3783 22.8898C5.76167 22.2287 1.99102 18.5908 1.1754 13.9946L1.17522 13.9936C0.308115 9.07635 2.72704 4.58616 6.62087 2.40772C8.20461 1.5171 10.0104 1.01093 11.9443 0.999932M20.9818 11.4403C21.0175 12.0488 20.9913 12.6539 20.9187 13.2478C20.7765 14.2196 19.9203 14.9499 18.93 14.9499H18.8117C17.8017 14.902 17 14.0617 17 13.0399V7.99992C17 7.44763 16.5523 6.99992 16 6.99992C15.4477 6.99992 15 7.44763 15 7.99992V13.0399C15 15.1323 16.6497 16.8683 18.7516 16.9492C18.7644 16.9497 18.7772 16.9499 18.79 16.9499H18.93C20.8969 16.9499 22.6186 15.5044 22.9001 13.5204L22.9025 13.5021C22.989 12.7997 23.0223 12.0688 22.9783 11.3212L22.9781 11.3187C22.6256 5.56842 17.6944 0.966921 11.9443 0.999932" clip-rule="evenodd" fill-rule="evenodd"></path></svg>',"shape-icon-reply":'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><path fill="#293449" d="M22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C13.8 22 15.5 21.5 17 20.6L22 22L20.7 17C21.5 15.5 22 13.8 22 12Z"></path><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M16.9951 12H17.0051"></path><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M11.9951 12H12.0051"></path><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M6.99512 12H7.00512"></path><path stroke-linejoin="round" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M17 12.5C17.2761 12.5 17.5 12.2761 17.5 12C17.5 11.7239 17.2761 11.5 17 11.5C16.7239 11.5 16.5 11.7239 16.5 12C16.5 12.2761 16.7239 12.5 17 12.5Z"></path><path stroke-linejoin="round" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z"></path><path stroke-linejoin="round" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1" stroke="white" d="M7 12.5C7.27614 12.5 7.5 12.2761 7.5 12C7.5 11.7239 7.27614 11.5 7 11.5C6.72386 11.5 6.5 11.7239 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5Z"></path></svg>',"shape-icon-repost":'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><path fill="#293449" d="M5 10C3.85228 10 3 10.8523 3 12C3 13.1477 3.85228 14 5 14H6C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16H5C2.74772 16 1 14.2523 1 12C1 9.74772 2.74772 8 5 8H12C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10H5Z" clip-rule="evenodd" fill-rule="evenodd"></path><path fill="#293449" d="M8.99998 5.9458V12.0543L13.8868 9.00005L8.99998 5.9458Z" clip-rule="evenodd" fill-rule="evenodd"></path><path fill="#293449" d="M17 9C17 8.44772 17.4477 8 18 8H19C21.2523 8 23 9.74772 23 12C23 14.2523 21.2523 16 19 16H12C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14H19C20.1477 14 21 13.1477 21 12C21 10.8523 20.1477 10 19 10H18C17.4477 10 17 9.55228 17 9Z" clip-rule="evenodd" fill-rule="evenodd"></path><path fill="#293449" d="M15 18.0542L15 11.9457L10.1132 15L15 18.0542Z" clip-rule="evenodd" fill-rule="evenodd"></path></svg>',"indie-mastodon":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21.2595 13.9898C20.9852 15.4006 18.8033 16.9446 16.2974 17.2439C14.9907 17.3998 13.7041 17.5431 12.3321 17.4802C10.0885 17.3774 8.31809 16.9446 8.31809 16.9446C8.31809 17.163 8.33156 17.371 8.3585 17.5655C8.65019 19.7797 10.5541 19.9124 12.3576 19.9742C14.1779 20.0365 15.7987 19.5254 15.7987 19.5254L15.8735 21.1711C15.8735 21.1711 14.6003 21.8548 12.3321 21.9805C11.0814 22.0493 9.52849 21.9491 7.71973 21.4703C3.79684 20.432 3.12219 16.2504 3.01896 12.0074C2.98749 10.7477 3.00689 9.55981 3.00689 8.56632C3.00689 4.22771 5.84955 2.95599 5.84955 2.95599C7.2829 2.29772 9.74238 2.0209 12.2993 2H12.3621C14.919 2.0209 17.3801 2.29772 18.8133 2.95599C18.8133 2.95599 21.6559 4.22771 21.6559 8.56632C21.6559 8.56632 21.6916 11.7674 21.2595 13.9898ZM18.3029 8.9029C18.3029 7.82924 18.0295 6.97604 17.4805 6.34482C16.9142 5.71359 16.1726 5.39001 15.2522 5.39001C14.187 5.39001 13.3805 5.79937 12.8473 6.61819L12.3288 7.48723L11.8104 6.61819C11.2771 5.79937 10.4706 5.39001 9.40554 5.39001C8.485 5.39001 7.74344 5.71359 7.17719 6.34482C6.62807 6.97604 6.3547 7.82924 6.3547 8.9029V14.1562H8.43597V9.05731C8.43597 7.98246 8.88822 7.4369 9.79281 7.4369C10.793 7.4369 11.2944 8.08408 11.2944 9.36376V12.1547H13.3634V9.36376C13.3634 8.08408 13.8646 7.4369 14.8648 7.4369C15.7694 7.4369 16.2216 7.98246 16.2216 9.05731V14.1562H18.3029V8.9029Z"></path></svg>',"indie-twitter":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22.2125 5.65605C21.4491 5.99375 20.6395 6.21555 19.8106 6.31411C20.6839 5.79132 21.3374 4.9689 21.6493 4.00005C20.8287 4.48761 19.9305 4.83077 18.9938 5.01461C18.2031 4.17106 17.098 3.69303 15.9418 3.69434C13.6326 3.69434 11.7597 5.56661 11.7597 7.87683C11.7597 8.20458 11.7973 8.52242 11.8676 8.82909C8.39047 8.65404 5.31007 6.99005 3.24678 4.45941C2.87529 5.09767 2.68005 5.82318 2.68104 6.56167C2.68104 8.01259 3.4196 9.29324 4.54149 10.043C3.87737 10.022 3.22788 9.84264 2.64718 9.51973C2.64654 9.5373 2.64654 9.55487 2.64654 9.57148C2.64654 11.5984 4.08819 13.2892 6.00199 13.6731C5.6428 13.7703 5.27232 13.8194 4.90022 13.8191C4.62997 13.8191 4.36771 13.7942 4.11279 13.7453C4.64531 15.4065 6.18886 16.6159 8.0196 16.6491C6.53813 17.8118 4.70869 18.4426 2.82543 18.4399C2.49212 18.4402 2.15909 18.4205 1.82812 18.3811C3.74004 19.6102 5.96552 20.2625 8.23842 20.2601C15.9316 20.2601 20.138 13.8875 20.138 8.36111C20.138 8.1803 20.1336 7.99886 20.1256 7.81997C20.9443 7.22845 21.651 6.49567 22.2125 5.65605Z"></path></svg>',"indie-website":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z"></path></svg>',"indie-mention":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C13.6418 20 15.1681 19.5054 16.4381 18.6571L17.5476 20.3214C15.9602 21.3818 14.0523 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V13.5C22 15.433 20.433 17 18.5 17C17.2958 17 16.2336 16.3918 15.6038 15.4659C14.6942 16.4115 13.4158 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C13.1258 7 14.1647 7.37209 15.0005 8H17V13.5C17 14.3284 17.6716 15 18.5 15C19.3284 15 20 14.3284 20 13.5V12ZM12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9Z"></path></svg>',"indie-repost":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M6 4H21C21.5523 4 22 4.44772 22 5V12H20V6H6V9L1 5L6 1V4ZM18 20H3C2.44772 20 2 19.5523 2 19V12H4V18H18V15L23 19L18 23V20Z"></path></svg>',"indie-sent":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.99989 13.9999L4.99976 5L6.99976 4.99997L6.99986 11.9999L17.1717 12L13.222 8.05024L14.6362 6.63603L21.0001 13L14.6362 19.364L13.222 17.9497L17.1717 14L4.99989 13.9999Z"></path></svg>'}})})();