1var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(t,a,r)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,s=(e,t)=>{for(var a in t||(t={}))n.call(t,a)&&i(e,a,t[a]);if(r)for(var a of r(t))o.call(t,a)&&i(e,a,t[a]);return e},c=(e,r)=>t(e,a(r));import{d as l,i as d,x as u,C as p,P as m,Q as v,E as h,V as g,W as b,aj as _,R as y,y as f,z as w,H as k,_ as x,D as C,g as L,c as T,S as O,U as B,A,r as V,T as j}from"./chunk-chunk-vendor.1788431024728.js";import{U as D}from"./chunk-storage.1788431024728.js";import{_ as I,ak as S,al as R,aj as P,a4 as N,f as q,aB as E,aC as U,ab as M,a7 as F,u as $,e as W}from"/etc.clientlibs/rbi/clientlibs/clientlib-site.lc-dab781d7544ad4cb4581dac4f4afd7be-lc.min.js";import{V as z}from"./chunk-vnoresult.1788431024728.js";import"./chunk-gsap.1788431024728.js";import"./chunk-lodash.1788431024728.js";import"./chunk-vee-validate.1788431024728.js";import"./chunk-xstate.1788431024728.js";import"./chunk-dompurify.1788431024728.js";import"./chunk-mathjs.1788431024728.js";const H=l({name:"DocumentList",props:{documents:{type:Array,required:!0},documentsDescription:{type:String,required:!1}},methods:{linkAccessibilityLabel(e){return(this.i18n.opensInNewTabLabel||"").replace("{0}",e)}},setup:()=>({i18n:d("i18n",{opensInNewTabLabel:"{0} (opens in a new tab)"})})}),G={class:"cmp-documentlist"},Q={key:0,class:"cmp-documentlist__text"},J=["textContent"],K={class:"cmp-documentlist__downloadlist cmp-downloadlist-container is-cmp-container"},X={class:"cmp-downloadlist"},Y={class:"cmp-download cmp-download--list-item"},Z=["href","aria-label"],ee={class:"cmp-download__properties"},te={class:"cmp-download__property cmp-download__property--filename"},ae={class:"cmp-download__property-content"},re={class:"cmp-download__action-text"};const ne=l({name:"CmpProductOverviewCard",components:{DocumentList:I(H,[["render",function(e,t,a,r,n,o){return u(),p("div",G,[e.documentsDescription?(u(),p("div",Q,[m("p",{class:"rbi-paragraph",textContent:v(e.documentsDescription)},null,8,J)])):h("",!0),m("div",K,[m("ul",X,[(u(!0),p(g,null,b(e.documents,(a,r)=>(u(),p("li",{key:r},[m("div",Y,[m("a",{class:"cmp-download__link",href:a.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.linkAccessibilityLabel(a.label)},[m("span",ee,[t[0]||(t[0]=_('<span class="cmp-download__property cmp-download__property--icon" data-v-fe544e44><span class="cmp-download__property-content" data-v-fe544e44><span class="icon icon-Download-Import" aria-hidden="true" data-v-fe544e44></span></span></span><span class="cmp-download__property cmp-download__property--format" data-v-fe544e44><span class="cmp-download__property-content" data-v-fe544e44><strong data-v-fe544e44>PDF</strong></span></span>',2)),m("span",te,[m("span",ae,[m("span",re,v(a.label),1)])])])],8,Z)])]))),128))])])])}],["__scopeId","data-v-fe544e44"]]),VIcon:N,VButton:P,VButtonBar:R,VToggle:S},props:{product:{type:Object,required:!0},pricesAndTermsButton:{type:Object,required:!1},documentsOpen:{type:Boolean,default:!1},documentsDescription:{type:String,required:!1}},computed:{registrationButtonAccessibilityLabel(){return(this.i18n.opensInNewTabLabel||"").replace("{0}",this.product.registration.accessibilityLabel)},features(){var e;return(null==(e=this.product.features)?void 0:e.map(e=>{var t,a,r,n,o;switch(e.code){case"debitCard":return{iconId:"Card",label:null==(t=this.i18n.features)?void 0:t.debitCard};case"creditCard":return{iconId:"card-master",label:null==(a=this.i18n.features)?void 0:a.creditCard};case"accountInsurance":return{iconId:"insurance",label:null==(r=this.i18n.features)?void 0:r.accountInsurance};case"onlineBanking":return{iconId:"Mobile",label:null==(n=this.i18n.features)?void 0:n.onlineBanking};case"pictureCard":return{iconId:"card-heart",label:null==(o=this.i18n.features)?void 0:o.pictureCard};default:return{iconId:"Card-Raiffeisen",label:e.code}}}))||[]},period(){return this.product.productValue.frequency&&this.i18n.period?U(this.product.productValue.frequency,this.i18n.period):""}},methods:{getFormattedNumber:e=>q(e,E)},emits:["update:documentsOpen"],setup:()=>({i18n:d("i18n",{recommended:"Top product",advantagesTitle:"Advantages",opensInNewTabLabel:"{0}
1 (opens in a new tab)",features:{debitCard:"Debit Card",creditCard:"Credit Card",accountInsurance:"Account Insurance",onlineBanking:"Online Banking",pictureCard:"Picture Card"},period:{day:"day",days:"{0} days",month:"month",months:"{0} months",year:"year",years:"{0} years"}})})}),oe={class:"cmp-productoverviewcard theme theme-on-surface-normal"},ie={class:"cmp-productoverviewcard__header"},se=["textContent"],ce={class:"cmp-productoverviewcard__media"},le=["src","alt"],de={class:"cmp-productoverviewcard__content"},ue={class:"cmp-productoverviewcard__name rbi-heading-3"},pe={class:"cmp-productoverviewcard__info"},me={key:0,class:"cmp-productoverviewcard__price-container"},ve={class:"cmp-text-container is-cmp-container cmp-productoverviewcard__price-price"},he={class:"cmp-text"},ge={class:"cmp-text__paragraph"},be={key:0,class:"cmp-text-container is-cmp-container cmp-productoverviewcard__price-period"},_e={class:"cmp-text"},ye={class:"cmp-text__paragraph"},fe={key:1,class:"cmp-productoverviewcard__description"},we={key:3,class:"cmp-text-container is-cmp-container cmp-text--list-icon cmp-text--list-icon-checkmark cmp-productoverviewcard__list cmp-productoverviewcard__advantages"},ke={class:"cmp-text",style:{"--i18n-icon-bullet-checkmark":"'Checkmark'","--i18n-icon-bullet-crossmark":"'Cross Mark'"}},xe=["textContent"],Ce={key:4,class:"cmp-productoverviewcard__separator","aria-hidden":"true",role:"none"},Le={key:5,class:"cmp-text-container is-cmp-container cmp-text--list-icon cmp-text--list-icon-checkmark cmp-productoverviewcard__list cmp-productoverviewcard__features"},Te={class:"cmp-text"},Oe={class:"cmp-productoverviewcard__footer"},Be={key:0,class:"cmp-text-container is-cmp-container cmp-productoverviewcard__legal"},Ae={class:"cmp-text"},Ve=["textContent"];const je=I(ne,[["render",function(e,t,a,r,n,o){var i,l,d,_,L,T;const O=y("VButton"),B=y("VButtonBar"),A=y("VIcon"),V=y("DocumentList"),j=y("VToggle");return u(),p("article",oe,[m("div",ie,[e.product.productDisplay.recommended?(u(),p("div",{key:0,class:"cmp-productoverviewcard__tagline theme theme-on-surface-dark theme-design-accent",textContent:v(e.i18n.recommended)},null,8,se)):h("",!0),m("div",ce,[e.product.image?(u(),p("img",{key:0,src:e.product.image.source,alt:e.product.image.altText,class:"cmp-productoverviewcard__image"},null,8,le)):h("",!0)])]),m("div",de,[m("h2",ue,v(e.product.name),1),m("div",pe,[e.product.productValue.showAccountPrice?(u(),p("div",me,[m("div",ve,[m("div",he,[m("p",ge,v(e.getFormattedNumber(e.product.productValue.amount.value))+" "+v(null==(i=e.product.productValue.amount.unit)?void 0:i.label),1)])]),e.product.productValue.frequency?(u(),p("div",be,[m("div",_e,[m("p",ye,"/ "+v(e.period),1)])])):h("",!0)])):h("",!0),e.product.descriptions&&e.product.descriptions.length?(u(),p("p",fe,[(u(!0),p(g,null,b(e.product.descriptions,(e,t)=>(u(),p("span",{key:t},v(e)+"Â ",1))),128))])):h("",!0),e.product.registration?(u(),f(B,{key:2,"applied-css-classes":" cmp-buttonbar--expanded"},{default:w(()=>{var t;return[k(O,x(e.product.registration,{"accessibility-label":e.registrationButtonAccessibilityLabel,link:c(s({},e.product.registration.link),{isValid:!0,htmlAttributes:c(s({},null==(t=e.product.registration.link)?void 0:t.htmlAttributes),{target:"_blank"})}),"applied-css-classes":"cmp-button--primary"}),null,16,["accessibility-label","link"])]}),_:1})):h("",!0),(null==(l=e.product.advantages)?void 0:l.length)?(u(),p("div",we,[m("div",ke,[m("h3",{class:"cmp-productoverviewcard__advantages__title rbi-paragraph rbi-strong",textContent:v(e.i18n.advantagesTitle)},null,8,xe),m("ul",null,[(u(!0),p(g,null,b(e.product.advantages,(e,t)=>(u(),p("li",{key:t},v(e),1))),128))])])])):h("",!0),(null==(d=e.features)?void 0:d.length)?(u(),p("hr",Ce)):h("",!0),(null==(_=e.product.features)?void 0:_.length)?(u(),p("div",Le,[m("div",Te,[m("ul",null,[(u(!0),p(g,null,b(e.features,(e,t)=>(u(),p("li",{key:t},[k(A,{id:e.iconId},null,8,["id"]),C(v(e.label),1)]))),128))])])])):h("",!0)])]),m("div",Oe,[(null==(L=e.product.legalTexts)?void 0:L.length)?(u(),p("div",Be,[m("div",Ae,[(u(!0),p(g,
1null,b(e.product.legalTexts,(e,t)=>(u(),p("span",{key:t},v(e)+"Â ",1))),128))])])):h("",!0),(null==(T=e.product.documents)?void 0:T.length)&&e.pricesAndTermsButton?(u(),f(j,{key:1,classes:{root:`${e.pricesAndTermsButton.appliedCssClasses} cmp-productoverviewcard__documents`,label:"cmp-button cmp-button--has-icon",content:""},open:e.documentsOpen,onUpdate:t[0]||(t[0]=t=>e.$emit("update:documentsOpen",t)),"aria-label":e.pricesAndTermsButton.accessibilityLabel},{label:w(()=>[k(A,{id:"Arrow-Down-Expand"}),m("span",{textContent:v(e.pricesAndTermsButton.text)},null,8,Ve)]),default:w(()=>{var t;return[(null==(t=e.product.documents)?void 0:t.length)?(u(),f(V,{key:0,documents:e.product.documents,"documents-description":e.documentsDescription},null,8,["documents","documents-description"])):h("",!0)]}),_:1},8,["classes","open","aria-label"])):h("",!0)])])}],["__scopeId","data-v-1e5c2864"]]),De=l({name:"VLoading",props:{title:{type:String,default:"Loading"}}}),Ie={class:"cmp-loading"},Se={class:"cmp-loading__content"},Re={key:0,class:"cmp-title-container"},Pe={class:"cmp-title"},Ne=["textContent"];const qe=l({name:"ProductOverview",components:{VLoading:I(De,[["render",function(e,t,a,r,n,o){return u(),p("div",Ie,[m("div",Se,[t[0]||(t[0]=m("div",{class:"cmp-loading__icon"},[m("svg",{viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},[m("circle",{cx:"60",cy:"60",r:"46",stroke:"#333",fill:"none"})])],-1)),e.title?(u(),p("div",Re,[m("div",Pe,[m("h2",{class:"cmp-title__text rbi-heading-5",textContent:v(e.title)},null,8,Ne)])])):h("",!0)])])}],["__scopeId","data-v-b382e9b6"]]),VError:M,ProductOverviewCard:je,VNoResult:z},props:{configuration:{type:Object,required:!0,validator:e=>["h1","h2"].includes(e.title.type)},i18n:{type:Object,default:()=>({recommended:"Top product",advantagesTitle:"Account benefits",loading:"Loading...",loadingSucceed:"Loading succeeded",loadingFailed:"Loading failed. Please try again later.",errorTitle:"An error occurred",errorMessage:"We were unable to load the product overview at this time.",noResultTitle:"No product available"})}},provide(){return{i18n:this.i18n}},data:()=>({showError:!1,errorResponse:{},successResponse:{}}),methods:{getData(){return e=this,t=null,a=function*(){const e=this.apiURL;return this.showError=!1,this.isSubmitting=!0,this.announceStatus(this.i18n.loading),W.request({url:e,method:"GET",withCredentials:!0}).then(e=>{var t;this.announceStatus(this.i18n.loadingSucceed),this.successResponse=e.data,this.productList=(null==(t=this.successResponse.products)?void 0:t.sort((e,t)=>e.productDisplay.position-t.productDisplay.position))||[]}).catch(e=>{var t;this.announceStatus(this.i18n.loadingFailed),this.errorResponse=(null==(t=e.response)?void 0:t.data)||{},this.showError=!0}).finally(()=>{this.isSubmitting=!1})},new Promise((r,n)=>{var o=e=>{try{s(a.next(e))}catch(t){n(t)}},i=e=>{try{s(a.throw(e))}catch(t){n(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);s((a=a.apply(e,t)).next())});var e,t,a},retryCalculation(){this.getData()}},mounted(){this.getData()},setup(e){const{message:t,announce:a}=F(),r=L([]),n=L(!1),o=L(!1),i=$(D,{},{writeDefaults:!1}),s=T(()=>{var t,a;let r=e.configuration.title.text;const n=null==(a=null==(t=i.value)?void 0:t.data)?void 0:a.name;return n&&(r=r.replace("{0}",n)),r}),c=T(()=>{var t;const a=null==(t=i.value.data)?void 0:t.blz;return a?e.configuration.productsBankCodeApiUrl.replace("{0}",a):e.configuration.productsNwuApiUrl}),l=T(()=>{if(e.configuration.title.header&&s.value)return`${e.configuration.title.header} ${s.value}`}),d=T(()=>{var e;if(n.value)return"threeitems";return((null==(e=r.value)?void 0:e.length)||0)>2?"threeitems":"twoitems"});return{shouldShowComponent:T(()=>{var e;return!!(null==(e=i.value.data)?void 0:e.blz)}),titleWithBranchName:s,titleAriaLabel:l,carouselLayout:d,apiURL:c,productList:r,isSubmitting:n,documentsToggleOpen:o,loadingStatus:t,announceStatus:a}}}),Ee={class:"cmp-productoverview"},Ue={class:"cmp-title-container is-cmp-container"},Me={class:"cmp-title"},Fe={key:0,class:"cmp-title__eyebrown","aria-hidden":"true"},$e={key:0,class:"cmp-text-container is-cmp-container cmp-text--intro"},We={class:"cmp-text"},ze=["innerHTML"],He=["id"],Ge={class:"u-visually-hidden",role:"status"};const Qe=I(qe,[["render",function(e,t,a,r,n,o){const i=y("VError"),s=y("VLoading"),c=y("VNoResult"),l=y("ProductOverviewCard"),d=y("carousel");return O((u(),p("section",Ee,[m("div",Ue,[m("div",Me,[(u(),f(V(e.configuration.title.type),{id:e.configuration.title.id,class:A(["cmp-title__text",e.configuration.title.headerStyling]),"aria-label":e.titleAriaLabel},{default:w(()=>[e.configuration.title.header?(u(),p("small",Fe,v(e.configuration.title.header),1)):h("",!0),C(" "+v(e.titleWithBranchName),1)]),_:1},8,["id","class","aria-label"]))])]),e.configuration.description?(u(),p("div",$e,[m("div",We,[m("p",{class:"cmp-text__paragraph",innerHTML:e.configuration.description},null,8,ze)])])):h("",!0),k(j,{name:"fade",mode:"out-in",appear:""},{default:w(()=>{var a,r,n,o,v,h;return[e.showError?(u(),f(i,{onRetry:e.retryCalculation,title:null==(a=e.i18n)?void 0:a.errorTitle,message:e.errorResponse.errorMessage||(null==(r=e.i18n)?void 0:r.errorDescription),retryButton:{text:null==(n=e.i18n)?void 0:n.errorRetryButtonLabel},icon:"Tools",key:"error"},null,8,["onRetry","title","message","retryButton"])):e.isSubmitting?(u(),f(s,{title:null==(o=e.i18n)?void 0:o.loading,key:"loading"},null,8,["title"])):0===e.productList.length?(u(),f(c,{title:null==(v=e.i18n)?void 0:v.noResultTitle,message:null==(h=e.i18n)?void 0:h.noResultMessage,key:"noresult"},null,8,["title","message"])):(u(),f(d,{layout:e.carouselLayout,class:"cmp-carousel--equal-height",key:"products"},{default:w(a=>[m("div",{class:A(a.contentClass)},[m("ul",{class:A(["cmp-productoverview-results-list",a.listClass])}
1,[(u(!0),p(g,null,b(e.productList,(r,n)=>(u(),p("li",{class:A(a.itemClass),key:r.id,id:`${n}-tabpanel`},[k(l,{product:r,"prices-and-terms-button":e.configuration.pricesAndTermsButton,documentsOpen:e.documentsToggleOpen,"onUpdate:documentsOpen":t[0]||(t[0]=t=>e.documentsToggleOpen=t),"documents-description":e.configuration.documentsDescription},null,8,["product","prices-and-terms-button","documentsOpen","documents-description"])],10,He))),128))],2)],2)]),_:1},8,["layout"]))]}),_:1}),m("div",Ge,v(e.loadingStatus),1)],512)),[[B,e.shouldShowComponent]])}],["__scopeId","data-v-bad76211"]]);export{Qe as default};
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.