(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[205],{Qw5O:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.hidden?e("div"):e("div",{staticClass:"tb-w-notification-wrapper flex",class:t.fullWidth?"w-full max-w-4xl mb-6 mx-auto":"justify-end"},[e("div",{staticClass:"tb-w-notification bg-white border-2 rounded p-4 flex items-center shadow-md cursor-pointer",class:[t.borderClass,t.widthClass],on:{click:function(i){return t.$emit("click")}}},[e("tb-w-icon",{staticClass:"mr-3 tb-w-notification__icon",class:t.colorClass,attrs:{icon:t.icon,size:"1.75"}}),t._v(" "),e("div",{staticClass:"tb-w-notification__text flex-grow overflow-hidden text-sm"},[t.$slots.title?e("p",{staticClass:"tb-w-notification__title text-gray-900 uppercase font-bold"},[t._t("title")],2):t._e(),t._v(" "),e("div",{staticClass:"tb-w-notification__description text-gray-800 pr-3 line-clamp-3"},[t._t("default")],2)]),t._v(" "),t.dismissible?e("tb-w-icon-button",{staticClass:"tb-w-notification__dismiss-icon",attrs:{icon:"cross",color:"gray-500",size:"0.625"},nativeOn:{click:function(i){i.stopPropagation(),i.preventDefault(),t.hidden=!0}}}):t._e()],1)])};s._withStripped=!0;var a={name:"TbWNotification",props:{severity:{type:String,default:"info"},dismissible:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1}},data:()=>({hidden:!1}),computed:{icon(){switch(this.severity){case"alert":return"alarm-clock";case"info":default:return"lightbulb-on"}},colorClass(){switch(this.severity){case"alert":return"text-warning-500";case"info":default:return"text-gray-800"}},borderClass(){switch(this.severity){case"alert":return"border-warning-500";case"info":default:return"border-transparent"}},widthClass(){return this.$eq.small||this.fullWidth?"w-full":"max-w-xs"}},eq:{breakpoints:{small:{maxWidth:420},large:{minWidth:768}}}},n=e("KHd+"),o=Object(n.a)(a,s,[],!1,null,null,null);o.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-notification.vue";i.default=o.exports}}]);