1import{d as _,b as t,e as l,f as c,t as m,_ as b,F as v,g as I,h as r,r as C,c as k,u as s,i as d,z as D}from"./_plugin-vue_export-helper.js";import{c as P}from"./pinia.js";import{G as w}from"./theme.js";import{u as B}from"./globalConfigStore.js";import{u as $}from"./useBadges.js";import{L as A}from"./LoadingIndicator.js";import{U as y}from"./UnknownError.js";import{v as M}from"./validateConfigId.js";import"./getVouchers.js";const S={class:"badge-list-item"},T={class:"badge-list-item__content"},U={class:"badge-list-item__name"},V=["innerHTML"],H={class:"badge-list-item__icon"},G=["src","alt"],N=_({__name:"BadgeListItem",props:{name:{},description:{},imageUrl:{}},setup(i){return(e,n)=>(t(),l("li",S,[c("div",T,[c("h4",U,m(e.name),1),c("div",{class:"badge-list-item__description",innerHTML:e.description},null,8,V)]),c("picture",H,[c("img",{src:e.imageUrl,alt:e.name},null,8,G)])]))}}),W=b(N,[["__scopeId","data-v-be67ccf8"]]),F={class:"badge-list"},K=_({__name:"BadgeList",props:{badgeList:{}},setup(i){return(e,n)=>(t(),l("ul",F,[(t(!0),l(v,null,I(e.badgeList,(a,o)=>(t(),r(W,{key:o,name:a.name,description:a.shortDescription,"image-url":a.imgUrl},null,8,["name","description","image-url"]))),128))]))}}),q=b(K,[["__scopeId","data-v-62dc72f8"]]),x={class:"digital-wallet-all-badges"},z={key:0,class:"digital-wallet-all-badges__title"},E=["innerHTML"],h=5,O=_({__name:"DigitalWalletAllBadges",setup(i){const{allBadgesTitle:e,digitalWalletNoBadgesDescription:n,allBadgesLoadMoreBadgesLabel:a}=B().getLabels,{badges:o,errorOccurred:g,requestPending:p}=$(),f=C(h),u=k(()=>o.value.slice(0,f.value)),L=()=>{f.value+=h};return(J,Q)=>(t(),l("div",x,[s(e)?(t(),l("h1",z,m(s(e)),1)):d("",!0),s(g)?(t(),r(y,{key:1})):s(o).length?d("",!0):(t(),l("div",{key:2,class:"digital-wallet-all-badges__description",innerHTML:s(n)},null,8,E)),u.value.length?(t(),r(q,{key:3,class:"digital-wallet-all-badges__list","badge-list":u.value},null,8,["badge-list"])):d("",!0),s(o).length>u.value.length?(t(),l("button",{key:4,class:"button-secondary digital-wallet-all-badges__button",onclick:L},m(s(a)),1)):d("",!0),s(p)?(t(),r(A,{key:5})):d("",!0)]))}}),Y=b(O,[["__scopeId","data-v-c67b449e"]]),j=_({__name:"App",props:{globalProps:{}},setup(i){const e=i;B().updateConfigData(e.globalProps);const n=M();return(a,o)=>s(n)?(t(),r(Y,{key:0})):(t(),r(y,{key:1}))}}),ne=async i=>{const{parsedGeneralData:e,promoPlusConfig:n}=w(i),a=i.getAttribute("id"),o={globalProps:{labels:e.labels||{},ngpsConfig:n,enableDynamicConfigurationIds:e.enableDynamicConfigurationIds,appId:a,allowedConfigurationIds:e.allowedConfigurationIds,reCaptchaSiteKey:e.reCaptchaSiteKey,filteringVouchersByStatus:e.filteringVouchersByStatus}},g=D(j,o),p=P();g.use(p),g.mount(`#${a}`)};export{ne as init};
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.