1(()=>{var e,t={2279(e,t,s){"use strict";s(4602),s(789),s(933);var i=s(2893),a=s(9251),r=s.n(a),o=s(7476),n=s.n(o),l=s(6586),c=s.n(l),d=s(2408),u=s.n(d),p=s(3513),m=s.n(p),h=s(2142),f=s.n(h),g=s(4141),v=s.n(g),y=s(9544),_=s.n(y),k=s(4559),x=s.n(k),b=s(1458),C=s.n(b),A=s(2728),w=s.n(A),M=s(6731),T=s.n(M),L=s(2305),S=s.n(L),j=s(4509),D=s.n(j),I=s(707),N=s.n(I),P=s(663),R=s.n(P),E=s(7626),$=s.n(E),F=s(863),G=s.n(F),q=s(3145),Q=s.n(q),U=s(1240),B=s.n(U),O=s(2025),V=s.n(O),z=s(5726),H=s.n(z),Y=s(7292),W=s.n(Y),K=s(7799),J=s.n(K),Z=s(1653),X=s.n(Z),ee=s(4904),te=s.n(ee),se=s(4898),ie=s.n(se),ae=s(24),re=s.n(ae),oe=s(2505),ne=s.n(oe);const le=ne().create({headers:{Accept:"application/json","Content-Type":"application/json"}}),ce={getAssets:(e,t,s,i)=>le.get(`/wp-json/v1/assets/${e}`,{params:{filter:t,page:s,amount:i}})};var de=s(2193),ue=s.n(de);const pe={fnd:[{header:"",field:"logo"},{header:"Name",field:"name"},{header:"SRRI - Risk Profile",field:"srri"},{header:"Distribution <br> Status",field:"distribution"},{header:"",field:"button"}],etf:[{header:"",field:"logo"},{header:"Name",field:"name"},{header:"SRRI - Risk Profile",field:"srri"},{header:"Distribution <br> Status",field:"distribution"},{header:"",field:"button"}],bnd:[{header:"",field:"logo"},{header:"Name",field:"name"},{header:"Currency",field:"currency"},{header:"",field:"button"}],eq:[{header:"",field:"logo"},{header:"Name",field:"name"},{header:"Sector",field:"sector"},{header:"Exchange",field:"exchange"},{header:"",field:"button"}]},me={fnd:{performance_id:"â â â â â â â â â¨â¡â¡â¡â¡",ISIN:"â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",title:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",currency:"â â â â â¨â¡â¡â¡â¡",umbrella_company:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",category:"â â â â â â â â â â â â¨â¡â¡â¡â¡",domicile:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",srri:"â â â â â â â â â â â â¨â¡â¡â¡â¡",distribution_status:"2",exchange:"â â â â â â â â â â â â¨â¡â¡â¡â¡",ticker:"â â â â¨â¡â¡â¡â¡",investment_objective:"â â â â â â â â â â â â¨â¡â¡â¡â¡",morning_star_rating:"â â â â â â â â â â â â¨â¡â¡â¡â¡",morning_star_risk:"â â â â â â â â â â â â¨â¡â¡â¡â¡"},etf:{performance_id:"â â â â â â â â â¨â¡â¡â¡â¡",ISIN:"â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",title:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",currency:"â â â â â¨â¡â¡â¡â¡",umbrella_company:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",category:"â â â â â â â â â â â â¨â¡â¡â¡â¡",domicile:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",srri:"â â â â â â â â â â â â¨â¡â¡â¡â¡",distribution_status:"2",exchange:"â â â â â â â â â â â â¨â¡â¡â¡â¡",ticker:"â â â â¨â¡â¡â¡â¡",investment_objective:"â â â â â â â â â â â â¨â¡â¡â¡â¡",morning_star_rating:"â â â â â â â â â â â â¨â¡â¡â¡â¡",morning_star_risk:"â â â â â â â â â â â â¨â¡â¡â¡â¡"},eq:{performance_id:"â â â â â â â â â â â â¨â¡â¡â¡â¡",isin:"â â â â â â â â â â â â¨â¡â¡â¡â¡",title:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",currency:"â â â â¨â¡â¡â¡â¡",description:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",sector:"â â â â â â â â â â â â¨â¡â¡â¡â¡",category:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",exchange:"â â â â¨â¡â¡â¡â¡",ticker:"â â â â¨â¡â¡â¡â¡"},bnd:{performance_id:"â â â â â â â â â â â â¨â¡â¡â¡â¡",title:"â â â â â â â â â â â â â â â â â â â â¨â¡â¡â¡â¡",currency:"â â â â¨â¡â¡â¡â¡",isin:"â â â â â â â â â â â â¨â¡â¡â¡â¡",industry:"â â â â¨â¡â¡â¡â¡"}},he={acf:{product_type:"----------",model_portfolio_type:"------",title:"----- -------- ------ -- ------",subtitle:"----- ------- -- ---- ------------ --------------",srri_indicator:"------",ongoing_charge:"------",ongoing_charge_sub_textn:"---- --- --------",last_nav:"------",investment_objective:"----- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- ---",morningstar_rating:"------",legal_documents:[{title:"-------",files:[{name:"------------",file:{}}]},{title:"-------",files:[{name:"------------",file:{}}]},{title:"-------",files:[{name:"------------",file:{}}]}],management_strategy_vs_benchmark:"-------",risk_profile:"----- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- ---",risk_type_global:"------",portfolio_composition_data:"------"}},fe=[{key:"1",name:"-----",description:"----- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- ---"},{key:"2",name:"-----",description:"----- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- ---"},{key:"3",name:"-----",description:"----- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- -------- ---- -------- -- ----------- -- ----- ---- ------- -- ---- --- ---"}],ge=[{key:"1",name:"-----"},{key:"2",name:"---------"}],ve=[{key:"1",name:"-----"},{key:"2",name:"-----"},{key:"3",name:"-----"},{key:"4",name:"-----"}],ye={name:"MdFundsEtfsTable",props:{loading:{type:Boolean,default:!1},assetLogoUrl:{type:String},assetType:{type:String},moreInformationButtonText:{type:String},data:{type:Array,default:()=>[]}},data:()=>({distributionStatus:{1:"Capitalizing",2:"Distributing"},mobile:!0}),created(){this.resizeHandler(),window.addEventListener("resize",this.resizeHandler)},destroyed(){window.removeEventListener("resize",this.resizeHandler)},computed:{columns:()=>pe,useData(){return this.loading?new Array(10).fill(me[this.assetType.toLowerCase()]):this.data}},methods:{handleMoreInfoClick(e){this.$emit("click-more-info",e)},getAssetLogoUrl(e,t){return e&&this.assetLogoUrl&&t?`${this.assetLogoUrl}
1/${this.assetComponentTypeLong(t).toLowerCase()}/${e.toUpperCase()}.png`:""},resizeHandler(){this.mobile=window.innerWidth<=1050},assetComponentTypeLong(e){switch(e.toUpperCase()){case"FND":return"mutualFund";case"EQ":return"equity";case"ETF":return"etf";case"BND":return"bond"}},getFundsSubtitle(e){const{domicile:t,title:s,umbrella_company:i}=e;let a=`${s} domiciled in ${t}`;return a=ue()(i)?a:`Sub fund of ${i} ${a}`,a&&a[0].toUpperCase()+a.slice(1)}}};var _e=s(4486);const ke=(0,_e.A)(ye,function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.mobile?s("div",{},e._l(e.useData,function(t,i){return s("div",{key:i,staticClass:"odd:bg-white p-3 rounded-xl"},[s("MeInvestmentRow",{attrs:{assetImageSrc:e.getAssetLogoUrl(t.performance_id,e.assetType),assetTitle:t.title,assetSubtitle:"etf"===e.assetType.toLowerCase()||"fnd"===e.assetType.toLowerCase()?e.getFundsSubtitle(t):t.ticker||t.currency,assetType:e.assetType.toUpperCase(),loading:e.loading},nativeOn:{click:function(s){return e.handleMoreInfoClick(t)}}})],1)}),0):s("MeTable",{staticClass:"overflow-y-hidden",attrs:{data:e.useData,columns:e.columns[e.assetType.toLowerCase()],loading:e.loading,headerClasses:"border-b py-6 px-4 mb-4 font-normal text-left",cellClasses:"py-4 px-4 max-w-48",cellRowClasses:"odd:bg-gray-25"},scopedSlots:e._u([{key:"header",fn:function(t){var i=t.col;return[s("MeText",{domProps:{innerHTML:e._s(i.header)}})]}},{key:"cell",fn:function(t){var i=t.data,a=t.field;return["logo"===a?s("MdAssetLogo",{staticClass:"flex-shrink-0 mr-4",attrs:{assetType:e.assetType,assetLogoUrl:e.assetLogoUrl,performanceId:i.performance_id,loading:e.loading}}):e._e(),e._v(" "),"name"===a?s("div",{staticClass:"max-w-xs"},[s("MeText",{staticClass:"font-semibold",attrs:{loading:e.loading}},[e._v(e._s(i.title))]),e._v(" "),"etf"===e.assetType.toLowerCase()||"fnd"===e.assetType.toLowerCase()?s("MeText",{attrs:{loading:e.loading}},[e._v(e._s(e.getFundsSubtitle(i)))]):e._e()],1):e._e(),e._v(" "),"srri"===a?s("MeSrriIndicator",{attrs:{loading:e.loading,leftText:"Low Risk",rightText:"High Risk",highlightedNumber:parseInt(i.SRRI)}}):e._e(),e._v(" "),"distribution"===a?s("MeText",{attrs:{loading:e.loading}},[e._v(e._s(e.distributionStatus[i.distribution_status]))]):e._e(),e._v(" "),"currency"===a?s("MeText",{attrs:{loading:e.loading}},[e._v(e._s(i.currency))]):e._e(),e._v(" "),"sector"===a?s("MeText",{attrs:{loading:e.loading}},[e._v(e._s(i.sector))]):e._e(),e._v(" "),"exchange"===a?s("MeText",{attrs:{loading:e.loading}},[e._v(e._s(i.exchange))]):e._e(),e._v(" "),"button"===a?s("MeButton",{attrs:{loading:e.loading,variant:"secondary"},on:{click:function(t){return e.handleMoreInfoClick(i)}}},[e._v(e._s(e.moreInformationButtonText))]):e._e()]}}],null,!1,3799144258)})},[],!1,null,"29364303",null).exports;const xe={name:"MdIframe",props:{iframeUrl:{type:String}},mounted(){this.iframeUrl&&window.addEventListener("message",e=>{var t,s;e.source===this.$refs.iframeComponent.contentWindow&&Number.isInteger(null===(t=e.data)||void 0===t?void 0:t.height)&&(null===(s=e.data)||void 0===s?void 0:s.height)>0&&(this.$refs.iframeComponent.style.height=`${e.data.height}px`)})}};const be=(0,_e.A)(xe,function(){var e=this,t=e.$createElement;return(e._self._c||t)("iframe",{ref:"iframeComponent",attrs:{src:e.iframeUrl}})},[],!1,null,null,null).exports,Ce={components:{MdAssetTable:ke,MdIframe:be},name:"MdStockSearchList",props:{assetType:{type:String,default:"FND"},assetLogoUrl:{type:String},assetsData:{type:Array},iframeUrl:{type:String}},data(){return{disclaimerBeforeCheck:{},disclaimerAfterCheck:{},currentAssets:[],loading:!1,searchCriteria:"",currentAssetType:this.assetType,totalData:0,amountPerPage:20,page:1}},watch:{currentAssetType(e){this.retrieveAssetData()},searchCriteria(e){this.retrieveAssetData()}},computed:{navigationData(){return this.assetsData.map(e=>({text:e.asset_display_name,assetType:e.asset_type}))},thisAssetData(){return this.assetsData.find(e=>e.asset_type===this.currentAssetType)},defaultTabIndex(){return this.assetsData.findIndex(e=>e.asset_type===this.currentAssetType)},showSearchBar(){return!(""!==this.thisAssetData.disclaimer_button_after_redirect_url.url||"yes"===this.thisAssetData.show_disclaimer_before.toLowerCase()&&(void 0===this.disclaimerBeforeCheck[this.thisAssetData.asset_type]||!this.disclaimerBeforeCheck[this.thisAssetData.asset_type]))}},created(){this.retrieveAssetData()},methods:{handleDisclaimerBeforeClick(e){""!==this.thisAssetData.disclaimer_button_after_redirect_url.url?window.open(this.thisAssetData.disclaimer_button_after_redirect_url.url,"_blank"):i.default.set(this.disclaimerBeforeCheck,e,!0)},handleDisclaimerAfterClick(e){""!==this.thisAssetData.disclaimer_button_after_redirect_url.url?window.open(this.thisAssetData.disclaimer_button_after_redirect_url.url,"_blank"):i.default.set(this.disclaimerAfterCheck,e,!1)},handleMoreInfoClick(e){"yes"===this.thisAssetData.show_disclaimer_after?i.default.set(this.disclaimerAfterCheck,this.currentAssetType,!0):""!==this.thisAssetData.more_information_redirect_url.url&&(window.location=this.thisAssetData.more_information_redirect_url.url+"?id="+e.performance_id)},handleNavigationClick(e){let t=this.assetsData.find(t=>t.asset_type===e.item.assetType);window.location=t.asset_url.url},handlePageClick(e){this.page=e,this.retrieveAssetData()},async retrieveAssetData(){const{currentAssetType:e,searchCriteria:t,page:s,amountPerPage:i}=this;this.loading=!0,this.currentAssets=[];let a=await ce.getAssets(e,t,s,i);this.currentAssets=a.data.result,this.totalData=parseInt(a.data.count),this.loading=!1},handleSearchInput(e){this.searchCriteria=e}}};const Ae=(0,_e.A)(Ce,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{},[s("MeScrollable",{staticClass:"bg-gray-100 rounded-xl inline-flex md:justify-center text-center"},[s("MeNavigationTabs",{staticClass:"inline-flex justify-center",attrs:{tabItems:e.navigationData,defaultTab:e.defaultTabIndex},on:{click:e.handleNavigationClick}})],1)],1),e._v(" "),e.iframeUrl?s("MdIframe",{attrs:{iframeUrl:e.iframeUrl}}):[e.showSearchBar?s("div",{staticClass:"py-5"},[s("MeExpandableInput",{attrs:{containerExtraClass:"bg-gray-50",open:!0,allowOpenCloseEvent:!1,placeholder:e.thisAssetData.searchbar},on:{input:e.handleSearchInput}}
1)],1):e._e(),e._v(" "),"yes"!==e.thisAssetData.show_disclaimer_before.toLowerCase()||void 0!==e.disclaimerBeforeCheck[e.thisAssetData.asset_type]&&e.disclaimerBeforeCheck[e.thisAssetData.asset_type]?"yes"===e.thisAssetData.show_disclaimer_after.toLowerCase()&&!0===e.disclaimerAfterCheck[e.thisAssetData.asset_type]?s("div",[s("MeModal",{attrs:{closeIconClasses:e.thisAssetData.disclaimer_can_close?void 0:"hidden"},on:{close:function(t){return e.handleDisclaimerAfterClick(e.thisAssetData.asset_type)}},scopedSlots:e._u([{key:"content",fn:function(){return[s("h2",[e._v(e._s(e.thisAssetData.disclaimer_title))]),e._v(" "),s("p",{staticClass:"pt-6"},[e._v("\n "+e._s(e.thisAssetData.disclaimer_text)+"\n ")])]},proxy:!0},{key:"footer",fn:function(){return[s("div",{staticClass:"w-full flex justify-center pb-6"},[s("MeButton",{on:{click:function(t){return e.handleDisclaimerAfterClick(e.thisAssetData.asset_type)}}},[e._v(e._s(e.thisAssetData.disclaimer_button_text))])],1)]},proxy:!0}],null,!1,533036606)})],1):s("div",[s("div",[s("MdAssetTable",{attrs:{data:e.currentAssets,assetType:e.currentAssetType,assetLogoUrl:e.assetLogoUrl,moreInformationButtonText:e.thisAssetData.more_info_button_text,loading:e.loading},on:{"click-more-info":e.handleMoreInfoClick}})],1),e._v(" "),s("div",{staticClass:"flex items-center justify-center mt-16"},[s("MePagination",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],attrs:{resultsPerPage:e.amountPerPage,totalResults:e.totalData},on:{change:e.handlePageClick}})],1)]):s("div",[s("MeModal",{attrs:{closeIconClasses:e.thisAssetData.disclaimer_can_close?void 0:"hidden"},on:{close:function(t){return e.handleDisclaimerBeforeClick(e.thisAssetData.asset_type)}},scopedSlots:e._u([{key:"content",fn:function(){return[s("h2",[e._v(e._s(e.thisAssetData.disclaimer_title))]),e._v(" "),s("p",{staticClass:"pt-6"},[e._v("\n "+e._s(e.thisAssetData.disclaimer_text)+"\n ")])]},proxy:!0},{key:"footer",fn:function(){return[s("div",{staticClass:"w-full flex justify-center pb-6"},[s("MeButton",{on:{click:function(t){return e.handleDisclaimerBeforeClick(e.thisAssetData.asset_type)}}},[e._v(e._s(e.thisAssetData.disclaimer_button_text))])],1)]},proxy:!0}],null,!1,3388699043)})],1)]],2)},[],!1,null,"4662a943",null).exports;const we={name:"MdAssetLogo",props:{assetType:{type:String},assetLogoUrl:{type:String},performanceId:{type:String},loading:{type:Boolean,default:!1}},computed:{getAssetLogoUrl(){return this.performanceId&&this.assetLogoUrl&&this.assetType?`${this.assetLogoUrl}/${this.assetComponentTypeLong.toLowerCase()}/${this.performanceId.toUpperCase()}.png`:""},assetComponentTypeLong(){switch(this.assetType.toUpperCase()){case"FND":return"mutualFund";case"EQ":return"equity";case"ETF":return"etf";case"BND":return"bond"}}}};const Me=(0,_e.A)(we,function(){var e=this,t=e.$createElement;return(e._self._c||t)("MeAssetIcon",{attrs:{assetType:e.assetType,loading:e.loading,showAssetTypeAcronym:!1,imageSrc:e.getAssetLogoUrl}})},[],!1,null,null,null).exports;s(7136),s(173),s(460);const Te={name:"MdRiskSlider",props:{risks:{type:Array,required:!0},portfolioTypes:{type:Array,required:!0},defaultRisk:{type:Number|String},defaultPortfolioType:{type:Number|String},translations:{type:Object},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},watch:{risk(e){this.$emit("risk-changed",e)},defaultRisk(e){this.risk=e},portfolioType(e){this.$emit("portfolio-type-changed",e)}},data(){return{risk:this.defaultRisk,portfolioType:this.defaultPortfolioType}},computed:{risksName(){return this.risks.map(e=>e.name)},currentRisk(){return this.risks.find(e=>e.key==this.risk)}}};const Le=(0,_e.A)(Te,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"border-2 border-gray-100 rounded-lg p-4 md:p-12"},[s("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-20 items-center"},[s("div",{staticClass:"flex flex-col space-y-2"},[s("div",[s("span",{staticClass:"font-semibold text-sm"},[e._v(e._s(e.translations.chooseYourModelPortfolio))])]),e._v(" "),s("div",{staticClass:"grid grid-cols-2 gap-4"},e._l(e.portfolioTypes,function(t,i){return s("label",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],key:i,staticClass:"cursor-pointer flex items-center space-x-2"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.portfolioType,expression:"portfolioType"}],staticClass:"cursor-pointer",attrs:{type:"radio",name:"profileImg"},domProps:{value:t.key,checked:e._q(e.portfolioType,t.key)},on:{change:function(s){e.portfolioType=t.key}}}),e._v(" "),s("span",[e._v(e._s(t.name))]),e._v(" "),""!=t.tooltip&&null!=t.tooltip?s("MeTooltip",{staticClass:"cursor-pointer",attrs:{content:t.tooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-sm",attrs:{name:"infoCircle",variant:"active"}}
1)],1):e._e()],1)}),0),e._v(" "),s("div",[s("MeRange",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],staticClass:"cursor-pointer",attrs:{min:1,max:e.risks.length,step:1,showValue:!1,disabled:e.disabled},model:{value:e.risk,callback:function(t){e.risk=e._n(t)},expression:"risk"}}),e._v(" "),s("div",{staticClass:"flex justify-between mt-1"},e._l(e.risksName,function(t,i){return s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],key:i,staticClass:"text-xs md:text-sm p-1 text-center"},[e._v(" "+e._s(t))])}),1)],1)]),e._v(" "),s("div",[s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v("\n "+e._s(e.currentRisk.description)+"\n ")])],1)])])},[],!1,null,"44d67f58",null).exports;var Se=s(9936),je=s(9925),De=s(4660),Ie=s(202),Ne=s(8517),Pe=s(6870),Re=s(4274);(0,Se.Y)([je.a,De.a,Ie.a,Ne.a,Pe.a]);const Ee={name:"MdPieChart",components:{VChart:Re.Ay},props:{pieData:{type:Array,required:!0},pieName:{type:String},title:{type:String},titleFontSize:{type:String,default:"lg"},subtitle:{type:String},titleColour:{type:String,default:"#000"},translations:{type:Object},loading:{type:Boolean,default:!1}},computed:{chartOptions(){return{tooltip:!this.loading&&{trigger:"item",formatter:e=>`<b>${parseFloat(e.value).toFixed(2)}%</b>`},legend:{show:!this.loading,orient:"vertical",right:0,top:"10%",formatter:e=>{let t=this.pieData.find(t=>t.name===e);return`${e}: ${t.value}%`}},series:[{name:this.pieName,type:"pie",radius:["65%","85%"],label:{show:!1},itemStyle:{borderRadius:0,borderColor:"#fff",borderWidth:5},data:this.pieData,center:["30%","50%"],markPoint:this.loading?void 0:{tooltip:{show:!1},label:{show:!0,formatter:"{b}",color:"black",fontSize:this.fontSize(this.titleFontSize),fontWeight:600},data:[{name:this.title,value:"-",symbol:"circle",itemStyle:{color:"transparent"},x:"30%",y:"40%",label:{fontWeight:800,color:this.titleColour,fontSize:this.fontSize(this.titleFontSize),cursor:"pointer"}},{name:this.subtitle,value:"-",symbol:"circle",itemStyle:{color:"transparent"},x:"30%",y:"50%",label:{fontWeight:800,color:this.titleColour,fontSize:this.fontSize("4xl"),cursor:"pointer"}}]}}]}}},methods:{fontSize(e){switch(e){case"3xs":return 8;case"2xs":return 10;case"xs":return 12;case"sm":return 14;case"base":return 16;case"lg":return 18;case"xl":return 20;case"2xl":return 22;case"3xl":return 24;case"4xl":return 28;case"5xl":return 30;case"6xl":return 36;case"7xl":return 44}}}};const $e=(0,_e.A)(Ee,function(){var e=this,t=e.$createElement;return(e._self._c||t)("VChart",{ref:"chart",staticClass:"chart",attrs:{option:e.chartOptions,autoresize:""}})},[],!1,null,"038e06ea",null).exports;const Fe={name:"MdModelPortfolio",props:{portfolio:Object,loading:{type:Boolean,default:!1},translations:{type:Object}}};const Ge=(0,_e.A)(Fe,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"py-10 space-y-4"},[s("div",{staticClass:"grid grid-cols-1 md:grid-cols-4 gap-6 md:gap-20 portfolio-top-details"},[s("div",{staticClass:"space-y-2"},[s("div",[e._v(e._s(e.translations.nameCategory))]),e._v(" "),s("me-heading",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],attrs:{as:"h3"}},[e._v(e._s(e.portfolio.acf.title))]),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v(e._s(e.portfolio.acf.subtitle))])],1),e._v(" "),s("div",{staticClass:"space-y-2"},[s("div",{staticClass:"flex"},[e._v("\n "+e._s(e.translations.riskRewardProfile)+" \n "),e.translations.riskRewardProfileTooltip?s("MeTooltip",{staticClass:"cursor-pointer",attrs:{content:e.translations.riskRewardProfileTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-sm",attrs:{name:"infoCircle",variant:"active"}}
1)],1):e._e()],1),e._v(" "),s("div",[s("me-srri-indicator",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],staticClass:"w-72 md:w-full",attrs:{leftText:"Low Risk",rightText:"High Risk",highlightedNumber:parseInt(e.portfolio.acf.srri_indicator)}})],1)]),e._v(" "),s("div",{staticClass:"space-y-2"},[s("div",{staticClass:"flex"},[e._v("\n "+e._s(e.translations.ongoingCharge)+"\n "),e.translations.ongoingChargeTooltip?s("MeTooltip",{staticClass:"cursor-pointer",attrs:{content:e.translations.ongoingChargeTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-sm",attrs:{name:"infoCircle",variant:"active"}})],1):e._e()],1),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v(e._s(e.portfolio.acf.ongoing_charge))])],1),e._v(" "),s("div",{staticClass:"space-y-2"},[s("div",[e._v(e._s(e.translations.lastNav))]),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v(e._s(e.portfolio.acf.last_nav))])],1)]),e._v(" "),s("div",{staticClass:"space-y-2"},[s("b",[e._v(e._s(e.translations.investmentObjective))]),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v(e._s(e.portfolio.acf.investment_objective))])],1),e._v(" "),s("div",{staticClass:"grid gap-10 grid-cols-1 md:grid-cols-2 portfolio-side-details"},[s("div",{staticClass:"space-y-4"},[s("div",{staticClass:"space-y-2"},[s("b",{staticClass:"flex"},[e._v("\n "+e._s(e.translations.morningstarRating)+"\n "),e.translations.morningstarRatingTooltip?s("MeTooltip",{staticClass:"cursor-pointer",attrs:{content:e.translations.morningstarRatingTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-sm",attrs:{name:"infoCircle",variant:"active"}})],1):e._e()],1),e._v(" "),s("MeRating",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],attrs:{rating:parseFloat(e.portfolio.acf.morningstar_rating)}})],1),e._v(" "),e.portfolio.acf.legal_documents?s("div",{staticClass:"space-y-2"},[s("b",[e._v(e._s(e.translations.legalDocuments))]),e._v(" "),e._l(e.portfolio.acf.legal_documents,function(t,i){return s("div",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],key:i},[s("strong",[e._v(e._s(t.title))]),e._v(" "),s("div",{staticClass:"flex space-x-2"},e._l(t.files,function(t,i){return s("a",{key:i,attrs:{href:t.file.url}},[e._v(e._s(t.name))])}),0)])})],2):e._e(),e._v(" "),s("div",{staticClass:"space-y-2"},[s("b",[e._v(e._s(e.translations.managementStrategyVsBenchmark))]),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}]},[e._v(e._s(e.portfolio.acf.management_strategy_vs_benchmark))])],1)]),e._v(" "),s("div",{staticClass:"space-y-2"},[s("b",[e._v(e._s(e.translations.riskProfile))]),e._v(" "),s("me-text",{directives:[{name:"skeleton",rawName:"v-skeleton",value:!!e.loading&&"rounded-lg",expression:"loading ? 'rounded-lg' : false"}],domProps:{innerHTML:e._s(e.portfolio.acf.risk_profile)}})],1)])])},[],!1,null,"60f37d8d",null).exports,qe={getModelPortfolios:()=>le.get("/wp-json/v1/modelportfolios"),getModelPortfoliosStaticData:()=>le.get("/wp-json/v1/modelportfolios/static"),getModelPortfoliosPieChart:()=>le.get("/wp-json/v1/modelportfolios/piedata")},Qe={name:"MdModelPortfolioContainer",components:{MdRiskSlider:Le,MdPieChart:$e,MdModelPortfolio:Ge},props:{modelPortfolioType:{type:String},translations:{type:Object}},data(){return{loading:!1,currentRisk:1,currentPortfolioType:1,riskTypeId:"MeGreen"==this.modelPortfolioType?["risk_type_green","riskTypeGreen"]:["risk_type_global","riskTypeGlobal"],riskOptions:fe,portfolioTypes:ge,portfoliosData:[],portfolioComposition:ve,pieDataList:[],portfolioCompositionKey:{equity:1,bonds:2,cash:3,others:4}}},created(){this.fetchStaticData(),this.fetchPortfolios(),this.fetchPieData()},computed:{pieData(){if(this.loading&&!this.pieDataList.data)return[{value:10,name:"Equities",itemStyle:{color:"#9DA6AB"}},{value:40,name:"Bonds",itemStyle:{color:"#D5DBDF"}},{value:25,name:"Cash",itemStyle:{color:"#9DA6AB"}},{value:25,name:"Others",itemStyle:{color:"#D5DBDF"}}];let e=this.pieDataList.data.find(e=>e.portfolio==this.modelPortfolioType&&e[this.riskTypeId[0]]==this.currentRisk&&e.model_portfolio_type==this.currentPortfolioType);return e?[{value:e.equity_percentage,name:this.getPortfolioCompositionText(this.portfolioCompositionKey.equity),itemStyle:{color:this.getPortfolioColour("equity_percentage")}},{value:e.bonds_percentage,name:this.getPortfolioCompositionText(this.portfolioCompositionKey.bonds),itemStyle:{color:this.getPortfolioColour("bonds_percentage")}},{value:e.cash_percentage,name:this.getPortfolioCompositionText(this.portfolioCompositionKey.cash),itemStyle:{color:this.getPortfolioColour("cash_percentage")}},{value:e.other_percentage,name:this.getPortfolioCompositionText(this.portfolioCompositionKey.others),itemStyle:{color:this.getPortfolioColour("other_percentage")}}]:[]},portfolios(){return this.loading?Array(5).fill(he):this.portfoliosData.filter(e=>e.acf[this.riskTypeId[0]]==this.currentRisk&&e.acf.model_portfolio_type==this.currentPortfolioType&&e.acf.product_type==this.modelPortfolioType)},currentRiskName(){if(this.riskOptions.length>0)return this.riskOptions.find(e=>e.key==this.currentRisk).name},riskSliderRisk(){return this.riskSliderDisabled?Math.ceil(this.riskOptions.length/2)||1:this.currentRisk},riskSliderDisabled(){return"MeGreen"==this.modelPortfolioType&&"1"==this.portfolioTypes.find(e=>e.key==this.currentPortfolioType).disable_megreen||"MeGlobal"==this.modelPortfolioType&&"1"==this.portfolioTypes.find(e=>e.key==this.currentPortfolioType).disable_meglobal}},methods:{async fetchStaticData(){let e=(await qe.getModelPortfoliosStaticData()).data;this.portfolioTypes=e.modelPortfolioTypes,this.portfolioComposition=e.portfolioCOmposition,this.riskOptions=e[this.riskTypeId[1]],this.currentRisk=Math.ceil(this.riskOptions.length/2)||1,this.currentPortfolioType=this.portfolioTypes[0].key||1},async fetchPortfolios(){this.loading=!0,this.portfoliosData=(await qe.getModelPortfolios()).data,this.loading=!1},async fetchPieData(){this.pieDataList=(await qe.getModelPortfoliosPieChart()).data},getPortfolioCompositionText(e){return this.portfolioComposition.find(t=>t.key==e).name},updateRisk(e){this.currentRisk=e},updatePortfolioType(e){this.currentPortfolioType=e},getPortfolioCompositionPercentage(e){let t=this.portfolios.length;return this.portfolios.filter(t=>t.acf.portfolio_composition_data==e).length/t*100},getPortfolioColour(e){switch(e){case"equity_percentage":return"#91c641";case"bonds_percentage":return"#21a6ff";case"cash_percentage":return"#ff6c40";case"other_percentage":return"#66bcff"}},removeSlashesFromString:e=>e.replaceAll(/\\/g,"")}};const Ue=(0,_e.A)(Qe,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",[e.riskOptions.length>0&&e.portfolioTypes.length>0?s("MdRiskSlider",{attrs:{risks:e.riskOptions,loading:e.loading,portfolioTypes:e.portfolioTypes,defaultRisk:e.riskSliderRisk,defaultPortfolioType:e.currentPortfolioType,disabled:e.riskSliderDisabled,translations:e.translations},on:{"risk-changed":e.updateRisk,"portfolio-type-changed":e.updatePortfolioType}}
1):e._e()],1),e._v(" "),s("div",{staticClass:"mt-8",domProps:{innerHTML:e._s(e.removeSlashesFromString(e.translations.beforeChartInformation))}}),e._v(" "),s("div",{staticClass:"w-full md:w-1/2 mt-8"},[s("h3",[e._v(e._s(e.translations.portfolioComposition))]),e._v(" "),s("MdPieChart",{attrs:{pieData:e.pieData,loading:e.loading,title:e.translations.plan,subtitle:e.currentRiskName,translations:e.translations}})],1),e._v(" "),s("div",{staticClass:"mt-8",domProps:{innerHTML:e._s(e.removeSlashesFromString(e.translations.afterChartInformation))}}),e._v(" "),s("div",{staticClass:"mt-8"},e._l(e.portfolios,function(t,i){return s("MdModelPortfolio",{key:i,attrs:{portfolio:t,loading:e.loading,translations:e.translations}})}),1)])},[],!1,null,null,null).exports;const Be=(e,t)=>ne().create({baseURL:e,headers:{bankId:t}}),Oe={calculateHomeloan:(e,t,s)=>Be(t,s).get("/calculator/calculate/",{params:e}),adjustSuggestedLoan:(e,t,s)=>Be(t,s).get("/calculator/adjust",{params:e}),createAppointment:(e,t,s)=>Be(t,s).post("/appointments",e)};var Ve=s(2285),ze=s.n(Ve);const He={methods:{checkRequired(e){if(!e)return"This field is required."},checkGrossMin(e){if(e&&e<100)return"Gross income cannot be less than â¬100."},checkGrossMax(e){if(e&&e>1e7)return"Gross income cannot exceed â¬10,000,000."},checkLength(e,t){if(e&&e.length>t)return"Must be "+t+" characters or less"},checkMinLength(e,t){if(e&&e.length<t)return"Must be "+t+" characters or more"},checkAgeMin(e){if(e&&e<18)return"To be eligible for a loan, you must be at least 18 years"},checkAgeMax(e){if(e&&e>63)return"Age cannot exceed 63 years"},checkWholeNumbers(e){if(e&&!/^\d+$/.test(e))return"Only whole numbers are allowed"},checkMonthlyCommitments(e,t,s){if(e&&e>.4*(parseFloat(t)+(parseFloat(s)||0))/12)return"Your monthly commitments exceed the limit"},checkMaxLoanAmount(e,t){if(e&&e>parseFloat(t))return"The adjusted Loan amount cannot exceed your loan limit of "+ze()(t,"en","01",{style:"currency",currency:"EUR"})},checkMinLoanAmount(e){if(e&&e<1e3)return"The adjusted Loan amount cannot be less than â¬1,000"},checkMaxMonthlyRepayment(e,t){if(e&&e>parseFloat(t))return"The adjusted Monthly repayment cannot exceed your monthly limit of "+ze()(t,"en","01",{style:"currency",currency:"EUR"})},checkMinMonthlyRepayment(e){if(e&&e<100)return"The adjusted Monthly repayment cannot be less than â¬100"},checkMaxLoanTermYears(e,t){if(e&&e>parseFloat(t))return"The adjusted Term cannot exceed "+t+" years"},checkMinLoanTermYears(e){if(e&&e<1)return"The adjusted Term cannot be less than 1 year"},checkEmail(e){if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e))return"Kindly enter a valid email address"}}};const Ye={name:"MdHomeloanCalculator",props:{isLoading:{type:Boolean,default:!1},suggestedLoanValues:{type:Object,required:!0},originalSuggestedLoanValues:{type:Object,required:!0},mainApplicantGross:{type:Number},mainApplicantAge:{type:Number},jointApplicantGross:{type:Number},jointApplicantAge:{type:Number},otherMonthlyCommitments:{type:Number},apiUrl:{type:String},bankId:{type:String}},data:()=>({formSuccess:!1,errors:[],errorMessage:null,showFormAdjust:!1,loanAmount:null,monthlyRepayments:null,durationInYears:null}),mixins:[He],computed:{isErrorsEmpty(){for(const[e,t]of Object.entries(this.errors))if(""!==t)return!1;return!0},isDisabled(){if(!this.isErrorsEmpty)return!0},maximumLoanAmount(){return ze()(this.suggestedLoanValues.maximumLoanAmount,"en",this.bankId,{style:"currency",currency:"EUR"})},monthlyPaymentAmount(){return ze()(this.suggestedLoanValues.monthlyPaymentAmount,"en",this.bankId,{style:"currency",currency:"EUR"})}},methods:{validateLoanAmount:function(e,t){const s=e;this.checkMaxLoanAmount(s,this.originalSuggestedLoanValues.maximumLoanAmount)?this.$set(this.errors,t,this.checkMaxLoanAmount(s,this.originalSuggestedLoanValues.maximumLoanAmount)):this.checkLength(s,8)?this.$set(this.errors,t,this.checkLength(s,8)):this.checkMinLoanAmount(s)?this.$set(this.errors,t,this.checkMinLoanAmount(s)):(this.$set(this.errors,t,""),this.errorMessage=null)},validateMonthlyRepayments:function(e,t){const s=e;this.checkMaxMonthlyRepayment(s,this.originalSuggestedLoanValues.monthlyPaymentAmount)?this.$set(this.errors,t,this.checkMaxMonthlyRepayment(s,this.originalSuggestedLoanValues.monthlyPaymentAmount)):this.checkLength(s,6)?this.$set(this.errors,t,this.checkLength(s,6)):this.checkMinMonthlyRepayment(s)?this.$set(this.errors,t,this.checkMinMonthlyRepayment(s)):(this.$set(this.errors,t,""),this.errorMessage=null)},validateDuration:function(e,t){const s=e.target.value;this.checkMaxLoanTermYears(s,this.originalSuggestedLoanValues.maximumLoanTermYears)?this.$set(this.errors,t,this.checkMaxLoanTermYears(s,this.originalSuggestedLoanValues.maximumLoanTermYears)):this.checkLength(s,2)?this.$set(this.errors,t,this.checkLength(s,2)):this.checkMinLoanTermYears(s)?this.$set(this.errors,t,this.checkMinLoanTermYears(s)):(this.$set(this.errors,t,""),this.errorMessage=null)}
1,buttonAdustClick(){this.showFormAdjust=!0},buttonRecalculateClick(){this.durationInYears||this.loanAmount||this.monthlyRepayments?this.$emit("recalculate",this.durationInYears,this.loanAmount,this.monthlyRepayments):this.errorMessage="Kindly enter a loan amount, monthly payment or duration of loan in years to recalculate"},cancelAdjust(){this.showFormAdjust=!1,this.loanAmount=null,this.monthlyRepayments=null,this.durationInYears=null,this.errorMessage=null}}};var We=(0,_e.A)(Ye,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"bg-gray-background border-gray-200 w-full rounded-lg pb-6 pt-6 shadow-lg my-4"},[e._m(0),e._v(" "),s("hr"),e._v(" "),s("div",{staticClass:"flex p-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Loan Amount")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("h4",[e._v("\n "+e._s(e.maximumLoanAmount)+"\n ")])])]),e._v(" "),s("div",{staticClass:"flex p-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Monthly payment")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("MeText",{attrs:{fontSize:"xl",fontWeight:"600"}},[e._v("\n "+e._s(e.monthlyPaymentAmount))])],1)]),e._v(" "),s("div",{staticClass:"flex p-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Duration of Loan (years)")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("MeText",{attrs:{fontSize:"xl",fontWeight:"600"}},[e._v(e._s(e.suggestedLoanValues.maximumLoanTermYears))])],1)]),e._v(" "),!0===e.showFormAdjust?s("div",{staticClass:"mt-5 "},[s("hr"),e._v(" "),s("div",{staticClass:"flex p-4 mt-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Loan Amount")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("MeInput",{attrs:{as:"currency",eventEmit:["blur"]},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateLoanAmount.apply(void 0,i.concat(["loanAmount"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.loanAmount?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.loanAmount)+"\n ")]):e._e()]},proxy:!0}],null,!1,4096197044),model:{value:e.loanAmount,callback:function(t){e.loanAmount=t},expression:"loanAmount"}})],1)]),e._v(" "),s("div",{staticClass:"flex p-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Monthly payment")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("MeInput",{attrs:{as:"currency",eventEmit:["blur"]},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateMonthlyRepayments.apply(void 0,i.concat(["monthlyRepayments"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.monthlyRepayments?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.monthlyRepayments)+"\n ")]):e._e()]},proxy:!0}],null,!1,2550894420),model:{value:e.monthlyRepayments,callback:function(t){e.monthlyRepayments=t},expression:"monthlyRepayments"}})],1)]),e._v(" "),s("div",{staticClass:"flex p-4"},[s("div",{staticClass:"w-1/2"},[s("MeText",[e._v("Duration of Loan (years)")])],1),e._v(" "),s("div",{staticClass:"w-1/2 text-right"},[s("MeInput",{attrs:{as:"number",eventEmit:["blur"]},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateDuration.apply(void 0,i.concat(["durationInYears"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.durationInYears?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.durationInYears)+"\n ")]):e._e()]},proxy:!0}],null,!1,4203062420),model:{value:e.durationInYears,callback:function(t){e.durationInYears=t},expression:"durationInYears"}})],1)]),e._v(" "),s("div",{staticClass:"md:flex p-4"},[s("div",{staticClass:"w-1/2"}),e._v(" "),s("div",{staticClass:"w-full md:w-1/2 px-2 text-center"},[s("div",{staticClass:"w-full"},[s("MeButton",{directives:[{name:"spinner",rawName:"v-spinner",value:{isLoading:e.isLoading,fill:"#FFF",opacity:1},expression:"{\n isLoading: isLoading,\n fill: '#FFF',\n opacity: 1,\n }"}],attrs:{variant:"primary",label:"Recalculate",size:"sm",disabled:e.isDisabled},on:{click:function(t){return e.buttonRecalculateClick()}}}
1)],1),e._v(" "),this.errorMessage?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e(),e._v(" "),s("div",{staticClass:"w-full mt-4"},[s("MeLink",{attrs:{as:"a",linkVariant:"primary"},on:{click:e.cancelAdjust}},[s("b",[e._v("Cancel")])])],1)])])]):s("div",{staticClass:"w-full text-center lg:text-right"},[s("MeButton",{attrs:{variant:"secondary",label:"Adjust"},on:{click:function(t){return e.buttonAdustClick()}}})],1)])},[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"text-left p-4"},[s("h3",[e._v("Suggested Loan")])])}],!1,null,null,null);const Ke={name:"MdHomeloanCalculator",components:{SuggestedForm:We.exports},props:{apiUrl:{type:String},bankId:{type:String},disclaimer:{type:String},tooltips:{type:Object,default:()=>({})}},data:()=>({isLoading:!1,formSuccess:!1,errors:[],mainApplicantGross:void 0,mainApplicantAge:void 0,jointApplicantGross:void 0,jointApplicantAge:void 0,otherMonthlyCommitments:void 0,suggestedLoanValues:void 0,errorMessage:void 0,originalSuggestedLoanValues:void 0}),mixins:[He],computed:{isErrorsEmpty(){for(const[e,t]of Object.entries(this.errors))if(""!==t)return!1;return!0},isDisabled(){if(!this.isErrorsEmpty||!this.mainApplicantGross||!this.mainApplicantAge)return!0}},methods:{validateGross:function(e,t){const s=e;"mainApplicantGross"===t&&this.checkRequired(s)?this.$set(this.errors,t,this.checkRequired(s)):this.checkGrossMin(s)?this.$set(this.errors,t,this.checkGrossMin(s)):this.checkGrossMax(s)?this.$set(this.errors,t,this.checkGrossMax(s)):this.checkLength(s,8)?this.$set(this.errors,t,this.checkLength(s,8)):this.$set(this.errors,t,"")},validateAge:function(e,t){const s=e.target.value;"mainApplicantAge"===t&&this.checkRequired(s)?this.$set(this.errors,t,this.checkRequired(s)):this.checkAgeMin(s)?this.$set(this.errors,t,this.checkAgeMin(s)):this.checkAgeMax(s)?this.$set(this.errors,t,this.checkAgeMax(s)):this.checkWholeNumbers(s)?this.$set(this.errors,t,this.checkWholeNumbers(s)):this.$set(this.errors,t,"")},validateMonthlyCommitments:function(e,t){const s=e;this.checkMonthlyCommitments(s,this.mainApplicantGross,this.jointApplicantGross)?this.$set(this.errors,t,this.checkMonthlyCommitments(s,this.mainApplicantGross,this.jointApplicantGross)):this.checkLength(s,8)?this.$set(this.errors,t,this.checkLength(s,8)):this.$set(this.errors,t,"")},resetForm(){this.isLoading=!1,this.formSuccess=!1,this.errors=[],this.mainApplicantGross=void 0,this.mainApplicantAge=void 0,this.jointApplicantGross=void 0,this.jointApplicantAge=void 0,this.otherMonthlyCommitments=void 0,this.suggestedLoanValues=void 0,this.errorMessage=void 0,this.formAdjust=!1,this.loanAmount=void 0,this.monthlyRepayments=void 0,this.durationInYears=void 0,this.originalSuggestedLoanValues=void 0},buttonCalculateClick(){this.isDisabled||this.calculateSuggestedLoan()},async calculateSuggestedLoan(){this.isLoading=!0;let e={mainApplicantGross:this.mainApplicantGross,mainApplicantAge:this.mainApplicantAge||void 0,jointApplicantGross:this.jointApplicantGross,jointApplicantAge:this.jointApplicantAge||void 0,otherMonthlyCommitments:this.otherMonthlyCommitments},t=await Oe.calculateHomeloan(e,this.apiUrl,this.bankId);t?(this.suggestedLoanValues=t.data,this.originalSuggestedLoanValues=t.data,this.isLoading=!1,this.formSuccess=!0,this.$refs.successRef.scrollIntoView({behavior:"smooth"})):(this.errorMessage=t.data.error,this.formSuccess=!1)},async recalculateSuggestedLoan(e,t,s){this.isLoading=!0;let i={durationInYears:e,loanAmount:t,monthlyRepayments:s,mainApplicantGross:this.mainApplicantGross,mainApplicantAge:this.mainApplicantAge||void 0,jointApplicantGross:this.jointApplicantGross,jointApplicantAge:this.jointApplicantAge||void 0,otherMonthlyCommitments:this.otherMonthlyCommitments},a=await Oe.adjustSuggestedLoan(i,this.apiUrl,this.bankId);a?(this.suggestedLoanValues=a.data,this.isLoading=!1,this.formSuccess=!0):(this.errorMessage=a.data.error,this.formSuccess=!1)}}};var Je=(0,_e.A)(Ke,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("form",{attrs:{id:"calculatorForm"}},[s("div",{staticClass:"bg-sequence-5 border-gray-200 w-full rounded-lg pb-6 pt-6 my-4"},[e._m(0),e._v(" "),s("div",{staticClass:"w-full md:flex"},[s("div",{staticClass:"mt-4 w-full md:w-1/2 px-3"},[s("div",{staticClass:"w-full px-2"},[s("MeText",{staticClass:"flex"},[e._v("Annual Gross Income *\n "),e.tooltips.annualGrossIncomeTooltip?s("MeTooltip",{staticClass:"ml-2",attrs:{content:e.tooltips.annualGrossIncomeTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-2xl",attrs:{name:"mdi-info",variant:"active"}}
1)],1):e._e()],1)],1),e._v(" "),s("div",{staticClass:"w-full px-2"},[s("MeInput",{attrs:{as:"currency",eventEmit:["blur"],"aria-invalid":!!e.errors.mainApplicantGross,"aria-errormessage":e.errors.mainApplicantGross?e.errors.mainApplicantGross:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateGross.apply(void 0,i.concat(["mainApplicantGross"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.mainApplicantGross?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.mainApplicantGross)+"\n ")]):e._e()]},proxy:!0}]),model:{value:e.mainApplicantGross,callback:function(t){e.mainApplicantGross=t},expression:"mainApplicantGross"}})],1)]),e._v(" "),s("div",{staticClass:"mt-4 w-full md:w-1/2 px-3 mb-5"},[s("div",{staticClass:"w-full px-2"},[s("MeText",{staticClass:"flex"},[e._v("Age *\n "),e.tooltips.age1Tooltip?s("MeTooltip",{staticClass:"ml-2",attrs:{content:e.tooltips.age1Tooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-2xl",attrs:{name:"mdi-info",variant:"active"}})],1):e._e()],1)],1),e._v(" "),s("div",{staticClass:"w-full px-2"},[s("MeInput",{attrs:{as:"number",eventEmit:["blur"],"aria-invalid":!!e.errors.mainApplicantAge,"aria-errormessage":e.errors.mainApplicantAge?e.errors.mainApplicantAge:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateAge.apply(void 0,i.concat(["mainApplicantAge"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.mainApplicantAge?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.mainApplicantAge)+"\n ")]):e._e()]},proxy:!0}]),model:{value:e.mainApplicantAge,callback:function(t){e.mainApplicantAge=e._n(t)},expression:"mainApplicantAge"}})],1)])]),e._v(" "),s("div",{staticClass:"w-full md:flex"},[s("div",{staticClass:"w-full md:w-1/2 px-3"},[s("div",{staticClass:"w-full px-2"},[s("MeText",{staticClass:"flex"},[e._v("Income of Joint Applicant\n "),e.tooltips.incomeOfJointApplicantTooltip?s("MeTooltip",{staticClass:"ml-2",attrs:{content:e.tooltips.incomeOfJointApplicantTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-2xl",attrs:{name:"mdi-info",variant:"active"}})],1):e._e()],1)],1),e._v(" "),s("div",{staticClass:"w-full px-2"},[s("MeInput",{attrs:{as:"currency",eventEmit:["blur"],"aria-invalid":!!e.errors.jointApplicantGross,"aria-errormessage":e.errors.jointApplicantGross?e.errors.jointApplicantGross:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateGross.apply(void 0,i.concat(["jointApplicantGross"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.jointApplicantGross?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.jointApplicantGross)+"\n ")]):e._e()]},proxy:!0}]),model:{value:e.jointApplicantGross,callback:function(t){e.jointApplicantGross=t},expression:"jointApplicantGross"}})],1)]),e._v(" "),s("div",{staticClass:"mt-4 md:mt-0 w-full md:w-1/2 px-3 mb-5"},[s("div",{staticClass:"w-full px-2"},[s("MeText",{staticClass:"flex"},[e._v("Age 2\n "),e.tooltips.age2Tooltip?s("MeTooltip",{staticClass:"ml-2",attrs:{content:e.tooltips.age2Tooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-2xl",attrs:{name:"mdi-info",variant:"active"}})],1):e._e()],1)],1),e._v(" "),s("div",{staticClass:"w-full px-2"},[s("MeInput",{attrs:{as:"number",eventEmit:["blur"],"aria-invalid":!!e.errors.jointApplicantAge,"aria-errormessage":e.errors.jointApplicantAge?e.errors.jointApplicantAge:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateAge.apply(void 0,i.concat(["jointApplicantAge"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.jointApplicantAge?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.jointApplicantAge)+"\n ")]):e._e()]},proxy:!0}]),model:{value:e.jointApplicantAge,callback:function(t){e.jointApplicantAge=e._n(t)},expression:"jointApplicantAge"}})],1)])]),e._v(" "),s("div",{staticClass:"w-full md:flex"},[s("div",{staticClass:"w-full md:w-1/2 px-2"},[s("div",{staticClass:"w-full px-2"},[s("MeText",{staticClass:"flex"},[e._v("Monthly Commitments\n "),e.tooltips.monthlyCommitmentsTooltip?s("MeTooltip",{staticClass:"ml-2",attrs:{content:e.tooltips.monthlyCommitmentsTooltip,placement:"right"}},[s("MeIcon",{staticClass:"text-2xl",attrs:{name:"mdi-info",variant:"active"}}
1)],1):e._e()],1)],1),e._v(" "),s("div",{staticClass:"w-full px-2"},[s("MeInput",{attrs:{as:"currency",eventEmit:["blur"],"aria-invalid":!!e.errors.otherMonthlyCommitments,"aria-errormessage":e.errors.otherMonthlyCommitments?e.errors.otherMonthlyCommitments:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateMonthlyCommitments.apply(void 0,i.concat(["otherMonthlyCommitments"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.otherMonthlyCommitments?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.otherMonthlyCommitments)+"\n ")]):e._e()]},proxy:!0}]),model:{value:e.otherMonthlyCommitments,callback:function(t){e.otherMonthlyCommitments=t},expression:"otherMonthlyCommitments"}})],1)]),e._v(" "),s("div",{staticClass:"w-full md:w-1/2 px-3 mb-5"},[s("div",{staticClass:"w-full mt-4 px-2 text-center"},[s("MeButton",{directives:[{name:"spinner",rawName:"v-spinner",value:{isLoading:e.isLoading,fill:"#FFF",opacity:1},expression:"{ isLoading: isLoading, fill: '#FFF', opacity: 1 }"}],staticClass:"w-full",attrs:{variant:"dark",label:"Calculate",size:"lg",disabled:e.isDisabled,"aria-disabled":e.isDisabled},on:{click:function(t){return e.buttonCalculateClick()}}})],1),e._v(" "),s("div",{staticClass:"w-full mt-4 px-2 text-center"},[s("MeLink",{attrs:{as:"a",dangerouslyUnstyled:""},on:{click:e.resetForm}},[s("b",[e._v("Reset")])])],1)])]),e._v(" "),e.errorMessage?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e(),e._v(" "),s("div",{staticClass:"mt-5 px-4"},[s("MeText",[e._v("* Mandatory fields")])],1),e._v(" "),s("div",{staticClass:"mt-5 px-4 pb-5"},[s("MeText",[e._v("\n "+e._s(e.disclaimer)+"\n ")])],1)]),e._v(" "),s("div",{ref:"successRef",staticClass:"pt-24"},[!0===e.formSuccess?s("div",{staticClass:"mt-5"},[s("SuggestedForm",{attrs:{isLoading:e.isLoading,suggestedLoanValues:e.suggestedLoanValues,mainApplicantGross:e.mainApplicantGross,mainApplicantAge:e.mainApplicantAge||void 0,jointApplicantGross:e.jointApplicantGross,jointApplicantAge:e.jointApplicantAge||void 0,otherMonthlyCommitments:e.otherMonthlyCommitments,apiUrl:e.apiUrl,bankId:e.bankId,originalSuggestedLoanValues:e.originalSuggestedLoanValues},on:{recalculate:e.recalculateSuggestedLoan}})],1):e._e()])])},[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"text-center"},[s("h3",[e._v("Calculator")])])}],!1,null,null,null);const Ze=Je.exports;const Xe={getSearchResults:e=>le.get(`/wp-json/search/v1/${e}`)},et={name:"MdSearchBar",props:{faqUrl:{type:String,default:""},docUrl:{type:String,default:""}},watch:{searchText(){this.fetchData()}},data:()=>({searchText:void 0,dataList:[]}),computed:{list(){var e;return null===(e=this.dataList)||void 0===e?void 0:e.map(e=>({name:e.post_title,type:e.post_type,slug:e.post_name}))}},methods:{async fetchData(){this.searchText&&this.searchText.length>=3?this.dataList=(await Xe.getSearchResults(this.searchText)).data:this.dataList=[]},itemClick(e){let t="";switch(e.type){case"documents":t=this.docUrl;break;case"faqs":t=this.faqUrl}t+="#"+e.slug,window.location=t},enterPress(){window.location=`/?s=${this.searchText}`}}};const tt=(0,_e.A)(et,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"relative z-index-999"},[s("div",{staticClass:"relative z-30"},[s("MeExpandableInput",{attrs:{containerExtraClass:"border",open:!0,allowOpenCloseEvent:!1},on:{keyupEnter:e.enterPress},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}})],1),e._v(" "),e.list&&e.list.length>0?s("div",{staticClass:"absolute z-20 bg-white w-full p-8 transform -translate-y-6 grid grid-cols-1 divide-y divide-gray-disable"},e._l(e.list,function(t,i){return s("div",{key:i,staticClass:"py-4 cursor-pointer",on:{click:function(s){return e.itemClick(t)}}},[e._v("\n "+e._s(t.name)+"\n ")])}),0):e._e()])},[],!1,null,"1ed7042c",null).exports;const st={sendEmail:e=>le.post("/wp-json/sendgrid/v1/submit",{params:e})};var it=s(9552);const at={name:"MdHomeloanRequestMoreInfo",props:{apiUrl:{type:String},bankId:{type:String},privacyNotice:{type:String},recaptchaKey:{type:String},buttonText:{type:String},buttonStyle:{type:String},sendgridTemplateId:{type:String},sendgridSubject:{type:String},content:{type:Object,default:()=>({titleLabel:"Fill in your details and we will get back to you with more information on our Home Loans.",firstNameLabel:"First name",lastNameLabel:"Last name",emailLabel:"Email",privacyNoticeLabel:"I have read and accepted the",privacyNoticeLinkLabel:"privacy notice",fieldRequiredLabel:"This field is required",thankyouInterestMessage:"Thank y
1ou for showing interest in our products!",recieveRequestMessage:"We have received your request for information on our Home Loans and will be contacting you shortly."})}},components:{VueRecaptcha:it.A},data:()=>({isLoading:!1,modalShow:!1,successModalShow:!1,isCheckboxChecked:!1,dirtyPolicy:!1,errors:[],firstName:void 0,lastName:void 0,email:void 0,privacyNoticeCheck:!1,options:{placeholder:""},recaptchaVerified:!1,errorMessage:void 0,recaptchaErrorMessage:void 0}),mixins:[He],computed:{btnStyleClass(){switch(this.buttonStyle){case"dark":return"me-btn-dark";case"unstyled":return"me-btn-unstyled";default:return""}},isErrorsEmpty(){for(const[e,t]of Object.entries(this.errors))if(""!==t)return!1;return!0},isDisabled(){if(!(this.isErrorsEmpty&&this.firstName&&this.lastName&&this.privacyNoticeCheck&&this.recaptchaVerified))return!0},privacyNoticeError(){if(this.dirtyPolicy)return!this.isCheckboxChecked&&!this.privacyNoticeCheck}},watch:{privacyNoticeCheck(){this.dirtyPolicy=!0}},methods:{toggleModal(e){this.modalShow=!this.modalShow,this.position=e},validateFirstLastName:function(e,t){const s=e.target.value;this.checkRequired(s)?this.$set(this.errors,t,this.checkRequired(s)):this.checkLength(s,40)?this.$set(this.errors,t,this.checkLength(s,40)):this.$set(this.errors,t,"")},validateEmail:function(e,t){const s=e.target.value;this.checkEmail(s)?this.$set(this.errors,t,this.checkEmail(s)):this.checkLength(s,60)?this.$set(this.errors,t,this.checkLength(s,60)):this.$set(this.errors,t,"")},verifyRecaptcha(e){this.recaptchaErrorMessage="",this.recaptchaVerified=!0},isRecaptchaVerified(){if(!this.recaptchaVerified)return this.recaptchaErrorMessage="Please tick recaptcha.",!0},handleSend(){this.isDisabled||(this.errorMessage=null,this.createAppointment())},async createAppointment(){this.isLoading=!0;let e={firstName:this.firstName,lastName:this.lastName,email:this.email,policyCheckbox:!0};try{let t=await Oe.createAppointment(e,this.apiUrl,this.bankId);t&&201===t.status?(this.isLoading=!1,this.email?this.sendEmailToClient():this.showSuccess()):t&&t.data.error&&(this.errorMessage=t.data.error,this.isLoading=!1)}catch(e){this.errorMessage="An error occurred whilst processing your request. Please try again or contact our Customer Service.",this.isLoading=!1}},async sendEmailToClient(){this.isLoading=!0;let e={firstName:this.firstName,emailTo:this.email,sendGridId:this.sendgridTemplateId,sendGridSubject:this.sendgridSubject};try{let t=await st.sendEmail(e);t&&200===t.status?(this.isLoading=!1,this.showSuccess()):(this.isLoading=!1,this.errorMessage="An error occurred whilst processing your request. Please try again or contact our Customer Service.")}catch(e){this.errorMessage="An error occurred whilst processing your request. Please try again or contact our Customer Service.",this.isLoading=!1}},showSuccess(){this.modalShow=!1,this.successModalShow=!0,this.firstName=void 0,this.lastName=void 0,this.email=void 0,this.privacyNoticeCheck=!1,this.recaptchaVerified=!1,this.errorMessage=void 0}}};var rt=(0,_e.A)(at,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("MeButton",{class:e.btnStyleClass,on:{click:function(t){return e.toggleModal("center")}}},[e._v("\n "+e._s(e.buttonText))]),e._v(" "),e.modalShow?s("MeModal",{attrs:{modalClass:"overflow-y-auto relative bg-white z-50"},on:{close:function(t){e.modalShow=!e.modalShow}},scopedSlots:e._u([{key:"header",fn:function(){return[s("div",{staticClass:"logo-image"}),e._v(" "),s("div",{staticClass:"text-center"},[s("MeText",{attrs:{as:"p",fontSize:"xl",fontWeight:"600"}},[e._v("\n "+e._s(e.buttonText)+"\n ")])],1)]},proxy:!0},{key:"content",fn:function(){return[s("form",{attrs:{id:"requestInfoForm"},on:{submit:function(t){return t.preventDefault(),e.isRecaptchaVerified.apply(null,arguments)}}},[s("div",{staticClass:"md:px-6 md:mx-6"},[s("div",{staticClass:"mb-4"},[s("MeText",[e._v("\n "+e._s(e.content.titleLabel)+"\n ")])],1),e._v(" "),s("div",{staticClass:"mb-4"},[s("MeText",[e._v(e._s(e.content.firstNameLabel))]),e._v(" "),s("MeInput",{attrs:{eventEmit:["blur"],"aria-invalid":!!e.errors.firstName,"aria-errormessage":e.errors.firstName?e.errors.firstName:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateFirstLastName.apply(void 0,i.concat(["firstName"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.firstName?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.firstName)+"\n ")]):e._e(
1)]},proxy:!0}],null,!1,749051796),model:{value:e.firstName,callback:function(t){e.firstName=t},expression:"firstName"}})],1),e._v(" "),s("div",{staticClass:"mb-4"},[s("MeText",[e._v(e._s(e.content.lastNameLabel))]),e._v(" "),s("MeInput",{attrs:{eventEmit:["blur"],"aria-invalid":!!e.errors.lastName,"aria-errormessage":e.errors.lastName?e.errors.lastName:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateFirstLastName.apply(void 0,i.concat(["lastName"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.lastName?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.lastName)+"\n ")]):e._e()]},proxy:!0}],null,!1,4216633140),model:{value:e.lastName,callback:function(t){e.lastName=t},expression:"lastName"}})],1),e._v(" "),s("div",{staticClass:"mb-4"},[s("MeText",[e._v(e._s(e.content.emailLabel))]),e._v(" "),s("MeInput",{attrs:{eventEmit:["blur"],"aria-invalid":!!e.errors.email,"aria-errormessage":e.errors.email?e.errors.email:null},on:{blur:function(t){for(var s=arguments.length,i=Array(s);s--;)i[s]=arguments[s];return e.validateEmail.apply(void 0,i.concat(["email"]))}},scopedSlots:e._u([{key:"errors",fn:function(){return[e.errors.email?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.errors.email)+"\n ")]):e._e()]},proxy:!0}],null,!1,2857076468),model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),e._v(" "),s("div",{staticClass:"mb-3"},[s("MeSelectionItem",{attrs:{as:"span",dangerouslyUnstyled:!0},model:{value:e.privacyNoticeCheck,callback:function(t){e.privacyNoticeCheck=t},expression:"privacyNoticeCheck"}},[s("div",{staticClass:"ml-4"},[e._v("\n "+e._s(e.content.privacyNoticeLabel)+"\n "),s("a",{staticClass:"text-brand-primary",attrs:{href:e.privacyNotice,target:"_blank"}},[e._v(e._s(e.content.privacyNoticeLinkLabel))])])]),e._v(" "),e.privacyNoticeError?s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.content.fieldRequiredLabel)+"\n ")]):e._e()],1),e._v(" "),s("vue-recaptcha",{attrs:{sitekey:e.recaptchaKey},on:{verify:e.verifyRecaptcha}}),e._v(" "),s("div",{staticClass:"ml-2 text-danger-primary text-sm"},[e._v("\n "+e._s(e.recaptchaErrorMessage)+"\n ")])],1)])]},proxy:!0},{key:"footer",fn:function(){return[s("div",{staticClass:"text-left px-6 mt-2"},[e.errorMessage?s("div",{staticClass:"ml-2 text-danger-primary text-sm mb-4"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e(),e._v(" "),s("MeButton",{directives:[{name:"spinner",rawName:"v-spinner",value:{isLoading:e.isLoading,fill:"#FFF",opacity:1},expression:"{ isLoading: isLoading, fill: '#FFF', opacity: 1 }"}],staticClass:"ml-5 mb-3",attrs:{variant:"primary",label:"Send",size:"md",disabled:e.isDisabled,"aria-disabled":e.isDisabled},on:{click:function(t){return e.handleSend()}}})],1)]},proxy:!0}],null,!1,3993087682)}):e._e(),e._v(" "),e.successModalShow?s("MeModal",{attrs:{size:"lg"},on:{close:function(t){e.successModalShow=!e.successModalShow}},scopedSlots:e._u([{key:"header",fn:function(){return[s("div",{staticClass:"logo-image"}),e._v(" "),s("div",{staticClass:"text-center"},[s("MeText",{attrs:{as:"p",fontSize:"xl",fontWeight:"600"}},[e._v(e._s(e.content.thankYouInterestMessage))])],1)]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"text-center px-6 mx-6"},[s("MeText",{attrs:{as:"p"}},[e._v("\n "+e._s(e.content.recieveRequestMessage)+"\n ")])],1)]},proxy:!0},{key:"footer",fn:function(){return[s("div",{staticClass:"text-left"})]},proxy:!0}],null,!1,2750857721)}):e._e()],1)},[],!1,null,"7d34eac6",null);const ot=rt.exports;function nt(e){const t=new URL(e).hostname.split(".").reverse();return t.length>2&&t[1].length<=3?t[2]+"."+t[1]+"."+t[0]:t[1]+"."+t[0]}function lt(e){if(!function(e){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}(e))return!1;return nt(e)!==nt(location.origin)}[r(),n(),c(),u(),m(),f(),v(),_(),x(),C(),w(),T(),S(),D(),N(),R(),$(),G(),Q()].forEac
1h(e=>i.default.use(e)),i.default.use(B(),{magnify:X(),chevronLeft:W(),chevronRight:J(),check:ie(),close:H(),star:te(),infoCircle:re()}),i.default.use(V()),i.default.component("MdStockSearchList",Ae),i.default.component("MdAssetLogo",Me),i.default.component("MdModelPortfolioContainer",Ue),i.default.component("MdHomeloanCalculator",Ze),i.default.component("MdSearchBar",tt),i.default.component("MdHomeloanRequestMoreInfo",ot),i.default.component("MdIframe",be),i.default.config.productionTip=!1;var ct,dt,ut,pt,mt,ht,ft=(ct=".js-wpml-ls-legacy-dropdown-click",dt=".js-wpml-ls-sub-menu",ut=!1,pt=function(e){var t=this.querySelectorAll(dt)[0];return"visible"===t.style.visibility?(t.style.visibility="hidden",document.removeEventListener("click",mt)):(t.style.visibility="visible",document.addEventListener("click",mt),ut=!0),!1},mt=function(){if(!ut)for(var e=document.querySelectorAll(ct),t=0;t<e.length;t++)e[t].querySelectorAll(dt)[0].style.visibility="hidden";ut=!1},ht=function(e){var t=e||window.event;t.preventDefault&&t.preventDefault(),t.returnValue=!1},{init:function(){for(var e=document.querySelectorAll(ct),t=0;t<e.length;t++)e[t].addEventListener("click",pt);for(var s=document.querySelectorAll(ct+" a.js-wpml-ls-item-toggle"),i=0;i<s.length;i++)s[i].addEventListener("click",ht)}});function gt(){!function(){var e="BambooHR-ATS",t=document.getElementById("BambooHR");if(t){var s=t.getAttribute("data-departmentId"),i=t.getAttribute("data-domain"),a=t.getAttribute("data-version")||"1.0.0";if(i){var r=document.createElement("div");r.id=e,t.appendChild(r);var o=document.createElement("div");o.style='font-family: "Lato", sans-serif; font-size: 12px; color: #999; text-align: right; margin: 9px 9px 0px 0px;';var n=document.createTextNode("Powered by"),l=document.createElement("img");l.src="https://resources.bamboohr.com/images/footer-logo.png",l.alt="BambooHR - HR software",l.style="display:inline;";var c=document.createElement("a");c.href="http://www.bamboohr.com",c.target="_blank",c.rel="external",c.appendChild(l),o.appendChild(n),o.appendChild(c),t.appendChild(o);var d="https://"+i+"/jobs/embed2.php?version="+encodeURIComponent(a);s&&(d+="&departmentId="+encodeURIComponent(s));var u=new XMLHttpRequest;document.addEventListener("readystatechange",function(t){"complete"===t.target.readyState&&(u.onreadystatechange=function(){if(4==u.readyState&&200==u.status){r=document.getElementById(e);var t=u.responseText;r&&(r.innerHTML=t),jQuery("#BambooHR-ATS").siblings().remove(),jQuery("#BambooHR-ATS a").each(function(){jQuery(this).attr("target","_blank")})}},u.open("GET",d,!0),u.send())})}else console.error("BambooHR-ATS: We are unable to retrieve the domain, Double check the code snippet.")}}()}document.addEventListener("click",function(e){var t=e.target.closest("button, .btn, a");if(t){var s,i="A"===(null===(s=t.tagName)||void 0===s?void 0:s.toUpperCase())?t:t.closest("a"),a=i&&i.getAttribute("href"),r=t.querySelector(".elementor-button-text"),o=r&&r.innerText||t.innerText||t.value||"Unlabeled Button",n=t.id||"No ID";!a||-1===a.indexOf("login.medirect")&&-1===a.indexOf("onboarding.medirect")?_paq.push(["trackEvent","Button Click",o,n]):_paq.push(["trackEvent","Platform Click",a,o])}},!0),jQuery(document).on("click","a:not(#external-link-ok)",function(e){const t=window.showExternalLinkModal,s=jQuery(this).attr("href");if(!s||s.startsWith("#"))return!0;if(0!=s.indexOf("https:")&&(s="https:"+s),t&<(s)){const t=window.exitPopupId;return e.preventDefault(),window.externalLinkAddress=s,window.target=jQuery(this).attr("target"),elementorProFrontend.modules.popup.showPopup({id:t},e),!1}}),jQuery(window).on("elementor/frontend/init",()=>{jQuery(document).on("click","#external-link-ok",function(e){elementorProFrontend.modules.popup.closePopup({id:exitPopupId},event);const t=window.externalLinkAddress,s=window.target;switch(delete window.externalLinkAddress,delete window.target,s){case"_blank":default:window.open(t);break;case"_self":window.location.href=t}}),jQuery("html > body div.ae-link-yes").each(e=>{jQuery("html > body div.ae-link-yes")[e].addEventListener("click",e=>{let t=e.target;const s=jQuery(t).parents(".ae-link-yes:first").attr("data-wts-url");if(window.showExternalLinkModal&<(s)){const t=window.exitPopupId;return e.stopPropagation(),window.externalLinkAddress=s,elementorProFrontend.modules.popup.showPopup({id:t},e),!1}},!0)})}),jQuery(document).ready(function(){document.querySelectorAll("[data-vue-app]").forEach(function(e){new i.default({el:e})}),function(){let e=document.getElementsByClassName("tabs-links-elementor-widget"),t=window.location.href;e.length>
10&&Array.from(e).forEach(e=>{let s,i=e.querySelectorAll('a[href^="'+t+'"]');Array.from(i).forEach(e=>{e.classList.add("active"),s=e}),s&&(e.scrollLeft=s.offsetLeft-e.offsetLeft+s.offsetWidth/2-e.offsetWidth/2)})}(),jQuery("#navbar-menu-btn").change(function(){return jQuery("body").toggleClass("show-mobile-menu overflow-hidden"),jQuery(".mobile-nav:first").toggleClass("overflow-auto h-full max-h-full"),!0}),jQuery(".navbar-expand-menu").click(function(){jQuery(this).find(".navbar-expand-menu-icon:first").toggleClass("transform rotate-180").parents(".menu-item:first").find(".menu-child").toggleClass("hidden")}),jQuery(".faqs-archive-accordion .elementor-post__excerpt").hide(),jQuery(".faqs-archive-accordion .elementor-post__title").click(function(){jQuery(this).toggleClass("active"),jQuery(this).siblings(".elementor-post__excerpt").toggleClass("active"),jQuery(this).siblings(".elementor-post__excerpt").slideToggle(250)}),window.location.hash&&jQuery(window.location.hash).find(".elementor-post__title:first").trigger("click"),jQuery(".faqs-page-bottom a").removeAttr("href"),jQuery(".faqs-page-bottom .elementor-post__excerpt").hide(),jQuery(".faqs-page-bottom .elementor-post__title").click(function(e){e.preventDefault(),jQuery(this).toggleClass("active"),jQuery(this).siblings(".elementor-post__excerpt").toggleClass("active"),jQuery(this).siblings(".elementor-post__excerpt").slideToggle(250)}),jQuery(".personnel-item").click(function(){let e=this;jQuery(document).off(".tooltip"),jQuery(".personnel-tooltip").removeClass("active"),jQuery(e).children(".personnel-tooltip").toggleClass("active"),jQuery(document).on("click.tooltip",function(t){jQuery(t.target).closest(e).length||(jQuery(".personnel-tooltip").removeClass("active"),jQuery(document).off(".tooltip"))})}),jQuery("#btn-back").on("click",function(){window.history.go(-1)}),jQuery(".toggle-careers").click(function(){jQuery(this).closest(".careers-list-parent").find(".careers-list:first").toggle(),jQuery(this).find("i").toggleClass("fa-caret-down fa-caret-up")}),window.addEventListener("scroll",function(){window.window.scrollY>500?jQuery(".stickyHeaderNotification:first").addClass("hide").removeClass("show"):jQuery(".stickyHeaderNotification:first").addClass("show").removeClass("hide")}),jQuery(document).on("submit_success",function(e,t){"subscribe_newsletter_form"==e.target.id&&elementorProFrontend.modules.popup.closePopup({id:7491},e)}),jQuery("#successful-subscription-ok").on("click",function(e){elementorProFrontend.modules.popup.closePopup({id:7493},e)}),jQuery(".posts-list__read-more").click(function(){let e=jQuery(this).parents(".post-archive-list-section:first");const t=e.data("max_limit");e.find(".archive--post-object").slice(t).each(function(){jQuery(this).hasClass("hidden")&&jQuery(this).removeClass("hidden")}),e.find(".posts-list__read-less").removeClass("hidden"),jQuery(this).addClass("hidden")}),jQuery(".posts-list__read-less").click(function(){let e=jQuery(this).parents(".post-archive-list-section:first");const t=e.data("max_limit");e.find(".archive--post-object").slice(t).each(function(){jQuery(this).addClass("hidden")}),e.find(".posts-list__read-more").removeClass("hidden"),jQuery(this).addClass("hidden")}),gt(),ft.init()})},5444(e){e.exports={}}},s={};function i(e){var a=s[e];if(void 0!==a)return a.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return t[e](r,r.exports,i),r.loaded=!0,r.exports}i.m=t,e=[],i.O=(t,s,a,r)=>{if(!s){var o=1/0;for(d=0;d<e.length;d++){for(var[s,a,r]=e[d],n=!0,l=0;l<s.length;l++)(!1&r||o>=r)&&Object.keys(i.O).every(e=>i.O[e](s[l]))?s.splice(l--,1):(n=!1,r<o&&(o=r));if(n){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[s,a,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={792:0};i.O.j=t=>0===e[t];var t=(t,s)=>{var a,r,[o,n,l]=s,c=0;if(o.some(t=>0!==e[t])){for(a in n)i.o(n,a)&&(i.m[a]=n[a]);if(l)var d=l(i)}for(t&&t(s);c<o.length;c++)r=o[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(d)},s=globalThis.webpackChunkassets=globalThis.webpackChunkassets||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var a=i.O(void 0,[543,913,623,38],()=>i(2279));a=i.O(a)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.