(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{324:function(t,e,n){},326:function(t,e,n){"use strict";n.r(e);var a=n(330),o=n.n(a),r={props:{name:String,desc:String,id:String,author:String,link:String,text:String,command:String},data:function(){return{snackbar:!1}},computed:{showCommand:function(){return this.text&&this.command}},methods:{repoLink:function(t){return t?/^https?:/.test(t)?t:"https://github.com/".concat(t):null},copyCommand:function(){o()(this.command,{format:"text/plain"}),this.snackbar=!0}}},c=(n(332),n(21)),s=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",[n("v-card-title",[t._v("\n    "+t._s(t.name)+"\n    "),n("v-spacer"),t._v(" "),t.repoLink(t.link)?n("a",{staticClass:"repo-link",attrs:{rel:"noopener noreferrer",target:"_blank",title:t.link,href:t.repoLink(t.link)}},[n("v-icon",[t._v("fab fa-github")])],1):t._e()],1),t._v(" "),n("v-card-text",[t._v(t._s(t.desc))]),t._v(" "),n("v-card-text",[t.id?[n("v-icon",{attrs:{"x-small":""}},[t._v("fa-fingerprint")]),t._v("\n      "+t._s(t.id)+"\n    ")]:t._e(),t._v(" "),n("v-icon",{staticClass:"ml-2",attrs:{"x-small":""}},[t._v("fa-user")]),t._v("\n    "+t._s(t.author)+"\n  ")],2),t._v(" "),t.showCommand?n("v-card-actions",[n("v-btn",{staticClass:"btn-copy",attrs:{block:"",depressed:""},on:{click:function(e){return t.copyCommand()}}},[t._v("\n      "+t._s(t.text)+"\n      "),n("v-icon",{attrs:{right:"",small:""}},[t._v("fa-copy")])],1),t._v(" "),n("v-snackbar",{model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v("Copied!")])],1):t._e()],1)}),[],!1,null,"19b7ecc0",null);e.default=s.exports},330:function(t,e,n){"use strict";var a=n(331),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,r,c,s,i,l,u=!1;e||(e={}),n=e.debug||!1;try{if(c=a(),s=document.createRange(),i=document.getSelection(),(l=document.createElement("span")).textContent=t,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(a){if(a.stopPropagation(),e.format)if(a.preventDefault(),void 0===a.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[e.format]||o.default;window.clipboardData.setData(r,t)}else a.clipboardData.clearData(),a.clipboardData.setData(e.format,t);e.onCopy&&(a.preventDefault(),e.onCopy(a.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),i.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(a){n&&console.error("unable to copy using execCommand: ",a),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),u=!0}catch(a){n&&console.error("unable to copy using clipboardData: ",a),n&&console.error("falling back to prompt"),r=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,t)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(s):i.removeAllRanges()),l&&document.body.removeChild(l),c()}return u}},331:function(t,e){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],a=0;a<t.rangeCount;a++)n.push(t.getRangeAt(a));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach((function(e){t.addRange(e)})),e&&e.focus()}}},332:function(t,e,n){"use strict";var a=n(324);n.n(a).a}}]);