(("undefined"!==typeof self?self:this)["webpackJsonpportal_management_std"]=("undefined"!==typeof self?self:this)["webpackJsonpportal_management_std"]||[]).push([[91],{"99af":function(t,e,n){"use strict";var a=n("23e7"),r=n("d039"),i=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),s=n("3511"),l=n("8418"),f=n("65f0"),p=n("1dde"),d=n("b622"),h=n("1212"),b=d("isConcatSpreadable"),m=h>=51||!r((function(){var t=[];return t[b]=!1,t.concat()[0]!==t})),g=function(t){if(!c(t))return!1;var e=t[b];return void 0!==e?!!e:i(t)},w=!m||!p("concat");a({target:"Array",proto:!0,arity:1,forced:w},{concat:function(t){var e,n,a,r,i,c=o(this),p=f(c,0),d=0;for(e=-1,a=arguments.length;e<a;e++)if(i=-1===e?c:arguments[e],g(i))for(r=u(i),s(d+r),n=0;n<r;n++,d++)n in i&&l(p,d,i[n]);else s(d+1),l(p,d++,i);return p.length=d,p}})},cfba:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n("c7eb"),r=n("1da1"),i=(n("14d9"),n("d3b7"),n("e6cf"),[]),c=0,o=3;function u(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(Object(a["a"])().mark((function t(){var e;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(c>=o||0===i.length)){t.next=2;break}return t.abrupt("return");case 2:return c+=1,e=i.shift(),t.prev=4,t.next=7,e();case 7:t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](4);case 11:return t.prev=11,c-=1,u(),t.finish(11);case 15:case"end":return t.stop()}}),t,null,[[4,9,11,15]])}))),s.apply(this,arguments)}function l(t){return new Promise((function(e,n){i.push(Object(r["a"])(Object(a["a"])().mark((function r(){var i;return Object(a["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,t();case 3:i=a.sent,e(i),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()}))}},e373:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"w-full h-full  overflow-hidden",class:"BannerLong"===t.data.layout?"flex":""},t._l(t.bannerList,(function(e,a){return n("el-image",{key:a,class:["flex","items-center","justify-center"],style:{width:"calc(100% / "+(t.bannerList.length>1&&"BannerLong"===t.data.layout?t.bannerList.length:1)+")",height:"calc(100% / "+(t.bannerList.length>1&&"BannerShort"===t.data.layout?t.bannerList.length:1)+" )"},attrs:{src:""+t.fileUrl+e.imageFile,fit:t.data.imageFit||"fill"},on:{click:function(n){return t.toDetail(e)}}},[n("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"})])})),1)},r=[],i=n("3835"),c=n("c7eb"),o=n("1da1"),u=(n("99af"),n("d81d"),n("14d9"),n("78a9")),s=n("cfba"),l=new u["ColumnTableApi"],f={name:"bannerLong",props:{data:{type:Object,default:function(){return{}}},mode:{type:String,default:""}},components:{},computed:{fileUrl:function(){var t=Wiz.GetModuleServer("file-management");return"".concat(t,"/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(t){_.isEmpty(t)||(this.title=t.title||"banner",_.isEmpty(t.dataSource)||this.getCompentData(t))}}},data:function(){return{bannerList:[],title:"Banner"}},methods:{loadMore:function(){"update"!==this.mode&&this.$router.push({path:"".concat(this.routerBase,"/integration/portal/homepage?columnId=").concat(this.data.dataSource)})},toDetail:function(t){var e=this;return Object(o["a"])(Object(c["a"])().mark((function n(){var a;return Object(c["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("update"!==e.mode){n.next=2;break}return n.abrupt("return");case 2:2===t.jumpType?1===t.skipMode?window.open(t.url):window.location.href=t.url:1===t.jumpType&&(a="".concat(e.routerBase,"/integration/portal/homepage?columnId=").concat(t.jumpColumn),1===t.skipMode?window.open("".concat(window.location.origin).concat(window.location.hash?"/#":"").concat(a)):e.$router.push(a));case 3:case"end":return n.stop()}}),n)})))()},getCompentData:function(t){var e=this;return Object(o["a"])(Object(c["a"])().mark((function n(){var a,r,o,u;return Object(c["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(s["a"])((function(){return l.getBinnerColumnTable(1,t.pageSize?t.pageSize:1,{columnId:t.dataSource,isShow:!0})}));case 2:a=n.sent,r=Object(i["a"])(a,2),o=r[0],u=r[1],!o&&u&&(e.bannerList=[],_.map(u.items,(function(t){!0===t.isShow&&e.bannerList.push(t)})));case 7:case"end":return n.stop()}}),n)})))()},filterHeight:function(){var t="";return t="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",t}}},p=f,d=n("2877"),h=Object(d["a"])(p,a,r,!1,null,"0acda816",null);e["default"]=h.exports}}]);