(("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]=("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]||[]).push([[44],{a304:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full h-full  overflow-hidden",class:"BannerLong"===e.data.layout?"flex":""},e._l(e.bannerList,(function(t,a){return n("el-image",{key:a,class:["flex","items-center","justify-center"],style:{width:"calc(100% / "+(e.bannerList.length>1&&"BannerLong"===e.data.layout?e.bannerList.length:1)+")",height:"calc(100% / "+(e.bannerList.length>1&&"BannerShort"===e.data.layout?e.bannerList.length:1)+" )"},attrs:{src:""+e.fileUrl+t.imageFile,fit:e.data.imageFit||"fill"},on:{click:function(n){return e.toDetail(t)}}})})),1)},r=[],c=n("3835"),i=n("c7eb"),o=n("1da1"),u=(n("99af"),n("d81d"),n("14d9"),n("c7fe")),l=n("cfba"),s=new u["ColumnTableApi"],f={name:"bannerLong",props:{data:{type:Object,default:function(){return{}}},mode:{type:String,default:""}},computed:{fileUrl:function(){var e=Wiz.GetModuleServer("file-management");return"".concat(e,"/api/file-management/files/public/image/")},routerBase:function(){return window.__POWERED_BY_QIANKUN__?"/".concat(_.get(Wiz,"globalSettings.globalConfig.routerBase")):""}},watch:{data:{immediate:!0,deep:!0,handler:function(e,t){_.isEmpty(e)||_.isEmpty(e.dataSource)||e.dataSource===(null===t||void 0===t?void 0:t.dataSource)||this.getCompentData(e)}}},data:function(){return{bannerList:[]}},methods:{toDetail:function(e){var t=this;return Object(o["a"])(Object(i["a"])().mark((function n(){var a;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("update"!==t.mode){n.next=2;break}return n.abrupt("return");case 2:2===e.jumpType?1===e.skipMode?window.open(e.url):window.location.href=e.url:1===e.jumpType&&(a="".concat(t.routerBase,"/portal/homepage?columnId=").concat(e.jumpColumn),window.open("".concat(window.location.origin).concat(window.location.hash?"/#":"").concat(a)));case 3:case"end":return n.stop()}}),n)})))()},getCompentData:function(e){var t=this;return Object(o["a"])(Object(i["a"])().mark((function n(){var a,r,o,u;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(l["a"])((function(){return s.getBinnerColumnTable(1,e.pageSize?e.pageSize:1,{columnId:e.dataSource,isShow:!0})}));case 2:a=n.sent,r=Object(c["a"])(a,2),o=r[0],u=r[1],!o&&u&&(t.bannerList=[],_.map(u.items,(function(e){!0===e.isShow&&t.bannerList.push(e)})));case 7:case"end":return n.stop()}}),n)})))()},filterHeight:function(){var e="";return e="BannerLong"===this.data.layout?this.bannerList.length>1?"w-[calc(100%/".concat(this.bannerList.length,")] h-full"):"w-full h-full":this.bannerList.length>1?"h-[calc(100%/".concat(this.bannerList.length,")] w-full"):"w-full h-full",e}}},p=f,h=n("2877"),d=Object(h["a"])(p,a,r,!1,null,"ae0662ce",null);t["default"]=d.exports},cfba:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("c7eb"),r=n("1da1"),c=(n("14d9"),n("d3b7"),n("e6cf"),[]),i=0,o=3;function u(){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(Object(a["a"])().mark((function e(){var t;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(i>=o||0===c.length)){e.next=2;break}return e.abrupt("return");case 2:return i+=1,t=c.shift(),e.prev=4,e.next=7,t();case 7:e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](4);case 11:return e.prev=11,i-=1,u(),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[4,9,11,15]])}))),l.apply(this,arguments)}function s(e){return new Promise((function(t,n){c.push(Object(r["a"])(Object(a["a"])().mark((function r(){var c;return Object(a["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e();case 3:c=a.sent,t(c),a.next=10;break;case 7:a.prev=7,a.t0=a["catch"](0),n(a.t0);case 10:case"end":return a.stop()}}),r,null,[[0,7]])})))),u()}))}}}]);