(("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]=("undefined"!==typeof self?self:this)["webpackJsonpportal_homepage_nanhai"]||[]).push([[33,3],{"151c":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"py-8px pr-10px flex justify-between items-center border-b-1px border-[#e6e6e6] microsoftYaHei"},[a("div",{staticClass:"text-hex-333 text-18px border-l-4px border-$portalPrimaryColor pl-10px flex-1 truncate !leading-23px"},[e._v("\n    "+e._s(e.title)+"\n  ")]),e.showMore?a("div",{staticClass:"text-hex-1A1A1A text-14px cursor-pointer truncate",on:{click:e.loadMore}},[e._v("\n    更多\n  ")]):e._e()])},n=[],i={name:"ColumnHeader",props:{title:{type:String,default:"新闻"},showMore:{type:Boolean,default:!0}},methods:{loadMore:function(){this.$emit("loadMore")}}},c=i,s=(a("a3be"),a("2877")),l=Object(s["a"])(c,r,n,!1,null,"0bae89d5",null);t["default"]=l.exports},a3be:function(e,t,a){"use strict";a("bde7")},a647:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full h-full overflow-hidden"},[e.data.showTitle?a("column-header",{staticClass:"mb-5px",attrs:{title:e.title,showMore:!1}}):e._e(),a("div",{staticClass:"w-full h-[calc(100%-43px)] relative",class:e.data.showTitle?"h-[calc(100%-43px)]":"h-full"},[a("iframe",{ref:"iframe",staticClass:"w-full h-full",attrs:{src:e.iframeUrl,frameborder:"0"}})])],1)},n=[],i=a("c7eb"),c=a("3835"),s=a("1da1"),l=a("c7fe"),o=a("cfba"),u=a("151c"),f=new l["ColumnTableApi"],d={components:{ColumnHeader:u["default"]},props:{data:{type:Object,default:function(){return{}}}},watch:{data:{immediate:!0,deep:!0,handler:function(e,t){_.isEmpty(e)||(e.title&&(this.title=e.title),e.dataSource&&e.dataSource!==(null===t||void 0===t?void 0:t.dataSource)&&this.getCompentsData(e.dataSource))}}},data:function(){return{title:"",iframeUrl:""}},methods:{getCompentsData:function(e){var t=this;return Object(s["a"])(Object(i["a"])().mark((function a(){var r,n,s,l,u,d;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n={columnId:e,isShow:!0},a.next=3,Object(o["a"])((function(){return f.getLinkColumnTable(1,99,n)}));case 3:s=a.sent,l=Object(c["a"])(s,2),u=l[0],d=l[1],!u&&d&&(null===d||void 0===d||null===(r=d.items)||void 0===r?void 0:r.length)>0&&(t.title=t.data.title||d.items[0].title,t.iframeUrl=d.items[0].url);case 8:case"end":return a.stop()}}),a)})))()}}},p=d,h=a("2877"),b=Object(h["a"])(p,r,n,!1,null,"84cfe3e2",null);t["default"]=b.exports},bde7:function(e,t,a){var r=a("cd32");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("499e").default;n("46d8603d",r,!0,{sourceMap:!1,shadowMode:!1})},cd32:function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,".microsoftYaHei[data-v-0bae89d5]{font-family:Microsoft YaHei regular}",""])},cfba:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var r=a("c7eb"),n=a("1da1"),i=(a("14d9"),a("d3b7"),a("e6cf"),[]),c=0,s=3;function l(){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(c>=s||0===i.length)){e.next=2;break}return e.abrupt("return");case 2:return c+=1,t=i.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,c-=1,l(),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[4,9,11,15]])}))),o.apply(this,arguments)}function u(e){return new Promise((function(t,a){i.push(Object(n["a"])(Object(r["a"])().mark((function n(){var i;return Object(r["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e();case 3:i=r.sent,t(i),r.next=10;break;case 7:r.prev=7,r.t0=r["catch"](0),a(r.t0);case 10:case"end":return r.stop()}}),n,null,[[0,7]])})))),l()}))}}}]);