(("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]=("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]||[]).push([[36],{"5d7a":function(e,t,a){var n=a("b15d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=a("499e").default;r("364365b8",n,!0,{sourceMap:!1,shadowMode:!1})},b15d:function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,".carouselIcon:hover .customize[data-v-468cabc8]{display:block}.carouselIcon .customize[data-v-468cabc8]{display:none}.carouselIcon[data-v-468cabc8]  .el-carousel__container{height:100%!important}.carouselIcon[data-v-468cabc8]  .el-carousel__button{height:3px;width:3px;border-radius:100%}.carouselIcon[data-v-468cabc8]  .is-active .el-carousel__button{height:3px;width:9px;border-radius:3px;background:var(--portalPrimaryColor)}",""])},c4bf:function(e,t,a){"use strict";a("5d7a")},cfba:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a("c7eb"),r=a("1da1"),c=(a("14d9"),a("d3b7"),a("e6cf"),[]),o=0,i=3;function s(){return u.apply(this,arguments)}function u(){return u=Object(r["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(o>=i||0===c.length)){e.next=2;break}return e.abrupt("return");case 2:return o+=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,o-=1,s(),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[4,9,11,15]])}))),u.apply(this,arguments)}function l(e){return new Promise((function(t,a){c.push(Object(r["a"])(Object(n["a"])().mark((function r(){var c;return Object(n["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:c=n.sent,t(c),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),a(n.t0);case 10:case"end":return n.stop()}}),r,null,[[0,7]])})))),s()}))}},dd82:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full h-full"},[a("el-carousel",{staticClass:"carouselIcon h-full relative",attrs:{interval:1e3*e.data.speed,height:"380px"}},[e._l(e.carouselArr,(function(t,n){return a("el-carousel-item",{key:n,staticClass:"cursor-pointer"},[a("div",{staticClass:"w-full h-full",on:{click:function(a){return e.toDetail(t)}}},[a("div",{staticClass:"w-full h-full flex items-center justify-center"},[a("el-image",{staticClass:"w-full h-full",attrs:{src:""+e.fileUrl+t.imageFile,fit:e.data.imageFit||"fill"}})],1),a("div",{staticClass:"w-full h-45px text-18px pt-7px px-10px bg-hex-000 bg-opacity-50 text-center font-bold truncate absolute bottom-0 text-hex-fff",attrs:{title:t.title}},[e._v("\n          "+e._s(t.title)+"\n        ")])])])})),a("div",{staticClass:"absolute bottom-50 left-0 z-10 customize"})],2)],1)},r=[],c=a("3835"),o=a("c7eb"),i=a("1da1"),s=(a("99af"),a("d81d"),a("14d9"),a("c7fe")),u=a("cfba"),l=new s["ColumnTableApi"],p=(new s["ColumApi"],{name:"carousel",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){_.isEmpty(e)||_.isEmpty(e.dataSource)||this.getCompentsData(e.dataSource,e.pageSize)}}},data:function(){return{carouselArr:[]}},methods:{toDetail:function(e){var t=this;return Object(i["a"])(Object(o["a"])().mark((function a(){var n;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("update"!==t.mode){a.next=2;break}return a.abrupt("return");case 2:2===e.jumpType?1===e.skipMode?window.open(e.url):window.location.href=e.url:1===e.jumpType&&(n="".concat(t.routerBase,"/portal/homepage?columnId=").concat(e.jumpColumn),window.open("".concat(window.location.origin).concat(window.location.hash?"/#":"").concat(n)));case 3:case"end":return a.stop()}}),a)})))()},getCompentsData:function(e,t){var a=this;return Object(i["a"])(Object(o["a"])().mark((function n(){var r,i,s,p,f;return Object(o["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={columnId:e,isShow:!0},n.next=3,Object(u["a"])((function(){return l.getBinnerColumnTable(1,t,r)}));case 3:i=n.sent,s=Object(c["a"])(i,2),p=s[0],f=s[1],!p&&f&&(a.carouselArr=[],_.map(f.items,(function(e){!0===e.isShow&&a.carouselArr.push(e)})));case 8:case"end":return n.stop()}}),n)})))()}}}),f=p,d=(a("c4bf"),a("2877")),b=Object(d["a"])(f,n,r,!1,null,"468cabc8",null);t["default"]=b.exports}}]);