import{t as e}from"./_plugin-vue2_normalizer-BHc2Ljhs.js";import{r as t}from"./core-LKZcHyj3.js";import{t as n}from"./storage-BIo4chs8.js";var r=e({name:`BannerNav`,data(){return{bannerTitle:``,bannerSubTitle:``,bannerButton:``,bannerUrl:``,bannerClosed:!0}},computed:{showBanner(){return!this.bannerClosed}},methods:{closeBanner(){this.bannerClosed=!0},openExternalUrl(e){window.open(e,`_blank`)}},created(){let e=this.getNotifyBanner;if(!(e&&e.key&&e.show))return!1;this.bannerClosed=t(n.LOCAL_STORAGE.BANNER_NAV(e.key),!1),this.bannerUrl=e.url,this.bannerTitle=e.title,this.bannerSubTitle=e.sub_title||``,this.bannerButton=e.button||this.$t(`BANNER_BUTTON_OPEN_TEXT`)}},function(){var e=this,t=e._self._c;return e.showBanner?t(`div`,{staticClass:`banner-nav-container`},[e._m(0),t(`div`,{staticClass:`banner-text-content`},[t(`p`,{staticClass:`main-text`},[e._v(` `+e._s(e.bannerTitle)+` `)]),t(`p`,{staticClass:`sub-text`},[e._v(` `+e._s(e.bannerSubTitle)+` `)])]),t(`div`,{staticClass:`banner-actions`},[t(`Button`,{staticClass:`cta-button`,attrs:{type:`primary`,size:`small`},on:{click:function(t){return e.openExternalUrl(e.bannerUrl)}}},[e._v(` `+e._s(e.bannerButton)+` `)]),t(`Button`,{staticClass:`close-button`,attrs:{type:`text`,size:`small`},on:{click:e.closeBanner}},[t(`i`,{staticClass:`fa fa-times`})])],1)]):e._e()},[function(){var e=this._self._c;return e(`div`,{staticClass:`banner-icon`},[e(`i`,{staticClass:`fa fa-gift`})])}],!1,null,`dda40818`,null,null).exports,i=e({name:`BoxLayout`,components:{"banner-nav":r},props:{isFooter:{type:Boolean,default:!1}}},function(){var e=this,t=e._self._c;return t(`div`,{staticClass:`box-layout`},[t(`Card`,{staticClass:`box-layout__card`,attrs:{"dis-hover":``}},[e._t(`default`)],2),e.isFooter?t(`div`,{staticClass:`box-layout__footer`},[e._t(`footer`)],2):e._e(),t(`banner-nav`)],1)},[],!1,null,`01745cca`,null,null).exports;export{i as t};