Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blip-cards

Package Overview
Dependencies
Maintainers
1
Versions
409
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blip-cards - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

dist/blip-cards.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BlipCards=e():t.BlipCards=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=13)}([function(t,e){t.exports=function(t,e,n,i,o,s){var r,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(r=t,a=t.default);var c="function"==typeof a?a.options:a;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var l;if(s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=i),l){var d=c.functional,p=d?c.render:c.beforeCreate;d?(c._injectStyles=l,c.render=function(t,e){return l.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,l):[l]}return{esModule:r,exports:a,options:c}}},function(t,e,n){"use strict";var i={props:{document:{type:Object,required:!0},position:{type:String,default:"left"},date:{type:String}}};e.a=i},function(t,e,n){"use strict";function i(t){var e=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,n=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return t.replace(e,'<a href="$&" target="_blank">$&</a>').replace(n,'$1<a href="http://$2" target="_blank">$2</a>').replace(i,'<a href="mailto:$&">$&</a>')}function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o})},function(t,e,n){"use strict";e.__esModule=!0;var i=n(21),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(10),o=n(11);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){"use strict";function i(t){var e=[];return e.push(t.component(o.a.name,o.a)),e.push(t.component(s.a.name,s.a)),e.push(t.component(u.a.name,u.a)),e.push(t.component(r.a.name,r.a)),e.push(t.component(a.a.name,a.a)),e.push(t.component(c.a.name,c.a)),e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"install",function(){return i});var o=n(14),s=n(18),r=n(50),a=n(54),u=n(58),c=n(74);n.d(e,"BlipCard",function(){return o.a}),n.d(e,"PlainText",function(){return s.a}),n.d(e,"BlipSelect",function(){return r.a}),n.d(e,"DocumentSelect",function(){return a.a}),n.d(e,"MediaLink",function(){return u.a}),n.d(e,"Collection",function(){return c.a}),e.default=i},function(t,e,n){"use strict";function i(t){n(15)}var o=n(16),s=n(17),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={name:"blip-card",mixins:[i.a],props:{length:{type:Number},hideOptions:{type:Boolean,default:!1},onSelected:{type:Function}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"text/plain"===t.document.type?n("div",[n("plain-text",{attrs:{position:t.position,document:t.document.content,date:t.date}})],1):"application/vnd.lime.media-link+json"===t.document.type?n("div",[n("media-link",{attrs:{position:t.position,document:t.document.content,date:t.date}})],1):"application/vnd.lime.document-select+json"===t.document.type?n("div",[n("document-select",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):"application/vnd.lime.collection+json"===t.document.type?n("div",[n("collection",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):"application/vnd.lime.select+json"===t.document.type?n("div",[n("blip-select",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(19)}var o=n(20),s=n(49),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"plain-text",mixins:[r.a],props:{document:{type:String,required:!0},length:{type:Number,default:532}},data:function(){return{previewDocument:o()({},this.document,{hasPreview:this.document.length>this.length,previewContent:Object(s.b)(this.document.substring(0,this.length-3)+"..."),content:Object(s.b)(this.document),showContent:!1})}},methods:{showContent:function(t){t.showContent=!0}}}},function(t,e,n){t.exports={default:n(22),__esModule:!0}},function(t,e,n){n(23),t.exports=n(8).Object.assign},function(t,e,n){var i=n(24);i(i.S+i.F,"Object",{assign:n(34)})},function(t,e,n){var i=n(4),o=n(8),s=n(25),r=n(27),a=function(t,e,n){var u,c,l,d=t&a.F,p=t&a.G,v=t&a.S,h=t&a.P,f=t&a.B,m=t&a.W,x=p?o:o[e]||(o[e]={}),g=x.prototype,w=p?i:v?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!d&&w&&void 0!==w[u])&&u in x||(l=c?w[u]:n[u],x[u]=p&&"function"!=typeof w[u]?n[u]:f&&c?s(l,i):m&&w[u]==l?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?s(Function.call,l):l,h&&((x.virtual||(x.virtual={}))[u]=l,t&a.R&&g&&!g[u]&&r(g,u,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(26);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(28),o=n(33);t.exports=n(6)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(29),o=n(30),s=n(32),r=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(5),o=n(4).document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){var i=n(5);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(35),o=n(46),s=n(47),r=n(48),a=n(10),u=Object.assign;t.exports=!u||n(7)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=r(t),u=arguments.length,c=1,l=o.f,d=s.f;u>c;)for(var p,v=a(arguments[c++]),h=l?i(v).concat(l(v)):i(v),f=h.length,m=0;f>m;)d.call(v,p=h[m++])&&(n[p]=v[p]);return n}:u},function(t,e,n){var i=n(36),o=n(45);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){var i=n(37),o=n(9),s=n(39)(!1),r=n(42)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,c=[];for(n in a)n!=r&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~s(c,n)||c.push(n));return c}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(9),o=n(40),s=n(41);t.exports=function(t){return function(e,n,r){var a,u=i(e),c=o(u.length),l=s(r,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(12),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(12),o=Math.max,s=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):s(t,e)}},function(t,e,n){var i=n(43)("keys"),o=n(44);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(11);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.previewDocument.content&&t.previewDocument.content.length>0?n("div",{staticClass:"container plain-text"},[n("div",{class:"bubble "+t.position},[t.previewDocument.hasPreview?n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.previewDocument.showContent,expression:"!previewDocument.showContent"}],domProps:{innerHTML:t._s(t.previewDocument.previewContent)}}),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.previewDocument.showContent,expression:"previewDocument.showContent"}],domProps:{innerHTML:t._s(t.previewDocument.content)}})]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.previewDocument.showContent,expression:"!previewDocument.showContent"}],staticStyle:{display:"block"},on:{click:function(e){t.showContent(t.previewDocument)}}},[t._v("Ver mais")])],1):n("div",{domProps:{innerHTML:t._s(t.previewDocument.content)}})]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(51)}var o=n(52),s=n(53),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"blip-select",mixins:[r.a],props:{hideOptions:{type:Boolean,default:!1},onSelected:{type:Function}},computed:{options:function(){return this.document.options.map(function(t){return o()({},t,{previewText:t.text.length>34?t.text.substring(0,34)+"...":t.text})})}},data:function(){return{text:Object(s.b)(this.document.text),hide:this.hideOptions}},methods:{select:function(t){this.onSelected&&(t.value?this.onSelected(t.text,{type:t.type,content:t.value}):this.onSelected(t.text,{content:t.order?t.order.toString():t.text,type:"text/plain"})),this.hide=!0}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.document?n("div",{staticClass:"container select"},["immediate"===t.document.scope?n("div",[t.text?n("div",{class:"bubble "+t.position,domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e(),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.hide?t._e():n("div",{staticClass:"options"},[n("ul",t._l(t.options,function(e,i){return n("li",[n("span",{domProps:{innerHTML:t._s(e.previewText)},on:{click:function(n){t.select(e)}}})])}))])])],1):n("div",[n("div",{class:"bubble "+t.position},[n("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),n("div",{staticClass:"fixed-options"},[n("ul",t._l(t.options,function(e,i){return n("li",[n("span",{domProps:{innerHTML:t._s(e.text)},on:{click:function(n){t.select(e)}}})])}))])]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(55)}var o=n(56),s=n(57),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"document-select",mixins:[r.a],props:{length:{type:Number,default:532},onSelected:{type:Function}},data:function(){return{showContent:!1}},computed:{aspectRatio:function(){return this.document.header.value.aspectRatio?this.document.header.value.aspectRatio.replace(":","-"):"2-1"},previewContent:function(){return this.document.header.value.text&&this.document.header.value.text.length>this.length?Object(s.b)(this.document.header.value.text.substring(0,this.length))+"...":this.document.header.value.text?Object(s.b)(this.document.header.value.text):""},hasPreview:function(){return this.document.header.value.text&&this.document.header.value.text.length>this.length},options:function(){var t=function(t){return t.length>34?t.substring(0,34)+"...":t};return this.document.options.map(function(e){return o()({},e,{isLink:"application/vnd.lime.web-link+json"===e.label.type,previewText:t("application/vnd.lime.web-link+json"===e.label.type?e.label.value.title||e.label.value.text:e.label.value)})})}},methods:{select:function(t){this.onSelected&&this.onSelected(t.previewText,{type:t.value.type,content:t.value.value})}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.document?n("div",{staticClass:"container document-select"},[n("div",{class:"bubble "+t.position},[n("div",{staticClass:"header"},[n("div",{class:"ratio ratio"+t.aspectRatio,style:"background-image: url("+t.document.header.value.uri+")"}),t._v(" "),t.document.header.value.title||t.document.header.value.text?n("div",{staticClass:"title"},[t.document.header.value.title?n("strong",{domProps:{innerHTML:t._s(t.document.header.value.title)}}):t._e(),t._v(" "),t.previewContent&&!t.showContent?n("span",{domProps:{innerHTML:t._s(t.previewContent)}}):t._e(),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[t.showContent&&t.hasPreview?n("div",{domProps:{innerHTML:t._s(t.document.header.value.text)}}):t._e()]),t._v(" "),!t.showContent&&t.hasPreview?n("a",{staticStyle:{display:"block"},on:{click:function(e){t.showContent=!0}}},[t._v("Ver mais")]):t._e()],1):t._e()]),t._v(" "),t.options?n("div",{staticClass:"fixed-options"},[n("ul",t._l(t.options,function(e,i){return n("li",[e.isLink?t._e():n("span",{domProps:{innerHTML:t._s(e.previewText)},on:{click:function(n){t.select(e)}}}),t._v(" "),e.isLink?n("a",{attrs:{href:e.label.value.uri,target:"_blank"},domProps:{innerHTML:t._s(e.previewText)}}):t._e()])}))]):t._e()]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(59)}var o=n(60),s=n(73),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(61),o=n(65),s=n(69),r=n(1);e.a={name:"media-link",mixins:[r.a],components:{BlipImage:i.a,BlipAudio:o.a,BlipVideo:s.a}}},function(t,e,n){"use strict";function i(t){n(62)}var o=n(63),s=n(64),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(2),o=n(1);e.a={mixins:[o.a],data:function(){return{id:Object(i.a)()}},computed:{aspectRatio:function(){return this.document.aspectRatio?this.document.aspectRatio.replace(":","-"):"1-1"},previewUri:function(){return this.document.previewUri?this.document.previewUri:this.document.uri}},mounted:function(){var t=document.getElementById(this.id),e=t.parentNode.parentNode,n=parseInt(window.getComputedStyle(e).width.toString().replace("px",""));t.style.width=n<=400?n+"px":n<700?n/2+"px":n/3+"px"}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header",attrs:{id:t.id}},[n("a",{attrs:{href:t.document.uri,target:"_blank"}},[n("div",{class:"ratio ratio"+t.aspectRatio,style:"background-image: url("+t.previewUri+")"})]),t._v(" "),t.document.title||t.document.text?n("div",{staticClass:"title"},[t.document.title?n("strong",{domProps:{innerHTML:t._s(t.document.title)}}):t._e(),t._v(" "),t.document.text?n("span",{domProps:{innerHTML:t._s(t.document.text)}}):t._e()]):t._e()])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(66)}var o=n(67),s=n(68),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={mixins:[i.a],data:function(){return{isPlaying:!1,audio:Audio,currentTime:0,totalTime:0,progress:null,slider:null}},mounted:function(){this.audio=new Audio(this.document.uri),this.audio.addEventListener("timeupdate",this.audioTimeUpdated),this.audio.addEventListener("loadedmetadata",this.audioLoaded),this.audio.addEventListener("ended",this.resetPlay),this.progress=this.$refs.audioProgress},methods:{togglePlay:function(){this.isPlaying=!this.isPlaying,this.isPlaying?this.audio.play():this.audio.pause()},resetPlay:function(){this.isPlaying&&(this.audio.currentTime=this.totalTime)&&(this.isPlaying=!1,this.audio.pause(),this.audio.currentTime=0)},audioTimeUpdated:function(){var t=this.audio.currentTime,e=t/this.totalTime*100;this.progress.style.width=e+"%",this.currentTime=this.audio.currentTime},audioLoaded:function(){this.totalTime=this.audio.duration},setAudioPosition:function(t){this.audio.currentTime=(t.target||t.srcElement).value},getTimeFromSeconds:function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"audio-player-wrapper"},[n("div",{staticClass:"audio-player-controls"},[t.isPlaying?n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"audio-player-button",attrs:{width:"12px",height:"18px",viewBox:"0 0 12 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Pause",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M4.61538462,17.351355 C4.61538462,17.7095549 4.33986449,18 4,18 L0.615384615,18 C0.275520128,18 0,17.7095885 0,17.351355 L0,0.648645015 C0,0.290411481 0.275520128,0 0.615384615,0 L4,0 C4.33986449,0 4.61538462,0.290411481 4.61538462,0.648645015 L4.61538462,17.351355 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M12,17.351355 C12,17.7095549 11.7244799,18 11.3846154,18 L8,18 C7.66013551,18 7.38461538,17.7095885 7.38461538,17.351355 L7.38461538,0.648645015 C7.38461538,0.290411481 7.66013551,0 8,0 L11.3846154,0 C11.7244799,0 12,0.290411481 12,0.648645015 L12,17.351355 Z",id:"Shape"}})])])]):n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"audio-player-button",attrs:{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Play",stroke:"none","stroke-width":"1","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M13.3805199,7.82862117 C14.2064934,8.35374536 14.2064934,9.64760806 13.3805199,10.1700254 L1.21459333,17.8790651 C0.677273234,18.2201251 0,17.7992137 0,17.1238607 L0,0.876139285 C0,0.200786266 0.677273234,-0.220125134 1.21459333,0.120934907 L13.3805199,7.82862117 Z",id:"play-copy-3"}})])])]),t._v(" "),n("div",{staticClass:"audio-player-bar"},[n("div",{ref:"audioSlider",staticClass:"slider",attrs:{"data-direction":"horizontal"}},[n("div",{ref:"audioProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin","data-method":"rewind"}})])]),t._v(" "),n("input",{staticClass:"audio-player-range",attrs:{type:"range",max:this.totalTime},domProps:{value:this.currentTime},on:{input:function(e){t.setAudioPosition(e)},change:function(e){t.setAudioPosition(e)}}}),t._v(" "),n("div",{staticClass:"audio-player-time"},[n("span",[t._v(t._s(t.getTimeFromSeconds(this.currentTime)))]),t._v(" "),n("span",[t._v(t._s(t.getTimeFromSeconds(this.totalTime)))])])])])])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(70)}var o=n(71),s=n(72),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={mixins:[i.a],data:function(){return{isPlaying:!1,video:null,currentTime:0,totalTime:0,progress:null,isFullScreen:!1,volumeProgress:null,volumeSliderWrapper:null}},mounted:function(){this.video=this.$refs.blipVideo,this.video.addEventListener("timeupdate",this.videoTimeUpdated),this.video.addEventListener("loadedmetadata",this.videoLoaded),this.video.addEventListener("canplay",this.readyToPlay),this.video.addEventListener("ended",this.resetPlay),document.addEventListener("fullscreenchange",this.fullScreenChange),document.addEventListener("webkitfullscreenchange",this.fullScreenChange),document.addEventListener("mozfullscreenchange",this.fullScreenChange),document.addEventListener("MSFullscreenChange",this.fullScreenChange),this.progress=this.$refs.videoProgress,this.volumeProgress=this.$refs.volumeProgress,this.volumeProgress.style.width=100*this.video.volume+"%",this.volumeSliderWrapper=this.$refs.volumeSliderWrapper},methods:{togglePlay:function(){this.isPlaying=!this.isPlaying,this.isPlaying?this.video.play():this.video.pause()},resetPlay:function(){this.isPlaying&&(this.video.currentTime=this.totalTime)&&(this.isPlaying=!1,this.video.pause(),this.video.currentTime=0)},videoTimeUpdated:function(){var t=this.video.currentTime,e=t/this.totalTime*100;this.progress.style.width=e+"%",this.currentTime=this.video.currentTime},videoLoaded:function(){this.totalTime=this.video.duration},setVideoPosition:function(t){this.video.currentTime=(t.target||t.srcElement).value},setVolume:function(t){this.video.volume=(t.target||t.srcElement).value/100;var e=100*this.video.volume;this.volumeProgress.style.width=e+"%"},toggleVolumeControl:function(){this.volumeSliderWrapper.classList.contains("hide")?this.volumeSliderWrapper.classList.remove("hide"):this.volumeSliderWrapper.classList.add("hide")},toggleFullScreen:function(){document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(this.isFullScreen="",this.video.exitFullscreen?document.exitFullscreen():this.video.msExitFullscreen?document.msExitFullscreen():this.video.mozCancelFullScreen?document.mozCancelFullScreen():this.video.webkitExitFullScreen&&document.webkitCancelFullScreen()):(this.isFullScreen="is-full-screen",this.video.requestFullscreen?this.video.requestFullscreen():this.video.msRequestFullscreen?this.video.msRequestFullscreen():this.video.mozRequestFullScreen?this.video.mozRequestFullScreen():this.video.webkitRequestFullscreen&&this.video.webkitRequestFullscreen(this))},fullScreenChange:function(){document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?this.isFullScreen="is-full-screen":this.isFullScreen=""},getTimeFromSeconds:function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"video-player-wrapper"},[n("div",{staticClass:"video-player"},[n("video",{ref:"blipVideo",attrs:{src:this.document.uri}})]),t._v(" "),n("div",{class:"video-player-controls "+t.isFullScreen},[t.isPlaying?n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"video-player-button player-button-right player-button",attrs:{width:"12px",height:"18px",viewBox:"0 0 12 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Pause",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M4.61538462,17.351355 C4.61538462,17.7095549 4.33986449,18 4,18 L0.615384615,18 C0.275520128,18 0,17.7095885 0,17.351355 L0,0.648645015 C0,0.290411481 0.275520128,0 0.615384615,0 L4,0 C4.33986449,0 4.61538462,0.290411481 4.61538462,0.648645015 L4.61538462,17.351355 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M12,17.351355 C12,17.7095549 11.7244799,18 11.3846154,18 L8,18 C7.66013551,18 7.38461538,17.7095885 7.38461538,17.351355 L7.38461538,0.648645015 C7.38461538,0.290411481 7.66013551,0 8,0 L11.3846154,0 C11.7244799,0 12,0.290411481 12,0.648645015 L12,17.351355 Z",id:"Shape"}})])])]):n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"video-player-button player-button-right player-button",attrs:{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Play",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M13.3805199,7.82862117 C14.2064934,8.35374536 14.2064934,9.64760806 13.3805199,10.1700254 L1.21459333,17.8790651 C0.677273234,18.2201251 0,17.7992137 0,17.1238607 L0,0.876139285 C0,0.200786266 0.677273234,-0.220125134 1.21459333,0.120934907 L13.3805199,7.82862117 Z",id:"play-copy-3"}})])])]),t._v(" "),n("div",{staticClass:"video-player-bar"},[n("div",{ref:"videoSlider",staticClass:"slider"},[n("div",{ref:"videoProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin"}})])]),t._v(" "),n("input",{staticClass:"video-player-range",attrs:{type:"range",max:this.totalTime},domProps:{value:this.currentTime},on:{input:function(e){t.setVideoPosition(e)},change:function(e){t.setVideoPosition(e)}}}),t._v(" "),n("div",{staticClass:"video-player-time"},[n("span",[t._v(t._s(t.getTimeFromSeconds(this.currentTime)))]),t._v(" "),n("span",[t._v(t._s(t.getTimeFromSeconds(this.totalTime)))])])]),t._v(" "),n("div",{staticClass:"volume-control"},[n("span",{on:{click:function(e){t.toggleVolumeControl()}}},[n("svg",{staticClass:"video-player-button player-button-left",attrs:{width:"24px",height:"18px",viewBox:"0 0 24 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Volume",stroke:"none","stroke-width":"1","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M10.9420052,14.5708313 C10.9420052,14.9579788 10.7192747,15.3094215 10.3704869,15.473192 C10.2362021,15.5378149 10.091633,15.5687985 9.94794531,15.5687985 C9.72198253,15.5687985 9.49690127,15.4906018 9.31442677,15.3383395 L3.88544324,10.8212247 L0.992884572,10.8212247 C0.444285728,10.8212247 0,10.3738805 0,9.82296245 L0,5.84968376 C0,5.29876573 0.444285728,4.85142146 0.992884572,4.85142146 L3.88544324,4.85142146 L9.31442677,0.333126381 C9.61179261,0.0864378564 10.0225806,0.0333231023 10.3716623,0.199159168 C10.7192747,0.36292966 10.9420052,0.714667365 10.9420052,1.10181491 L10.9420052,14.5708313 Z M17.3101537,13.5890087 C17.2860588,13.590189 17.2628455,13.5913693 17.2387506,13.5913693 C16.9760579,13.5913693 16.7233557,13.4877956 16.5364736,13.2998283 L16.4033642,13.1661562 C16.0554579,12.8167792 16.0140265,12.2635005 16.3078663,11.86573 C17.0518686,10.8595005 17.4444385,9.66530376 17.4444385,8.41356605 C17.4444385,7.06622179 16.997802,5.80297589 16.1553634,4.75956605 C15.8339027,4.36327097 15.8638744,3.78697589 16.2229466,3.42609064 L16.356056,3.29241851 C16.5546917,3.0929431 16.820029,2.98464802 17.107992,3.00176278 C17.3880212,3.01563163 17.6498325,3.14841851 17.8276055,3.366189 C18.9973817,4.80353327 19.6159144,6.54982835 19.6159144,8.41356605 C19.6159144,10.1495333 19.0684909,11.8014021 18.0341749,13.1915333 C17.8619848,13.4231726 17.5981167,13.5683529 17.3101537,13.5890087 Z M13.8949359,11.7253604 C13.8783247,11.7261101 13.8623213,11.7268597 13.8457102,11.7268597 C13.6646084,11.7268597 13.4903942,11.6610773 13.3615567,11.5416943 L13.2697904,11.4567956 C13.0299419,11.2348969 13.0013789,10.883495 13.2039536,10.6308604 C13.7168727,9.99177731 13.9875125,9.23331129 13.9875125,8.43829946 C13.9875125,7.58256536 13.679599,6.78024437 13.0988173,6.11754709 C12.8772006,5.86584957 12.8978632,5.49982927 13.1454095,5.27062147 L13.2371759,5.18572276 C13.3741163,5.05903063 13.5570413,4.99024955 13.7555645,5.00111959 C13.9486182,5.00992806 14.1291122,5.09426454 14.2516699,5.23257635 C15.0581197,6.14547184 15.4845394,7.25459018 15.4845394,8.43829946 C15.4845394,9.5408583 15.1071428,10.590004 14.3940799,11.4729132 C14.2753711,11.6200335 14.0934591,11.7122414 13.8949359,11.7253604 Z M20.9948997,17.0946346 C20.814776,17.3076838 20.5553154,17.4357493 20.2776369,17.4472575 C20.2638264,17.4484379 20.2500159,17.4484379 20.2350301,17.4484379 C19.9723373,17.4484379 19.7196351,17.3433887 19.5327531,17.1568969 L19.4028759,17.0252903 C19.0379269,16.6599788 19.013832,16.0745362 19.3444018,15.6779461 C20.94671,13.7655198 21.8294047,11.3358149 21.8294047,8.83676573 C21.8294047,6.23650343 20.8847098,3.73509359 19.1698609,1.79050343 C18.8222485,1.39538868 18.8392912,0.798142774 19.2089416,0.425749332 L19.3397003,0.294437856 C19.5327531,0.099683758 19.7839861,-0.00861132394 20.071949,0.000536217045 C20.34522,0.00850343016 20.6035052,0.130667365 20.7859797,0.336044414 C22.8578439,2.67929032 23.999999,5.69827392 23.999999,8.83676573 C24.0011744,11.8557493 22.9336545,14.7879788 20.9948997,17.0946346 Z",id:"Fill-1"}})])])]),t._v(" "),n("div",{ref:"volumeSliderWrapper",staticClass:"volume-slider-wrapper hide"},[n("div",{staticClass:"volume-slider"},[n("div",{ref:"volumeSlider",staticClass:"slider"},[n("div",{ref:"volumeProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin"}})])]),t._v(" "),n("input",{staticClass:"video-player-volume",attrs:{type:"range",value:"0",max:"100"},on:{input:function(e){t.setVolume(e)},change:function(e){t.setVolume(e)}}})])])]),t._v(" "),n("span",{on:{click:function(e){t.toggleFullScreen()}}},[n("svg",{staticClass:"video-player-button player-button-left player-button",attrs:{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"FullScreen",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M0.0780693648,6.13503995 L4.36301393e-05,0.516244875 C-0.00367188104,0.230291656 0.230405323,-0.00367006956 0.516499683,4.36086149e-05 L6.13806809,0.0817445285 C6.58764494,0.0891718848 6.81057561,0.631368898 6.49104165,0.950745222 L4.92681145,2.51420373 L7.52766927,5.11377846 L5.11258701,7.52766927 L2.51172918,4.92809455 L0.94749898,6.49155306 C0.63168053,6.8072157 0.0855003872,6.58439501 0.0780693648,6.13503995 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M15.5522025,4.92924443 L17.115661,6.49424709 C17.4350374,6.81393884 17.9772344,6.59089808 17.9846617,6.14109922 L18.0663626,0.516754744 C18.0700763,0.230519103 17.8361146,-0.0036736943 17.5501614,4.36516849e-05 L11.9313663,0.0818252633 C11.4820112,0.0892599553 11.2591905,0.631992469 11.5785669,0.951684224 L13.1383117,2.50925219 L10.538737,5.11139438 L12.9526278,7.52766927 L15.5522025,4.92924443 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M11.5785669,16.9479102 C11.2591905,17.2674442 11.4820112,17.8099088 11.9313663,17.8173398 L17.5501614,17.8990811 C17.8361146,17.9027966 18.0700763,17.6687194 18.0663626,17.382625 L17.9846617,11.7610566 C17.9772344,11.3114798 17.4350374,11.0885491 17.115661,11.4080831 L15.5522025,12.9723133 L12.9526278,10.3714554 L10.538737,12.7865377 L13.1383117,15.3873955 L11.5785669,16.9479102 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M0.519917957,17.8990811 L6.13874559,17.8173398 C6.58810325,17.8099088 6.81092523,17.2674442 6.49154706,16.9479102 L4.92807949,15.3873955 L7.52766927,12.7865377 L5.11376447,10.3714554 L2.51417469,12.9723133 L0.950707121,11.4080831 C0.631328947,11.0885491 0.0891287926,11.3114798 0.0817013932,11.7610566 L0,17.382625 C0,17.6687194 0.23396308,17.9027966 0.519917957,17.8990811 Z",id:"Shape"}})])])])])])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"container media-link "+t.document.type.split("/")[0]},[n("div",{class:"bubble "+t.position},[-1!=t.document.type.indexOf("image")?n("blip-image",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e(),t._v(" "),-1!=t.document.type.indexOf("audio")?n("blip-audio",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e(),t._v(" "),-1!=t.document.type.indexOf("video")?n("blip-video",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e()],1),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(75)}var o=n(76),s=n(77),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(2),o=n(1);e.a={name:"collection",mixins:[o.a],props:{initWith:{type:Number,default:2},onSelected:{type:Function}},data:function(){return{id:Object(i.a)(),slideIndex:1,width:0,elementsWidth:0,elementsLength:0,showPrev:!1,showNext:!1}},mounted:function(){if("application/vnd.lime.document-select+json"===this.document.itemType){var t=document.getElementById(this.id),e=t.querySelector(".slideshow-list");this.width=parseInt(window.getComputedStyle(e).width.toString().replace("px",""));var n=t.querySelectorAll(".slide-item");this.elementsLength=n.length;for(var i=0;i<this.elementsLength;i++)this.width<350?(this.elementsWidth=this.width,n[i].style.width=this.width+"px"):(this.elementsWidth=this.width/this.initWith,n[i].style.width=this.elementsWidth+"px");this.showSlides(this.slideIndex)}},methods:{plusSlides:function(t){this.showSlides(this.slideIndex+=t)},showSlides:function(t){var e=document.getElementById(this.id),n=e.querySelector(".slideshow-track");if(this.showPrev=!0,this.showNext=!0,1===t)this.showPrev=!1,n.style.transform="translate3d(0px, 0px, 0px)";else{var i=this.elementsWidth===this.width?15:45;n.style.transform="translate3d("+-1*(this.elementsWidth*(t-1)-i)+"px, 0px, 0px)"}t===this.elementsLength&&(this.showNext=!1)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"application/vnd.lime.document-select+json"===t.document.itemType?n("div",[n("div",{class:"container collection"},[n("div",{class:"slideshow-container "+t.position,attrs:{id:t.id}},[n("div",{staticClass:"slideshow-list"},[n("div",{staticClass:"slideshow-track"},t._l(t.document.items,function(e){return n("div",[n("document-select",{staticClass:"slide-item",attrs:{length:95,position:t.position,"on-selected":t.onSelected,document:e}})],1)}))]),t._v(" "),t.showPrev?n("a",{staticClass:"prev",on:{click:function(e){t.plusSlides(-1)}}},[t._v("❮")]):t._e(),t._v(" "),t.showNext?n("a",{staticClass:"next",on:{click:function(e){t.plusSlides(1)}}},[t._v("❯")]):t._e()]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])]):"application/vnd.lime.container+json"===t.document.itemType?n("div",t._l(t.document.items,function(e){return n("div",[n("blip-card",{attrs:{position:t.position,date:t.date,"on-selected":t.onSelected,document:{type:e.type,content:e.value}}})],1)})):n("div",t._l(t.document.items,function(e){return n("div",[n("blip-card",{attrs:{position:t.position,date:t.date,"on-selected":t.onSelected,document:{type:t.document.itemType,content:e}}})],1)}))},o=[],s={render:i,staticRenderFns:o};e.a=s}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BlipCards=e():t.BlipCards=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=13)}([function(t,e){t.exports=function(t,e,n,i,o,s){var r,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(r=t,a=t.default);var l="function"==typeof a?a.options:a;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o);var c;if(s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=i),c){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=c,l.render=function(t,e){return c.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:a,options:l}}},function(t,e,n){"use strict";var i={props:{document:{type:Object,required:!0},position:{type:String,default:"left"},date:{type:String}}};e.a=i},function(t,e,n){"use strict";function i(t){var e=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,n=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return t.replace(e,'<a href="$&" target="_blank">$&</a>').replace(n,'$1<a href="http://$2" target="_blank">$2</a>').replace(i,'<a href="mailto:$&">$&</a>')}function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o})},function(t,e,n){"use strict";e.__esModule=!0;var i=n(21),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(10),o=n(11);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){"use strict";function i(t){var e=[];return e.push(t.component(o.a.name,o.a)),e.push(t.component(s.a.name,s.a)),e.push(t.component(u.a.name,u.a)),e.push(t.component(r.a.name,r.a)),e.push(t.component(a.a.name,a.a)),e.push(t.component(l.a.name,l.a)),e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"install",function(){return i});var o=n(14),s=n(18),r=n(50),a=n(54),u=n(58),l=n(74);n.d(e,"BlipCard",function(){return o.a}),n.d(e,"PlainText",function(){return s.a}),n.d(e,"BlipSelect",function(){return r.a}),n.d(e,"DocumentSelect",function(){return a.a}),n.d(e,"MediaLink",function(){return u.a}),n.d(e,"Collection",function(){return l.a}),e.default=i},function(t,e,n){"use strict";function i(t){n(15)}var o=n(16),s=n(17),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={name:"blip-card",mixins:[i.a],props:{length:{type:Number},hideOptions:{type:Boolean,default:!1},onSelected:{type:Function}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"text/plain"===t.document.type?n("div",[n("plain-text",{attrs:{position:t.position,document:t.document.content,date:t.date}})],1):"application/vnd.lime.media-link+json"===t.document.type?n("div",[n("media-link",{attrs:{position:t.position,document:t.document.content,date:t.date}})],1):"application/vnd.lime.document-select+json"===t.document.type?n("div",[n("document-select",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):"application/vnd.lime.collection+json"===t.document.type?n("div",[n("collection",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):"application/vnd.lime.select+json"===t.document.type?n("div",[n("blip-select",{attrs:{length:t.length,position:t.position,document:t.document.content,date:t.date,"on-selected":t.onSelected}})],1):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(19)}var o=n(20),s=n(49),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"plain-text",mixins:[r.a],props:{document:{type:String,required:!0},length:{type:Number,default:532}},data:function(){return{previewDocument:o()({},this.document,{hasPreview:this.document.length>this.length,previewContent:Object(s.b)(this.document.substring(0,this.length-3)+"..."),content:Object(s.b)(this.document),showContent:!1})}},methods:{showContent:function(t){t.showContent=!0}}}},function(t,e,n){t.exports={default:n(22),__esModule:!0}},function(t,e,n){n(23),t.exports=n(8).Object.assign},function(t,e,n){var i=n(24);i(i.S+i.F,"Object",{assign:n(34)})},function(t,e,n){var i=n(4),o=n(8),s=n(25),r=n(27),a=function(t,e,n){var u,l,c,d=t&a.F,p=t&a.G,v=t&a.S,h=t&a.P,f=t&a.B,m=t&a.W,x=p?o:o[e]||(o[e]={}),g=x.prototype,w=p?i:v?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(l=!d&&w&&void 0!==w[u])&&u in x||(c=l?w[u]:n[u],x[u]=p&&"function"!=typeof w[u]?n[u]:f&&l?s(c,i):m&&w[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):h&&"function"==typeof c?s(Function.call,c):c,h&&((x.virtual||(x.virtual={}))[u]=c,t&a.R&&g&&!g[u]&&r(g,u,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(26);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(28),o=n(33);t.exports=n(6)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(29),o=n(30),s=n(32),r=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(5),o=n(4).document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){var i=n(5);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(35),o=n(46),s=n(47),r=n(48),a=n(10),u=Object.assign;t.exports=!u||n(7)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=r(t),u=arguments.length,l=1,c=o.f,d=s.f;u>l;)for(var p,v=a(arguments[l++]),h=c?i(v).concat(c(v)):i(v),f=h.length,m=0;f>m;)d.call(v,p=h[m++])&&(n[p]=v[p]);return n}:u},function(t,e,n){var i=n(36),o=n(45);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){var i=n(37),o=n(9),s=n(39)(!1),r=n(42)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,l=[];for(n in a)n!=r&&i(a,n)&&l.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~s(l,n)||l.push(n));return l}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(9),o=n(40),s=n(41);t.exports=function(t){return function(e,n,r){var a,u=i(e),l=o(u.length),c=s(r,l);if(t&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(12),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(12),o=Math.max,s=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):s(t,e)}},function(t,e,n){var i=n(43)("keys"),o=n(44);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(11);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.previewDocument.content&&t.previewDocument.content.length>0?n("div",{staticClass:"container plain-text"},[n("div",{class:"bubble "+t.position},[t.previewDocument.hasPreview?n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.previewDocument.showContent,expression:"!previewDocument.showContent"}],domProps:{innerHTML:t._s(t.previewDocument.previewContent)}}),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.previewDocument.showContent,expression:"previewDocument.showContent"}],domProps:{innerHTML:t._s(t.previewDocument.content)}})]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.previewDocument.showContent,expression:"!previewDocument.showContent"}],staticStyle:{display:"block"},on:{click:function(e){t.showContent(t.previewDocument)}}},[t._v("Ver mais")])],1):n("div",{domProps:{innerHTML:t._s(t.previewDocument.content)}})]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(51)}var o=n(52),s=n(53),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"blip-select",mixins:[r.a],props:{hideOptions:{type:Boolean,default:!1},onSelected:{type:Function}},computed:{options:function(){return this.document.options.map(function(t){return o()({},t,{previewText:t.text.length>34?t.text.substring(0,34)+"...":t.text})})}},data:function(){return{text:Object(s.b)(this.document.text),hide:this.hideOptions}},methods:{select:function(t){this.onSelected&&(t.value?this.onSelected(t.text,{type:t.type,content:t.value}):this.onSelected(t.text,{content:t.order?t.order.toString():t.text,type:"text/plain"})),this.hide=!0}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.document?n("div",{staticClass:"container select"},["immediate"===t.document.scope?n("div",[t.text?n("div",{class:"bubble "+t.position,domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e(),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.hide?t._e():n("div",{staticClass:"options"},[n("ul",t._l(t.options,function(e,i){return n("li",[n("span",{domProps:{innerHTML:t._s(e.previewText)},on:{click:function(n){t.select(e)}}})])}))])])],1):n("div",[n("div",{class:"bubble "+t.position},[n("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),n("div",{staticClass:"fixed-options"},[n("ul",t._l(t.options,function(e,i){return n("li",[n("span",{domProps:{innerHTML:t._s(e.text)},on:{click:function(n){t.select(e)}}})])}))])]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(55)}var o=n(56),s=n(57),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(3),o=n.n(i),s=n(2),r=n(1);e.a={name:"document-select",mixins:[r.a],props:{length:{type:Number,default:532},onSelected:{type:Function}},data:function(){return{showContent:!1}},computed:{aspectRatio:function(){return this.document.header.value.aspectRatio?this.document.header.value.aspectRatio.replace(":","-"):"2-1"},previewContent:function(){return this.document.header.value.text&&this.document.header.value.text.length>this.length?Object(s.b)(this.document.header.value.text.substring(0,this.length))+"...":this.document.header.value.text?Object(s.b)(this.document.header.value.text):""},hasPreview:function(){return this.document.header.value.text&&this.document.header.value.text.length>this.length},options:function(){var t=function(t){return t.length>34?t.substring(0,34)+"...":t};return this.document.options.map(function(e){return o()({},e,{isLink:"application/vnd.lime.web-link+json"===e.label.type,previewText:t("application/vnd.lime.web-link+json"===e.label.type?e.label.value.title||e.label.value.text:e.label.value)})})}},methods:{select:function(t){this.onSelected&&this.onSelected(t.previewText,{type:t.value.type,content:t.value.value})}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.document?n("div",{staticClass:"container document-select"},[n("div",{class:"bubble "+t.position},[n("div",{staticClass:"header"},[n("div",{class:"ratio ratio"+t.aspectRatio,style:"background-image: url("+t.document.header.value.uri+")"}),t._v(" "),t.document.header.value.title||t.document.header.value.text?n("div",{staticClass:"title"},[t.document.header.value.title?n("strong",{domProps:{innerHTML:t._s(t.document.header.value.title)}}):t._e(),t._v(" "),t.previewContent&&!t.showContent?n("span",{domProps:{innerHTML:t._s(t.previewContent)}}):t._e(),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[t.showContent&&t.hasPreview?n("div",{domProps:{innerHTML:t._s(t.document.header.value.text)}}):t._e()]),t._v(" "),!t.showContent&&t.hasPreview?n("a",{staticStyle:{display:"block"},on:{click:function(e){t.showContent=!0}}},[t._v("Ver mais")]):t._e()],1):t._e()]),t._v(" "),t.options?n("div",{staticClass:"fixed-options"},[n("ul",t._l(t.options,function(e,i){return n("li",[e.isLink?t._e():n("span",{domProps:{innerHTML:t._s(e.previewText)},on:{click:function(n){t.select(e)}}}),t._v(" "),e.isLink?n("a",{attrs:{href:e.label.value.uri,target:"_blank"},domProps:{innerHTML:t._s(e.previewText)}}):t._e()])}))]):t._e()]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()]):t._e()},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(59)}var o=n(60),s=n(73),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(61),o=n(65),s=n(69),r=n(1);e.a={name:"media-link",mixins:[r.a],components:{BlipImage:i.a,BlipAudio:o.a,BlipVideo:s.a}}},function(t,e,n){"use strict";function i(t){n(62)}var o=n(63),s=n(64),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(2),o=n(1);e.a={mixins:[o.a],data:function(){return{id:Object(i.a)()}},computed:{aspectRatio:function(){return this.document.aspectRatio?this.document.aspectRatio.replace(":","-"):"1-1"},previewUri:function(){return this.document.previewUri?this.document.previewUri:this.document.uri}},mounted:function(){var t=document.getElementById(this.id),e=t.parentNode.parentNode,n=parseInt(window.getComputedStyle(e).width.toString().replace("px",""));t.style.width=n<=400?n+"px":n<700?n/2+"px":n/3+"px"}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header",attrs:{id:t.id}},[n("a",{attrs:{href:t.document.uri,target:"_blank"}},[n("div",{class:"ratio ratio"+t.aspectRatio,style:"background-image: url("+t.previewUri+")"})]),t._v(" "),t.document.title||t.document.text?n("div",{staticClass:"title"},[t.document.title?n("strong",{domProps:{innerHTML:t._s(t.document.title)}}):t._e(),t._v(" "),t.document.text?n("span",{domProps:{innerHTML:t._s(t.document.text)}}):t._e()]):t._e()])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(66)}var o=n(67),s=n(68),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={mixins:[i.a],data:function(){return{isPlaying:!1,audio:Audio,currentTime:0,totalTime:0,progress:null,slider:null}},mounted:function(){this.audio=new Audio(this.document.uri),this.audio.addEventListener("timeupdate",this.audioTimeUpdated),this.audio.addEventListener("loadedmetadata",this.audioLoaded),this.audio.addEventListener("ended",this.resetPlay),this.progress=this.$refs.audioProgress},methods:{togglePlay:function(){this.isPlaying=!this.isPlaying,this.isPlaying?this.audio.play():this.audio.pause()},resetPlay:function(){this.isPlaying&&(this.audio.currentTime=this.totalTime)&&(this.isPlaying=!1,this.audio.pause(),this.audio.currentTime=0)},audioTimeUpdated:function(){var t=this.audio.currentTime,e=t/this.totalTime*100;this.progress.style.width=e+"%",this.currentTime=this.audio.currentTime},audioLoaded:function(){this.totalTime=this.audio.duration},setAudioPosition:function(t){this.audio.currentTime=(t.target||t.srcElement).value},getTimeFromSeconds:function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"audio-player-wrapper"},[n("div",{staticClass:"audio-player-controls"},[t.isPlaying?n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"audio-player-button",attrs:{width:"12px",height:"18px",viewBox:"0 0 12 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Pause",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M4.61538462,17.351355 C4.61538462,17.7095549 4.33986449,18 4,18 L0.615384615,18 C0.275520128,18 0,17.7095885 0,17.351355 L0,0.648645015 C0,0.290411481 0.275520128,0 0.615384615,0 L4,0 C4.33986449,0 4.61538462,0.290411481 4.61538462,0.648645015 L4.61538462,17.351355 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M12,17.351355 C12,17.7095549 11.7244799,18 11.3846154,18 L8,18 C7.66013551,18 7.38461538,17.7095885 7.38461538,17.351355 L7.38461538,0.648645015 C7.38461538,0.290411481 7.66013551,0 8,0 L11.3846154,0 C11.7244799,0 12,0.290411481 12,0.648645015 L12,17.351355 Z",id:"Shape"}})])])]):n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"audio-player-button",attrs:{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Play",stroke:"none","stroke-width":"1","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M13.3805199,7.82862117 C14.2064934,8.35374536 14.2064934,9.64760806 13.3805199,10.1700254 L1.21459333,17.8790651 C0.677273234,18.2201251 0,17.7992137 0,17.1238607 L0,0.876139285 C0,0.200786266 0.677273234,-0.220125134 1.21459333,0.120934907 L13.3805199,7.82862117 Z",id:"play-copy-3"}})])])]),t._v(" "),n("div",{staticClass:"audio-player-bar"},[n("div",{ref:"audioSlider",staticClass:"slider",attrs:{"data-direction":"horizontal"}},[n("div",{ref:"audioProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin","data-method":"rewind"}})])]),t._v(" "),n("input",{staticClass:"audio-player-range",attrs:{type:"range",max:this.totalTime},domProps:{value:this.currentTime},on:{input:function(e){t.setAudioPosition(e)},change:function(e){t.setAudioPosition(e)}}}),t._v(" "),n("div",{staticClass:"audio-player-time"},[n("span",[t._v(t._s(t.getTimeFromSeconds(this.currentTime)))]),t._v(" "),n("span",[t._v(t._s(t.getTimeFromSeconds(this.totalTime)))])])])])])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(70)}var o=n(71),s=n(72),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(1);e.a={mixins:[i.a],data:function(){return{isPlaying:!1,video:null,currentTime:0,totalTime:0,progress:null,videoPlayerControls:null,volumeProgress:null,volumeSliderWrapper:null,videoPlayer:null}},mounted:function(){this.videoPlayer=this.$refs.blipVideoPlayerWrapper,this.video=this.$refs.blipVideo,this.video.addEventListener("timeupdate",this.videoTimeUpdated),this.video.addEventListener("loadedmetadata",this.videoLoaded),this.video.addEventListener("canplay",this.readyToPlay),this.video.addEventListener("ended",this.resetPlay),document.addEventListener("fullscreenchange",this.fullScreenChange),document.addEventListener("webkitfullscreenchange",this.fullScreenChange),document.addEventListener("mozfullscreenchange",this.fullScreenChange),document.addEventListener("MSFullscreenChange",this.fullScreenChange),this.progress=this.$refs.videoProgress,this.videoPlayerControls=this.$refs.videoPlayerControls,this.volumeProgress=this.$refs.volumeProgress,this.volumeProgress.style.width=100*this.video.volume+"%",this.volumeSliderWrapper=this.$refs.volumeSliderWrapper},methods:{togglePlay:function(){this.isPlaying=!this.isPlaying,this.isPlaying?this.video.play():this.video.pause()},resetPlay:function(){this.isPlaying&&(this.video.currentTime=this.totalTime)&&(this.isPlaying=!1,this.video.pause(),this.video.currentTime=0)},videoTimeUpdated:function(){var t=this.video.currentTime,e=t/this.totalTime*100;this.progress.style.width=e+"%",this.currentTime=this.video.currentTime},videoLoaded:function(){this.totalTime=this.video.duration},setVideoPosition:function(t){this.video.currentTime=(t.target||t.srcElement).value},setVolume:function(t){this.video.volume=(t.target||t.srcElement).value/100;var e=100*this.video.volume;this.volumeProgress.style.width=e+"%"},toggleVolumeControl:function(){this.volumeSliderWrapper.classList.contains("hide")?this.volumeSliderWrapper.classList.remove("hide"):this.volumeSliderWrapper.classList.add("hide")},toggleFullScreen:function(){document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():this.videoPlayer.requestFullscreen?this.videoPlayer.requestFullscreen():this.videoPlayer.msRequestFullscreen?this.videoPlayer.msRequestFullscreen():this.videoPlayer.mozRequestFullScreen?this.videoPlayer.mozRequestFullScreen():this.videoPlayer.webkitRequestFullscreen&&this.videoPlayer.webkitRequestFullscreen(this)},fullScreenChange:function(){document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(this.videoPlayerControls.classList.add("is-full-screen"),this.video.classList.add("video-full-screen")):(this.videoPlayerControls.classList.remove("is-full-screen"),this.video.classList.remove("video-full-screen"))},getTimeFromSeconds:function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"blipVideoPlayerWrapper",staticClass:"video-player-wrapper"},[n("div",{staticClass:"video-player"},[n("video",{ref:"blipVideo",attrs:{src:this.document.uri}})]),t._v(" "),n("div",{ref:"videoPlayerControls",staticClass:"video-player-controls"},[t.isPlaying?n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"video-player-button player-button-right player-button",attrs:{width:"12px",height:"18px",viewBox:"0 0 12 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Pause",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M4.61538462,17.351355 C4.61538462,17.7095549 4.33986449,18 4,18 L0.615384615,18 C0.275520128,18 0,17.7095885 0,17.351355 L0,0.648645015 C0,0.290411481 0.275520128,0 0.615384615,0 L4,0 C4.33986449,0 4.61538462,0.290411481 4.61538462,0.648645015 L4.61538462,17.351355 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M12,17.351355 C12,17.7095549 11.7244799,18 11.3846154,18 L8,18 C7.66013551,18 7.38461538,17.7095885 7.38461538,17.351355 L7.38461538,0.648645015 C7.38461538,0.290411481 7.66013551,0 8,0 L11.3846154,0 C11.7244799,0 12,0.290411481 12,0.648645015 L12,17.351355 Z",id:"Shape"}})])])]):n("span",{on:{click:t.togglePlay}},[n("svg",{staticClass:"video-player-button player-button-right player-button",attrs:{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Play",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M13.3805199,7.82862117 C14.2064934,8.35374536 14.2064934,9.64760806 13.3805199,10.1700254 L1.21459333,17.8790651 C0.677273234,18.2201251 0,17.7992137 0,17.1238607 L0,0.876139285 C0,0.200786266 0.677273234,-0.220125134 1.21459333,0.120934907 L13.3805199,7.82862117 Z",id:"play-copy-3"}})])])]),t._v(" "),n("div",{staticClass:"video-player-bar"},[n("div",{ref:"videoSlider",staticClass:"slider"},[n("div",{ref:"videoProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin"}})])]),t._v(" "),n("input",{staticClass:"video-player-range",attrs:{type:"range",max:this.totalTime},domProps:{value:this.currentTime},on:{input:function(e){t.setVideoPosition(e)},change:function(e){t.setVideoPosition(e)}}}),t._v(" "),n("div",{staticClass:"video-player-time"},[n("span",[t._v(t._s(t.getTimeFromSeconds(this.currentTime)))]),t._v(" "),n("span",[t._v(t._s(t.getTimeFromSeconds(this.totalTime)))])])]),t._v(" "),n("div",{staticClass:"volume-control"},[n("span",{on:{click:function(e){t.toggleVolumeControl()}}},[n("svg",{staticClass:"video-player-button player-button-left player-button",attrs:{width:"24px",height:"18px",viewBox:"0 0 24 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Volume",stroke:"none","stroke-width":"1","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M10.9420052,14.5708313 C10.9420052,14.9579788 10.7192747,15.3094215 10.3704869,15.473192 C10.2362021,15.5378149 10.091633,15.5687985 9.94794531,15.5687985 C9.72198253,15.5687985 9.49690127,15.4906018 9.31442677,15.3383395 L3.88544324,10.8212247 L0.992884572,10.8212247 C0.444285728,10.8212247 0,10.3738805 0,9.82296245 L0,5.84968376 C0,5.29876573 0.444285728,4.85142146 0.992884572,4.85142146 L3.88544324,4.85142146 L9.31442677,0.333126381 C9.61179261,0.0864378564 10.0225806,0.0333231023 10.3716623,0.199159168 C10.7192747,0.36292966 10.9420052,0.714667365 10.9420052,1.10181491 L10.9420052,14.5708313 Z M17.3101537,13.5890087 C17.2860588,13.590189 17.2628455,13.5913693 17.2387506,13.5913693 C16.9760579,13.5913693 16.7233557,13.4877956 16.5364736,13.2998283 L16.4033642,13.1661562 C16.0554579,12.8167792 16.0140265,12.2635005 16.3078663,11.86573 C17.0518686,10.8595005 17.4444385,9.66530376 17.4444385,8.41356605 C17.4444385,7.06622179 16.997802,5.80297589 16.1553634,4.75956605 C15.8339027,4.36327097 15.8638744,3.78697589 16.2229466,3.42609064 L16.356056,3.29241851 C16.5546917,3.0929431 16.820029,2.98464802 17.107992,3.00176278 C17.3880212,3.01563163 17.6498325,3.14841851 17.8276055,3.366189 C18.9973817,4.80353327 19.6159144,6.54982835 19.6159144,8.41356605 C19.6159144,10.1495333 19.0684909,11.8014021 18.0341749,13.1915333 C17.8619848,13.4231726 17.5981167,13.5683529 17.3101537,13.5890087 Z M13.8949359,11.7253604 C13.8783247,11.7261101 13.8623213,11.7268597 13.8457102,11.7268597 C13.6646084,11.7268597 13.4903942,11.6610773 13.3615567,11.5416943 L13.2697904,11.4567956 C13.0299419,11.2348969 13.0013789,10.883495 13.2039536,10.6308604 C13.7168727,9.99177731 13.9875125,9.23331129 13.9875125,8.43829946 C13.9875125,7.58256536 13.679599,6.78024437 13.0988173,6.11754709 C12.8772006,5.86584957 12.8978632,5.49982927 13.1454095,5.27062147 L13.2371759,5.18572276 C13.3741163,5.05903063 13.5570413,4.99024955 13.7555645,5.00111959 C13.9486182,5.00992806 14.1291122,5.09426454 14.2516699,5.23257635 C15.0581197,6.14547184 15.4845394,7.25459018 15.4845394,8.43829946 C15.4845394,9.5408583 15.1071428,10.590004 14.3940799,11.4729132 C14.2753711,11.6200335 14.0934591,11.7122414 13.8949359,11.7253604 Z M20.9948997,17.0946346 C20.814776,17.3076838 20.5553154,17.4357493 20.2776369,17.4472575 C20.2638264,17.4484379 20.2500159,17.4484379 20.2350301,17.4484379 C19.9723373,17.4484379 19.7196351,17.3433887 19.5327531,17.1568969 L19.4028759,17.0252903 C19.0379269,16.6599788 19.013832,16.0745362 19.3444018,15.6779461 C20.94671,13.7655198 21.8294047,11.3358149 21.8294047,8.83676573 C21.8294047,6.23650343 20.8847098,3.73509359 19.1698609,1.79050343 C18.8222485,1.39538868 18.8392912,0.798142774 19.2089416,0.425749332 L19.3397003,0.294437856 C19.5327531,0.099683758 19.7839861,-0.00861132394 20.071949,0.000536217045 C20.34522,0.00850343016 20.6035052,0.130667365 20.7859797,0.336044414 C22.8578439,2.67929032 23.999999,5.69827392 23.999999,8.83676573 C24.0011744,11.8557493 22.9336545,14.7879788 20.9948997,17.0946346 Z",id:"Fill-1"}})])])]),t._v(" "),n("div",{ref:"volumeSliderWrapper",staticClass:"volume-slider-wrapper hide"},[n("div",{staticClass:"volume-slider"},[n("div",{ref:"volumeSlider",staticClass:"slider"},[n("div",{ref:"volumeProgress",staticClass:"progress"},[n("div",{staticClass:"pin",attrs:{id:"progress-pin"}})])]),t._v(" "),n("input",{staticClass:"video-player-volume",attrs:{type:"range",value:"0",max:"100"},on:{input:function(e){t.setVolume(e)},change:function(e){t.setVolume(e)}}})])])]),t._v(" "),n("div",{staticClass:"volume-control",on:{click:function(e){t.toggleFullScreen()}}},[n("svg",{staticClass:"video-player-button player-button-left player-button",attrs:{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"FullScreen",stroke:"none","stroke-width":"1","fill-rule":"nonzero"}},[n("path",{attrs:{d:"M0.0780693648,6.13503995 L4.36301393e-05,0.516244875 C-0.00367188104,0.230291656 0.230405323,-0.00367006956 0.516499683,4.36086149e-05 L6.13806809,0.0817445285 C6.58764494,0.0891718848 6.81057561,0.631368898 6.49104165,0.950745222 L4.92681145,2.51420373 L7.52766927,5.11377846 L5.11258701,7.52766927 L2.51172918,4.92809455 L0.94749898,6.49155306 C0.63168053,6.8072157 0.0855003872,6.58439501 0.0780693648,6.13503995 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M15.5522025,4.92924443 L17.115661,6.49424709 C17.4350374,6.81393884 17.9772344,6.59089808 17.9846617,6.14109922 L18.0663626,0.516754744 C18.0700763,0.230519103 17.8361146,-0.0036736943 17.5501614,4.36516849e-05 L11.9313663,0.0818252633 C11.4820112,0.0892599553 11.2591905,0.631992469 11.5785669,0.951684224 L13.1383117,2.50925219 L10.538737,5.11139438 L12.9526278,7.52766927 L15.5522025,4.92924443 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M11.5785669,16.9479102 C11.2591905,17.2674442 11.4820112,17.8099088 11.9313663,17.8173398 L17.5501614,17.8990811 C17.8361146,17.9027966 18.0700763,17.6687194 18.0663626,17.382625 L17.9846617,11.7610566 C17.9772344,11.3114798 17.4350374,11.0885491 17.115661,11.4080831 L15.5522025,12.9723133 L12.9526278,10.3714554 L10.538737,12.7865377 L13.1383117,15.3873955 L11.5785669,16.9479102 Z",id:"Shape"}}),t._v(" "),n("path",{attrs:{d:"M0.519917957,17.8990811 L6.13874559,17.8173398 C6.58810325,17.8099088 6.81092523,17.2674442 6.49154706,16.9479102 L4.92807949,15.3873955 L7.52766927,12.7865377 L5.11376447,10.3714554 L2.51417469,12.9723133 L0.950707121,11.4080831 C0.631328947,11.0885491 0.0891287926,11.3114798 0.0817013932,11.7610566 L0,17.382625 C0,17.6687194 0.23396308,17.9027966 0.519917957,17.8990811 Z",id:"Shape"}})])])])])])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"container media-link "+t.document.type.split("/")[0]},[n("div",{class:"bubble "+t.position},[-1!=t.document.type.indexOf("image")?n("blip-image",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e(),t._v(" "),-1!=t.document.type.indexOf("audio")?n("blip-audio",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e(),t._v(" "),-1!=t.document.type.indexOf("video")?n("blip-video",{attrs:{document:t.document,position:t.position,date:t.date}}):t._e()],1),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])},o=[],s={render:i,staticRenderFns:o};e.a=s},function(t,e,n){"use strict";function i(t){n(75)}var o=n(76),s=n(77),r=n(0),a=i,u=r(o.a,s.a,!1,a,null,null);e.a=u.exports},function(t,e){},function(t,e,n){"use strict";var i=n(2),o=n(1);e.a={name:"collection",mixins:[o.a],props:{initWith:{type:Number,default:2},onSelected:{type:Function}},data:function(){return{id:Object(i.a)(),slideIndex:1,width:0,elementsWidth:0,elementsLength:0,showPrev:!1,showNext:!1}},mounted:function(){if("application/vnd.lime.document-select+json"===this.document.itemType){var t=document.getElementById(this.id),e=t.querySelector(".slideshow-list");this.width=parseInt(window.getComputedStyle(e).width.toString().replace("px",""));var n=t.querySelectorAll(".slide-item");this.elementsLength=n.length;for(var i=0;i<this.elementsLength;i++)this.width<350?(this.elementsWidth=this.width,n[i].style.width=this.width+"px"):(this.elementsWidth=this.width/this.initWith,n[i].style.width=this.elementsWidth+"px");this.showSlides(this.slideIndex)}},methods:{plusSlides:function(t){this.showSlides(this.slideIndex+=t)},showSlides:function(t){var e=document.getElementById(this.id),n=e.querySelector(".slideshow-track");if(this.showPrev=!0,this.showNext=!0,1===t)this.showPrev=!1,n.style.transform="translate3d(0px, 0px, 0px)";else{var i=this.elementsWidth===this.width?15:45;n.style.transform="translate3d("+-1*(this.elementsWidth*(t-1)-i)+"px, 0px, 0px)"}t===this.elementsLength&&(this.showNext=!1)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"application/vnd.lime.document-select+json"===t.document.itemType?n("div",[n("div",{class:"container collection"},[n("div",{class:"slideshow-container "+t.position,attrs:{id:t.id}},[n("div",{staticClass:"slideshow-list"},[n("div",{staticClass:"slideshow-track"},t._l(t.document.items,function(e){return n("div",[n("document-select",{staticClass:"slide-item",attrs:{length:95,position:t.position,"on-selected":t.onSelected,document:e}})],1)}))]),t._v(" "),t.showPrev?n("a",{staticClass:"prev",on:{click:function(e){t.plusSlides(-1)}}},[t._v("❮")]):t._e(),t._v(" "),t.showNext?n("a",{staticClass:"next",on:{click:function(e){t.plusSlides(1)}}},[t._v("❯")]):t._e()]),t._v(" "),t.date?n("div",{class:"notification "+t.position},[t._v("\n "+t._s(t.date)+"\n ")]):t._e()])]):"application/vnd.lime.container+json"===t.document.itemType?n("div",t._l(t.document.items,function(e){return n("div",[n("blip-card",{attrs:{position:t.position,date:t.date,"on-selected":t.onSelected,document:{type:e.type,content:e.value}}})],1)})):n("div",t._l(t.document.items,function(e){return n("div",[n("blip-card",{attrs:{position:t.position,date:t.date,"on-selected":t.onSelected,document:{type:t.document.itemType,content:e}}})],1)}))},o=[],s={render:i,staticRenderFns:o};e.a=s}])});

@@ -1,1 +0,1 @@

{"name":"blip-cards","version":"1.2.0","description":"Reusable BLiP cards using Vue","license":"MIT","main":"dist/blip-cards.js","author":"Breno Queiroz <brenoqueiroz@gmail.com>","private":false,"files":["dist/blip-cards.js","dist/blip-cards.css"],"repository":{"type":"git","url":"git+https://github.com/takenet/blip-cards-vue-components.git"},"bugs":{"url":"https://github.com/takenet/blip-cards-vue-components/issues"},"homepage":"https://github.com/takenet/blip-cards-vue-components#readme","keywords":["vue","component","blip","chatbot","lime"],"scripts":{"commit":"./node_modules/.bin/git-cz","dev":"node build/dev-server.js","start":"npm run dev","build":"node build/build.js","bundle:min":"cross-env MINIFY=true webpack --progress --config build/webpack.build.config.js","unit":"cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run","test":"npm run unit","lint":"eslint --ext .js,.vue src test/unit/specs","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"devDependencies":{"autoprefixer":"^7.1.2","babel-core":"^6.22.1","babel-eslint":"^7.1.1","babel-loader":"^7.1.1","babel-plugin-istanbul":"^4.1.1","babel-plugin-transform-runtime":"^6.22.0","babel-preset-env":"^1.3.2","babel-preset-stage-2":"^6.22.0","babel-register":"^6.22.0","chai":"^4.1.2","chalk":"^2.0.1","connect-history-api-fallback":"^1.3.0","copy-webpack-plugin":"^4.0.1","cross-env":"^5.0.1","css-loader":"^0.28.7","cz-conventional-changelog":"^2.1.0","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-friendly-formatter":"^3.0.0","eslint-loader":"^1.7.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.4.0","eslint-plugin-standard":"^3.0.1","eventsource-polyfill":"^0.9.6","express":"^4.14.1","extract-text-webpack-plugin":"^3.0.0","file-loader":"^1.1.4","friendly-errors-webpack-plugin":"^1.6.1","html-webpack-plugin":"^2.30.1","http-proxy-middleware":"^0.17.3","inject-loader":"^3.0.0","karma":"^1.4.1","karma-coverage":"^1.1.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.2","karma-phantomjs-shim":"^1.4.0","karma-sinon-chai":"^1.3.1","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.31","karma-webpack":"^2.0.2","mocha":"^3.2.0","node-sass":"^4.5.3","opn":"^5.1.0","optimize-css-assets-webpack-plugin":"^3.2.0","ora":"^1.2.0","phantomjs-prebuilt":"^2.1.14","portfinder":"^1.0.13","rimraf":"^2.6.0","sass-loader":"^6.0.6","semver":"^5.3.0","shelljs":"^0.7.6","sinon":"^4.0.0","sinon-chai":"^2.8.0","stats-webpack-plugin":"0.4.3","url-loader":"^0.5.8","vue":"^2.5.2","vue-loader":"^13.3.0","vue-style-loader":"^3.0.1","vue-template-compiler":"^2.5.2","webpack":"^3.8.1","webpack-bundle-analyzer":"^2.9.0","webpack-dev-middleware":"^1.12.0","webpack-hot-middleware":"^2.18.2","webpack-merge":"^4.1.0","commitizen":"^2.9.6","semantic-release":"^8.2.0","style-loader":"^0.19.0"},"engines":{"node":">= 4.0.0","npm":">= 3.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 8"],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
{"name":"blip-cards","version":"1.3.0","description":"Reusable BLiP cards using Vue","license":"MIT","main":"dist/blip-cards.js","author":"Breno Queiroz <brenoqueiroz@gmail.com>","private":false,"files":["dist/blip-cards.js","dist/blip-cards.css"],"repository":{"type":"git","url":"git+https://github.com/takenet/blip-cards-vue-components.git"},"bugs":{"url":"https://github.com/takenet/blip-cards-vue-components/issues"},"homepage":"https://github.com/takenet/blip-cards-vue-components#readme","keywords":["vue","component","blip","chatbot","lime"],"scripts":{"commit":"./node_modules/.bin/git-cz","dev":"node build/dev-server.js","start":"npm run dev","build":"node build/build.js","bundle:min":"cross-env MINIFY=true webpack --progress --config build/webpack.build.config.js","unit":"cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run","test":"npm run unit","lint":"eslint --ext .js,.vue src test/unit/specs","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"devDependencies":{"autoprefixer":"^7.1.2","babel-core":"^6.22.1","babel-eslint":"^7.1.1","babel-loader":"^7.1.1","babel-plugin-istanbul":"^4.1.1","babel-plugin-transform-runtime":"^6.22.0","babel-preset-env":"^1.3.2","babel-preset-stage-2":"^6.22.0","babel-register":"^6.22.0","chai":"^4.1.2","chalk":"^2.0.1","connect-history-api-fallback":"^1.3.0","copy-webpack-plugin":"^4.0.1","cross-env":"^5.0.1","css-loader":"^0.28.7","cz-conventional-changelog":"^2.1.0","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-friendly-formatter":"^3.0.0","eslint-loader":"^1.7.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.4.0","eslint-plugin-standard":"^3.0.1","eventsource-polyfill":"^0.9.6","express":"^4.14.1","extract-text-webpack-plugin":"^3.0.0","file-loader":"^1.1.4","friendly-errors-webpack-plugin":"^1.6.1","html-webpack-plugin":"^2.30.1","http-proxy-middleware":"^0.17.3","inject-loader":"^3.0.0","karma":"^1.4.1","karma-coverage":"^1.1.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.2","karma-phantomjs-shim":"^1.4.0","karma-sinon-chai":"^1.3.1","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.31","karma-webpack":"^2.0.2","mocha":"^3.2.0","node-sass":"^4.5.3","opn":"^5.1.0","optimize-css-assets-webpack-plugin":"^3.2.0","ora":"^1.2.0","phantomjs-prebuilt":"^2.1.14","portfinder":"^1.0.13","rimraf":"^2.6.0","sass-loader":"^6.0.6","semver":"^5.3.0","shelljs":"^0.7.6","sinon":"^4.0.0","sinon-chai":"^2.8.0","stats-webpack-plugin":"0.4.3","url-loader":"^0.5.8","vue":"^2.5.2","vue-loader":"^13.3.0","vue-style-loader":"^3.0.1","vue-template-compiler":"^2.5.2","webpack":"^3.8.1","webpack-bundle-analyzer":"^2.9.0","webpack-dev-middleware":"^1.12.0","webpack-hot-middleware":"^2.18.2","webpack-merge":"^4.1.0","commitizen":"^2.9.6","semantic-release":"^8.2.0","style-loader":"^0.19.0"},"engines":{"node":">= 4.0.0","npm":">= 3.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 8"],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
# blip-cards
> A Vue.js project
> Reusable BLiP cards using Vue
## Build Setup
- No need to render the cards yourself
- One simple blip-card tag
``` bash
## Usage
### NPM
```
$ npm install blip-cards
```
Just import or require like so:
```
var Vue = require('vue');
var blipCards = require("blip-cards");
var components = blipCards.install(Vue);
```
Then, reference the cards via <blip-card> tag as following
```html
<blip-card :document="document" :position="'left'" :date="13:00 PM" :on-selected="function" :hide-options="false" />
```
| Attribute | Description | Type |
|----------|:-------------:|------:|
| document | BLiP JSON envelope (REQUIRED) | Object |
| position | Card position, possible values are 'left' and 'right'. Default: 'left' | String |
| date | Date that will be shown below the card (OPTIONAL) | String |
| on-selected | callback function that will be called when the user interacts with the card (OPTIONAL) | Function |
| hide-options | Used only in the select with scope immediate. This is used to hide the quick reply options (OPTIONAL) | Boolean |
## Contributions
Any contribution to the code via pull request would be nice and any idea and/or suggestion are very welcome.
However, please do not feel bad if your pull requests or contributions do not get merged or implemented into `blip-cards`.
### Building
```bash
# install dependencies

@@ -15,14 +54,7 @@ npm install

# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test
npm run bundle:min
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
<a id="license"></a>
## License
`blip-cards` is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc