(window.jsonpHiJiffyWidget=window.jsonpHiJiffyWidget||[]).push([[6],{508:function(t,e,n){"use strict";n.r(e);var i=n(983),a=n(747);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r=n(58),u=Object(r.a)(a.default,i.a,i.b,!1,null,null,null);e.default=u.exports},722:function(t,e,n){"use strict";n.r(e);var i=n(723),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e.default=a.a},723:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(749)),a=r(n(750)),s=n(751);function r(t){return t&&t.__esModule?t:{default:t}}e.default={components:{CircularShape:i.default,BalloonShape:a.default},props:{shapeId:{type:Number,default:null},color:{type:String,default:null},icon:{type:String,default:null},size:{type:String,default:null},aligment:{type:String,default:null}},computed:{isShapeBallon:function(){return this.shapeId===s.shapes.balloon},shapeName:function(){return this.isShapeBallon?"balloon":"circular"},styles:function(){return{backgroundColor:this.color}},shapeClass:function(){return[""+("standard"!==this.size?this.size:""),"widget-shape__"+this.shapeName]}}}},724:function(t,e,n){"use strict";n.r(e);var i=n(725),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e.default=a.a},725:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{color:{type:String,default:null}}}},726:function(t,e,n){"use strict";n.r(e);var i=n(727),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e.default=a.a},727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{color:{type:String,default:null}}}},736:function(t,e,n){"use strict";n.r(e);var i=n(893),a=n(722);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r=n(58),u=Object(r.a)(a.default,i.a,i.b,!1,null,null,null);e.default=u.exports},747:function(t,e,n){"use strict";n.r(e);var i=n(748),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e.default=a.a},748:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(121)),a=n(122),s=r(n(736));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Launcher",components:{ShapesFactory:s.default},data:function(){return{clicked:!1,show:!1}},computed:(0,i.default)({},(0,a.mapState)(["widget","channel","unreadMessages","showHomeWithOptions","campaignMessage"]),(0,a.mapState)({visibleChat:"visibleChatContainer"}),(0,a.mapGetters)(["widgetShapeId","widgetLogo","isCustomTheme","widgetColor","getChannelButton","campaignWelcomeMessage"]),(0,a.mapGetters)({widgetSize:"getWidgetSize"}),{crossColor:function(){return this.widget&&this.isCustomTheme?"fill: #424f5a":"fill: white"},logoStyle:function(){return"background-image: url("+this.widgetLogo+"); background-color: "+this.widgetColor+";"},style:function(){return"background-color: "+this.widgetColor},webButton:function(){return this.getChannelButton("WEBCHAT")}}),mounted:function(){var t=this;setTimeout((function(){t.show=!0}),100)},methods:(0,i.default)({},(0,a.mapActions)(["loadChannelChat","showGreetingMessage","hideGreetingMessage","showHideGreeting","hideCampaignMessage","showHideCampaign","setVisibleChatContainer"]),(0,a.mapActions)("notification",["openCampaign"]),{manageWidgetChatPopupVisibility:function(){this.campaignWelcomeMessage?this.manageCampaignVisibility():this.manageGreetingVisibility()},manageGreetingVisibility:function(){this.channel.key?(this.hideGreetingMessage(),this.setVisibleChatContainer(!0)):this.loadChannelChat(this.webButton)},manageCampaignVisibility:function(){this.channel.key?(this.hideCampaignMessage(),this.setVisibleChatContainer(!0)):this.loadChannelChat(this.webButton),this.openCampaign(this.campaignMessage)}}),render:function(){return""}}},749:function(t,e,n){"use strict";n.r(e);var i=n(896),a=n(724);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r=n(58),u=Object(r.a)(a.default,i.a,i.b,!1,null,null,null);e.default=u.exports},750:function(t,e,n){"use strict";n.r(e);var i=n(895),a=n(726);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r=n(58),u=Object(r.a)(a.default,i.a,i.b,!1,null,null,null);e.default=u.exports},751:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.shapes={circular:1,balloon:2}},893:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"widget-shape-container",class:this.shapeClass,style:this.styles},[this.icon?e("img",{staticClass:"center",attrs:{src:this.icon}}):this._e(),this._v(" "),this._t("default")],2)},a=[]},895:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{width:"55",height:"55",viewBox:"0 0 55 55",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{fill:this.color,width:"55",height:"55",rx:"12"}})])},a=[]},896:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"shadow",attrs:{fill:this.color,width:"60",height:"60",viewBox:"0 0 60 60",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{width:"60",height:"60",rx:"70"}})])},a=[]},983:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{name:"slide-up"}},[t.show?n("div",{on:{click:t.manageWidgetChatPopupVisibility}},[t.unreadMessages>0?n("div",{staticClass:"icon-badge"},[t._v("\n "+t._s(t.unreadMessages)+"\n ")]):t._e(),t._v(" "),n("shapes-factory",{attrs:{size:t.widgetSize,"shape-id":t.widgetShapeId,color:t.widgetColor,icon:t.widgetLogo}})],1):t._e()])],1)},a=[]}}]);