(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{686:function(e,t,r){e.exports={}},794:function(e,t,r){"use strict";r(795)},795:function(e,t,r){"use strict";var o=r(2),n=r(9),c=r(4),m=r(29),l=r(7),f=r(46),d=r(228),h=r(14),w=r(70),v=r(227),I=r(336),$=r(8),k=r(27),x=$("replace"),R=TypeError,D=c("".indexOf),U=c("".replace),y=c("".slice),C=Math.max;o({target:"String",proto:!0},{replaceAll:function(e,t){var r,o,c,$,L,M,N,P,T,_,A=m(this),F=0,E="";if(!f(e)){if((r=d(e))&&(o=h(m(v(e))),!~D(o,"g")))throw new R("`.replaceAll` does not allow non-global regexes");if(c=w(e,x))return n(c,e,A,t);if(k&&r)return U(h(A),e,t)}for($=h(A),L=h(e),(M=l(t))||(t=h(t)),N=L.length,P=C(1,N),T=D($,L);-1!==T;)_=M?h(t(L,T,$)):I(L,$,T,[],void 0,t),E+=y($,F,T)+_,F=T+N,T=T+P>$.length?-1:D($,L,T+P);return F<$.length&&(E+=y($,F)),E}})},796:function(e,t,r){"use strict";r(686)},838:function(e,t,r){"use strict";r.r(t);var o=r(12),n=(r(61),r(97),r(63),r(22),r(49),r(794),r(64),{data:function(){return{showMargin:!0,articleDetails:"",routerParams:{},profileform:{},defaultURL:"https://forms.zohopublic.com/promocollectionau/form/PCIndentSourcingForm/formperma/I8RpkeF104QfGCw2oK_PUZtj5lCwdwZEY5QJJpvllVI"}},computed:{userInfo:function(){return this.$store.state.userInfo||{}},computedURL:function(){if(this.userInfo.email){var e={name:this.userInfo.contacts,phone:this.userInfo.phone,email:this.userInfo.email,company:this.userInfo.company},t="";for(var r in e)e[r]&&(t+="&".concat(r,"=").concat(encodeURIComponent(e[r])));return t=t.slice(1),this.defaultURL+"?"+t}return this.defaultURL}},watch:{userInfo:function(){var e=this;"indent-ideas"===this.$route.params.newsName&&setTimeout((function(){document.getElementById("formFrame").src=e.computedURL}),1e3)}},created:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e.$cookies.get("can-use-cookie")?e.$cookies.get("paramsData"):"")?e.routerParams=r:(e.routerParams=e.$route.params,e.$cookies.get("can-use-cookie")&&e.$cookies.set("paramsData",e.$route.params)),t.next=4,e.getArticleDetails();case 4:e.showMargin=!0;case 5:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;"indent-ideas"===this.$route.params.newsName&&setTimeout((function(){document.getElementById("formFrame").src=e.computedURL}),1e3),setTimeout((function(){e.showMargin=!1}),2e3)},beforeDestroy:function(){this.$cookies.remove("paramsData")},methods:{getArticleDetails:function(){var e=this,title=this.$route.params.newsName||"";title=decodeURIComponent(title),this.$axios.post("/uk-api/home/articleDetail",{title:title.replaceAll("-"," ")}).then((function(t){1===t.code&&(e.articleDetails=t.result.content.replace(/&nbsp;/gi,""))})).catch((function(){}))}}}),c=(r(796),r(21)),component=Object(c.a)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"com-main com-width-1400 com-margin-auto"},[t("div",{staticClass:"content",domProps:{innerHTML:e._s(e.articleDetails)}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showMargin,expression:"showMargin"}],attrs:{id:"formTag"}}),e._v(" "),t("iframe",{directives:[{name:"show",rawName:"v-show",value:"indent-ideas"===e.$route.params.newsName,expression:"$route.params.newsName === 'indent-ideas'"}],ref:"iframe",staticStyle:{height:"1100px",width:"100%",border:"none"},attrs:{frameborder:"0",id:"formFrame",src:""}})])}),[],!1,null,"1d926fac",null);t.default=component.exports}}]);
//# sourceMappingURL=cbead81.js.map