PageSourceSearch

https://www.coca-cola.com/onexp-theme/25d07672864d756cc17ce87a0253091e8a7dc5b7f00a7df6d5e87ead0c9df5fe/ngps.js

js coca-cola.com collected 2026-09-24 08:24:09 UTC 212,693 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie.js","./theme.js","./theme.css","./progressiveProfile.js","./_plugin-vue_export-helper.js","./ModalDialog.js","./ModalDialog.css","./ProgressBar.js","./ProgressBar.css","./EnrichmentQuestionStep.js","./EnrichmentQuestionStep.css","./useProgressiveProfileState.js","./progressiveProfile.css"])))=>i.map(i=>d[i]);
2import{r as S,c as E,_ as M,C as oe,I as ca,d as x,b as s,e as c,h as v,i as m,f as y,t as g,w as ge,u as e,n as K,k as st,l as I,J as Ua,q as O,F as q,g as pe,K as ua,o as j,p as Le,L as ct,T as Va,D as it,B as At,z as Et,x as fe,M as Tt,N as St,s as rt,y as Nt,O as pa,P as $t,H as Dt,Q as Yt,v as Ga,A as Wa}from"./_plugin-vue_export-helper.js";import{d as le,s as B,c as qa}from"./pinia.js";import{u as te,a as ut,R as we,c as Fa,b as Ha}from"./vue-router.js";import{K as ja,B as Qa,L as da,M as ma,_ as zt,a as Ka,q as _a,d as ve,N as Ja,Q as Be,f as Re,R as Za,S as Xa,T as tt,U as Ya,V as ha,W as eo,X as Mt,Y as Ot,Z as to,$ as at,a0 as ao,a1 as oo,o as lt,a2 as no,a3 as so,g as ga,a4 as io,a5 as ro,a6 as ea,P as lo,h as ba,j as co,E as uo,a7 as po}from"./theme.js";import{a as V,b as ue,u as mo,c as _e,d as Lt,T as he,e as ta,R as Ge,C as pt,N as Ce,_ as ya,f as _o}from"./TermsAndConditions.js";import{u as D,i as ho,a as go}from"./globalConfigStore.js";import{p as ka,f as bo,i as fa,_ as dt,h as yo}from"./AnimatedSvgIcon.vue_vue_type_style_index_0_lang.js";import{c as ko,a as va,E as fo}from"./EngagementPromotionModal.js";import{u as be}from"./ngpsStore.js";import{R as Bt}from"./RequiredCurrencies.js";import{_ as re,u as mt,g as We}from"./useBxSvgIcon.js";import{c as vo,a as Ea}from"./prizeDrawApi.js";import{L as Pe}from"./LoadingIndicator.js";import{u as ye,a as Ia,N as qe}from"./NativeDialog.js";import{u as Fe}from"./loginModalStore.js";import{U as Ut}from"./UnknownError.js";import{v as _t}from"./validateConfigId.js";import{a as Eo,g as Io,b as xo,s as wo}from"./promotionStore.js";import{b as Po,p as ke,g as So,a as aa}from"./dataLayer.js";import{b as Do,c as xa,f as Lo}from"./prizeUtils.js";import{u as Vt}from"./useWallet.js";import{M as wa,u as Gt}from"./ModalDialog.js";import{u as Wt}from"./userProfileStore.js";import{P as Ro}from"./PrizeContentTemplate.js";import{u as He,_ as Co,S as Ao}from"./SelectUsernameStep.vue_vue_type_style_index_0_lang.js";import"./throttle.js";const To=()=>null,xe=Symbol(),ne=le("enterCodeStore",()=>
2{const o=D(),{userInputRequired:t,userInputTooLong:a}=o.getLabels,{isPinJourney:n,isUserInputRequired:i,isImageUploadRequired:r}=o.getJourneyData,l=S([{pinCode:"",fieldId:crypto.randomUUID()}]),u=S(!0),d=S(void 0),p=S(oa()),_=S(!0),b=S(void 0),h=250,k=S(""),f=S("upload"),w=S(!1),P=E(()=>w.value||n&&l.value.some(({pinCode:L})=>L.length===0)||i&&p.value.some(L=>!L)||r&&f.value!=="success"),N=L=>{u.value=!1,d.value=L},A=L=>{_.value=!1,b.value=L};return{requestPending:w,submitDisabled:P,pinCodes:l,isPinCodeValid:u,pinCodeError:d,userInputsValues:p,isUserInputValid:_,userInputError:b,userInputMaxLength:h,imageUploaded:k,imageUploadStatus:f,validateUserInput:()=>i&&!p.value?(A(t),!1):i&&p.value.some(L=>L.length>h)?(A(a),!1):(_.value=!0,!0),setPinCodeError:N,resetInputsState:()=>{l.value=[{pinCode:"",fieldId:crypto.randomUUID()}],k.value="",f.value="upload",p.value=oa()},resetPendingState:()=>{w.value=!1}}}),oa=()=>{const{getConfigData:o}=D();return o.userInputs?.map(()=>"")||[]},Ne=le("collectAndGetStore",()=>{const o=S(),t=i=>{o.value=i},a=E(()=>{let i;return o.value.type==="COLLECT_AND_GET_SUCCESS"&&(i=Rt(o.value.data)),i||"0"}),n=E(()=>o.value.type==="COLLECT_AND_GET_SUCCESS"?Pa(o.value.data.allocationArray):[]);return{collectAndGetData:o,getAllEarnedPoints:a,setCollectAndGetData:t,getAllocationData:n}}),Pa=o=>{const t=o.reduce((a,{currencyId:n,amount:i})=>(a[n]=a[n]||{currencyId:n,amount:0},a[n].amount+=i,a),{});return Object.values(t)},Rt=o=>Pa(o.allocationArray).map(a=>{const n=o.transactions.find(i=>i.currencyId===a.currencyId);return`${a.amount} ${n.currencyName}`}).join(" + "),$e=le("socialShareStore",()=>{const o=S(null),t=S([]);return{socialShareConfig:o,userAnswers:t,setSocialShareConfig:i=>{o.value=i||null},captureUserData:(i,r)=>{if(!i||i.length===0){t.value=[];return}const l=[],u=r||[];i.forEach((d,p)=>{const _=u[p];if(d.allowedValues){const h=ka(d.allowedValues).find(k=>k.value===_);l.push(h?.label||"")}else _&&l.push(_)}),t.value=l}}}),No=()=>{const o=te(),t=ne(),{setCollectAndGetData:a}=Ne(),n=$e(),i=D(),{labels:r,ngpsConfig:l,userInputs:u}=i.getConfigData,{isAutoRedeem:d}=i.getJourneyData,{isPinCodeValid:p}=B(t),_=async k=>{switch(k.type){case"COLLECT_AND_GET_NO_MORE_PRIZES":{V("promo_result","no_more_prizes"),await o.push({name:"collect-and-get-no-more-prizes"});break}case"COLLECT_AND_GET_AUTO_WIN":{V("promo_result","win"),dispatchEvent(new CustomEvent("wallet:refresh")),await o.push({name:"collect-and-get-win"});break}case"COLLECT_AND_GET_INVALID_INPUT":{V("promo_result","wrong_pincode"),t.setPinCodeError(r.pinRejectionInvalidInput);break}case"COLLECT_AND_GET_ALREADY_REDEEMED":{V("promo_result","already_redeemed"),t.setPinCodeError(r.pinRejectionAlreadyRedeemed);break}case"COLLECT_AND_GET_PINCODE_EXPIRED":{V("promo_result","pincode_expired"),t.setPinCodeError(r.pinRejectionPinExpired);break}case"COLLECT_AND_GET_REDEMPTION_LIMIT_EXCEEDED":{V("promo_result","redemption_limit"),await o.push({name:"collect-and-get-redemption-limit"});break}case"COLLECT_AND_GET_PARTICIPATION_LIMIT_EXCEEDED":case"COLLECT_AND_GET_PIN_REDEMPTION_LIMIT":{V("promo_result","limit"),ue(!1),await o.push({name:"collect-and-get-limit"});break}case"COLLECT_AND_GET_SUCCESS":{p.value=!0,V("promo_result","success"),dispatchEvent(new CustomEvent("wallet:refresh")),n.socialShareConfig?.displaySocialShareButton&&n.captureUserData(u,t.userInputsValues),await o.push({name:"collect-and-get-result"});break}case"COLLECT_AND_GET_UNKNOWN_RESPONSE":{V("promo_result","unknown_error"),ue(!1),await o.push({name:"collect-and-get-unknown-error"});break}}};return{postPromotion:async(k,f,w)=>{const N=await ja(l)(k,f,d,w);return a(N),N},displayPromotion:_,displayUnknownError:async()=>{await _({type:"COLLECT_AND_GET_UNKNOWN_RESPONSE"})}}},$o=()=>{const{collectAndGetData:o}=Ne();return{getPromoResultData:()=>o.type==="COLLECT_AND_GET_AUTO_WIN"?o.data?.wonPrizes?.[0]?.redeemedPrize||{}:{}}},zo={};function Mo(o,t){return oe(o.$slots,"default")}const Oo=M(zo,[["render",Mo]]),Bo=()=>({getPromoLayout:()=>Oo}),Uo=()=>({createSubmitPromotion:No,createPromoResult:$o,createPromoLayout:Bo,getNextParticipation:To}),je=le("instantWinStore",()=>{const o=S();return{instantWinData:o,setInstantWinData:a=>{o.value=a}}}),Vo=["populated","running","stopped","result"],Go=["stopped","result"],Oe={baseRPM:90,landingTolerance:.5,colors:["var(--background-color-odd)","var(--background-color-even)"]},Wo=o=>{const t=.5/o,{colors:a}
2=Oe,n=[`${a[0]} ${t*100}%`];for(let i=1;i<o;i++){const r=a[i%a.length],l=i/o-t,u=(i+1)/o-t;n.push(`${r} ${l*100}%`),n.push(`${r} ${u*100}%`)}return n.push(`${a[0]} ${100-t*100}%`),n.join(",")},ht=le("spinningWheelStore",()=>{const{wheel:o,ngpsConfig:t}=D().getConfigData,a=Qa(t),n=12,i=S(null),r=S(!1),l=S([]),u=S(null),d=S(null),p=S(null),_=S(o?.enableWheel?"collapsed":"disabled"),b={active:!1,amountAvailable:0,barcodeType:0,configurationId:"",description:"",imgUrl:o?.badLuckIcon,name:o?.badLuckLabel,priority:0,prizeId:"",redeemDescription:"",shortDescription:"",totalAmount:0,loss:!0},h=()=>{A.value&&(d.value=l.value.findIndex(U=>U.loss),r.value=!0)},k=U=>{A.value&&(W(U),i.value=Wo(l.value.length),f(),N("populated"))},f=()=>{let U=-1;if(u.value.type==="INSTANT_WIN_WIN"){const Q=u.value.data?.instantWinResult?.redeemedPrize?.prizeId;U=l.value.findIndex(J=>J.prizeId==Q)}U===-1?h():d.value=U},w=U=>{A.value&&(u.value=U)},P=U=>{p.value=U},N=U=>{A.value&&(_.value=U)},A=E(()=>o?.enableWheel),R=E(()=>Vo.includes(_.value)&&!(r.value&&_.value==="result")),z=E(()=>_.value==="populated"),T=E(()=>Go.includes(_.value)),L=E(()=>u.value.type==="INSTANT_WIN_WIN"),C=()=>{i.value=null,r.value=!1,l.value=[],u.value=null,d.value=null,_.value=A.value?"collapsed":"disabled"},$=async()=>{try{const U=await a();U.type==="LIST_PRIZES_SUCCESS"?k(U.data.prizeList):h()}catch(U){console.log(U),h()}},W=U=>{const Q=Array(o.badLuckItemsNumber).fill(b),J=[],ce=Math.max(U.length,Q.length);for(let se=0;se<ce;se++)U[se]&&J.push(U[se]),Q[se]&&J.push(Q[se]);for(;J.length<n;){const se=n-J.length,ze=G(J,se);J.push(...ze)}J.length%2!==0&&J.push(U[0]),l.value=J},G=(U,Q)=>{const J=[];let ce=Q;for(;ce>0;){const se=U.slice(0,Math.min(ce,U.length));J.push(...se),ce-=se.length}return J};return{gradient:i,prizes:l,promoResult:u,resultIndex:d,stopAngle:p,setError:h,setPrizes:k,setPromoResult:w,setStopAngle:P,setWheelState:N,isWheelEnabled:A,isWheelExpanded:R,isWheelReady:z,isWheelStopped:T,isWinningResult:L,resetWheel:C,fetchPrizes:$}}),qo=()=>{const o=te(),t=ne(),{setInstantWinData:a}=je(),n=$e(),i=D(),{labels:r,ngpsConfig:l,userInputs:u}=i.getConfigData,{isPinJourney:d}=i.getJourneyData,p=ht(),{setPromoResult:_}=p,{isWheelEnabled:b}=B(p),h=async()=>{d&&b.value&&await o.push({name:"instant-win-enter-code"})},k=async P=>{switch(_(P),P.type){case"INSTANT_WIN_NOT_ENOUGH_CURRENCY":{V("promo_result","not_enough_currency"),ue(!1),await o.push({name:"instant-win-not-enough-currency"});break}case"INSTANT_WIN_WIN":{V("promo_result","win",{promo_prize_id:P.data.instantWinResult.redeemedPrize.prizeId,promo_prize_name:P.data.instantWinResult.redeemedPrize.name,promo_prize_type:"non-currency"}),ue(!0),n.socialShareConfig?.displaySocialShareButton&&n.captureUserData(u,t.userInputsValues),b.value?await o.push({name:"instant-win-spin-the-wheel"}):await o.push({name:"instant-win-win"});break}case"INSTANT_WIN_LOSE":case"INSTANT_WIN_NOT_ENOUGH_VOUCHERS":{V("promo_result","lose"),ue(!1),b.value?await o.push({name:"instant-win-spin-the-wheel"}):await o.push({name:"instant-win-lose"});break}case"INSTANT_WIN_INVALID_INPUT":{V("promo_result","wrong_pincode"),t.setPinCodeError(r.pinRejectionInvalidInput),await h();break}case"INSTANT_WIN_ALREADY_REDEEMED":{V("promo_result","already_redeemed"),t.setPinCodeError(r.pinRejectionAlreadyRedeemed),await h();break}case"INSTANT_WIN_PINCODE_EXPIRED":{V("promo_result","pincode_expired"),t.setPinCodeError(r.pinRejectionPinExpired),await h();break}case"INSTANT_WIN_WINNING_LIMIT_REACHED":case"INSTANT_WIN_REDEMPTION_LIMIT_REACHED":case"INSTANT_WIN_PIN_REDEMPTION_LIMIT":{V("promo_result","redemption_limit"),ue(!1),await o.push({name:"instant-win-redemption-limit"});break}case"INSTANT_WIN_BLOCKED_USER":{V("promo_result","blocked_user"),ue(!1),await o.push({name:"instant-win-blocked-user"});break}case"INSTANT_WIN_PROMOTION_NOT_ACTIVE":{await o.push({name:"instant-win-promotion-not-active"});break}case"INSTANT_WIN_PARTICIPATION_LIMIT_REACHED":{V("promo_result","limit"),ue(!1),await o.push({name:"instant-win-limit"});break}case"INSTANT_WIN_UNKNOWN_RESPONSE":{V("promo_result","unknown_error"),ue(!1),await o.push({name:"instant-win-unknown-error"});break}}};return{postPromotion:async(P,N,A)=>{const z=await ko(l)(P,N,A);return a(z),z},displayPromotion:k,displayUnknownError:async()=>{await k({type:"INSTANT_WIN_UNKNOWN_RESPONSE"})}}},Fo=()=>{const{instantWinData:o}=je();return{getPromoResultData:()=>o.type==="INSTANT_WIN_WIN"?o.data?.instantWinResult?.redeemedPrize||{}:{}}},Sa=()=>{const{additionalConfiguration:o}=B(be()),t=Ho(),a=mo();return ca(async()=>{t.value&&await a()}),E(()=>
2{if(t.value)return o.value?.requiredCurrencies})},Ho=()=>{const o=S(!1),t=ut();return ca(()=>{o.value=["instant-win-start-now","instant-win-no-pin","prize-draw-start-now","prize-draw-no-pin"].includes(t.name)}),o},jo={class:"spinning-wheel__prize"},Qo=["src","alt"],Ko=["src","alt"],Jo=x({__name:"WheelSlice",props:{prize:{}},setup(o){const t=o,a=E(()=>t.prize.imagesMetadata?.find(n=>n.url&&n.size==="thumbnail"));return(n,i)=>(s(),c("div",jo,[n.prize.loss?(s(),v(re,{key:0,"icon-path":n.prize.imgUrl},null,8,["icon-path"])):a.value?(s(),c("img",{key:1,src:a.value.url,alt:a.value.alt},null,8,Qo)):n.prize.imgUrl?(s(),c("img",{key:2,src:n.prize.imgUrl,alt:n.prize.name},null,8,Ko)):m("",!0),y("p",null,g(n.prize.name),1)]))}}),Zo=M(Jo,[["__scopeId","data-v-19fb135d"]]),Xo={class:"spinning-wheel__core"},Yo={class:"spinning-wheel__pointer"},en={ref:"iconContainer",class:"spinning-wheel__center"},tn=60*1e3,an=x({__name:"SpinningWheel",setup(o){const{wheel:t}=D().getConfigData,a=ht(),{stopAngle:n,gradient:i,resultIndex:r,prizes:l,isWheelEnabled:u,isWheelExpanded:d,isWheelReady:p,isWheelStopped:_,isWinningResult:b}=B(a),{setWheelState:h}=a,k=da()&&ma(),f=S(n||0),w=S(!1),P=E(()=>l.value.length);let N=0,A=0;const R=()=>{if(!w.value)return;const W=Date.now(),U=(W-N)/tn,Q=A?Math.min(A/5,Oe.baseRPM):Oe.baseRPM,J=U*Q*360;N=W,A>0&&(A-=J,A<1&&(A=0,w.value=!1,$())),f.value=(f.value+J)%360,window.requestAnimationFrame(R)},z=W=>{const G=360/P.value,U=Oe.landingTolerance*G/2-Oe.landingTolerance*G*Math.random();A=720+G*W-f.value+U},T=()=>{if(k&&!w.value){f.value=360/P.value*r.value%360,h("result"),C();return}w.value||(h("running"),w.value=!0,N=Date.now(),R(),setTimeout(()=>{z(r.value)},t.animationDuration*1e3))};ge(p,()=>{p.value&&setTimeout(T,1e3)});const L=te(),C=async()=>{b.value?await L.push({name:"instant-win-win"}):await L.push({name:"instant-win-lose"})},$=()=>{h("stopped"),setTimeout(()=>{h("result"),C()},t.transitionDuration*1e3)};return(W,G)=>e(u)?(s(),c("div",{key:0,class:K(["spinning-wheel",{"spinning-wheel--collapsed":!e(d),"spinning-wheel--no-animations":e(k)}])},[y("div",Xo,[y("div",{class:"spinning-wheel__ring",style:st({rotate:`${f.value}deg`,backgroundImage:`conic-gradient(${e(i)})`})},[I(Ua,{name:"slices"},{default:O(()=>[(s(!0),c(q,null,pe(e(l),(U,Q)=>(s(),v(Zo,{key:Q,prize:U,class:K({focused:Q===e(r)&&e(_)}),style:st({rotate:`${-Q/P.value*360}deg`})},null,8,["prize","class","style"]))),128))]),_:1})],4),y("div",Yo,[I(re,{"icon-path":e(t).pointerIcon},null,8,["icon-path"])])]),y("div",en,[I(re,{"icon-path":e(t).spinTheWheelIcon},null,8,["icon-path"]),y("p",null,g(e(t).spinTheWheelLabel),1)],512)],2)):m("",!0)}}),on=M(an,[["__scopeId","data-v-4c0c7e5a"]]),nn=x({__name:"InstantWinLayout",setup(o){const t=Sa();return(a,n)=>(s(),c(q,null,[I(Bt,{"required-currencies":e(t)},null,8,["required-currencies"]),I(on),oe(a.$slots,"default")],64))}}),sn=()=>({getPromoLayout:()=>nn}),rn=()=>({createSubmitPromotion:qo,createPromoResult:Fo,createPromoLayout:sn,getNextParticipation:()=>{const t=je().instantWinData;return t?.type==="INSTANT_WIN_PARTICIPATION_LIMIT_REACHED"?t?.error?.nextAvailableParticipation??null:null}}),gt=le("prizeDrawStore",()=>{const o=S();return{prizeDrawData:o,setPrizeDrawData:a=>{o.value=a}}}),ln=()=>{const o=te(),t=ne(),{setPrizeDrawData:a}=gt(),n=$e(),i=D(),{labels:r,ngpsConfig:l,userInputs:u}=i.getConfigData,d=async b=>{switch(b.type){case"PRIZE_DRAW_SUCCESS":case"PRIZE_DRAW_NO_PIN_SUCCESS":{V("promo_result","success"),ue(!0),n.socialShareConfig?.displaySocialShareButton&&n.captureUserData(u,t.userInputsValues),await o.push({name:"prize-draw-result"});break}case"PRIZE_DRAW_INVALID_INPUT":{V("promo_result","wrong_pincode"),t.setPinCodeError(r.pinRejectionInvalidInput);break}case"PRIZE_DRAW_ALREADY_REDEEMED":{V("promo_result","already_redeemed"),t.setPinCodeError(r.pinRejectionAlreadyRedeemed);break}case"PRIZE_DRAW_PINCODE_EXPIRED":{V("promo_result","pincode_expired"),t.setPinCodeError(r.pinRejectionPinExpired);break}case"PRIZE_DRAW_LIMIT_EXCEEDED":case"PRIZE_DRAW_PIN_REDEMPTION_LIMIT":{V("promo_result","limit"),ue(!1),await o.push({name:"prize-draw-limit"});break}case"PRIZE_DRAW_NOT_ENOUGH_CURRENCY":{V("promo_result","not_enough_currency"),ue(!1),await o.push({name:"prize-draw-not-enough-currency"});break}case"PRIZE_DRAW_UNKNOWN_RESPONSE":{V("promo_result","unknown_error"),ue(!1),await o.push({name:"prize-draw-unknown-error"});break}}};return{postPromotion:async(b,h,k)=>{const w=await vo(l)(b,h,k);return a(w),w},displayPromotion:d,displayUnknownError:async()=>{await d({type:"PRIZE_DRAW_UNKNOWN_RESPONSE"})}}},cn=()=>{const o=D().getLabels;return{getPromoResultData:()=>({name:o.resultHeader,redeemDescription:o.resultDescription,shortDescription:o.resultMessage,useIcon:!0})}},un=x({__name:"PrizeDrawLayout",setup(o){const t=Sa();return(a,n)=>(s(),c(q,null,[I(Bt,{"required-currencies":e(t)},null,8,["required-currencies"]),oe(a.$slots,"default")],64))}}),pn=()=>({getPromoLayout:()=>un}),dn=()=>({createSubmitPromotion:ln,createPromoResult:cn,createPromoLayout:pn,getNextParticipation:()=>{const t=gt().prizeDrawData;return t?.type==="PRIZE_DRAW_LIMIT_EXCEEDED"?t?.error?.nextAvailableParticipation??null:null}}),mn=x({__name:"GlobalLoader",setup(o){const t=be();return(a,n)=>e(t).isLoading?(s(),v(Pe,{key:0})):m("",!0)}}),_n={};function hn(o,t){const a=ua("RouterView");return s(),v(a)}const gn=M(_n,[["render",hn]]),bn=async(o,t)=>{if(!o||!o.resultAnimationEnabled)return null;if(!o.resultAnimationJson)return console.error("No default Lottie animation set!"),null;await zt(()=>import("./lottie.js"),__vite__mapDeps([0,1,2]),import.meta.url);let a="";try{a=JSON.parse(o.resultAnimationJson)}catch(r){console.error(r)}const n=window.lottie.loadAnimation({container:t.value,renderer:"svg",loop:!0,autoplay:!1,animationData:a});n.addEventListener("loopComplete",()=>{n.stop()});const i=n.getDuration(!1);return{animation:n,animationDuration:i}},yn=x({__name:"AnimatedLayout",setup(o){const{lottieAnimation:t}=D().getConfigData,a=te(),n=E(()=>da()&&ma()||!!a.currentRoute?.value.meta?.preventAnimation),i=S(null),r=S(0),l=()=>{const A=i?.value.children[1]?.scrollHeight||i?.value.children[0]?.scrollHeight;A&&A>0&&A!==r.value&&(r.value=A)},u=new MutationObserver(()=>{l()}),d=Ka(()=>{l()},500),p=S(!1),_=()=>{u.disconnect(),window.removeEventListener("resize",d),Le().then(()=>{i.value&&(p.value=!0,window.addEventListener("resize",d),u.observe(i.value,{attributes:!0,childList:!0,subtree:!0}))})},b=()=>{p.value&&(p.value=!1,window.removeEventListener("resize",d),u.disconnect())},h=t?.resultAnimationEnabled,k=E(()=>!!a.currentRoute.value.meta?.applyLottieAnimation&&h),f=S(null),w=S(4),P=S(null),N=()=>{k.value&&P.value&&P.value.play()};return j(async()=>{const A=await bn(t,f);A&&(w.value=A.animationDuration||4,P.value=A.animation),ge(a.currentRoute,()=>{if(n.value){b();return}Le().then(()=>{i.value&&(N(),_())})},{immediate:!0})}),(A,R)=>(s(),c(q,null,[n.value?oe(A.$slots,"default",{key:0}):(s(),c("div",{key:1,ref_key:"animatedContent",ref:i,class:K({"promo-animate":!0,"promo-animate--lottie":k.value}),style:st({height:r.value&&r.value>0?`${r.value}px`:"auto","--lottie-animation-duration":`${w.value}s`})},[oe(A.$slots,"default")],6)),e(h)?(s(),c("div",{key:2,ref_key:"lottieElement",ref:f,class:"lottie-wrapper"},null,512)):m("",!0)],64))}}),kn={class:"promo-layout"},fn=["innerHTML"],vn={class:"promo-layout__content-wrapper"},En=x({__name:"PromotionLayout",setup(o){const t=D(),{promoDescription:a}=t.getConfigData,n=a.imageId?document.querySelector(`#${a.imageId} picture`):null,i=!!n?.querySelector("img"),r=ct(xe).createPromoLayout().getPromoLayout();return(l,u)=>{const d=ua("RouterView");return s(),c("div",kn,[i?(s(),c("div",{key:0,class:"promo-layout__image",innerHTML:e(n).outerHTML},null,8,fn)):m("",!0),y("div",vn,[(s(),v(it(e(r)),null,{default:O(()=>[I(yn,null,{default:O(()=>[I(d,null,{default:O(({Component:p,route:_})=>[I(Va,{name:"content"},{default:O(()=>[(s(),v(it(p),{key:_.path}))]),_:2},1024)]),_:1})]),_:1})]),_:1}))])])}}}),In=M(En,[["__scopeId","data-v-82723d4f"]]),xn=x({__name:"AppView",setup(o){const t=te(
2),a=E(()=>{switch(t.currentRoute?.value.meta?.layout){case"promotion":return In;case"empty":default:return gn}});return(n,i)=>(s(),v(it(a.value),{key:e(t).currentRoute?.value.meta?.layout}))}}),Qe=le("loginModalStore",()=>{const o=_e(),{forceComponentsUpdate:t}=be(),{requestPending:a}=B(ne()),{requestOpenDialog:n,requestCloseDialog:i,setDialogRef:r}=Fe({name:"login-modal",priority:"auto",allowBackdropClose:!0,allowKeyboardClose:!0,onDialogClose:()=>{a.value=!1,t()}}),l=S(o.signUp),u=S(o.signIn),d=b=>{const h=_e(null,b);l.value=h.signUp,u.value=h.signIn},p=()=>{const{loginModalHeading:b,loginModalDescription:h,loginModalCloseButtonLabel:k,loginButtonLabel:f,signupButtonLabel:w}=_a();return[b,h,k,f,w].every(Boolean)};return{setDialogRef:r,closeLoginModal:i,openLoginModal:n,isLoginModalAvailable:p,canOpenLoginModal:async()=>await o.isLoginAvailable()&&p(),signIn:u,signUp:l,setReturnView:d}}),wn={class:"login-modal__content"},Pn={class:"login-modal__content-section"},Sn={class:"login-modal__icon"},Dn=["id"],Ln=["id"],Rn={class:"login-modal__content-section"},Cn=["disabled"],An=["disabled"],Tn=x({__name:"LoginModal",setup(o){const{loginModalHeading:t,loginModalDescription:a,loginModalCloseButtonLabel:n,loginButtonLabel:i,signupButtonLabel:r}=_a(),l=Qe(),{closeLoginModal:u,isLoginModalAvailable:d,setDialogRef:p}=l,{signIn:_,signUp:b}=B(l),[h]=mt("lockIcon"),{toggleContentBusy:k,dialogDetailsId:f,dialogHeadingId:w,onDialogOpen:P,onDialogClose:N}=ye(Ia()),A=S(null);P(()=>{A.value?.focus()});const R=S(!1),z=S(!1),T=S(!1),L=async()=>{R.value=!0,z.value=!0,k(!0),await b.value()},C=async()=>{R.value=!0,T.value=!0,k(!0),await _.value()};return N(()=>{R.value=!1,T.value=!1,z.value=!1,k(!1)}),($,W)=>e(d)()?(s(),v(qe,{key:0,class:"login-modal","close-modal":e(u),"close-modal-label":e(n),"dialog-ref-assn-fn":e(p)},{default:O(()=>[y("div",wn,[y("div",Pn,[y("div",Sn,[I(re,{"icon-path":e(h)},null,8,["icon-path"])]),y("h2",{id:e(w),class:"login-modal__heading"},g(e(t)),9,Dn),y("p",{id:e(f),class:"login-modal__description"},g(e(a)),9,Ln)]),y("div",Rn,[y("button",{ref_key:"signupButton",ref:A,class:K(`button login-modal__signup-button ${z.value?"loading":""}`),disabled:R.value,onClick:L},g(e(r)),11,Cn),y("button",{class:K(`button login-modal__login-button ${T.value?"loading":""}`),disabled:R.value,onClick:C},g(e(i)),11,An)])])]),_:1},8,["close-modal","close-modal-label","dialog-ref-assn-fn"])):m("",!0)}}),Nn=M(Tn,[["__scopeId","data-v-9bfab562"]]),$n=x({__name:"App",props:{labels:{},urls:{},ngpsConfig:{},badgesConfig:{},currencyId:{},enableDynamicConfigurationIds:{type:Boolean},enableExpiringWallet:{type:Boolean},allowedConfigurationIds:{},enableBadges:{type:Boolean},promotionMechanic:{},enableEngagementPoints:{type:Boolean},enableUserDetailsOnVoucher:{type:Boolean},enablePrizeQuantitySelector:{type:Boolean},enableAppleWallet:{type:Boolean},enableGoogleWallet:{type:Boolean},promoDescription:{},appId:{},startView:{},startViewName:{},enableMultiplePinCodes:{type:Boolean},unsuccessfulEntryIcon:{},errorEntryIcon:{},thumbUpIcon:{},promptUserInput:{type:Boolean},hiddenInput:{},userInputs:{},allowedFileExtensions:{},promptImageUpload:{type:Boolean},journey:{},reCaptchaSiteKey:{},appleWallet:{},googleWallet:{},filteringVouchersByStatus:{},filteringPrizesByStatus:{},filteringPrizeIDs:{},filteringCategories:{},enableCurrencyFilteringByAge:{type:Boolean},noAvailableTransactionsCtaLabel:{},noAvailableTransactionsCtaUrl:{},noAvailableTransactionsLabel:{},noAvailableTransactionsDescription:{},ageFilteringConfig:{},wheel:{},lottieAnimation:{},quizConfig:{},quizLabels:{},myReceiptsConfig:{},receiptScannerConfig:{},receiptScannerLabels:{},receiptScannerPromoLabels:{},myReceiptsLabels:{},leaderboardConfig:{},leaderboardLabels:{},leaderboardPreviewImageId:{},profileWidgetProps:{},profilePersonalizationLabels:{},progressiveProfile:{},profilePersonalizationModalConfig:{}},setup(o){const t=o,a=te();D().updateConfigData(t);const i=be(),r=ne(),l=window.location.search,d=new URLSearchParams(l).get("skiptocode");return At(()=>{switch(t.journey){case"instant-win":{Et(xe,rn());break}case"prize-draw":{Et(xe,dn());break}case"collect-and-get":case"auto-collect-and-get":{Et(xe,Uo());break}}}),j(async()=>{const p=Lt();p.isAppReturn(t.appId)?await p.routeAppReturn(t.startView):d=="true"&&!ho(t.journey)?a.push({path:`/${t.journey}/enter-code`}):a.push(t.startView)}),j(()=>{const p=Lt();window.addEventListener("pageshow",async _=>{if(_.persisted){const b=a.currentRoute.value.path;ve.log("BF cache: restoring view",b),await a.push({path:b,force:!0}),i.forceComponentsUpdate(),r.resetPendingState(),p.isAppReturn(t.appId)&&p.unregisterAppReturn()}})}),(p,_)=>(s(),c(q,null,[I(xn),I(mn),I(Nn)],64))}}),na=o=>o.name===void 0,zn=o=>async(t,a)=>{const n=be(),{isAuthenticated:i,signIn:r}=_e(o,t.fullPath);if(Ja)return!0;ve.log("Checking auth guard");let l=!0;
2na(a)&&n.setLoading();try{await i()||await r()}catch(u){ve.warn("Error occurred while auth guard",u),l={name:"unknown-error"}}return na(a)&&n.completeLoading(),l},Mn={class:"single-promo-layout"},On={class:"promo-layout__view"},Bn={key:0,class:"promo-layout__title"},Un={key:1,class:"promo-layout__title"},Vn=["innerHTML"],Gn=["innerHTML"],Wn=x({__name:"SingleLayout",props:{title:{},description:{},htmlDescription:{},isH2:{type:Boolean}},setup(o){return(t,a)=>(s(),c("div",Mn,[y("div",On,[t.title&&t.isH2?(s(),c("h2",Bn,g(t.title),1)):t.title?(s(),c("h1",Un,g(t.title),1)):m("",!0),t.description?(s(),c("p",{key:2,class:"promo-layout__description",innerHTML:t.description},null,8,Vn)):t.htmlDescription?(s(),c("div",{key:3,class:"promo-layout__description",innerHTML:t.htmlDescription},null,8,Gn)):m("",!0),oe(t.$slots,"default",{},void 0,!0)]),I(he)]))}}),ae=M(Wn,[["__scopeId","data-v-6bba6244"]]),bt=x({__name:"PromoEntryContent",setup(o){const n=D().getConfigData.promoDescription,i=document.createElement("template");i.innerHTML=n.description;const r=i.innerHTML;return(l,u)=>(s(),v(ae,{title:e(n).title,"html-description":e(r),"is-h2":e(n).isH2},{default:O(()=>[oe(l.$slots,"default")]),_:3},8,["title","html-description","is-h2"]))}}),qn=["disabled"],Ue=x({__name:"LoadingLink",props:{to:{},handler:{type:Function},label:{}},setup(o){const t=o,a=te(),n=S(!1),i=u=>{n.value=!0,setTimeout(()=>{t.to?a.push(t.to):t.handler&&t.handler(u)},250)},r=be(),{forceUpdateTick:l}=B(r);return ge([l],()=>{n.value=!1}),(u,d)=>u.label?(s(),c("button",{key:0,class:K({loading:n.value}),disabled:n.value,onClick:i},g(u.label),11,qn)):m("",!0)}}),Fn=()=>{const{journey:o}=D().getJourneyData,t=`/${o}/enter-code`,{isAuthenticated:a,signIn:n}=_e(null,t),{requestPending:i}=B(ne()),{canOpenLoginModal:r,openLoginModal:l,setReturnView:u}=Qe(),d=te(),p=async()=>{await r()?(u(t),l()):await n()};return{handlePromoEntry:async()=>{i.value=!0,V("promo_click_cta"),await a()?_t()?(i.value=!1,await d.push({name:`${o}-enter-code`})):(i.value=!1,await d.push({name:"unknown-error"})):await p()}}},Hn=x({__name:"PromoEntryInput",setup(o){const{startButtonLabel:t}=D().getLabels,{handlePromoEntry:a}=Fn();return(n,i)=>(s(),v(bt,null,{default:O(()=>[I(Ue,{class:"button--primary promo-entry__start",label:e(t),handler:e(a)},null,8,["label","handler"])]),_:1}))}}),Da=(o,t=async()=>null)=>{const a=ut(),{isRegisterAction:n,unregisterAction:i}=Lt();ge([o],async()=>{n(a.fullPath)&&o.value&&("length"in o.value?o.value[0].focus():o.value.focus(),await t(),i())})},Ke=()=>{const o=te(),t=D(),{enableMultiplePinCodes:a,reCaptchaSiteKey:n}=t.getConfigData;let{hiddenInput:i}=t.getConfigData;const{journey:r,isPinJourney:l}=t.getJourneyData,{setMultiplePinResult:u}=be(),d=ne(),{requestPending:p,pinCodes:_,userInputsValues:b,imageUploaded:h}=B(d),f=ct(xe).createSubmitPromotion(),w=async(L,C)=>{const $=await Re(n,"postPromotion");i=Eo(i);const W={pinCode:C,userInputs:b.value,hiddenInput:i,participationImage:h.value,...h.value&&{entryType:"image"}},G=await f.postPromotion(L,$,W);return V("promo_participation"),Za(),G},P=async L=>{await f.displayPromotion(L)},N=async L=>{const C=[];await Promise.allSettled(_.value.map(async({pinCode:$})=>{try{const W=await w(L,$);C.push({pinCode:$,data:W})}catch(W){console.log(W),C.push({pinCode:$,data:z(r)})}})),u(C)},A=async()=>{switch(r){case"instant-win":{V("promo_result","multiple_results"),await o.push({name:"instant-win-multiple-results"});break}case"collect-and-get":{V("promo_result","multiple_results"),await o.push({name:"collect-and-get-multiple-results"});break}case"prize-draw":{V("promo_result","multiple_results"),await o.push({name:"prize-draw-multiple-results"});break}}},R=async()=>{await f.displayUnknownError()},z=L=>({"instant-win":"INSTANT_WIN_UNKNOWN_RESPONSE","collect-and-get":"COLLECT_AND_GET_UNKNOWN_RESPONSE","prize-draw":"PRIZE_DRAW_UNKNOWN_RESPONSE"})[L];return{displayPromotion:P,submitPromotion:async()=>{p.value=!0;const L=await Be(),C=_.value[0].pinCode,$=async()=>{try{const G=await w(L,C);P(G)}catch(G){console.log(G),R()}},W=async()=>{await N(L),A()};d.validateUserInput()&&(l&&a?await W():await $()),d.resetInputsState(),p.value=!1}}},jn=()=>{const o=te(),{requestPending:t}=B(ne()),{submitPromotion:a}=Ke(),{isAuthenticated:n,signIn:i}=_e(),{canOpenLoginModal:r,openLoginModal:l}=Qe(),u=async()=>{t.value=!0,await r()?l():await i()};return{handlePromoEntry:async()=>{await n()?_t()?await a():await o.push({name:"unknown-error"}):await u()}}},Qn=["disabled"],Kn=x({__name:"PromoEntryNoInput",setup(o){const{startButtonLabel:t}=D().getLabels,{handlePromoEntry:a}=jn(),n=S(null);Da(n,a);const{requestPending:i}=B(ne()),r=E(()=>i.value),l=E(()=>`${i.value?"loading":""} button--primary promo-entry__start`);return(u,d)=>(s(),v(bt,null,{default:O(()=>[y("button",{ref_key:"startJourneyButton",ref:n,class:K(l.value),disabled:r.value,onClick:d[0]||(d[0]=(...p)=>e(a)&&e(a)(...p))},g(e(t)),11,Qn)]),_:1}))}}),me=le("promoQuizStore",()=>{const o=S(0),t=S([]),a=S({questions:[],startTime:"",participationId:"",answers:[]}),n=E(()=>{const T=a.value.questions[o.value]?.id;return t.value.find(L=>
2L.questionId===T)}),i=E(()=>n.value?d.value?.type==="textInput"?!!n.value.answerText?.trim():n.value.answerIds.length>0:!1),r=E(()=>({path:d?.value.asset?.desktop||"",altText:d?.value.asset?.altText||""})),l=E(()=>(o.value+1)/a.value.questions.length*100),u=E(()=>`${o.value+1}/${a.value.questions.length}`),d=E(()=>a.value.questions[o.value]),p=E(()=>a.value.questions.length),_=E(()=>a.value.startTime),b=E(()=>{const{startTime:T,participationId:L}=a.value;return{startTime:T,participationId:L}}),h=E(()=>T=>n.value?.answerIds.find(L=>L===T)!==void 0),k=E(()=>o.value===p.value-1),f=T=>{a.value=T},w=()=>{const T=a.value.answers.length;T===p.value?P(T-1):T>0&&P(T)},P=T=>{o.value=T};return{currentQuestionIndex:o,userSelections:t,getCurrentQuestionImage:r,getUserCurrentSelection:n,getQuizProgress:l,getQuestionCounter:u,getStartTime:_,getParticipationData:b,getCurrentQuestion:d,getTotalQuestionsNumber:p,hasUserCurrentSelection:i,isOptionSelected:h,isLastQuestion:k,setQuizData:f,setLastQuestionIndex:w,setCurrentQuestionIndex:P,setPreviousQuestion:()=>{o.value--},setUserSelection:(T,L,C)=>{const $=t.value.findIndex(W=>W.questionId===T);if($!==-1){switch(C){case"multipleChoice":const W=t.value[$].answerIds;W.includes(L)?t.value[$].answerIds=W.filter(G=>G!==L):W.push(L);break;case"singleChoice":t.value[$].answerIds=[L];break;default:t.value[$].answerIds=[L]}delete t.value[$].answerText}else t.value.push({questionId:T,answerIds:[L]})},setUserTextSelection:(T,L)=>{const C=t.value.findIndex($=>$.questionId===T);C!==-1?(t.value[C].answerIds=[],t.value[C].answerText=L):t.value.push({questionId:T,answerIds:[],answerText:L})},setUserSelections:()=>{a.value.answers.forEach(T=>{t.value.push({questionId:T.questionId,answerIds:T.answerIds??[],answerText:T.answerText})})}}}),yt=()=>{const o=te(),t=D(),{isAuthenticated:a,signIn:n}=_e(),{setInstantWinData:i}=je(),{setPrizeDrawData:r}=gt(),{setCollectAndGetData:l}=Ne(),{displayPromotion:u}=Ke(),d=ne(),{requestPending:p,pinCodes:_}=B(d),{canOpenLoginModal:b,openLoginModal:h}=Qe(),{setQuizData:k,setCurrentQuestionIndex:f,setLastQuestionIndex:w,setUserSelections:P}=me(),{isLastQuestion:N,currentQuestionIndex:A,getCurrentQuestion:R,getUserCurrentSelection:z,getParticipationData:T}=B(me()),{quizApiUrl:L,quizId:C,promotionType:$,promoPlusEnvId:W}=t.getQuizConfig,{reCaptchaSiteKey:G,ngpsConfig:U}=t.getConfigData,Q=new Xa(L,G,W),J=S(!1),ce=S(!1),se=async()=>{if(!await a())return ke({quiz_action:"quiz_click_cta",quiz_id:C}),await b()?h():await n();await Ya(G);const Z=await Q.startParticipation(C,U.configurationId);tt(Z)?Z.error==="PARTICIPATION_LIMIT_REACHED"?(ke({quiz_action:"quiz_participation_limit",quiz_id:C}),await o.push({name:"quiz-limit"})):(ke({quiz_action:"quiz_participation_error",quiz_id:C}),await o.push({name:"quiz-error"})):(k(Z),w(),P(),ke({quiz_action:"quiz_participation",quiz_id:C}),await o.push({name:"quiz-view"}))},ze=async()=>{J.value=!0;try{if(!z.value)return;const X=R.value.type==="textInput",Z=z.value.answerText?.trim()??"";if(X&&!Z)return;const Se=await Q.submitAnswer(C,T.value.participationId,{questionId:R.value.id,answerIds:z.value.answerIds,...X&&{answerText:Z}});if(tt(Se)){ce.value=!0;return}ce.value=!1;const et=Po(z.value.answerIds);N.value?(et.forEach(vt=>{ke({quiz_action:"quiz_completion",quiz_id:C,quiz_question_number:R.value.id,quiz_time:So(new Date(T.value.startTime).getTime()),...vt})}),await ft()):(et.forEach(vt=>{ke({quiz_action:"quiz_progress",quiz_id:C,quiz_question_number:R.value.id,...vt})}),f(A.value+1))}finally{J.value=!1}},ft=async()=>{const X=await Q.finishParticipation(C,T.value.participationId);if(tt(X)){ke({quiz_action:"quiz_result",quiz_id:C,quiz_outcome:"Error"}),await o.push({name:"quiz-error"});return}if(X.status==="FINISHED"&&X.result==="FAIL")ke({quiz_action:"quiz_result",quiz_id:C,quiz_outcome:"Lost"}),await o.push({name:"quiz-failure"});else switch($){case"instant-win-no-pin":case"prize-draw-no-pin":await H();break;case"collect-and-get":case"auto-collect-and-get":case"instant-win":case"prize-draw":await o.push({name:"quiz-enter-code"});break}},F=async()=>{p.value=!0;try{const{pinCode:X}=_.value[0];await H(X)}finally{d.resetInputsState(),p.value=!1}},H=async X=>{const Z=await Q.submitPromotion(C,T.value.participationId,X,U.configurationId),Se=tt(Z)?Z.data:Z.promoPlus,et=Y(Se);await u(et)},Y=X=>{let Z;switch($){case"instant-win":case"instant-win-no-pin":Z=va(X),i(Z);break;case"prize-draw":case"prize-draw-no-pin":Z=Ea(X),r(Z);break;case"collect-and-get":case"auto-collect-and-get":Z=ha(X),l(Z);break}return Z};return{startQuiz:se,submitAnswer:ze,answerPending:J,submitPinPromotion:F,errorOccurred:ce}},Je=()=>{const o=D(),{journey:t,isPinJourney:a}=o.getJourneyData,{pinCodes:n}=B(ne()),i=te(),r=ut(),l=Io(),u=r.fullPath.endsWith("start-now"),d=r.fullPath.endsWith("enter-code"),p=r.fullPath.endsWith("enter-promotion"),_=r.name==="start-quiz",b=r.name==="quiz-enter-code",h=r.name==="quiz-enter-promotion",{submitPromotion:k}=Ke(),{submitPinPromotion:f}=h?yt():{},{isAuthenticated:w}=_e();return async()=>{const P=await w();if(!(!a||!l)){if(!P||_){document.querySelector("[id^=ngpsApp]:has(.promo-entry__start, .start-quiz)")?.scrollIntoView({behavior:"smooth",block:"end"});return}b?await i.push({name:"quiz-enter-promotion"}):(u||d)&&await i.push({name:`${t}-enter-promotion`}),n.value[0].pinCode=l,p&&(h?await f():await k(),xo())}}},Ae=x({__name:"PromoEntryView",setup(o){return Je()(),(t,a)=>e(go)()?(s(),v(Hn,{key:0})):(s(),v(Kn,{key:1}))}}),Jn=o=>{const t=o;return typeof t=="object"&&typeof t.status=="string"&&typeof t.pluginOutput=="object"},Zn=o=>Jn(o)||eo(o.instantWinResult)?!1:o?.transactions?.length===0,Ct=o=>{if(o.errorCode)return;const t=o?.pluginOutput?.transactionStatus==="PROCESSED",a=o?.pluginOutput?.applicableProducts?.length;t&&(!a||Zn(o))&&(o.pluginOutput.transactionStatus="INVALID_RECEIPT",o.pluginOutput.issueStatuses=["NO_APPLICABLE_PRODUCT"])},Xn=(o,t)=>typeof o=="object"&&typeof o.signedUrls=="object"&&typeof o.signedUrls[t]=="object"&&typeof o.signedUrls[t].signedURL=="str
2ing",Yn=o=>async(t,a,n,i)=>{const u={headers:Ot(t),payload:{fileNames:[n]},reCaptchaResponse:a},p=await(await Mt("POST","uploadImage",o,u)).json();if(!Xn(p,n))throw ve.log(p.message||"Upload Image API returned unknown response",{cause:p}),new Error(p.message||"Upload Image API unknown response",{cause:p});if(!(await fetch(p.signedUrls[n].signedURL,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:i})).ok)throw ve.log("Upload Image API failed",{data:p}),new Error("Upload Image API failed");return p},es=(o,t)=>{const a=async(n,i,r,l)=>{const u={...Ot(n),"x-receipt-list":to()},d={...o,configurationId:r},p=await Mt("GET","getParticipationsWithStatus",d,{headers:u,reCaptchaResponse:i,params:{limit:100}}),_=await p.json().catch(b=>{console.debug("Failed to parse JSON response:",b)});if(!p.ok)throw ve.log("Get My Receipts API failed",{data:_}),new Error("Get My Receipts API failed");return _.dataReceived.forEach(ts),_.dataReceived.forEach(b=>{b.promotionUrl=l}),_};return async(n,i)=>{const r=await Promise.allSettled(t.multipleConfigurationIds.map(async({configurationId:u,promotionPageUrl:d})=>{const p=await i();return a(n,p,u.trim(),d)}));if(r.every(u=>u.status==="rejected"))throw new Error("Get My Receipts API failed");const l=[];return r.forEach(u=>{u.status==="fulfilled"&&u.value.dataReceived&&l.push(...u.value.dataReceived)}),{dataReceived:l}}},ts=o=>{o.plugin_output&&(o.pluginOutput=o.plugin_output,o.plugin_output.issue_statuses&&(o.pluginOutput.issueStatuses=o.pluginOutput.issue_statuses),o.plugin_output.transaction_status&&(o.pluginOutput.transactionStatus=o.pluginOutput.transaction_status),o.plugin_output.applicable_products&&(o.pluginOutput.applicableProducts=o.pluginOutput.applicable_products)),Ct(o)},qt=o=>{const t=o;return typeof t=="object"&&typeof t.pluginOutput=="object"},as=o=>qt(o)&&o.pluginOutput.transactionStatus==="PROCESSED",os=o=>{const t=["PROCESSING","REVIEW"];return qt(o)&&t.includes(o.pluginOutput.transactionStatus)},ns=o=>qt(o)&&o.pluginOutput.transactionStatus==="INVALID_RECEIPT",ss=o=>async(t,a,n,i,r)=>{const l=Ot(t),p=await Mt("PATCH","review",o,{headers:l,payload:{explanation:r,reason:i},params:{participationId:n},reCaptchaResponse:a}),_=await p.json().catch(()=>null);if(!p.ok)throw ve.log("Request Manual Review API failed",{data:_,status:p.status}),new La(p.status,_?.errCode,_?.message);return _};class La extends Error{constructor(t,a,n){super(n||"Request Manual Review failed"),this.status=t,this.errCode=a}}const de=le("receiptScannerStore",()=>{const{getConfigData:o,getScannerLabels:t,getScannerPromoLabels:a}=D(),n=te(),i=Yn(o.ngpsConfig),{setInstantWinData:r}=je(),{setPrizeDrawData:l}=gt(),{setCollectAndGetData:u}=Ne(),{requestCloseDialog:d,requestOpenDialog:p,setDialogRef:_,isDialogVisible:b}=Fe({name:"receipt-scanner",priority:"auto"}),h=S({state:"INIT"}),k=S(null),f=()=>{N(),p()},w=()=>{h.value={state:"RECEIPT_MANUAL_REVIEW_FORM",participationId:k.value},p()},P=()=>{h.value={state:"RECEIPT_MANUAL_REVIEW_SUCCESS"}},N=()=>{h.value={state:"RECEIPT_UPLOAD"}},A=E(()=>h.value),R=E(()=>o.journey),z=async F=>{try{const H=F.name,Y=await is(F),X=await Be(),Z=await Re(o.reCaptchaSiteKey,"postUploadImage"),{signedUrls:Se}=await i(X,Z,H,Y);h.value={state:"RECEIPT_PROCESS",signedUrls:Se}}catch(H){V("promo_result","scan_error"),J(H)}},T=async()=>{const F=h.value.state==="RECEIPT_PROCESS"?h.value.signedUrls:{},H=await L({signedUrls:F}),Y=await H.json();Ct(Y),k.value=sa(Y),H.ok?as(Y)?(V("promo_participation"),ta("promo_result","success"),d(),await C(Y)):os(Y)?(ta("promo_result","come_back_later"),U()):ns(Y)?Q(Y):(V("promo_result","scan_error"),d(),await ce()):(V("promo_result","scan_error"),d(),await C(Y))},L=async F=>{const{journey:H,ngpsConfig:Y}=o,X=await Be(),Z=await Re(o.reCaptchaSiteKey,"postPromotion");switch(H){case"instant-win":return await at(X,Z,"instantWin",Y,F);case"prize-draw":return await at(X,Z,"promoEntry",Y,F);case"collect-and-get":return await at(X,Z,"redeemPincodeForCurrencies",Y,F);case"auto-collect-and-get":return await at(X,Z,"autoRedeemCnG",Y,F)}},C=async F=>{switch(o.journey){case"instant-win":{const H=va(F);r(H),await $(H);break}
2case"prize-draw":{const H=Ea(F);l(H),await W(H);break}case"collect-and-get":case"auto-collect-and-get":{const H=ha(F);u(H),await G(H);break}}},$=async F=>{switch(F.type){case"INSTANT_WIN_WIN":{V("promo_result","win",{promo_prize_id:F.data.instantWinResult.redeemedPrize.prizeId,promo_prize_name:F.data.instantWinResult.redeemedPrize.name,promo_prize_type:"non-currency"}),h.value={state:"PROMOTION_SUCCESS"},await n.push({name:"instant-win-success"});break}case"INSTANT_WIN_LOSE":{V("promo_result","lose"),h.value={state:"PROMOTION_LOSS"},await n.push({name:"promotion-loss"});break}case"INSTANT_WIN_REDEMPTION_LIMIT_REACHED":case"INSTANT_WIN_BLOCKED_USER":case"INSTANT_WIN_PARTICIPATION_LIMIT_REACHED":case"INSTANT_WIN_WINNING_LIMIT_REACHED":case"INSTANT_WIN_PROMOTION_NOT_ACTIVE":{V("promo_result","limit");const H={INSTANT_WIN_REDEMPTION_LIMIT_REACHED:a.redemptionLimitReachedDescription,INSTANT_WIN_BLOCKED_USER:a.promotionBlockedUserDescription,INSTANT_WIN_PARTICIPATION_LIMIT_REACHED:a.promotionLimitReachedDescription,INSTANT_WIN_WINNING_LIMIT_REACHED:a.redemptionLimitReachedDescription,INSTANT_WIN_PROMOTION_NOT_ACTIVE:a.promotionNotActiveDescription};h.value={state:"PROMOTION_ERROR",header:a.promotionErrorHeader,description:H[F.type],iconType:"badLuckIcon",addReceiptOption:!1},await n.push({name:"promotion-error"});break}case"INSTANT_WIN_INVALID_PARTICIPATION_ID":h.value={state:"PROMOTION_ERROR",header:a.promotionSystemErrorHeader,description:a.promotionInvalidParticipationIdDescription,iconType:"errorIcon",addReceiptOption:!0},await n.push({name:"promotion-error"});break;case"INSTANT_WIN_UNKNOWN_RESPONSE":{await ce();break}}},W=async F=>{switch(F.type){case"PRIZE_DRAW_SUCCESS":case"PRIZE_DRAW_NO_PIN_SUCCESS":{V("promo_result","success"),h.value={state:"PROMOTION_SUCCESS"},await n.push({name:"prize-draw-success"});break}case"PRIZE_DRAW_LIMIT_EXCEEDED":{V("promo_result","limit");const H={PRIZE_DRAW_LIMIT_EXCEEDED:a.promotionLimitReachedDescription};h.value={state:"PROMOTION_ERROR",header:a.promotionErrorHeader,description:H[F.type],iconType:"badLuckIcon",addReceiptOption:!1},await n.push({name:"promotion-error"});break}case"PRIZE_DRAW_INVALID_PARTICIPATION_ID":h.value={state:"PROMOTION_ERROR",header:a.promotionSystemErrorHeader,description:a.promotionInvalidParticipationIdDescription,iconType:"errorIcon",addReceiptOption:!0},await n.push({name:"promotion-error"});break;case"PRIZE_DRAW_UNKNOWN_RESPONSE":{await ce();break}}},G=async F=>{switch(F.type){case"COLLECT_AND_GET_SUCCESS":{V("promo_result","success"),h.value={state:"PROMOTION_SUCCESS"},await n.push({name:"collect-and-get-success"});break}case"COLLECT_AND_GET_AUTO_WIN":{V("promo_result","success"),h.value={state:"PROMOTION_SUCCESS"},await n.push({name:"collect-and-get-auto-win"});break}case"COLLECT_AND_GET_NO_MORE_PRIZES":case"COLLECT_AND_GET_ALREADY_REDEEMED":case"COLLECT_AND_GET_MAX_CURRENCY_LIMIT":case"COLLECT_AND_GET_REDEMPTION_LIMIT_EXCEEDED":{V("promo_result","limit");const H={COLLECT_AND_GET_NO_MORE_PRIZES:a.noMorePrizesDescription,COLLECT_AND_GET_ALREADY_REDEEMED:a.prizeAlreadyRedeemedDescription,COLLECT_AND_GET_MAX_CURRENCY_LIMIT:a.maxCurrencyLimitReachedDescription,COLLECT_AND_GET_REDEMPTION_LIMIT_EXCEEDED:a.redemptionLimitReachedDescription};h.value={state:"PROMOTION_ERROR",header:a.promotionErrorHeader,description:H[F.type],iconType:"badLuckIcon",addReceiptOption:!1},await n.push({name:"promotion-error"});break}case"COLLECT_AND_GET_NO_CURRENCY_AWARDED":h.value={state:"PROMOTION_ERROR",header:a.promotionErrorHeader,description:t.noApplicableProductIssue,iconType:"badLuckIcon",addReceiptOption:!0},await n.push({name:"promotion-error"});break;case"COLLECT_AND_GET_INVALID_PARTICIPATION_ID":h.value={state:"PROMOTION_ERROR",header:a.promotionSystemErrorHeader,description:a.promotionInvalidParticipationIdDescription,iconType:"errorIcon",addReceiptOption:!0},await n.push({name:"promotion-error"});break;case"COLLECT_AND_GET_UNKNOWN_RESPONSE":{h.value={state:"PROMOTION_ERROR",header:a.promotionSystemErrorHeader,description:a.promotionSystemErrorDescription,iconType:"errorIcon",addReceiptOption:!0},await n.push({name:"promotion-error"});break}}},U=()=>{h.value={state:"RECEIPT_RECEIVED"}},Q=F=>{V("promo_result","scan_error");const[H]=F.pluginOutput.issueStatuses||[],Y=Ve(t,H),X=t.receiptNotAcceptedDescription.replace("{{receipt_issue}}",`<span class="issue">${Y||""}</span>`||"");h.value={state:"RECEIPT_ERROR",header:t.receiptNotAcceptedHeader,description:X,tryAgainLabel:t.uploadAnotherButtonLabel,iconType:"badLuckIcon",showManualReviewButton:H!=="TOO_BIG_IMAGE"&&H!=="FILE_EXTENSION_NOT_SUPPORTED"}},J=F=>
2{if(ve.warn("Displaying receipt error",{cause:F}),ao(F.cause)){h.value={state:"RECEIPT_ERROR",header:a.promotionErrorHeader,description:a.promotionLimitReachedDescription,iconType:"errorIcon",showManualReviewButton:!1};return}h.value={state:"RECEIPT_ERROR",header:t.unexpectedErrorHeader,description:t.unexpectedErrorDescription,tryAgainLabel:t.tryAgainButtonLabel,iconType:"errorIcon",showManualReviewButton:!1}},ce=async()=>{h.value={state:"PROMOTION_ERROR",header:a.promotionSystemErrorHeader,description:a.promotionSystemErrorDescription,iconType:"errorIcon",addReceiptOption:!1},await n.push({name:"promotion-error"})},se=async F=>{h.value.state==="INIT"&&(h.value={state:"ENTER_PROMOTION",participationId:F},await n.push({name:"enter-promotion"}))},ze=async()=>{const F=h.value.state==="ENTER_PROMOTION"?h.value.participationId:"",H=await L({participationId:F});ft();const Y=await H.json();Ct(Y),k.value=sa(Y),await C(Y)},ft=()=>{const F=new URLSearchParams(window.location.search);F.delete("participationId"),window.history.replaceState({},"",`${window.location.pathname}?${F}`)};return{isDialogVisible:b,setDialogRef:_,openModal:f,showManualReviewForm:w,showManualReviewSuccess:P,closeModal:d,resetScanner:N,getScannerState:A,getPromoType:R,lastParticipationId:k,uploadReceipt:z,enrollPromotion:T,enterPromotion:se,reEnrollPromotion:ze}}),Ve=(o,t)=>({TOO_BIG_IMAGE:o.tooBigImageIssue,GRAPHIC_TAMPERING_FRAUD:o.graphicTamperingIssue,FILE_EXTENSION_NOT_SUPPORTED:o.fileNotSupportedIssue,DUPLICATE:o.duplicateIssue,NOT_A_PHOTO:o.notPhotoIssue,MISSING_REQUIRED_DATA_ON_DOCUMENT:o.missingRequiredDataIssue,INVALID_MERCHANT:o.invalidMerchantIssue,INVALID_DOCUMENT_DATE:o.invalidDocumentDateIssue,PRICE_SUM_FRAUD:o.priceSumFraudIssue,HANDWRITTEN_FRAUD:o.handwrittenFraudIssue,REJECT:o.rejectIssue,NO_APPLICABLE_PRODUCT:o.noApplicableProductIssue})[t],sa=o=>{if(typeof o!="object"||o===null)return null;const t=o,a=t.pluginOutput;return typeof a?.externalId=="string"?a.externalId:typeof t.participationId=="string"?t.participationId:null},is=o=>new Promise((t,a)=>{const n=new FileReader;try{n.readAsArrayBuffer(o),n.onload=()=>t(n.result),n.onerror=i=>a(i)}catch(i){a(i)}}),rs={class:"enter-promotion"},ls={key:0,class:"enter-promotion__heading"},cs={key:1,class:"enter-promotion__description"},us=x({__name:"EnterPromotionView",setup(o){const t=ut(),{getScannerLabels:a}=D(),{enterPromotionHeader:n,enterPromotionDescription:i}=D().getLabels,r=a?.enterPromotionHeader||n,l=a?.enterPromotionDescription||i,{reEnrollPromotion:u}=de(),d=Je(),p=t.fullPath.includes("receipt-scanner")?u:d;return j(async()=>await p()),(_,b)=>(s(),c("div",rs,[I(Pe,{class:"enter-promotion__loader"}),e(r)?(s(),c("h3",ls,g(e(r)),1)):m("",!0),e(l)?(s(),c("p",cs,g(e(l)),1)):m("",!0),I(he)]))}}),Ze=M(us,[["__scopeId","data-v-22843699"]]),ps={key:0,class:"enter-code__image-heading"},ds={class:"enter-code__image-description"},ms={key:0},_s={key:1},hs={key:2},gs=x({__name:"EnterImage",setup(o){const t=D(),{isImageUploadRequired:a}=t.getJourneyData,{allowedFileExtensions:n}=t.getConfigData,{imageUploaded:i,imageUploadStatus:r}=B(ne()),l=S(null),u=S(!1),d=S(!0),p=E(()=>r.value==="upload"?t.getUploadLabels:r.value==="success"?t.getUploadSuccessLabels:t.getUploadFailureLabels),_=f=>{const w=f.name.split(".").length>2;return n.some(N=>f.name.endsWith(`.${N}`))&&!w},b=f=>new Promise((w,P)=>{const N=new FileReader;try{N.readAsDataURL(f),N.onload=()=>w(N.result),N.onerror=A=>P(A)}catch(A){P(A)}}),h=()=>{l.value.click()},k=async f=>{try{const w=f.target.files[0];u.value=w.size>45e5,d.value=_(w),i.value=await b(w),r.value=d.value&&!u.value?"success":"failure"}catch{r.value="failure"}};return(f,w)=>e(a)?(s(),c("div",{key:0,class:K(`enter-code__image image-${e(r)}`)},[w[0]||(w[0]=y("span",{class:"enter-code__image-icon"},null,-1)),p.value.uploadHeading?(s(),c("p",ps,g(p.value.uploadHeading),1)):m("",!0),y("p",ds,[u.value&&p.value.uploadSizeLimitDescription?(s(),c("span",ms,g(p.value.uploadSizeLimitDescription),1)):!d.value&&p.value.uploadExtensionNotSupported?(s(),c("span",_s,g(p.value.uploadExtensionNotSupported),1)):p.value.uploadDescription?(s(),c("span",hs,g(p.value.uploadDescription),1)):m("",!0)]),y("input",{ref_key:"imageUploadInput",ref:l,name:"image-upload",class:"enter-code__image-file",type:"file",required:"",onCh
2ange:k},null,544),e(r)!=="success"&&p.value.uploadButton?(s(),c("button",{key:1,class:"button--secondary-black enter-code__image-button",onClick:h},g(p.value.uploadButton),1)):m("",!0)],2)):m("",!0)}}),bs=M(gs,[["__scopeId","data-v-f90961ad"]]),ys=["id","onUpdate:modelValue","placeholder","onInput","onKeyup"],ks=["aria-label","onClick"],fs=5,vs=1,Ra=x({__name:"EnterPinCode",props:{submitPromotion:{type:Function}},setup(o){const t=o,a=D(),{isPinJourney:n}=a.getJourneyData,{pinInputPlaceholder:i,addAnotherPinCodeLabel:r,removeInputLabel:l}=a.getLabels,{enableMultiplePinCodes:u}=a.getConfigData,{pinCodes:d,isPinCodeValid:p,pinCodeError:_,submitDisabled:b}=B(ne()),h=u?fs:vs,k=S([]);Da(k),Je()();const f=()=>{p.value=!0},w=z=>{d.value[z].pinCode=d.value[z].pinCode.trim()},P=()=>{b.value||t.submitPromotion()},N=()=>{d.value.push({pinCode:"",fieldId:crypto.randomUUID()}),R("add")},A=z=>{d.value.splice(z,1),R("remove",z)},R=async(z,T)=>{await Le();let L;const{length:C}=d.value;z==="add"?L=d.value[C-1].fieldId:L=d.value[C===1||T===C?T-1:T].fieldId,k.value.find(W=>W.id===L)?.focus()};return(z,T)=>e(n)?(s(),c(q,{key:0},[(s(!0),c(q,null,pe(e(d),(L,C)=>(s(),c("div",{key:C,class:"enter-code__row"},[y("div",{class:K(["enter-code__input-wrapper",{"enter-code__input-wrapper--invalid-code":!e(p)}])},[fe(y("input",{id:L.fieldId,ref_for:!0,ref_key:"pinCodeInputRefs",ref:k,"onUpdate:modelValue":$=>L.pinCode=$,name:"enter-code",class:"enter-code__input",type:"text",placeholder:e(i),autocomplete:"off",required:"",onFocus:f,onInput:$=>w(C),onKeyup:St(rt(P,["prevent"]),["enter"])},null,40,ys),[[Tt,L.pinCode]]),fe(y("div",{class:"enter-code__input-error-msg"},g(e(_)),513),[[Nt,!e(p)&&e(_)]])],2),C!==0?(s(),c("button",{key:0,class:"button--secondary-black enter-code__remove-input-button","aria-label":e(l),onClick:$=>A(C)},null,8,ks)):m("",!0)]))),128)),e(d).length<e(h)&&e(r)?(s(),c("button",{key:0,class:"enter-code__add-input-button",onClick:N},g(e(r)),1)):m("",!0)],64)):m("",!0)}}),Es={key:0},Is=["for"],xs=["id","onUpdate:modelValue","maxlength"],ws=["onUpdate:modelValue"],Ps=["value"],Ss=x({__name:"EnterUserInputs",setup(o){const t=D(),{isUserInputRequired:a}=t.getJourneyData,{userInputs:n}=t.getConfigData,i=ne(),{userInputsValues:r,isUserInputValid:l,userInputError:u,userInputMaxLength:d,submitDisabled:p}=B(i),{submitPromotion:_}=Ke(),b=()=>{l.value=!0};return j(()=>{n&&bo(n,r)}),(h,k)=>e(a)?(s(),c("div",Es,[(s(!0),c(q,null,pe(e(n),(f,w)=>(s(),c("div",{key:f.label,class:"user-input"},[y("label",{for:`userInput-${f.label}-${w}`,class:"input__label"},g(f.label),9,Is),y("div",{class:K(["enter-code__input-wrapper",{"enter-code__input-wrapper--invalid-code":!e(l),"enter-code__input-wrapper-select":f.allowedValues}])},[f.allowedValues?f.allowedValues?fe((s(),c("select",{key:1,"onUpdate:modelValue":P=>e(r)[w]=P,name:"user-message",class:"enter-code__input enter-code__input-select",autocomplete:"off",required:"",onFocus:b,onKeyup:k[1]||(k[1]=St(rt(P=>e(p)?{}:e(_)(),["prevent"]),["enter"]))},[(s(!0),c(q,null,pe(e(ka)(f.allowedValues),P=>(s(),c("option",{key:P.value,value:P.value},g(P.label),9,Ps))),128))],40,ws)),[[pa,e(r)[w]]]):m("",!0):fe((s(),c("input",{key:0,id:`userInput-${f.label}-${w}`,"onUpdate:modelValue":P=>e(r)[w]=P,name:"user-message",class:"enter-code__input",type:"text",autocomplete:"off",required:"",maxlength:e(d),onFocus:b,onKeyup:k[0]||(k[0]=St(rt(P=>e(p)?{}:e(_)(),["prevent"]),["enter"]))},null,40,xs)),[[Tt,e(r)[w]]])],2),e(u)?fe((s(),c("div",{key:0,class:"enter-code__input-error-msg"},g(e(u)),513)),[[Nt,!e(l)]]):m("",!0)]))),128))])):m("",!0)}}),Ds=M(Ss,[["__scopeId","data-v-1363bea4"]]),Ls={class:"enter-code"},Rs=["disabled"],Cs=x({__name:"EnterCodeForm",setup(o){const{enterPinSubmitButton:t}=D().getLabels,{requestPending:a,submitDisabled:n}=B(ne()),{submitPromotion:i}=Ke();return(r,l)=>(s(),c("div",Ls,[I(Ra,{"submit-promotion":e(i)},null,8,["submit-promotion"]),I(Ds),I(bs),e(t)?(s(),c("button",{key:0,class:K(["button--primary enter-code__button",{loading:e(a)}]),disabled:e(n),onClick:l[0]||(l[0]=(...u)=>e(i)&&e(i)(...u))},g(e(t)),11,Rs)):m("",!0)]))}}),Ft=x({__name:"EnterCodeView",setup(o){const{enterPinHeader:t}=D().getLabels;return(a,n)=>(s(),v(ae,{title:e(t)},{default:O(()=>[I(Cs)]),_:1},8,["title"]))}}),As=()=>{const o=$e(),t=E(()=>{const n=o.socialShareConfig;if(!n)return"";let i=n.postMessage;
2return o.userAnswers.forEach((r,l)=>{const u=`{{answer${l+1}}}`;i=i.replaceAll(u,r)}),i=i.replace(/\{\{answer\d+\}\}/g,""),i.trim()});return{processedShareMessage:t,shareContent:async(n,i)=>{const r=t.value;if(!r)return;const l={title:n,text:r,url:i};try{await navigator.share(l)}catch(u){u instanceof Error&&u.name!=="AbortError"&&console.error("Share failed:",u)}}}},Ts=["disabled"],Ee=x({__name:"SocialShareButton",setup(o){const t=$e(),{shareContent:a}=As(),{displaySocialShareButton:n,shareButtonLabel:i,postTitle:r="",postUrl:l=""}=t.socialShareConfig||{},u=S(!1),d=E(()=>!!navigator?.share&&n&&!!i),p=async()=>{u.value||(u.value=!0,await a(r,l),u.value=!1)};return(_,b)=>d.value?(s(),c("button",{key:0,class:"button-secondary social-share-button",disabled:u.value,onClick:p},g(e(i)),9,Ts)):m("",!0)}}),ee=()=>{const t=D().globalConfigData.progressiveProfile;return{openProgressiveProfile:async()=>{const n=oo(t);if(!n||!n.progressiveProfileEnabled)return;const{openProgressiveProfile:r}=await zt(async()=>{const{openProgressiveProfile:l}=await import("./progressiveProfile.js");return{openProgressiveProfile:l}},__vite__mapDeps([3,4,5,1,2,6,7,8,9,10,11,12]),import.meta.url);r(n)}}},Ns=["href"],$s=["href"],zs=["href","target"],Ms=x({__name:"PointsResultView",setup(o){const t=D(),{urls:a,enableEngagementPoints:n,ngpsConfig:i}=t.getConfigData,{pointsEarnedHeaderLabel:r,pointsEarnedMsgLabel:l,browseCatalogLabel:u,redeemNewPinLabel:d,customCtaLabel:p}=t.getLabels,{prizeCatalogCtaLabel:_}=t?.getQuizLabels||{},b=_||u,{openProgressiveProfile:h}=ee(),k=Ne(),{getAllEarnedPoints:f,collectAndGetData:w}=B(k),P=E(()=>r?.replace("#EARNED_POINTS#",`${f.value}`)),N=E(()=>l?.replace("#EARNED_POINTS#",`${f.value}`)),A=E(()=>fa(a.customCtaUrl)),R=E(()=>{const T=w.value.type==="COLLECT_AND_GET_SUCCESS"?w.value.data:void 0;return{promotionMechanic:"collect_and_get",participationId:T?.participationId,currencyId:T?.transactions?.[0]?.currencyId}}),z=S(null);return j(async()=>{await z.value?.openEngagementModal(),h()}),(T,L)=>(s(),c(q,null,[e(n)?(s(),v(fo,{key:0,ref_key:"engagementModalRef",ref:z,"participation-options":R.value,"ngps-config":e(i)},null,8,["participation-options","ngps-config"])):m("",!0),I(ae,{title:P.value,description:N.value},{default:O(()=>
2[e(b)?(s(),c("a",{key:0,href:e(a).prizeCatalog,class:"button--primary"},g(e(b)),9,Ns)):m("",!0),e(d)&&e(a)?.redeemNewPinUrl?(s(),c("a",{key:1,href:e(a)?.redeemNewPinUrl,class:"button--secondary-black"},g(e(d)),9,$s)):e(d)?(s(),v(Ue,{key:2,to:{name:"collect-and-get-enter-code"},class:"button--secondary-black",label:e(d)},null,8,["label"])):m("",!0),e(p)?(s(),c("a",{key:3,href:e(a).customCtaUrl,class:K(`button--secondary-black${A.value?" button--external":""}`),target:A.value?"_blank":"_self"},g(e(p)),11,zs)):m("",!0),I(Ee,{class:"promo-result__social-share"})]),_:1},8,["title","description"])],64))}}),Os={key:0,class:"promo-next-steps"},Bs=["href","target"],Us=x({__name:"PromoNextSteps",props:{tryAgainLabel:{},onTryAgain:{type:Function},customAction:{type:Function},customActionLabel:{}},setup(o){const t=D(),a=t.getConfigData,n=a.urls?.customCtaUrl,i=a.labels?.customCtaLabel,{journey:r}=t.getConfigData,{isPinJourney:l,isQuiz:u}=t.getJourneyData,d=o,p=()=>l?`${r}-enter-code`:`${r}-no-pin`,_=E(()=>d.tryAgainLabel||d.customActionLabel||i),b=E(()=>fa(n));return(h,k)=>_.value?(s(),c("div",Os,[!e(u)&&h.tryAgainLabel?(s(),v(Ue,{key:0,to:{name:p()},class:"button-primary try-again-button",label:h.tryAgainLabel,onClick:h.onTryAgain},null,8,["to","label","onClick"])):h.customAction&&h.customActionLabel?(s(),v(Ue,{key:1,class:"button-primary try-again-button",label:h.customActionLabel,onClick:h.customAction},null,8,["label","onClick"])):m("",!0),e(i)?(s(),c("a",{key:2,href:e(n),class:K(`button-secondary custom-cta${b.value?" button--external":""}`),target:b.value?"_blank":"_self"},g(e(i)),11,Bs)):m("",!0)])):m("",!0)}}),ie=M(Us,[["__scopeId","data-v-3d7d72ee"]]),Ie=le("prizeStore",()=>{const o=S(null),t=S(null),a=r=>{o.value=r;const{name:l,voucherCode:u,prizeId:d,brandTag:p}=r;n({name:l,voucherCode:u,prizeId:d,brandTag:p})},n=r=>{t.value=r},i=E(()=>[t.value.name,t.value.voucherCode,t.value.prizeId].every(Boolean));return{card:o,walletCard:t,updateCard:a,updateWalletCard:n,walletCardValid:i}}),Ht=()=>{const o=Ie(),n=ct(xe).createPromoResult().getPromoResultData(),i=Ca(n);return o.updateWalletCard({name:i.prizeName,voucherCode:i.voucherCode,prizeId:i.prizeId}),i.walletAvailable=o.walletCardValid,{...i}},Ca=o=>({prizeName:o?.name?no(o.name):"",prizeId:o?.prizeId||"",voucherCode:o?.voucherCode||"",image:(Array.isArray(o?.imgUrl)?o?.imgUrl[0]:o?.imgUrl)||"",barCode:o?.barcodeUrl||"",redemptionLink:o?.redemptionLink||"",expiryDate:o?.expiryDate?lt(o.expiryDate):"",shortDescription:o?.shortDescription||"",redeemDescription:o?.redeemDescription||"",isInterruptedFlow:Do({status:o?.status||""}),useIcon:o?.useIcon||!1,walletAvailable:!1,doublePrize:o?.doublePrize&&Ca(o.doublePrize)}),Vs={key:0,class:"promo-result__image"},Gs={key:0},Ws=["src","alt"],qs=x({__name:"PromoResultImage",props:{prizeName:{},image:{},useIcon:{type:Boolean}},setup(o){const t=o,a=!!(t.useIcon||t.image);return(n,i)=>a?(s(),c("div",Vs,[n.useIcon?(s(),c("span",Gs)):(s(),c("img",{key:1,src:n.image,alt:n.prizeName},null,8,Ws))])):m("",!0)}}),Aa=M(qs,[["__scopeId","data-v-dd26dcfc"]]),Fs={key:0,class:"promo-result__barcode"},Hs=["src","alt"],js=x({__name:"PromoResultBarcode",props:{prizeName:{},barcode:{},interruptedFlow:{type:Boolean}},setup(o){return(t,a)=>!t.interruptedFlow&&t.barcode?(s(),c("div",Fs,[y("img",{src:t.barcode,alt:t.prizeName},null,8,Hs)])):m("",!0)}}),Qs=M(js,[["__scopeId","data-v-158ebcf6"]]),Ks={class:"promo-result"},Js={key:0,class:"promo-result__prize-name"},Zs={key:1,class:"promo-result__expiration"},Xs={key:2,class:"promo-result__voucher"},Ys=["innerHTML"],ei=["href"],ti=x({__name:"PromoResult",setup(o){const{expiresLabel:t,voucherCodeLabel:a,resultClaimPrizeLabel:n}=D().getLabels,{prizeName:i,prizeId:r,expiryDate:l,image:u,barCode:d,redeemDescription:p,redemptionLink:_,shortDescription:b,useIcon:h,voucherCode:k,isInterruptedFlow:f,walletAvailable:w}=Ht(),P=Ie(),{walletCard:N}=B(P);return(A,R)=>(s(),c("div",Ks,[I(Aa,{"prize-name":e(i),image:e(u),"use-icon":e(h)},null,8,["prize-name","image","use-icon"]),I(Qs,{"prize-name":e(i),barcode:e(d),"interrupted-flow":e(f)},null,8,["prize-name","barcode","interrupted-flow"]),e(i)?(s(),c("h3",Js,g(e(i)),1)):m("",!0),!e(f)&&e(t)&&e(l)?(s(),c("p",Zs,g(`${e(t)} ${e(l)}`),1)):m("",!0),!e(f)&&e(a)&&e(k)?(s(),c("p",Xs,g(`${e(a)} ${e(k)}`),1)):m("",!0),e(b)?(s(),c("div",{key:3,class:"promo-result__description",innerHTML:e(b)},null,8,Ys)):m("",!0),e(p)?(s(),v(Ge,{key:4,"redeem-description":e(p),"instructions-on-top":""},null,8,["redeem-description"])):m("",!0),!e(f)&&e(_)&&e(n)?(s(),c("a",{key:5,href:e(_),target:"_blank",class:"promo-result__claim button--primary button--external"},g(e(n)),9,ei)):m("",!0),!e(f)&&e(k)?(s(),v(pt,{key:6,"copy-content":e(k),"prize-id":e(r)},null,8,["copy-content","prize-id"])):m("",!0),e(w)?(s(),v(Ce,{key:7,"wallet-type":"google","wallet-card":e(N),show:""},null,8,["wallet-card"])):m("",!0),e(w)?(s(),v(Ce,{key:8,"wallet-type":"apple","wallet-card":e(N),show:""},null,8,["wallet-card"])):m("",!0),oe(A.$slots,"default",{},void 0,!0)]))}}),jt=M(ti,[["__scopeId","data-v-41f6c952"]]),ai=x({__name:"PrizeResultView",setup(o){const{resultWinnerHeader:t,winTryAgainLabel:a}=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>(s(),v(ae,{title:e(t)},{default:O(()=>[I(jt,null,{default:O(()=>[I(ie,{"try-again-label":e(a)},null,8,["try-again-label"]),I(Ee,{class:"promo-result__social-share"})]),_:1})]),_:1},8,["title"]))}}),It={winning:["INSTANT_WIN_WIN","COLLECT_AND_GET_AUTO_WIN","COLLECT_AND_GET_SUCCESS","PRIZE_DRAW_SUCCESS"],unsuccessful:["INSTANT_WIN_LOSE","INSTANT_WIN_PARTICIPATION_LIMIT_REACHED","INSTANT_WIN_REDEMPTION_LIMIT_REACHED","INSTANT_WIN_PIN_REDEMPTION_LIMIT","INSTANT_WIN_WINNING_LIMIT_REACHED","COLLECT_AND_GET_PARTICIPATION_LIMIT_EXCEEDED","COLLECT_AND_GET_PIN_REDEMPTION_LIMIT","COLLECT_AND_GET_NO_MORE_PRIZES","COLLECT_AND_GET_REDEMPTION_LIMIT_EXCEEDED","PRIZE_DRAW_LIMIT_EXCEEDED","PRIZE_DRAW_PIN_REDEMPTION_LIMIT"],error:["INSTANT_WIN_ALREADY_REDEEMED","INSTANT_WIN_PINCODE_EXPIRED","INSTANT_WIN_INVALID_INPUT","INSTANT_WIN_BLOCKED_USER","INSTANT_WIN_PROMOTION_NOT_ACTIVE","INSTANT_WIN_NOT_ENOUGH_CURRENCY","COLLECT_AND_GET_ALREADY_REDEEMED","COLLECT_AND_GET_PINCODE_EXPIRED","COLLECT_AND_GET_INVALID_INPUT","PRIZE_DRAW_ALREADY_REDEEMED","PRIZE_DRAW_PINCODE_EXPIRED","PRIZE_DRAW_INVALID_INPUT"]},oi={class:"multiple-promo-layout"},ni={key:0,class:"promo-layout__content-wrapper"},si={class:"promo-layout__view"},ii={key:1,class:"promo-layout__content-wrapper"},ri={class:"promo-layout__view"},li={key:2,class:"promo-layout__content-wrapper"},ci={class:"promo-layout__view"},ui=x({__name:"MultipleLayout",props:{showNextSteps:{type:Boolean}},setup(o){const{winTryAgainLabel:t}=D().getLabels;return(a,n)=>(s(),c("div",oi,[a.$slots["additional-1"]?(s(),c("div",ni,[y("div",si,[oe(a.$slots,"additional-1",{},void 0,!0)])])):m("",!0),a.$slots["additional-2"]?(s(),c("div",ii,[y("div",ri,[oe(a.$slots,"additional-2",{},void 0,!0)])])):m("",!0),a.$slots["additional-3"]?(s(),c("div",li,[y("div",ci,[oe(a.$slots,"additional-3",{},void 0,!0)])])):m("",!0),a.showNextSteps?(s(),v(ie,{key:3,"try-again-label":e(t)},null,8,["try-again-label"])):m("",!0),I(Ee,{class:"promo-result__social-share"}),I(he,{"is-outside-wrapper":""})]))}}),Ta=M(ui,[["__scopeId","data-v-59ae816e"]]),pi={class:"prize-content__header"},di={key:0,class:"prize-content__image cmp-adaptive-image cmp-image"},mi={class:"visible loaded"},_i=["src","alt"],hi={class:"prize-content__content"},gi=x({__name:"PrizeContent",props:{image:{},isPrizeCode:{type:Boolean},alt:{}},setup(o){return(t,a)=>(s(),c(q,null,[y("div",pi,[oe(t.$slots,"header",{},void 0,!0)]),t.image?(s(),c("div",di,[y("picture",mi,[y("img",{src:t.image,class:K(`cmp-image__image ${t.isPrizeCode?"prize-code":""}`),alt:t.alt},null,10,_i)])])):m("",!0),y("div",hi,[oe(t.$slots,"content",{},void 0,!0)])],64))}}),bi=M(gi,[["__scopeId","data-v-2d3bbdb0"]]),yi={class:"prize-details__name"},ki={key:0,class:"prize-details__expire"},fi={key:1,class:"prize-details__voucher"},vi=["innerHTML"],Ei=x({__name:"SuccessPrizeContent",setup(o){const t=Ie(),{card:a,walletCard:n}=B(t),{expiresLabel:i,voucherCodeLabel:r,redeemPrizeLabel:l}=D().getLabels,u=E(()=>a.value?.expiryDate?lt(a.value.expiryDate):"");return(d,p)=>(s(),c(q,null,[y("h2",yi,g(e(a).name),1),u.value?(s(),c("p",ki,g(`${e(i)} ${u.value}`),1)):m("",!0),e(r)&&e(a).voucherCode?(s(),c("p",fi,g(`${e(r)} ${e(a).voucherCode}`),1)):m("",!0),e(a).description?(s(),c("div",{key:2,class:"prize-details__description",innerHTML:e(a).description},null,8,vi)):m("",!0),e(a).redeemDescription?(s(),v(Ge,{key:3,"redeem-description":e(a).redeemDescription},null,8,["redeem-description"])):m("",!0),I(ya,{class:"prize-main-action",link:e(a).redemptionLink,label:e(l),"prize-id":e(a).prizeId},null,8,["link","label","prize-id"]),e(a).voucherCode?(s(),v(pt,{key:4,"prize-id":e(a).prizeId,"copy-content":e(a).voucherCode,"display-on-top":""},null,8,["prize-id","copy-content"])):m("",!0),I(Ce,{"wallet-type":"google","wallet-card":e(n),show:""},null,8,["wallet-card"]),I(Ce,{"wallet-type":"apple","wallet-card":e(n),show:""},null,8,["wallet-card"]),I(he)],64))}}),Ii=M(Ei,[["__scopeId","data-v-b6e0a9e3"]]),xi={key:0,class:"prize-details__title"},wi={key:1,class:"prize-details__username"},Pi=x({__name:"PrizeCardModal",props:{closeModal:{type:Function},modalVisible:{type:Boolean}},setup(o){const{getConfigData:t,getJourneyData:a,getLabels:n}=D(),{getUserFullName:i}=B(Wt()),{card:r}=B(Ie()),l=E(()=>r.value?.cardType==="prize"),u=E(()=>l.value&&a.isInstantWin?r.value?.name:r.value?.detailsTitle),d=E(()=>l.value&&a.isInstantWin),p=E(()=>r.value.prizeCost?.map(_=>({id:_.currencyId,amount:_.amount.toString(),label:_.name,imgUrl:_.currencyIcon}))||[]);return(_,b)=>(s(),v(wa,{clazz:"prize-details","modal-visible":_.modalVisible,"close-modal":_.closeModal,"close-modal-label":e(n).closeRewardModalLabel,"show-secondary-close":d.value,"secondary-close-modal-label":e(n).closeRewardModalLabel,"inverse-top":""},{default:O(()=>[I(bi,{image:e(r).barcodeUrl||e(r).image,alt:e(r).name,"is-prize-code":!!e(r).barcodeUrl},{header:O(()=>[u.value?(s(),c("h3",xi,g(u.value),1)):m("",!0),e(i)&&e(t)?.enableUserDetailsOnVoucher?(s(),c("h4",wi,g(e(i)),1)):m("",!0),I(Bt,{"required-currencies":p.value},null,8,["required-currencies"])]),content:O(()=>[I(Ii)]),_:1},8,["image","alt","is-prize-code"])]),_:1},8,["modal-visible","close-modal","close-modal-label","show-secondary-close","secondary-close-modal-label"]))}}
2),Qt=M(Pi,[["__scopeId","data-v-41bc60fb"]]),Si={class:"entries__item-image"},Di=["src","alt"],Li={class:"entries__item-content"},Ri={key:0,class:"entries__item-title"},Ci={key:1,class:"entries__item-subtitle"},Ai=["innerHTML"],Ti={key:3,class:"entries__item-content-cta"},Ni={key:0,class:"entries__item-additional-content"},$i={key:1,class:"entries__item-cta"},zi=x({__name:"GeneralEntry",props:{entryType:{},imgUrl:{},imgAltText:{},title:{},subtitle:{},description:{}},setup(o){const t=o,a=t.entryType==="error"||t.entryType==="unsuccessful";return(n,i)=>(s(),c("div",{class:K(["entries__item",`entries__item--${t.entryType}`])},[y("div",Si,[e(a)?(s(),v(re,{key:0,"icon-path":t.imgUrl},null,8,["icon-path"])):(s(),c("img",{key:1,src:t.imgUrl,alt:t.imgAltText},null,8,Di))]),y("div",Li,[t.title?(s(),c("h4",Ri,g(t.title),1)):m("",!0),t.subtitle?(s(),c("p",Ci,g(t.subtitle),1)):m("",!0),t.description?(s(),c("div",{key:2,class:"entries__item-description",innerHTML:t.description},null,8,Ai)):m("",!0),n.$slots["content-cta"]?(s(),c("div",Ti,[oe(n.$slots,"content-cta",{},void 0,!0)])):m("",!0)]),n.$slots["additional-content"]?(s(),c("div",Ni,[oe(n.$slots,"additional-content",{},void 0,!0)])):m("",!0),n.$slots.cta?(s(),c("div",$i,[oe(n.$slots,"cta",{},void 0,!0)])):m("",!0)],2))}}),Te=M(zi,[["__scopeId","data-v-217f4ca1"]]),Mi={key:0,class:"entries__item-additional-description"},Oi=["href"],Bi=x({__name:"CollectAndGetWinningEntry",props:{scores:{},pinCode:{}},setup(o){const t=o,a=D(),{currencies:n,errorOccurred:i}=Vt(),r=Ie(),l=a.getLabels,{thumbUpIcon:u,urls:d}=a.getConfigData,p=E(()=>"wonPrizes"in t.scores),_=E(()=>p.value?t.scores.wonPrizes[0].redeemedPrize:void 0),b=E(()=>n.value?n.value.find(R=>R.currencyId===t.scores.allocationArray[0].currencyId):void 0),h=E(()=>l.pointsEarnedHeaderLabel?.replace("#EARNED_POINTS#",Rt(t.scores))),k=E(()=>l.pointsEarnedMsgLabel?.replace("#EARNED_POINTS#",Rt(t.scores))),f=E(()=>p.value?xa(_.value,l.redemptionModalTitle):void 0),{modalVisible:w,requestCloseModal:P,requestOpenModal:N}=Gt({name:"prize-details",priority:"manual"}),A=()=>{r.updateCard(f.value),N()};return(R,z)=>(s(),c(q,null,[p.value?(s(),v(Qt,{key:0,"modal-visible":e(w),"close-modal":e(P)},null,8,["modal-visible","close-modal"])):m("",!0),p.value?(s(),v(Te,{key:1,"entry-type":"winning",class:"entries__item--with-prize-image","img-url":_.value.imgUrl,"img-alt-text":_.value.name,title:_.value.name,subtitle:t.pinCode,description:_.value.shortDe
2scription||void 0},{"content-cta":O(()=>[e(l).redeemYourPrizeLabel?(s(),c("button",{key:0,class:"button--secondary-black entries__item-redeem-button",onClick:A},g(e(l).redeemYourPrizeLabel),1)):m("",!0)]),_:1},8,["img-url","img-alt-text","title","subtitle","description"])):e(n)||e(i)?(s(),v(Te,{key:2,"entry-type":"winning","img-url":b.value?.currencyIcon||e(u),"img-alt-text":b.value?.currencyName||"",title:h.value,subtitle:t.pinCode},{"additional-content":O(()=>[k.value?(s(),c("p",Mi,g(k.value),1)):m("",!0)]),cta:O(()=>[e(l).browseCatalogLabel?(s(),c("a",{key:0,class:"button--secondary-black",target:"_blank",href:e(d).prizeCatalog},g(e(l).browseCatalogLabel),9,Oi)):m("",!0)]),_:1},8,["img-url","img-alt-text","title","subtitle"])):m("",!0)],64))}}),Ui=x({__name:"InstantWinWinningEntry",props:{pinCode:{},entryData:{}},setup(o){const t=o,a=E(()=>t.entryData.instantWinResult.redeemedPrize).value,{redemptionModalTitle:n,redeemYourPrizeLabel:i}=D().getLabels,r=Ie(),l=E(()=>xa(a,n)).value,{modalVisible:u,requestCloseModal:d,requestOpenModal:p}=Gt({name:"prize-details",priority:"manual"}),_=()=>{r.updateCard(l),p()};return(b,h)=>(s(),c(q,null,[I(Qt,{"modal-visible":e(u),"close-modal":e(d)},null,8,["modal-visible","close-modal"]),I(Te,{"entry-type":"winning",class:"entries__item--with-prize-image","img-url":e(a).imgUrl,"img-alt-text":e(a).name,title:e(a).name,subtitle:t.pinCode,description:e(a
2).shortDescription||void 0},{"content-cta":O(()=>[e(i)?(s(),c("button",{key:0,class:"button--secondary-black entries__item-redeem-button",onClick:_},g(e(i)),1)):m("",!0)]),_:1},8,["img-url","img-alt-text","title","subtitle","description"])],64))}}),Vi=x({__name:"LosingEntry",props:{entryType:{},iconPath:{},iconAltText:{},pinCode:{},description:{}},setup(o){const t=o;return(a,n)=>(s(),v(Te,{"entry-type":t.entryType,"img-url":t.iconPath,"img-alt-text":t.iconAltText,title:t.pinCode,description:t.description},null,8,["entry-type","img-url","img-alt-text","title","description"]))}}),Gi=x({__name:"PrizeDrawWinningEntry",setup(o){const t=D(),{thumbUpIcon:a}=t.getConfigData,n=t.getLabels,i=n.resultHeader?.replaceAll("\u2028","");return(r,l)=>(s(),v(Te,{"entry-type":"winning","img-url":e(a),"img-alt-text":e(n).thumbUpIconAltText,title:e(i),description:e(n).resultMessage},{"additional-content":O(()=>[I(Ge,{"redeem-description":e(n).resultDescription,"instructions-on-top":""},null,8,["redeem-description"])]),_:1},8,["img-url","img-alt-text","title","description"]))}}),Wi=x({__name:"MultipleResultsEntry",props:{type:{},entry:{},iconPath:{},altText:{}},setup(o){const t=o,a=D(),n=E(()=>t.type==="winning").value,i=E(()=>n?t.entry.data:void 0).value,{isInstantWin:r,isPrizeDraw:l,isCollectAndGet:u}=a.getJourneyData;return(d,p)=>t.type!=="winning"?(s(),v(Vi,{key:0,"entry-type":t.type,"icon-path":t.iconPath,"icon-alt-text":t.altText,"pin-code":t.entry.pinCode,description:t.entry.description},null,8,["entry-type","icon-path","icon-alt-text","pin-code","description"])):e(r)?(s(),v(Ui,{key:1,"pin-code":t.entry.pinCode,"entry-data":e(i)},null,8,["pin-code","entry-data"])):e(l)?(s(),v(Gi,{key:2})):e(u)?(s(),v(Bi,{key:3,"pin-code":t.entry.pinCode,scores:e(i)},null,8,["pin-code","scores"])):m("",!0)}}),qi={key:0,class:"entries__heading"},Fi={class:"entries__list"},Hi=x({__name:"MultipleResultsList",props:{type:{},entries:{}},setup(o){const t=o,a=D(),{unsuccessfulEntryIcon:n,errorEntryIcon:i}=a.getConfigData,{winningEntriesLabel:r,unsuccessfulEntriesLabel:l,errorEntriesLabel:u,unsmilingIconAltText:d,alertIconAltText:p}=a.getLabels,_=E(()=>{switch(t.type){case"winning":return{label:r,iconPath:void 0,altText:void 0};case"unsuccessful":return{label:l,iconPath:n,altText:d};case"error":default:return{label:u,iconPath:i,altText:p}}});return(b,h)=>(s(),c("section",{class:K(["entries",`entries--${t.type}`])},[_.value.label?(s(),c("h2",qi,g(_.value.label),1)):m("",!0),y("div",Fi,[(s(!0),c(q,null,pe(t.entries,(k,f)=>(s(),v(Wi,{key:f,type:t.type,entry:k,"icon-path":_.value.iconPath,"alt-text":_.value.altText},null,8,["type","entry","icon-path","alt-text"]))),128))])],2))}}),xt=M(Hi,[["__scopeId","data-v-b72f1aa6"]]),ji=x({__name:"MultipleResults",props:{winningEntries:{},unsuccessfulEntries:{},errorEntries:{}},setup(o){const t=o,a=t.winningEntries.length?"additional-1":"never",n=t.unsuccessfulEntries.length?"additional-2":"never",i=t.errorEntries.length?"additional-3":"never";return(r,l)=>(s(),v(Ta,{"show-next-steps":""},{[e(a)]:O(()=>[t.winningEntries.length?(s(),v(xt,{key:0,type:"winning",entries:t.winningEntries},null,8,["entries"])):m("",!0)]),[e(n)]:O(()=>[t.unsuccessfulEntries.length?(s(),v(xt,{key:0,type:"unsuccessful",entries:t.unsuccessfulEntries},null,8,["entries"])):m("",!0)]),[e(i)]:O(()=>[t.errorEntries.length?(s(),v(xt,{key:0,type:"error",entries:t.errorEntries},null,8,["entries"])):m("",!0)]),_:2},1024))}}),Kt=x({__name:"MultipleResultsView",setup(o){const{multiplePinData:t}=be(),{loseHeader:a,unknownErrorHeader:n}=D().getLabels,{openProgressiveProfile:i}=ee(),r=[],l=[],u=[];return t.forEach(({pinCode:d,data:p})=>{if(It.winning.includes(p.type)){r.push({pinCode:d,data:p.data});const _=p.data?.instantWinResult?.redeemedPrize?.doublePrize;_&&r.push({pinCode:d,data:{...p.data,instantWinResult:{...p.data.instantWinResult,redeemedPrize:_}}})}else It.unsuccessful.includes(p.type)?l.push({pinCode:d,description:a}):It.error.includes(p.type)?u.push({pinCode:d,description:p.error.message}):u.push({pinCode:d,description:n})}),j(i),(d,p)=>(s(),v(ji,{"winning-entries":r,"unsuccessful-entries":l,"error-entries":u}))}}),ia="#NEXT_AVAILABLE_PARTICIPATION#",Jt=x({__name:"ParticipationLimitView",setup(o){const t=D().getLabels,{openProgressiveProfile:a}=ee(),n=E(()=>{const i=t.limitMsgLabel;if(i&&i.includes(ia)){const l=ct(xe)?.getNextParticipation();if(l){const u=so(l);return i.replace(ia,u)}}return i});return j(a),(i,r)=>(s(),v(ae,{title:e(t).limitHeader,description:n.value},{default:O(()=>[I(ie)]),_:1},8,["title","description"]))}}),Na=x({__name:"RedemptionLimitView",setup(o){const t=D().getLabels,{openProgressiveProfile:a}=ee();return j(a),(n,i)=>(s(),v(ae,{title:e(t).redemptionLimitErrorHeader,description:e(t).redemptionLimitErrorLabel},{default:O(()=>[I(ie)]),_:1},8,["title","description"]))}}
2),Qi=x({__name:"NoMorePrizesView",setup(o){const a=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>(s(),v(ae,{title:e(a).noMorePrizesHeader,description:e(a).noMorePrizesLabel},{default:O(()=>[I(ie)]),_:1},8,["title","description"]))}}),Zt=x({__name:"UnknownErrorView",setup(o){const t=D().getLabels,{openProgressiveProfile:a}=ee();return j(a),(n,i)=>(s(),v(ae,{title:e(t).unknownErrorHeader,description:e(t).unknownErrorMsgLabel},{default:O(()=>[I(ie,{"try-again-label":e(t).unknownErrorTryAgainLabel},null,8,["try-again-label"])]),_:1},8,["title","description"]))}}),Ki=o=>({path:"/collect-and-get",component:we,meta:{layout:"promotion"},children:[{path:"start-now",name:"collect-and-get-start-now",component:Ae},{path:"auto",name:"collect-and-get-auto",component:Ae},{path:"enter-promotion",name:"collect-and-get-enter-promotion",component:Ze},{path:"enter-code",name:"collect-and-get-enter-code",component:Ft,beforeEnter:[o]},{path:"lose-or-limit",name:"collect-and-get-limit",component:Jt,meta:{applyLottieAnimation:!0}},{path:"lose-or-limit",name:"collect-and-get-redemption-limit",component:Na,meta:{applyLottieAnimation:!0}},{path:"no-more-prizes",name:"collect-and-get-no-more-prizes",component:Qi,meta:{applyLottieAnimation:!0}},{path:"result",name:"collect-and-get-result",component:Ms,beforeEnter:[o],meta:{applyLottieAnimation:!0}},{path:"win",name:"collect-and-get-win",component:ai,beforeEnter:[o],meta:{applyLottieAnimation:!0}},{path:"multiple-results",name:"collect-and-get-multiple-results",component:Kt,meta:{preventAnimation:!0},beforeEnter:[o]},{path:"unknown-error",name:"collect-and-get-unknown-error",component:Zt,meta:{hideTerms:!0,applyLottieAnimation:!0}}]}),Ji=o=>{const[t,a,n]=o.split("-");return`${n}/${a}/${t}`},Zi=o=>{const t=Date.now(),a=new Date(t);return new Date(o).toDateString()===a.toDateString()},Xi=(o,t,a)=>Zi(t)?a:Ji(o),Yi=o=>{switch(o){case 1:return"+";case 2:case 3:return"-";default:return"+"}},er=o=>Date.now()>o,tr=()=>{const o=be(),t=D(),{getUserAge:a}=B(Wt()),{ngpsConfig:n,currencyId:i,reCaptchaSiteKey:r}=t.getConfigData,{currentDateLabel:l}=t.getLabels,u=S(null),d=S(!1),p=[n.configurationId];n.configurationIds&&p.push(...n.configurationIds.split(",").map(R=>R.trim()));const _=i.split(",").map(R=>R.trim()),b=[];for(const R of p)for(const z of _){const T={...n,configurationId:R,configurationIds:null};b.push(io(T,z))}const h=async()=>{if(o.setLoading(),!_t()){o.completeLoading(),d.value=!0;return}try{const{getAuthToken:R}=await ga(),z=await R(),T=await Promise.all(b.map(async $=>{const W=await Re(r,"listTransactions");return $(z,W)})),L=T.filter($=>$.type!=="LIST_TRANSACTIONS_SUCCESS");if(L.length===T.length){console.error("[useListTransactions] Every transaction query failed:",L),d.value=!0,o.completeLoading();return}const C=[];for(const $ of T)$.type==="LIST_TRANSACTIONS_SUCCESS"&&C.push(...$.data.transactions);C.length>0?u.value={type:"LIST_TRANSACTIONS_SUCCESS",data:{transactions:C}}:u.value=T[0]||{type:"LIST_TRANSACTIONS_UNKNOWN_RESPONSE"}}catch(R){console.log(R),d.value=!0}o.completeLoading()},k=E(()=>{if(!u.value||u.value.type!=="LIST_TRANSACTIONS_SUCCESS")return[];let R=u.value.data.transactions;const{enableCurrencyFilteringByAge:z,ageFilteringConfig:T}=t.getConfigData;if(z&&T?.length>0&&a.value!==null){const L=new Map;T.forEach(C=>{C.currencyIds.forEach($=>{(!L.has($)||L.get($)<C.legalAgeLimit)&&L.set($,C.legalAgeLimit)})}),R=R.filter(C=>{if(!L.has(C.currency_id))return!0;const $=L.get(C.currency_id);return a.value>=$})}return R}),f=R=>({...R,displayAmount:`${Yi(R.transaction_type)}${R.amount}`,isExpired:er(R.valid_thru)}),w=R=>{const z={};return[...R].sort((L,C)=>C.transaction_timestamp-L.transaction_timestamp).forEach(L=>{const C=L.entry_date;if(!z[C]){const $=Xi(C,L.transaction_timestamp,l);z[C]={displayDate:$,transactions:[]}}z[C].transactions.push(f(L))}),z},P=R=>{const z={};return Object.keys(R).sort((L,C)=>{const $=R[L].transactions[0];return R[C].transactions[0].transaction_timestamp-$.transaction_timestamp}).forEach(L=>{z[L]=R[L]}),z},N=E(()=>{const R=k.value;if(R.length===0)return{};const z=w(R);return P(z)});j(h);const A=E(()=>{const R=[];return Object.entries(N.value).forEach(([z,T])=>{T.transactions.forEach(L=>{R.push({...L,date:z,displayDate:T.displayDate})})}),R});return{listTransactions:u,groupedTransactions:N,flatTransactions:A,errorOccurred:d}},ra=le("digitalWalletTransactionsStore",()=>{const{getLabels:o}=D(),{loadMoreLabel:t}=o,{listTransactions:a,flatTransactions:n,errorOccurred:i}=tr(),r=4,l=S(1),u=E(()=>n.value.length),d=E(()=>
2{if(!t)return n.value;const P=l.value*r;return n.value.slice(0,P)}),p=E(()=>{const P={};return d.value.forEach(N=>{const{date:A,displayDate:R,...z}=N;P[A]||(P[A]={displayDate:R,transactions:[]}),P[A].transactions.push(z)}),P}),_=E(()=>u.value>0),b=E(()=>a.value===null&&!i.value),h=E(()=>t&&u.value>l.value*r),k=E(()=>t&&h.value&&u.value>r),f=E(()=>_.value&&!i.value);return{listTransactions:a,visibleGroupedTransactions:p,hasTransactions:_,isPending:b,isMoreToLoad:h,shouldDisplayLoadMore:k,shouldDisplayComponent:f,errorOccurred:i,loadMoreTransactions:()=>{h.value&&(l.value+=1)}}}),ar={class:"transactions__wrapper"},or={class:"transactions__date"},nr={class:"transactions__list"},sr={class:"transaction-item__content"},ir={class:"transaction-item__image"},rr=["src","alt"],lr={class:"transaction-item__details"},cr={class:"transaction-item__promo-name"},ur={class:"transaction-item__name"},pr={key:0,class:"transaction-item__status"},dr={class:"transaction-item__status-label"},mr="/content/dam/onexp/global/icons/brand-expression/gem-bx.svg",_r=x({__name:"ListTransactions",props:{groupedTransactions:{},currencies:{}},setup(o){const t=o,a=D(),{expiredTransactionLabel:n}=a.getLabels,i=E(()=>t.currencies?t.currencies.reduce((u,d)=>(u[d.currencyId]=d.currencyIcon,u),{}):{}),r=u=>i.value[u]||mr,l=u=>({decrease:u===2||u===3});return(u,d)=>(s(),c("div",ar,[(s(!0),c(q,null,pe(u.groupedTransactions,(p,_)=>(s(),c(q,{key:_},[y("p",or,g(p.displayDate),1),y("ul",nr,[(s(!0),c(q,null,pe(p.transactions,b=>(s(),c("li",{key:b.transaction_timestamp,class:"transaction-item"},[y("div",sr,[y("div",ir,[y("img",{src:r(b.currency_id),alt:b.currency_name},null,8,rr)]),y("div",lr,[y("p",cr,g(b.promo_name),1),y("h3",ur,g(b.currency_name),1)]),y("p",{class:K(["transaction-item__amount",l(b.transaction_type)])},g(b.displayAmount),3)]),b.isExpired&&e(n)?(s(),c("div",pr,[y("p",dr,g(e(n)),1)])):m("",!0)]))),128))])],64))),128))]))}}),hr=M(_r,[["__scopeId","data-v-7cfa799c"]]),gr={key:0,class:"transactions"},br={class:"transactions__header"},yr={key:1,class:"transactions__no-transaction"},kr={class:"transactions__no-transaction-label"},fr={key:0,class:"transactions__no-transaction-description"},vr={key:1,class:"transactions__no-transaction-cta"},Er=["href"],Ir="/content/dam/onexp/global/icons/brand-expression/review-bx.svg",xr=x({__name:"DigitalWalletTransactions",setup(o){const t=D(),{transactionHistoryHeading:a,loadMoreLabel:n,noAvailableTransactionsLabel:i,noAvailableTransactionsDescription:r,unknownErrorHeader:l,unknownErrorMsgLabel:u}=t.getLabels,{noAvailableTransactionsCtaLabel:d,noAvailableTransactionsCtaUrl:p}=t.getConfigData,{currencies:_}=Vt(),{loadMoreTransactions:b}=ra(),{visibleGroupedTransactions:h,shouldDisplayLoadMore:k,hasTransactions:f,errorOccurred:w,isPending:P}=B(ra());return(N,A)=>!e(P)&&!e(w)?(s(),c("div",gr,[y("h2",br,g(e(a)),1),e(f)?(s(),c(q,{key:0},[I(hr,{"grouped-transactions":e(h),currencies:e(_)},null,8,["grouped-transactions","currencies"]),e(k)?(s(),c("button",{key:0,class:"button--primary load-more-button",onClick:A[0]||(A[0]=(...R)=>e(b)&&e(b)(...R))},g(e(n)),1)):m("",!0)],64)):!e(f)&&!e(w)?(s(),c("div",yr,[y("img",{src:Ir,alt:"",class:"transactions__no-transaction-icon"}),y("p",kr,g(e(i)),1),e(r)?(s(),c("div",fr,g(e(r)),1)):m("",!0),e(d)?(s(),c("div",vr,[y("a",{href:e(p),class:"button--primary"},g(e(d)),9,Er)])):m("",!0)])):m("",!0)])):!e(P)&&e(w)?(s(),v(Ut,{key:1,header:e(l),description:e(u)},null,8,["header","description"])):m("",!0)}}),wr=M(xr,[["__scopeId","data-v-f77c91a8"]]),Pr=x({__name:"DigitalWalletTransactionsView",setup(o){return(t,a)=>(s(),v(wr))}}),Sr=o=>({path:"/digital-wallet",component:we,children:[{path:"transactions",name:"digital-wallet-transactions",component:Pr,beforeEnter:[o]}]}),Dr=x({__name:"WheelView",setup(o){const{wheelStartHeading:t,wheelStartDescription:a}=D().getLabels,{fetchPrizes:n}=ht();return At(()=>{n()}),(i,r)=>
2(s(),v(ae,{title:e(t),description:e(a)},null,8,["title","description"]))}}),Lr=x({__name:"InstantWinPrizeEntry",props:{entryData:{}},setup(o){const t=o,a=(b,h)=>({name:b.prizeName,detailsTitle:h,image:b.image,description:b.shortDescription,prizeId:b.prizeId,expiryDate:Date.parse(b.expiryDate),barcodeUrl:b.barCode,voucherCode:b.voucherCode,redemptionLink:b.redemptionLink,redeemDescription:b.redeemDescription,cardType:"voucher"}),{redemptionModalTitle:n,redeemYourPrizeLabel:i}=D().getLabels,r=Ie(),l=E(()=>a(t.entryData,n)).value,{modalVisible:u,requestCloseModal:d,requestOpenModal:p}=Gt({name:"prize-details",priority:"manual"}),_=()=>{r.updateCard(l),p()};return(b,h)=>(s(),c(q,null,[I(Qt,{"modal-visible":e(u),"close-modal":e(d)},null,8,["modal-visible","close-modal"]),I(Te,{"entry-type":"winning",class:"entries__item--with-prize-image","img-url":t.entryData.image,"img-alt-text":t.entryData.prizeName,title:t.entryData.prizeName,description:t.entryData.shortDescription||void 0},{"content-cta":O(()=>[e(i)?(s(),c("button",{key:0,class:"button--secondary-black entries__item-redeem-button",onClick:_},g(e(i)),1)):m("",!0)]),_:1},8,["img-url","img-alt-text","title","description"])],64))}}),Rr={class:"entries entries--winning"},Cr={class:"entries__list"},Ar={class:"entries__heading"},Tr=x({__name:"PrizeResultView",setup(o){const{resultWinnerHeader:t,winTryAgainLabel:a}=D().getLabels,{resetWheel:n}=ht(),{openProgressiveProfile:i}=ee(),l=(()=>{const u=Ht(),d=[u];if(u.doublePrize){const p=u.doublePrize;d.push(p),delete u.doublePrize}return d})();return j(i),(u,d)=>e(l).length===1?(s(),v(ae,{key:0,title:e(t)},{default:O(()=>[I(jt,null,{default:O(()=>[I(ie,{"try-again-label":e(a),"on-try-again":e(n)},null,8,["try-again-label","on-try-again"]),I(Ee,{class:"promo-result__social-share"})]),_:1})]),_:1},8,["title"])):(s(),v(Ta,{key:1,"show-next-steps":""},{"additional-1":O(()=>[y("section",Rr,[y("div",Cr,[y("h2",Ar,g(e(t)),1),(s(!0),c(q,null,pe(e(l),p=>(s(),v(Lr,{key:p.prizeId,"entry-data":p},null,8,["entry-data"]))),128))])])]),_:1}))}}),Nr=x({__name:"BlockedUserView",setup(o){const a=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>
2(s(),v(ae,{title:e(a).blockedUserErrorHeader,description:e(a).blockedUserErrorLabel},{default:O(()=>[I(ie,{"try-again-label":e(a).loseTryAgainLabel},null,8,["try-again-label"])]),_:1},8,["title","description"]))}}),$r=x({__name:"PromotionNotActiveView",setup(o){const t=D().getLabels,{openProgressiveProfile:a}=ee();return j(a),(n,i)=>(s(),v(ae,{title:e(t).promotionNotActiveErrorHeader,description:e(t).promotionNotActiveErrorMessage},{default:O(()=>[I(ie,{"try-again-label":e(t).loseTryAgainLabel},null,8,["try-again-label"])]),_:1},8,["title","description"]))}}),$a=x({__name:"NotEnoughCurrencyView",setup(o){const a=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>(s(),v(ae,{title:e(a).notEnoughCurrencyErrorHeader,description:e(a).notEnoughCurrencyErrorLabel},{default:O(()=>[I(ie)]),_:1},8,["title","description"]))}}),zr=x({__name:"LoseView",setup(o){const a=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>(s(),v(ae,{title:e(a).loseHeader,description:e(a).loseMsgLabel},{default:O(()=>[I(ie,{"try-again-label":e(a).loseTryAgainLabel},null,8,["try-again-label"])]),_:1},8,["title","description"]))}}),Mr=o=>({path:"/instant-win",component:we,meta:{layout:"promotion"},children:[{path:"start-now",name:"instant-win-start-now",component:Ae},{path:"enter-code",name:"instant-win-enter-code",component:Ft,beforeEnter:[o]},{path:"enter-promotion",name:"instant-win-enter-promotion",component:Ze},{path:"spin-the-wheel",name:"instant-win-spin-the-wheel",component:Dr,beforeEnter:[o]},{path:"no-pin",name:"instant-win-no-pin",component:Ae},{path:"lose-or-limit",name:"instant-win-lose",component:zr,meta:{applyLottieAnimation:!0}},{path:"lose-or-limit",name:"instant-win-limit",component:Jt},{path:"lose-or-limit",name:"instant-win-redemption-limit",component:Na},{path:"lose-or-limit",name:"instant-win-not-enough-currency",component:$a},{path:"lose-or-limit",name:"instant-win-blocked-user",component:Nr},{path:"lose-or-limit",name:"instant-win-promotion-not-active",component:$r},{path:"win",name:"instant-win-win",component:Tr,meta:{applyLottieAnimation:!0}},{path:"multiple-results",name:"instant-win-multiple-results",component:Kt,meta:{preventAnimation:!0}},{path:"unknown-error",name:"instant-win-unknown-error",component:Zt,meta:{hideTerms:!0}}]}),Or=x({__name:"PrizeResultView",setup(o){const{resultWinnerHeader:t,winTryAgainLabel:a}=D().getLabels,{openProgressiveProfile:n}=ee();return j(n),(i,r)=>(s(),v(ae,{title:e(t)},{default:O(()=>[I(jt,null,{default:O(()=>[I(ie,{"try-again-label":e(a)},null,8,["try-again-label"]),I(Ee,{class:"promo-result__social-share"})]),_:1})]),_:1},8,["title"]))}}),Br=M(Or,[["__scopeId","data-v-a9482b1d"]]),Ur=o=>({path:"/prize-draw",component:we,meta:{layout:"promotion"},children:[{path:"start-now",name:"prize-draw-start-now",component:Ae},{path:"no-pin",name:"prize-draw-no-pin",component:Ae},{path:"enter-code",name:"prize-draw-enter-code",component:Ft,beforeEnter:[o]},{path:"enter-promotion",name:"prize-draw-enter-promotion",component:Ze},{path:"result",name:"prize-draw-result",component:Br,meta:{applyLottieAnimation:!0}},{path:"multiple-results",name:"prize-draw-multiple-results",component:Kt,meta:{preventAnimation:!0}},{path:"limit-exceeded",name:"prize-draw-limit",component:Jt,meta:{applyLottieAnimation:!0}},{path:"not-enough-currency",name:"prize-draw-not-enough-currency",component:$a},{path:"unknown-error",name:"prize-draw-unknown-error",component:Zt,meta:{hideTerms:!0,applyLottieAnimation:!0}}]}),Vr=x({__name:"QuizStartView",setup(o){const t=D(),{startButtonLabel:a}=t.getLabels,{startQuiz:n}=yt();return Je()(),(i,r)=>(s(),v(bt,null,{default:O(()=>[I(Ue,{class:"button--primary start-quiz",label:e(a),handler:e(n)},null,8,["label","handler"])]),_:1}))}}),Gr={class:"option-wrapper"},Wr=["type","value","checked","disabled"],qr=x({__name:"QuestionOption",props:{name:{},option:{},type:{},disabled:{type:Boolean}},setup(o){const t=o,{setUserSelection:a,isOptionSelected:n}=me(),{getCurrentQuestion:i}=B(me()),r=`option-${crypto.randomUUID()}`,l=()=>{a(i.value.id,t.option.id,t.type)};return(u,d)=>(s(),c("div",Gr,[y("input",{id:r,type:t.type==="multipleChoice"?"checkbox":"radio",value:u.option.id,checked:e(n)(u.option.id),disabled:t.disabled,name:"name",class:"question-option",onChange:l},null,40,Wr),y("label",{for:r,class:"option-label"},g(u.option.value),1)]))}}),Fr=M(qr,[["__scopeId","data-v-e81c5852"]]),Hr=["placeholder","value","disabled"],jr=x({__name:"QuestionTextInput",props:{questionId:{},placeholder:{},disabled:{type:Boolean},setFocusOnMount:{type:Boolean}},setup(o){const t=o,a=me(),{getUserCurrentSelection:n}=B(a),i=S(null),r=E(()=>n.value?.answerText??""),l=()=>{t.setFocusOnMount&&Le(()=>{i.value?.focus()})},u=d=>{const p=d.target;a.setUserTextSelection(t.questionId,p.value)};return j(()=>{l()}),ge(()=>t.questionId,l),(d,p)=>(s(),c("input",{ref_key:"inputRef",ref:i,type:"text",placeholder:d.placeholder,value:r.value,disabled:d.disabled,class:"question-text-input",onInput:u},null,40,Hr))}}),Qr=M(jr,[["__scopeId","data-v-a5398033"]]),Kr={class:"question-label"},Jr=x({__name:"QuestionSection",props:{question:{},disabled:{type:Boolean}},setup(o){const t=o,a=me(),{currentQuestionIndex:n}=a,i=E(()=>t.question.type==="textInput");return(r,l)=>(s(),c(q,null,[y("legend",Kr,g(t.question.label),1),i.value?(s(),v(Qr,{key:0,"question-id":t.question.id,placeholder:t.question.placeholder,disabled:t.disabled,"set-focus-on-mount":""},null,8,["question-id","placeholder","disabled"])):(s(!0),c(q,{key:1},pe(t.question.options??[],u=>(s(),v(Fr,{key:u.id,name:`question-${e(n)}`,type:t.question.type,disabled:t.disabled,option:u},null,8,["name","type","disabled","option"]))),128))],64))}}),Zr=M(Jr,[["__scopeId","data-v-476279b4"]]),Xr={class:"quiz-card"},Yr={class:"quiz-card__content-wrapper"},el={class:"quiz-card__image"},tl=["src","alt"],al={class:"quiz-card__content"},ol={class:"quiz-card__question-counter"},nl=["disabled"],sl=["innerHTML"],il=x({__name:"QuizCard",props:{quiz:{}},setup(o){const t=o,a=D(),{nextButtonLabel:n,submitButtonLabel:i,questionErrorLabel:r}=a.getQuizLabels,{submitAnswer:l,answerPending:u,errorOccurred:d}=t.quiz,p=me(),{getCurrentQuestion:_,getCurrentQuestionImage:b,hasUserCurrentSelection:h,getQuestionCounter:k,isLastQuestion:f}=B(p);return(w,P)=>(s(),c("div",Xr,[y("div",Yr,[y("div",el,[y("img",{src:e(b).path,alt:e(b).altText},null,8,tl)]),y("div",al,[y("div",ol,g(e(k)),1),y("form",{onSubmit:P[0]||(P[0]=rt((...N)=>e(l)&&e(l)(...N),["prevent"]))},[y("fieldset",null,[I(Zr,{question:e(_),disabled:e(u)},null,8,["question","disabled"])]),e(h)?(s(),c("button",{key:0,t
2ype:"submit",class:K(["button-primary",{loading:e(u)}]),disabled:e(u)},g(e(f)?e(i):e(n)),11,nl)):m("",!0)],32)])]),e(d)?(s(),c("div",{key:0,class:"quiz-card__message",innerHTML:e(r)},null,8,sl)):m("",!0)]))}}),rl=M(il,[["__scopeId","data-v-8548dbd7"]]),ll={key:0,class:"quiz-navigation"},cl=["disabled"],ul=x({__name:"QuizNavigation",props:{quiz:{}},setup(o){const t=o,a=D(),{previousButtonLabel:n}=a.getQuizLabels,i=me(),{setPreviousQuestion:r}=i,{answerPending:l}=t.quiz;return(u,d)=>e(n)?(s(),c("div",ll,[y("button",{class:"quiz-navigation__back-btn",disabled:e(l),onClick:d[0]||(d[0]=(...p)=>e(r)&&e(r)(...p))},g(e(n)),9,cl)])):m("",!0)}}),pl=M(ul,[["__scopeId","data-v-02a0f9c4"]]),dl={class:"quiz-progress-bar"},ml={class:"quiz-progress-bar__wrapper"},_l=x({__name:"QuizProgressBar",setup(o){const t=me(),{getQuizProgress:a}=B(t);return(n,i)=>(s(),c("div",dl,[y("div",ml,[y("div",{class:"quiz-progress-bar__fill",style:st({width:`${e(a)}%`})},null,4)])]))}}),hl=M(_l,[["__scopeId","data-v-c8b00293"]]),gl={key:0,class:"quiz-timer"},bl={class:"quiz-timer__content"},yl=x({__name:"QuizTimer",setup(o){const{getStartTime:t}=B(me()),a=new Date(t.value).getTime(),n=S(aa(a));return setInterval(()=>{n.value=aa(a)},1e3),(i,r)=>n.value?(s(),c("div",gl,[y("span",bl,g(n.value),1)])):m("",!0)}}),kl=M(yl,[["__scopeId","data-v-0bebb9f4"]]),fl={class:"quiz-wrapper"},vl={class:"quiz-wrapper__row"},El=x({__name:"QuizView",setup(o){const{showTimer:t,showPreviousButton:a}=D().getQuizConfig,{currentQuestionIndex:n}=B(me()),i=yt();return(r,l)=>(s(),c("div",fl,[e(a)&&e(n)!==0?(s(),v(pl,{key:0,quiz:e(i)},null,8,["quiz"])):m("",!0),y("div",vl,[I(hl),e(t)?(s(),v(kl,{key:0})):m("",!0)]),I(rl,{quiz:e(i)},null,8,["quiz"])]))}}),Il=M(El,[["__scopeId","data-v-1971bd10"]]),xl={class:"enter-code"},wl=["disabled"],Pl=x({__name:"QuizEnterCodeView",setup(o){const t=D(),{enterPinHeader:a,enterPinSubmitButton:n}=t.getLabels,{requestPending:i,submitDisabled:r}=B(ne()),{submitPinPromotion:l}=yt();return Je()(),(u,d)=>(s(),v(ae,{title:e(a)},{default:O(()=>[y("div",xl,[I(Ra,{"submit-promotion":e(l)},null,8,["submit-promotion"]),e(n)?(s(),c("button",{key:0,class:K(["button--primary enter-code__button",{loading:e(i)}]),disabled:e(r),onClick:d[0]||(d[0]=(...p)=>e(l)&&e(l)(...p))},g(e(n)),11,wl)):m("",!0)])]),_:1},8,["title"]))}}),Sl=x({__name:"QuizFailureView",setup(o){const t=D().getQuizLabels,{openProgressiveProfile:a}=ee();return j(a),(n,i)=>(s(),v(ae,{title:e(t).failureTitle,description:e(t).failureDescription,"is-h2":e(t).failureTitleIsH2},{default:O(()=>[I(ie)]),_:1},8,["title","description","is-h2"]))}}),Dl=x({__name:"QuizErrorView",setup(o){const t=D().getQuizLabels,{openProgressiveProfile:a}=ee(),n=()=>location.reload();return j(a),(i,r)=>(s(),v(ae,{title:e(t).errorTitle,description:e(t).errorDescription,"is-h2":e(t).errorTitleIsH2},{default:O(()=>[I(ie,{"custom-action":n,"custom-action-label":e(t).reloadButtonLabel},null,8,["custom-action-label"])]),_:1},8,["title","description","is-h2"]))}}),Ll=x({__name:"QuizLimitView",setup(o){const t=D().getQuizLabels,{openProgressiveProfile:a}=ee();return j(a),(n,i)=>(s(),v(ae,{title:e(t).limitTitle,description:e(t).limitDescription,"is-h2":e(t).limitTitleIsH2},{default:O(()=>[I(ie)]),_:1},8,["title","description","is-h2"]))}}),Rl=o=>({path:"/promo-quiz",component:we,meta:{preventAnimation:!0,layout:"promotion"},children:[{path:"",name:"start-quiz",component:Vr},{path:"/quiz-limit",name:"quiz-limit",component:Ll},{path:"/quiz-view",name:"quiz-view",component:Il,meta:{layout:"empty"},beforeEnter:[o]},{path:"/quiz-failure",name:"quiz-failure",component:Sl,meta:{hideTerms:!0}},{path:"/quiz-enter-promotion",name:"quiz-enter-promotion",component:Ze},{path:"/enter-code",name:"quiz-enter-code",component:Pl,beforeEnter:[o]},{path:"/quiz-error",name:"quiz-error",component:Dl}]}),Cl=["id"],Al={key:1,class:"prize-details__username"},Tl=["id"],Nl={key:0,class:"prize-details__expire"},$l={key:1,class:"prize-details__voucher"},zl=["innerHTML"],Ml=x({__name:"PrizeModal",props:{closeModal:{type:Function},dialogRefAssnFn:{type:Function},prize:{},labelDictionary:{}},setup(o){const{getConfigData:t}=D(),{closePrizeModalLabel:a,prizeModalHeading:n,prizeExpiresLabel:i,voucherCodeLabel:r,redeemPrizeButtonLabel:l}=D().getScannerPromoLabels,{getUserFullName:u}=B(Wt()),d=Ie(),{walletCard:p}=B(d),{dialogDetailsId:_,dialogHeadingId:b}=ye(Ia());
2return(h,k)=>(s(),v(qe,{class:"prize-details","close-modal":h.closeModal,"close-modal-label":e(a),"dialog-ref-assn-fn":h.dialogRefAssnFn,"inverse-top":""},{default:O(()=>[I(Ro,{image:h.prize.barCode||h.prize.image,alt:h.prize.prizeName,"is-prize-code":!!h.prize.barCode},{header:O(()=>[e(n)?(s(),c("h3",{key:0,id:e(b),class:"prize-details__title"},g(e(n)),9,Cl)):m("",!0),e(u)&&e(t)?.enableUserDetailsOnVoucher?(s(),c("h4",Al,g(e(u)),1)):m("",!0)]),content:O(()=>[y("h2",{id:e(_),class:"prize-details__name"},g(h.prize.prizeName),9,Tl),h.prize.expiryDate?(s(),c("p",Nl,g(`${e(i)||""} ${h.prize.expiryDate}`),1)):m("",!0),h.prize.voucherCode?(s(),c("p",$l,g(`${e(r)||""} ${h.prize.voucherCode}`),1)):m("",!0),h.prize.shortDescription?(s(),c("div",{key:2,class:"prize-details__description",innerHTML:h.prize.shortDescription},null,8,zl)):m("",!0),I(Ge,{"redeem-description":h.prize.redeemDescription,"label-dictionary":h.labelDictionary},null,8,["redeem-description","label-dictionary"]),I(ya,{class:"prize-main-action",link:h.prize.redemptionLink,label:e(l),"prize-id":h.prize.prizeId},null,8,["link","label","prize-id"]),I(pt,{"prize-id":h.prize.prizeId,"copy-content":h.prize.voucherCode,"label-dictionary":h.labelDictionary,"display-on-top":""},null,8,["prize-id","copy-content","label-dictionary"]),I(Ce,{"wallet-type":"google","wallet-card":e(p),"label-dictionary":h.labelDictionary,show:""},null,8,["wallet-card","label-dictionary"]),I(Ce,{"wallet-type":"apple","wallet-card":e(p),"label-dictionary":h.labelDictionary,show:""},null,8,["wallet-card","label-dictionary"]),I(he)]),_:1},8,["image","alt","is-prize-code"])]),_:1},8,["close-modal","close-modal-label","dialog-ref-assn-fn"]))}}),Ol=M(Ml,[["__scopeId","data-v-3975fc0e"]]),Xt=x({__name:"AddReceiptButton",setup(o,{expose:t}){const{addAnotherReceiptButtonLabel:a}=D().getScannerPromoLabels,n=S(null);t({focus:()=>n.value?.focus()});const i=te(),{openModal:r}=de(),l=async()=>{await i.push({name:"receipt-scanner-start-view"}),r()};return(u,d)=>e(a)?(s(),c("button",{key:0,ref_key:"elRef",ref:n,class:"button-secondary",onClick:l},g(e(a)),513)):m("",!0)}}),Bl=(o,t)=>{const n=D().getScannerLabels,{uploadReceipt:i}=de(),r=S({state:"SELECT"});return{getUploadState:E(()=>r.value),previewImage:async _=>{const h=_.name.split(".").at(-1)||"",k=!_.type&&h.toLowerCase()==="heic";_.size>26214400?r.value={state:"ERROR",errorTitle:n.imageSizeLimitFailureHeader,errorDescription:n.imageSizeLimitFailureDescription}:!(o.includes(_.type)||k)||!t.includes(h.toLowerCase())?r.value={state:"ERROR",errorTitle:n.imageInvalidExtensionFailureHeader,errorDescription:n.imageInvalidExtensionFailureDescription}:r.value={state:"PREVIEW",fileUrl:URL.createObjectURL(_),file:_}},uploadImage:async()=>{const _=r.value.state==="PREVIEW"?r.value.file:void 0;r.value={state:"UPLOADING"},await i(_)},resetUpload:()=>{r.value={state:"SELECT"}}}},Ul="4.8.0",Vl={g:"LottieFiles AE 3.5.9",a:"",k:"",d:"",tc:""}
2,Gl=30,Wl=0,ql=100,Fl=1100,Hl=1100,jl="Comp 1",Ql=0,Kl=JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":".icon-stroke-color-neutral","cl":"icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[621,635,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[160.667,160.667,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,320.699],[292.188,283.726]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,314.475],[292.188,271.278]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,308.251],[292.188,271.278]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":33,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,323.811],[292.188,286.838]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":39,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,320.699],[292.188,283.726]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":58,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,320.699],[292.188,283.726]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":67,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,314.475],[292.188,271.278]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":75,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,308.251],[292.188,271.278]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":83,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,323.811],[292.188,286.838]],"c":false}]},{"t":89,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[292.188,320.699],[292.188,283.726]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,8.821],[0.001,-8.821],[19.547,8.821]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,-3.627],[0.001,-21.269],[19.547,-3.627]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":33,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,11.933],[0.001,-5.709],[19.547,11.933]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":39,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,8.821],[0.001,-8.821],[19.547,8.821]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":58,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,8.821],[0.001,-8.821],[19.547,8.821]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":67,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,-3.627],[0.001,-21.269],[19.547,-3.627]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":83,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,11.933],[0.001,-5.709],[19.547,11.933]],"c":false}]},{"t":89,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-19.546,8.821],[0.001,-8.821],[19.547,8.821]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[292.188,284.542],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0}
2,"t":8,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-7.316],[37.095,2.616],[26.171,13.54],[-26.171,13.54],[-37.095,2.616],[-37.095,-7.316]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":33,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":39,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":58,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":67,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-7.316],[37.095,2.616],[26.171,13.54],[-26.171,13.54],[-37.095,2.616],[-37.095,-7.316]],"c":false}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":83,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]},{"t":89,"s":[{"i":[[0,0],[0,0],[6.033,0],[0,0],[0,6.033],[0,0]],"o":[[0,0],[0,6.033],[0,0],[-6.033,0],[0,0],[0,0]],"v":[[37.095,-10.428],[37.095,-0.496],[26.171,10.428],[-26.171,10.428],[-37.095,-0.496],[-37.095,-10.428]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[292.389,335],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":".icon-fill-color-primary.icon-stroke-color-neutral","cl":"icon-fill-color-primary icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[460,510,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[184,184,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[9.862,0],[0,0],[0,9.862],[0,0],[-9.862,0],[0,0],[0,-9.862],[0,0]],"o":[[0,0],[-9.862,0],[0,0],[0,-9.862],[0,0],[9.862,0],[0,0],[0,9.862]],"v":[[73.862,145.766],[-73.863,145.766],[-91.719,127.909],[-91.719,-127.909],[-73.863,-145.766],[73.862,-145.766],[91.719,-127.909],[91.719,127.909]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[381.512,367.312],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[344.988,195.083],[418.034,195.083]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[23.76,0],[0,0],[0,23.76],[0,0],[-23.76,0],[0,0],[0,-23.76],[0,0]],"o":[[0,0],[-23.76,0],[0,0],[0,-23.76],[0,0],[23.76,0],[0,0],[0,23.76]],"v":[[80.182,189.962],[-80.181,189.962],[-123.202,146.941],[-123.202,-146.941],[-80.181,-189.962],[80.182,-189.962],[123.203,-146.941],[123.203,146.941]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[381.511,353.705],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[9.862,0],[0,0],[0,9.862],[0,0],[-9.862,0],[0,0],[0,-9.862]],"o":[[0,9.862],[0,0],[-9.862,0],[0,0],[0,-9.862],[0,0],[9.862,0],[0,0]],"v":[[91.719,141.517],[73.863,159.374],[-73.863,159.374],[-91.719,141.517],[-91.719,-114.302],[-73.863,-132.158],[73.863,-132.158],[91.719,-114.302]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[23.76,0],[0,0],[0,-23.76],[0,0],[-23.761,0],[0,0],[0,23.759],[0,0]],"o":[[0,0],[-23.761,0],[0,0],[0,23.759],[0,0],[23.76,0],[0,0],[0,-23.76]],"v":[[80.182,-189.962],[-80.181,-189.962],[-123.203,-146.941],[-123.203,146.942],[-80.181,189.962],[80.182,189.962],[123.203,146.942],[123.203,-146.941]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[381.511,353.704],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":29,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"upload1 Outlines","hd":true,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[652,610,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[178.667,178.667,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-38.82],[38.82,0],[0,38.82],[-38.82,0]],"o":[[0,38.82],[-38.82,0],[0,-38.82],[38.82,0]],"v":[[70.29,0],[0,70.29],[-70.29,0],[0,-70.29]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":11,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[275.814,321.456],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.226,-1.375],[-1.375,-2.226],[-2.226,1.375],[1.376,2.227]],"o":[[-2.228,1.375],[1.374,2.227],[2.227,-1.375],[-1.374,-2.225]],"v":[[-2.489,-4.031],[
2-4.031,2.489],[2.488,4.031],[4.03,-2.49]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[207.868,250.849],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.737,-0.192],[-0.163,-3.54],[0,0],[-0.363,5.772],[-0.468,11.251],[0,0]],"o":[[-3.54,0.163],[0,0],[0.395,5.758],[0,0],[0.4,-9.584],[0.174,-3.737]],"v":[[-0.301,-27.103],[-6.417,-20.397],[-4.481,21.536],[4.656,21.516],[5.635,-1.966],[6.406,-20.424]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[207.872,211.173],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[20.132,0],[0,0],[0,20.132],[0,0],[-20.132,0],[0,0],[0,-20.132],[0,0]],"o":[[0,0],[-20.132,0],[0,0],[0,-20.132],[0,0],[20.132,0],[0,0],[0,20.132]],"v":[[69.245,158.962],[-69.245,158.962],[-105.697,122.51],[-105.697,-122.512],[-69.245,-158.962],[69.245,-158.962],[105.697,-122.512],[105.697,122.51]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[275.814,311.45],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":".icon-stroke-color-neutral","cl":"icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[652,611,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[178.084,178.084,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-38.82],[38.82,0],[0,38.82],[-38.82,0]],"o":[[0,38.82],[-38.82,0],[0,-38.82],[38.82,0]],"v":[[70.29,0],[0,70.29],[-70.29,0],[0,-70.29]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":11,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[275.814,321.456],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100.681,100.681],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Glow","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[488.5,469,0],"ix":2},"a":{"a":0,"k":[208.5,220,0],"ix":1},"s":{"a":0,"k":[172.815,172.815,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.226,-1.375],[-1.375,-2.226],[-2.226,1.375],[1.376,2.227]],"o":[[-2.228,1.375],[1.374,2.227],[2.227,-1.375],[-1.374,-2.225]],"v":[[-2.489,-4.031],[-4.031,2.489],[2.488,4.031],[4.03,-2.49]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[207.868,250.849],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.737,-0.192],[-0.163,-3.54],[0,0],[-0.363,5.772],[-0.468,11.251],[0,0]],"o":[[-3.54,0.163],[0,0],[0.395,5.758],[0,0],[0.4,-9.584],[0.174,-3.737]],"v":[[-0.301,-27.103],[-6.417,-20.397],[-4.481,21.536],[4.656,21.516],[5.635,-1.966],[6.406,-20.424]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[207.872,211.173],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":".icon-fill-color-primary","cl":"icon-fill-color-primary","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,550,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[395.414,598.766],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[59.707,79.383],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":".icon-stroke-color-neutral","cl":"icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,594,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[178,178,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[89.186,-171.519],[59.457,-190.281],[29.729,-171.519],[0,-190.281],[-29.728,-171.519],[-59.457,-190.281],[-89.185,-171.519],[-118.914,-190.281],[-118.914,190.281],[-89.185,171.519],[-59.457,190.281],[-29.728,171.519],[0,190.281],[29.729,171.519],[59.457,190.281],[89.186,171.519],[118.914,190.281],[118.914,-190.281]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[258.309,237.925],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Outline","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,594,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[178.409,178.127,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.553,1.407],[2.464,-1.556],[0,0],[0,0],[2.608,-1.647],[0,0],[0,0],[2.608,-1.647],[0,0],[0,0],[2.609,-1.647],[0,0],[0,0],[2.553,-1.406],[0,-2.915],[0,0],[-2.552,-1.407],[-2.464,1.555],[0,0],[0,0],[-2.609,1.646],[0,0],[0,0],[-2.609,1.646],[0,0],[0,0],[-1.483,0],[-1.304,0.823],[0,0],[0,0],[-2.552,1.406],[0,2.914],[0,0]],"o":[[-2.551,-1.407],[0,0],[0,0],[-2.609,-1.645],[0,0],[0,0],[-2.608,-1.645],[0,0],[0,0],[-2.608,-1.645],[0,0],[0,0],[-2.463,-1.555],[-2.552,1.408],[0,0],[0,2.914],[2.553,1.407],[0,0],[0,0],[2.608,1.646],[0,0],[0,0],[2.608,1.646],[0,0],[0,0],[1.304,0.823],[1.482,0],[0,0],[0,0],[2.465,1.556],[2.553,-1.407],[0,0],[0,-2.915]],"v":[[122.776,-197.287],[114.644,-197.046],[89.186,-180.979],[63.726,-197.047],[55.187,-197.046],[29.729,-180.979],[4.269,-197.047],[-4.27,-197.046],[-29.728,-180.979],[-55.188,-197.047],[-63.727,-197.046],[-89.186,-180.979],[-114.645,-197.046],[-122.777,-197.287],[-126.914,-190.281],[-126.914,190.28],[-122.777,197.286],[-114.645,197.046],[-89.186,180.979],[-63.727,197.046],[-55.188,197.046],[-29.728,180.979],[-4.27,197.046],[4.269,197.046],[29.729,180.979],[55.187,197.046],[59.457,198.28],[63.726,197.046],[89.186,180.979],[114.644,197.046],[122.776,197.286],[126.914,190.28],[126.914,-190.281]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.156862745098,0.701960784314,0.2941176470
259,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[258.309,237.925],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Outline","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[300,300,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[29.236,0],[0,0],[0,29.236],[0,0],[-29.237,0],[0,0],[0,-29.236],[0,0]],"o":[[0,0],[-29.237,0],[0,0],[0,-29.236],[0,0],[29.236,0],[0,0],[0,29.236]],"v":[[80.181,199.962],[-80.181,199.962],[-133.203,146.941],[-133.203,-146.941],[-80.181,-199.962],[80.181,-199.962],[133.203,-146.941],[133.203,146.941]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.270588235294,0.713725490196,0.286274509804,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[381.511,353.704],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[557.75,561.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1300,1300],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":true},{"ty":"tr","p":{"a":0,"k":[-7.75,-11.75],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":100,"st":0,"bm":0}]}]'),Jl=[{ddd:0,ind:1,ty:0,nm:"Pre-comp 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[550,550,0],ix:2},a:{a:0,k:[550,550,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:25,nm:"Drop Shadow",np:8,mn:"ADBE Drop Shadow",ix:1,en:1,ef:[{ty:2,nm:"Shadow Color",mn:"ADBE Drop Shadow-0001",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:"Opacity",mn:"ADBE Drop Shadow-0002",ix:2,v:{a:0,k:76.5,ix:2}},{ty:0,nm:"Direction",mn:"ADBE Drop Shadow-0003",ix:3,v:{a:0,k:180,ix:3}},{ty:0,nm:"Distance",mn:"ADBE Drop Shadow-0004",ix:4,v:{a:0,k:12,ix:4}},{ty:0,nm:"Softness",mn:"ADBE Drop Shadow-0005",ix:5,v:{a:0,k:40,ix:5}},{ty:7,nm:"Shadow Only",mn:"ADBE Drop Shadow-0006",ix:6,v:{a:0,k:0,ix:6}}]}],w:1100,h:1100,ip:0,op:100,st:0,bm:0}],Zl=[],Xl={v:Ul,meta:Vl,fr:Gl,ip:Wl,op:ql,w:Fl,h:Hl,nm:jl,ddd:Ql,assets:Kl,layers:Jl,markers:Zl},Yl=["for"],ec=["id","name","accept","capture"],tc=x({__name:"ReceiptUploadFileInput",props:{id:{},name:{},label:{},containerClass:{},acceptAttribute:{},capture:{}},emits:["selectImage"],setup(o,{expose:t,emit:a}){const n=a,i=S(null);return t({clearInput:()=>{i.value&&(i.value.value="")},focus:()=>{i.value?.focus()}}),(u,d)=>(s(),c("div",{class:K(["button-secondary receipt-upload__file-input",u.containerClass])},[y("label",{for:u.id},g(u.label),9,Yl),y("input",{id:u.id,ref_key:"inputElement",ref:i,name:u.name,type:"file",accept:u.acceptAttribute,capture:u.capture,onChange:d[0]||(d[0]=p=>n("selectImage",p))},null,40,ec)],2))}}),De=M(tc,[["__scopeId","data-v-b4367949"]]),ac=x({__name:"ReceiptUploadSelectButtons",props:{isAndroidDevice:{type:Boolean},state:{},labels:{},acceptAttribute:{}},emits:["selectImage"],setup(o,{expose:t,emit:a}){const n=o,i=a,r=S(null),l=S(null),u=S(null),d=()=>{r.value?.clearInput(),l.value?.clearInput(),u.value?.clearInput()},p=n.labels.takePhotoButtonLabel,_=n.labels.chooseFromGalleryButtonLabel,b=E(()=>n.state==="ERROR"?n.labels.tryAgainButtonLabel:n.labels.selectImageButtonLabel),h=n.isAndroidDevice&&!!p&&!!_;return t({clearInputs:d,focus:()=>{r.value?r.value.focus():l.value?l.value.focus():u.value&&u.value.focus()}}),(f,w)=>(s(),c(q,null,[e(h)?(s(),v(De,{key:0,id:"take-photo",ref_key:"takePhotoInput",ref:r,name:"take-photo",label:e(p),"container-class":"receipt-upload__take-photo","accept-attribute":f.acceptAttribute,capture:"environment",onSelectImage:w[0]||(w[0]=P=>i("selectImage",P))},null,8,["label","accept-attribute"])):m("",!0),e(h)?(s(),v(De,{key:1,id:"choose-from-gallery",ref_key:"galleryInput",ref:l,name:"choose-from-gallery",label:e(_),"container-class":"receipt-upload__select-file","accept-attribute":f.acceptAttribute,onSelectImage:w[1]||(w[1]=P=>i("selectImage",P))},null,8,["label","accept-attribute"])):b.value?(s(),v(De,{key:2,id:"select-file",ref_key:"defaultInput",ref:u,name:"select-file",label:b.value,"container-class":"receipt-upload__select-file","accept-attribute":f.acceptAttribute,onSelectImage:w[2]||(w[2]=P=>i("selectImage",P))},null,8,["label","accept-attribute"])):m("",!0)],64))}}),oc=x({__name:"ReceiptUploadAnotherButtons",props:{isAndroidDevice:{type:Boolean},labels:{},acceptAttribute:{}},emits:["selectImage"],setup(o,{expose:t,emit:a}){const n=o,i=a,r=S(null),l=S(null),u=S(null);t({clearInputs:()=>{r.value?.clearInput(),l.value?.clearInput(),u.value?.clearInput()}});const p=n.labels.takeAnotherPhotoButtonLabel,_=n.labels.chooseAnotherFromGalleryButtonLabel,b=n.isAndroidDevice&&!!p&&!!_;return(h,k)=>
2(s(),c(q,null,[e(b)?(s(),v(De,{key:0,id:"take-another-photo",ref_key:"takeAnotherPhotoInput",ref:r,name:"take-another-photo",label:e(p),"container-class":"receipt-upload__take-another-photo","accept-attribute":h.acceptAttribute,capture:"environment",onSelectImage:k[0]||(k[0]=f=>i("selectImage",f))},null,8,["label","accept-attribute"])):m("",!0),e(b)?(s(),v(De,{key:1,id:"choose-another-from-gallery",ref_key:"chooseAnotherFromGalleryInput",ref:l,name:"choose-another-from-gallery",label:e(_),"container-class":"receipt-upload__select-another-file","accept-attribute":h.acceptAttribute,onSelectImage:k[1]||(k[1]=f=>i("selectImage",f))},null,8,["label","accept-attribute"])):h.labels.selectAnotherButtonLabel?(s(),v(De,{key:2,id:"select-another-file",ref_key:"defaultAnotherInput",ref:u,name:"select-another-file",label:h.labels.selectAnotherButtonLabel,"container-class":"receipt-upload__select-another-file","accept-attribute":h.acceptAttribute,onSelectImage:k[2]||(k[2]=f=>i("selectImage",f))},null,8,["label","accept-attribute"])):m("",!0)],64))}}),nc=["id"],sc=["id"],ic={class:"receipt-upload__section"},rc={key:0,class:"receipt-select"},lc={key:0,class:"receipt-select__description"},cc={key:1,class:"receipt-preview"},uc=["src"],pc={class:"receipt-preview__description"},dc={key:2,class:"receipt-uploading"},mc={key:0,class:"receipt-uploading__description"},_c={key:3,class:"receipt-error"},hc={class:"receipt-error__header"},gc={class:"receipt-error__description"},bc=["disabled"],yc=x({__name:"ReceiptUpload",setup(o){const t=D().getScannerLabels,a=ro(),n=S(!1),i=We("imageIcon"),r=S(null),l=S(null),u=S(null),d=["image/png","image/jpeg","image/heic"],p=["png","jpeg","jpg","heic"],_=d.join(", "),{getUploadState:b,previewImage:h,uploadImage:k,resetUpload:f}=Bl(d,p),w=async C=>{const $=C.target,[W]=$.files;W&&(await h(W),$.value="")},P=()=>{r.value?.clearInputs(),l.value?.clearInputs(),n.value=!1,f()},N=()=>{n.value=!0};$t(()=>{P()});const{announceText:A,requestFallbackFocus:R,onDialogOpen:z,dialogDetailsId:T,dialogHeadingId:L}=ye();return ge(b,C=>{switch(C.state){case"PREVIEW":{A(t.imageUploadSuccess),Le(()=>u.value?.focus());return}case"ERROR":{b.value.state==="ERROR"&&(A(`${b.value.errorTitle} ${b.value.errorDescription}`),r.value?.focus());return}case"UPLOADING":{R(),A(t.uploadingImageLabel);return}}}),z(()=>{r.value?.focus()}),(C,$)=>(s(),c(q,null,[I(dt,{class:"receipt-scanner__animated-icon","animation-data":e(Xl)},null,8,["animation-data"]),e(t).uploadHeader?(s(),c("h2",{key:0,id:e(L),class:"receipt-upload__header"},g(e(t).uploadHeader),9,nc)):m("",!0),e(t).uploadDescription?(s(),c("p",{key:1,id:e(T),class:"receipt-upload__description"},g(e(t).uploadDescription),9,sc)):m("",!0),y("div",ic,[e(b).state==="SELECT"?(s(),c("div",rc,[$[1]||($[1]=y("p",{class:"receipt-select__icon"},null,-1)),e(t).supportedFilesDescription?(s(),c("p",lc,g(e(t).supportedFilesDescription),1)):m("",!0)])):m("",!0),e(b).state==="PREVIEW"?(s(),c("div",cc,[n.value?(s(),v(re,{key:0,"icon-path":e(i),"class-name":"receipt-preview__image"},null,8,["icon-path"])):(s(),c("img",{key:1,class:"receipt-preview__image",src:e(b).fileUrl,onError:N},null,40,uc)),y("p",pc,[$[2]||($[2]=y("span",{class:"receipt-preview__icon-image"},null,-1)),Dt(g(e(b).file.name),1),y("button",{class:"receipt-preview__icon-exit",onClick:P})])])):m("",!0),e(b).state==="UPLOADING"?(s(),c("div",dc,[I(Pe,{class:"receipt-uploading__loader"}),e(t).uploadingImageLabel?(s(),c("p",mc,g(e(t).uploadingImageLabel),1)):m("",!0)])):m("",!0),e(b).state==="ERROR"?(s(),c("div",_c,[$[3]||($[3]=y("div",{class:"receipt-error__icon"},null,-1)),y("h2",hc,g(e(b).errorTitle),1),y("p",gc,g(e(b).errorDescription),1)])):m("",!0),e(b).state==="SELECT"||e(b).state==="ERROR"?(s(),v(ac,{key:4,ref_key:"selectButtons",ref:r,"is-android-device":e(a),state:e(b).state,labels:e(t),"accept-attribute":e(_),onSelectImage:w},null,8,["is-android-device","state","labels","accept-attribute"])):m("",!0)]),e(t).uploadButtonLabel?(s(),c("button",{key:2,ref_key:"uploadFileButton",ref:u,class:"button-primary receipt-upload__upload-file",disabled:e(b).state!=="PREVIEW",onClick:$[0]||($[0]=(...W)=>e(k)&&e(k)(...W))},g(e(t).uploadButtonLabel),9,bc)):m("",!0),e(b).state==="PREVIEW"?(s(),v(oc,{key:3,ref_key:"anotherButtons",ref:l,"is-android-device":e(a),labels:e(t),"accept-attribute":e(_),onSelectImage:w},null,8,["is-android-device","labels","accept-attribute"])):m("",!0)],64))}}),kc=M(yc,[["__scopeId","data-v-b0737741"]]),fc=["id"],vc=["id","innerHTML"],Ec=["innerHTML"],Ic=x({__name:"ReceiptError",setup(o){const{getScannerL
2abels:t}=D(),a=de(),{showManualReviewForm:n}=a,{getScannerState:i,lastParticipationId:r}=B(a),{closeModal:l,resetScanner:u}=a,{header:d,description:p,tryAgainLabel:_,iconType:b,showManualReviewButton:h}=i.value.state==="RECEIPT_ERROR"?i.value:{},{dialogDetailsId:k,dialogHeadingId:f}=ye();return(w,P)=>(s(),c(q,null,[I(re,{"icon-path":e(We)(e(b)),"class-name":"receipt-scanner__icon"},null,8,["icon-path"]),e(d)?(s(),c("h2",{key:0,id:e(f),class:"receipt-error__header"},g(e(d)),9,fc)):m("",!0),e(p)?(s(),c("p",{key:1,id:e(k),class:"receipt-error__description",innerHTML:e(p)},null,8,vc)):m("",!0),e(_)?(s(),c("button",{key:2,class:"button-primary receipt-error__try-again",onClick:P[0]||(P[0]=(...N)=>e(u)&&e(u)(...N))},g(e(_)),1)):m("",!0),e(t).returnToPromotionButtonLabel?(s(),c("button",{key:3,class:"button-secondary receipt-error__return-to-promotion",onClick:P[1]||(P[1]=(...N)=>e(l)&&e(l)(...N))},g(e(t).returnToPromotionButtonLabel),1)):m("",!0),e(t).requestManualReviewButtonLabel&&e(r)&&e(h)?(s(),c("button",{key:4,class:"button-action",onClick:P[2]||(P[2]=(...N)=>e(n)&&e(n)(...N))},g(e(t).requestManualReviewButtonLabel),1)):e(t).needHelpDescription?(s(),c("p",{key:5,class:"receipt-error__footer",innerHTML:e(t).needHelpDescription},null,8,Ec)):m("",!0)],64))}}),xc=M(Ic,[["__scopeId","data-v-cf1c7f97"]]),wc=["id"],Pc=["id"],Sc=x({__name:"ReceiptProcessing",setup(o){const t=D().getScannerLabels,{enrollPromotion:a}=de();j(async()=>{await a()});const{dialogDetailsId:n,dialogHeadingId:i,requestFallbackFocus:r}=ye();return r(),(l,u)=>(s(),c(q,null,[I(dt,{class:"receipt-scanner__animated-icon receipt-processing__icon","animation-data":e(yo)},null,8,["animation-data"]),e(t).processingHeader?(s(),c("h2",{key:0,id:e(i),class:"receipt-processing__header"},g(e(t).processingHeader),9,wc)):m("",!0),e(t).processingDescription?(s(),c("p",{key:1,id:e(n),class:"receipt-processing__description"},g(e(t).processingDescription),9,Pc)):m("",!0)],64))}}),Dc=M(Sc,[["__scopeId","data-v-3efe5f14"]]),Lc="4.8.0",Rc={g:"LottieFiles AE 3.5.9",a:"",k:"",d:"",tc:"#FFFFFF"},Cc=30,Ac=0,Tc=80,Nc=1100,$c=1100,zc="Comp 1",Mc=0,Oc=JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[548.707,554.707,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1062.586,1062.586],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":true},{"ty":"tr","p":{"a":0,"k":[1.293,-4.707],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[139.653,139.653],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 1","hd":true,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[563.486,536,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[104.858,102.29,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[156.357,243.708],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-438.219,-376.728],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 4","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[968.189,956.303],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-36.118,-32.162],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 3","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[758.993,758.993],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-148.345,-134.727],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 2","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[17.656,17.656],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[502.828,-515.172],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 2","hd":true,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[536.514,566,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-104.858,-101.908,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[17.656,17.656],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[502.828,-515.172],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"nm":"icon","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,550,0],"ix":2},"a":{"a":0,"k":[550,550,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":1100,"h":1100,"ip":0,"op":80,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Glow","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-0.085,"ix":10},"p":{"a":0,"k":[227.2,162.579,0],"ix":2},"a":{"a":0,"k":[227.126,163.057,0],"ix":1},"s":{"a":0,"k":[100.407,100.407,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.517,-2.807],[-2.806,-0.517],[-0.518,2.807],[2.807,0.517]],"o":[[-0.517,2.807],[2.807,0.518],[0.517,-2.807],[-2.807,-0.518]],"v":[[-5.083,-0.937],[-0.938,5.082],[5.082,0.937],[0.936,-5.082]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[203.845,188.869],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.898,2.831],[-12.477,8.436],[-1.239,-1.834],[1.981,-1.16],[8.927,-11.137]],"o":[[8.594,-12.188],[1.831,-1.246],[1.294,1.898],[-12.159,7.175],[-2.175,2.603]],"v":[[-18.466,13.363],[13.504,-17.913],[19.07,-16.846],[17.789,-11.158],[-14.22,16.556]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[230.805,158.204],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":".icon-fill-color-primary.icon-stroke-color-neutral","cl":"icon-fill-color-primary icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-6.463,"ix":10}
2,"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[558,638,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[350,408,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":30,"s":[606,408,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":45,"s":[350,652,0],"to":[0,0,0],"ti":[0,0,0]},{"t":60,"s":[562,642,0]}],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[164,164,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.517,-2.807],[-2.806,-0.517],[-0.518,2.807],[2.807,0.517]],"o":[[-0.517,2.807],[2.807,0.518],[0.517,-2.807],[-2.807,-0.518]],"v":[[-5.083,-0.937],[-0.938,5.082],[5.082,0.937],[0.936,-5.082]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":true},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":true},{"ty":"tr","p":{"a":0,"k":[203.845,188.869],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":true},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.898,2.831],[-12.477,8.436],[-1.239,-1.834],[1.981,-1.16],[8.927,-11.137]],"o":[[8.594,-12.188],[1.831,-1.246],[1.294,1.898],[-12.159,7.175],[-2.175,2.603]],"v":[[-18.466,13.363],[13.504,-17.913],[19.07,-16.846],[17.789,-11.158],[-14.22,16.556]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":true},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":true},{"ty":"tr","p":{"a":0,"k":[230.805,158.204],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":true},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-29.787,-46.964],[46.963,-29.788],[29.787,46.964],[-46.963,29.787]],"o":[[29.787,46.964],[-46.964,29.787],[-29.787,-46.963],[46.964,-29.788]],"v":[[85.035,-53.935],[53.935,85.036],[-85.035,53.935],[-53.935,-85.035]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[311.405,248.366],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-44.322,-69.88],[69.88,-44.322],[44.322,69.88],[-69.88,44.322]],"o":[[44.322,69.88],[-69.88,44.322],[-44.322,-69.88],[69.88,-44.322]],"v":[[126.529,-80.253],[80.253,126.529],[-126.529,80.253],[-80.253,-126.529]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[311.405,248.366],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[46.963,-29.787],[29.788,46.963],[-46.963,29.787],[-29.788,-46.963]],"o":[[-46.964,29.787],[-29.787,-46.964],[46.964,-29.787],[29.787,46.964]],"v":[[53.935,85.035],[-85.035,53.935],[-53.935,-85.035],[85.036,-53.935]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[44.323,69.879],[69.879,-44.322],[-44.322,-69.879],[-69.88,44.322]],"o":[[-44.321,-69.88],[-69.88,44.323],[44.322,69.88],[69.88,-44.323]],"v":[[126.527,-80.252],[-80.252,-126.529],[-126.528,80.252],[80.253,126.529]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[311.405,248.366],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":4,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[26.091,2.849],[-8.544,24.816],[-26.091,-2.849],[8.544,-24.816]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.956862804936,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[398.992,387.854],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":3,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.524,-5.406],[0,0],[5.406,8.524],[0,0],[-8.524,5.406
2],[0,0],[-5.407,-8.524],[0,0]],"o":[[0,0],[-8.524,5.406],[0,0],[-5.406,-8.523],[0,0],[8.524,-5.406],[0,0],[5.407,8.524]],"v":[[57.094,49.749],[20.667,72.853],[-4.661,67.184],[-62.764,-24.422],[-57.095,-49.749],[-20.668,-72.853],[4.66,-67.186],[62.762,24.421]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.956862804936,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[447.278,462.587],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":3,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Mask","parent":2,"td":1,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":6.463,"ix":10},"p":{"a":0,"k":[301.192,246.133,0],"ix":2},"a":{"a":0,"k":[550,550,0],"ix":1},"s":{"a":0,"k":[60.976,60.976,100],"ix":6}},"ao":0,"w":1100,"h":1100,"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":".icon-stroke-color-neutral","cl":"icon-stroke-color-neutral","tt":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[474,502,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[205.48,225.925,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[222.855,405.607],[377.145,405.607]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":14,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[222.855,353.193],[377.145,353.193]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":14,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[222.855,300.779],[377.145,300.779]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":14,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[222.855,248.366],[377.145,248.366]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":14,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[222.855,195.952],[377.145,195.952]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":14,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Mask","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[300,300,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-38.466,-60.647],[60.647,-38.466],[38.466,60.646],[-60.647,38.466]],"o":[[38.466,60.647],[-60.646,38.466],[-38.466,-60.647],[60.646,-38.466]],"v":[[109.81,-69.649],[69.648,109.811],[-109.811,69.649],[-69.649,-109.811]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[311.405,248.366],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":".icon-stroke-color-neutral","cl":"icon-stroke-color-neutral","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,552,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[164,164,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[104.385,-200.75],[69.59,-222.708],[34.795,-200.75],[0,-222.708],[-34.794,-200.75],[-69.59,-222.708],[-104.384,-200.75],[-139.179,-222.708],[-139.179,222.708],[-104.384,200.749],[-69.59,222.708],[-34.794,200.749],[0,222.708],[34.795,200.749],[69.59,222.708],[104.385,200.749],[139.179,222.708],[139.179,-222.708]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[251.495,272.646],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"nm":"Outline","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,550,0],"ix":2},"a":{"a":0,"k":[550,550,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":1100,"h":1100,"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Outline","parent":2,"refId":"comp_4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":6.463,"ix":10},"p":{"a":0,"k":[301.192,246.133,0],"ix":2},"a":{"a":0,"k":[550,550,0],"ix":1},"s":{"a":0,"k":[60.976,60.976,100],"ix":6}},"ao":0,"w":1100,"h":1100,"ip":0,"op":80,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"bill3 Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-6.463,"ix":10},"p":{"a":0,"k":[558,638,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[164,164,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"n","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[181.352,118.313],[181.352,378.418],[441.457,378.418],[441.457,118.313]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-38.466,-60.647],[60.647,-38.466],[38.466,60.646],[-60.647,38.466]],"o":[[38.466,60.647],[-60.646,38.466],[-38.466,-60.647],[60.646,-38.466]],"v":[[109.81,-69.649],[69.648,109.811],[-109.811,69.649],[-69.649,-109.811]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[311.405,248.366],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"bill6 Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[550,552,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[164,164,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.144,1.182],[2.069,-1.309],[0,0],[0,0],[2.192,-1.383],[0,0],[0,0],[2.192,-1.383],[0,0],[0,0],[2.192,-1.383],[0,0],[0,0],[2.143,-1.181],[0,-2.448],[0,0],[-2.144,-1.182],[-2.072,1.306],[0,0],[0,0],[-2.192,1.383],[0,0],[0,0],[-1.245,0],[-1.096,0.692],[0,0],[0,0],[-2.192,1.383],[0,0],[0,0],[-2.146,1.182],[0,2.448],[0,0]],"o":[[-2.146,-1.182],[0,0],[0,0],[-2.192,-1.383],[0,0],[0,0],[-2.192,-1.383],[0,0],[0,0],[-2.192,-1.383],[0,0],[0,0],[-2.071,-1.307],[-2.144,1.182],[0,0],[0,2.448],[2.141,1.179],[0,0],[0,0],[2.192,1.383],[0,0],[0,0],[1.096,0.692],[1.246,0],[0,0],[0,0],[2.192,1.383],[0,0],[0,0],[2.067,1.306],[2.144,-1.182],[0,0],[0,-2.448]],"v":[[142.426,-228.594],[135.593,-228.391],[104.385,-208.697],[73.175,-228.391],[66.003,-228.391],[34.795,-208.697],[3.587,-228.391],[-3.587,-228.391],[-34.795,-208.697],[-66.003,-228.391],[-73.176,-228.391],[-104.384,-208.697],[-135.594,-228.391],[-142.426,-228.594],[-145.901,-222.708],[-145.901,222.709],[-142.426,228.594],[-135.594,228.391],[-104.384,208.695],[-73.176,228.39
21],[-66.003,228.391],[-34.795,208.695],[-3.587,228.391],[-0.001,229.428],[3.587,228.391],[34.795,208.695],[66.003,228.391],[73.175,228.391],[104.385,208.695],[135.593,228.391],[142.426,228.594],[145.901,222.709],[145.901,-222.708]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.674509803922,0.301960784314,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[251.495,272.646],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0}]},{"id":"comp_4","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"bill4 Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-6.463,"ix":10},"p":{"a":0,"k":[558,638,0],"ix":2},"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[164,164,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.936,6.207],[0,0],[7.206,1.613],[4.48,-1.349],[0,0],[41.676,65.708],[74.07,-46.978],[9.28,-41.464],[-22.758,-35.882],[-52.708,0],[-18.678,7.302],[0,0],[-6.474,-10.208],[0,0],[-7.206,-1.613],[-2.031,0],[-4.456,2.826],[0,0],[-1.613,7.207]],"o":[[0,0],[-3.936,-6.207],[-4.71,-1.052],[0,0],[55.095,-51.133],[-46.979,-74.072],[-35.881,22.759],[-9.278,41.464],[30.26,47.709],[19.394,0],[0,0],[-7.162,8.949],[0,0],[3.936,6.207],[2.033,0.455],[5.168,0],[0,0],[6.209,-3.937],[1.612,-7.207]],"v":[[182.867,174.767],[124.764,83.162],[107.484,71.034],[93.516,71.534],[84.696,57.629],[110.761,-144.127],[-108.773,-193.258],[-178.806,-93.666],[-157.903,26.277],[-23.317,100.106],[34.295,89.244],[43.528,103.801],[41.734,135.824],[99.837,227.431],[117.117,239.556],[123.227,240.236],[137.918,235.952],[174.343,212.849],[186.472,195.568]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.674509803922,0.301960784314,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[334.976,307.291],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":80,"st":0,"bm":0}]}]'),Bc=[{ddd:0,ind:1,ty:0,nm:"icon Comp 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[550,550,0],ix:2},a:{a:0,k:[550,550,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:25,nm:"Drop Shadow",np:8,mn:"ADBE Drop Shadow",ix:1,en:1,ef:[{ty:2,nm:"Shadow Color",mn:"ADBE Drop Shadow-0001",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:"Opacity",mn:"ADBE Drop Shadow-0002",ix:2,v:{a:0,k:76.5,ix:2}},{ty:0,nm:"Direction",mn:"ADBE Drop Shadow-0003",ix:3,v:{a:0,k:180,ix:3}},{ty:0,nm:"Distance",mn:"ADBE Drop Shadow-0004",ix:4,v:{a:0,k:12,ix:4}},{ty:0,nm:"Softness",mn:"ADBE Drop Shadow-0005",ix:5,v:{a:0,k:40,ix:5}},{ty:7,nm:"Shadow Only",mn:"ADBE Drop Shadow-0006",ix:6,v:{a:0,k:0,ix:6}}]}],w:1100,h:1100,ip:0,op:80,st:0,bm:0}],Uc=[],za={v:Lc,meta:Rc,fr:Cc,ip:Ac,op:Tc,w:Nc,h:$c,nm:zc,ddd:Mc,assets:Oc,layers:Bc,markers:Uc},Vc=["id"],Gc=["id","innerHTML"],Wc=["href"],qc=["innerHTML"],Fc=x({__name:"ReceiptReceived",setup(o){const{getScannerLabels:t,getScannerConfig:a}=D(),{resetScanner:n}=de(),{dialogDetailsId:i,dialogHeadingId:r}=ye();return(l,u)=>(s(),c(q,null,[I(dt,{class:"receipt-scanner__animated-icon","animation-data":e(za)},null,8,["animation-data"]),e(t).receivedHeader?(s(),c("h2",{key:0,id:e(r),class:"receipt-received__header"},g(e(t).receivedHeader),9,Vc)):m("",!0),e(t).receivedDescription?(s(),c("p",{key:1,id:e(i),class:"receipt-received__description",innerHTML:e(t).receivedDescription},null,8,Gc)):m("",!0),e(t).uploadAnotherButtonLabel?(s(),c("button",{key:2,class:"button-primary receipt-received__upload-another",onClick:u[0]||(u[0]=(...d)=>e(n)&&e(n)(...d))},g(e(t).uploadAnotherButtonLabel),1)):m("",!0),e(a).myReceiptsPageCtaLabel&&e(a).myReceiptsPageCtaUrl?(s(),c("a",{key:3,href:e(a).myReceiptsPageCtaUrl,class:"button-secondary receipt-received__view-receipts"},g(e(a).myReceiptsPageCtaLabel),9,Wc)):m("",!0),e(t).needHelpDescription?(s(),c("p",{key:4,class:"receipt-received__footer",innerHTML:e(t).needHelpDescription},null,8,qc)):m("",!0)],64))}}),Hc=M(Fc,[["__scopeId","data-v-60a57739"]]),jc=400,Qc=30001,Kc=300,Me=S("FORM"),wt=S(""),Jc=()=>{const o=D(),{ngpsConfig:t,reCaptchaSiteKey:a}=o.getConfigData,n=ss(t),i=S(""),r=S(""),l=E(()=>!i.value||!r.value.trim()||r.value.length>Kc),u=async(d,p,_)=>{if(!l.value){Me.value="SUBMITTING",wt.value="";try{const b=await Be(),h=await Re(a,"requestManualReview");await n(b,h,d,i.value,r.value.trim()),Me.value="SUCCESS",_()}catch(b){wt.value=b instanceof La&&b.status===jc&&b.errCode===Qc?p.manualReviewMaxAttemptsError||"":p.manualReviewGeneralError||"",Me.value="ERROR"}}};return{errorMessage:E(()=>wt.value),isSubmitting:E(()=>Me.value==="SUBMITTING"),isError:E(()=>Me.value==="ERROR"),reason:i,explanation:r,isSubmitDisabled:l,submitReview:u}},Zc=["id"],Xc=["id"],Yc={class:"receipt-manual-review__field"},eu={key:0,class:"receipt-manual-review__label",for:"manual-review-reason"},tu={class:"receipt-manual-review__select-wrapper"},au=["disabled"],ou={key:0,value:"",disabled:"",selected:"",hidden:""},nu={key:1,value:"REJECTED"},su={key:2,value:"APPROVED_WITH_MISSING_PRODUCTS"},iu={class:"receipt-manual-review__field"},ru={key:0,class:"receipt-manual-review__label",for:"manual-review-explanation"},lu=["placeholder","disabled"],cu={class:"receipt-manual-review__character-count"},uu={key:2,class:"receipt-manual-review__error"},pu=["disabled"],du=x({__name:"ReceiptManualReviewForm",props:{participationId:{},labels:{},reviewSuccess:{type:Function}},setup(o){const{submitReview:t,isSubmitting:a,isError:n,errorMessage:i,reason:r,explanation:l,isSubmitDisabled:u}=Jc(),d=E(()=>l.value?.length||0),{dialogDetailsId:p,dialogHeadingId:_,onDialogOpen:b}=ye(),h=S(null);return b(()=>{h.value?.focus()}),(k,f)=>(s(),c(q,null,[I(dt,{"animation-data":e(za),class:"receipt-manual-review__icon"},null,8,["animation-data"]),k.labels.manualReviewModalHeader?(s(),c("h2",{key:0,id:e(_),class:"receipt-manual-review__header"},g(k.labels.manualReviewModalHeader),9,Zc)):m("",!0),k.labels.manualReviewModalDescription?(s(),c("p",{key:1,id:e(p),class:"receipt-manual-review__subtitle"},g(k.labels.manualReviewModalDescription),9,Xc)):m("",!0),y("div",Yc,[k.labels.manualReviewReasonLabel?(s(),c("label",eu,g(k.labels.manualReviewReasonLabel),1)):m("",!0),y("div",tu,[fe(y("select",{id:"manual-review-reason",ref_key:"manualReviewSelect",ref:h,"onUpdate:modelValue":f[0]||(f[0]=w=>Yt(r)?r.value=w:null),class:"receipt-manual-review__select",disabled:e(a)},[k.labels.manualReviewReasonPlaceholder?(s(),c("option",ou,g(k.labels.manualReviewReasonPlaceholder),1)):m("",!0),k.labels.manualReviewRejectedReasonLabel?(s(),c("option",nu,g(k.labels.manualReviewRejectedReasonLabel),1)):m("",!0),k.labels.manualReviewApprovedReasonLabel?(s(),c("option",su,g(k.labels.manualReviewApprovedReasonLabel),1)):m("",!0)],8,au),[[pa,e(r)]])])]),y("div",iu,[k.labels.manualReviewExplanationLabel?(s(),c("label",ru,g(k.labels.manualReviewExplanationLabel),1)):m("",!0),fe(y("textarea",{id:"manual-review-explanation","onUpdate:modelValue":f[1]||(f[1]=w=>Yt(l)?l.value=w:null),class:"receipt-manual-review__textarea",placeholder:k.labels.manualReviewExplanationPlaceholder,disabled:e(a),maxlength:"300"},null,8,lu),[[Tt,e(l)]]),y("span",cu,g(d.value)+"/300",1)]),e(n)?(s(),c("p",uu,g(e(i)),1)):m("",!0),k.labels.manualReviewSubmitButtonLabel?(s(),c("button",{key:3,class:"button-primary",disabled:e(u)||e(a),onClick:f[2]||(f[2]=w=>e(t)(k.participationId,k.labels,k.reviewSuccess))},g(k.labels.manualReviewSubmitButtonLabel),9,pu)):m("",!0)],64))}}),Ma=M(du,[["__scopeId","data-v-ea005202"]]),kt=le("receiptManualReviewStore",()=>{const o=S({state:"RECEIPT_MANUAL_REVIEW_FORM",participationId:""}),{requestCloseDialog:t,requestOpenDialog:a,setDialogRef:n,isDialogVisible:i}
2=Fe({name:"receipt-scanner",priority:"manual",allowBackdropClose:!0,allowKeyboardClose:!0}),r=E(()=>o.value);return{setDialogRef:n,openModal:d=>{o.value={state:"RECEIPT_MANUAL_REVIEW_FORM",participationId:d},a()},closeModal:t,showManualReviewSuccess:()=>{o.value={state:"RECEIPT_MANUAL_REVIEW_SUCCESS"}},getReviewState:r,isDialogVisible:i}}),mu=["id"],_u=["id","innerHTML"],hu=["href"],gu=x({__name:"ReceiptManualReviewSuccess",props:{labels:{},config:{}},setup(o){const t=We("thumbUpIcon"),{closeModal:a}=kt(),{closeModal:n}=de(),i=()=>{a(),n()},{dialogDetailsId:r,dialogHeadingId:l,onDialogOpen:u}=ye(),d=S(null),p=S(null);return u(()=>{d.value?d.value.focus():p.value&&p.value.focus()}),(_,b)=>(s(),c(q,null,[I(re,{"icon-path":e(t),class:"receipt-manual-review__success-icon"},null,8,["icon-path"]),_.labels.manualReviewSuccessHeader?(s(),c("h2",{key:0,id:e(l),class:"receipt-manual-review__header"},g(_.labels.manualReviewSuccessHeader),9,mu)):m("",!0),_.labels.manualReviewSuccessDescription?(s(),c("p",{key:1,id:e(r),class:"receipt-manual-review__success-description",innerHTML:_.labels.manualReviewSuccessDescription},null,8,_u)):m("",!0),_.labels.manualReviewDoneButtonLabel?(s(),c("button",{key:2,ref_key:"manualReviewDoneButton",ref:d,class:"button-primary",onClick:i},g(_.labels.manualReviewDoneButtonLabel),513)):m("",!0),_.config.myReceiptsPageCtaLabel&&_.config.myReceiptsPageCtaUrl?(s(),c("a",{key:3,ref_key:"manualReviewCta",ref:p,class:"button-action",href:_.config.myReceiptsPageCtaUrl},g(_.config.myReceiptsPageCtaLabel),9,hu)):m("",!0)],64))}}),Oa=M(gu,[["__scopeId","data-v-12dab388"]]),Xe=x({__name:"ReceiptScannerModal",props:{labels:{},config:{}},setup(o){const t=te(),a=de(),{getScannerState:n,isDialogVisible:i}=B(a),{closeModal:r,showManualReviewSuccess:l,setDialogRef:u}=a,d=()=>t.push({name:"receipt-scanner-start-view"});return ge(i,p=>{!p&&n.value.state==="RECEIPT_MANUAL_REVIEW_SUCCESS"&&d()}),mt(["badLuckIcon","errorIcon"]),(p,_)=>(s(),v(qe,{class:"receipt-scanner__modal","close-modal":e(r),"close-modal-label":p.labels.closeModalButtonAriaLabel,"dialog-ref-assn-fn":e(u)},{default:O(()=>[e(n).state==="RECEIPT_UPLOAD"?(s(),v(kc,{key:0})):m("",!0),e(n).state==="RECEIPT_PROCESS"?(s(),v(Dc,{key:1})):m("",!0),e(n).state==="RECEIPT_RECEIVED"?(s(),v(Hc,{key:2})):m("",!0),e(n).state==="RECEIPT_ERROR"?(s(),v(xc,{key:3})):m("",!0),e(n).state==="RECEIPT_MANUAL_REVIEW_FORM"?(s(),v(Ma,{key:4,"participation-id":e(n).participationId,labels:p.labels,"review-success":e(l)},null,8,["participation-id","labels","review-success"])):m("",!0),e(n).state==="RECEIPT_MANUAL_REVIEW_SUCCESS"?(s(),v(Oa,{key:5,labels:p.labels,config:p.config},null,8,["labels","config"])):m("",!0)]),_:1},8,["close-modal","close-modal-label","dialog-ref-assn-fn"]))}}),bu={class:"promotion-success"},yu=["src","alt"],ku={key:1,class:"promotion-success__prize-name"},fu={key:2,class:"promotion-success__expiration"},vu=["innerHTML"],Eu={key:0,class:"promotion-success__voucher"},Iu=x({__name:"PromotionWinView",setup(o){const{getScannerPromoLabels:t,getScannerConfig:a,getScannerLabels:n}=D(),i=de(),{showManualReviewForm:r}=i,{lastParticipationId:l,getPromoType:u}=B(i),{redeemPrizeButtonLabel:d}=t,{openProgressiveProfile:p}=ee(),_=Ht(),{prizeName:b,image:h,shortDescription:k,expiryDate:f,voucherCode:w,redeemDescription:P,prizeId:N,isInterruptedFlow:A}=_,{setDialogRef:R,requestCloseDialog:z,requestOpenDialog:T}=Fe({name:"prize-details",priority:"manual"}),L=S(null),C=S(null);return j(()=>{Le(()=>{L.value?.focus(),document.activeElement!==L.value&&C.value?.focus()}),p()}),($,W)=>(s(),c(q,null,[I(Ol,{"close-modal":e(z),prize:e(_),"label-dictionary":e(t),"dialog-ref-assn-fn":e(R)},null,8,["close-modal","prize","label-dictionary","dialog-ref-assn-fn"]),y("div",bu,[e(h)?(s(),c("img",{key:0,class:"promotion-success__image",src:e(h),alt:e(b)},null,8,yu)):m("",!0),e(b)?(s(),c("h3",ku,g(e(b)),1)):m("",!0),!e(A)&&e(t).prizeExpiresLabel&&e(f)?(s(),c("p",fu,g(`${e(t).prizeExpiresLabel} ${e(f)}`),1)):m("",!0),e(k)?(s(),c("div",{key:3,class:"promotion-success__description",innerHTML:e(k)},null,8,vu)):m("",!0),e(P)?(s(),v(Ge,{key:4,"redeem-description":e(P),"label-dictionary":e(t),"instructions-on-top":""},null,8,["redeem-description","label-dictionary"])):m("",!0),e(A)?m("",!0):(s(),c(q,{key:5},[e(t).voucherCodeLabel&&e(w)?(s(),c("p",Eu,g(`${e(t).voucherCodeLabel} ${e(w)}`),1)):m("",!0),I(pt,{"prize-id":e(N),"copy-content":e(w),"label-dictionary":e(t),"display-on-top":""},null,8,["prize-id","copy-content","label-dictionary"])],64)),e(d)?(s(),c("button",{key:6,ref_key:"redeemPrizeButtonRef",ref:L,class:"button-primary promotion-success__redeem-prize",onClick:W[0]||(W[0]=(...G)=>e(T)&&e(T)(...G))},g(e(d)),513)):m("",!0),I(Xt,{ref_key:"addReceiptButtonRef",ref:C,class:"promotion-success__add-receipt"},null,512),I(Ee,{class:"promo-result__social-share"}),e(t).requestManualReviewButtonLabel&&e(l)&&e(u)!=="instant-win"?(s(),c("button",{key:7,class:"button-action",onClick:W[1]||(W[1]=(...G)=>e(r)&&e(r)(...G))},g(e(t).requestManualReviewButtonLabel),1)):(s(),v(he,{key:8}))]),I(Xe,{labels:e(n),config:e(a)},null,8,["labels","config"])],64))}}),la=M(Iu,[["__scopeId","data-v-45c6f5b1"]]),xu={class:"promotion-success"},wu={key:0,class:"promotion-success__prize-name"},Pu={key:1,class:"promotion-success__description"},Su=["href"],Du=x({__name:"PrizeDrawSuccessView",setup(o){const{getScannerPromoLabels:t,getScannerConfig:a,getScannerL
2abels:n}=D(),{openProgressiveProfile:i}=ee();return j(i),(r,l)=>(s(),c(q,null,[y("div",xu,[I(Aa,{"use-icon":!0}),e(t).promotionSuccessHeader?(s(),c("h3",wu,g(e(t).promotionSuccessHeader),1)):m("",!0),e(t).promotionSuccessDescription?(s(),c("p",Pu,g(e(t).promotionSuccessDescription),1)):m("",!0),e(a).myReceiptsPageCtaLabel&&e(a).myReceiptsPageCtaUrl?(s(),c("a",{key:2,href:e(a).myReceiptsPageCtaUrl,class:"button-primary promotion-success__view-receipts"},g(e(a).myReceiptsPageCtaLabel),9,Su)):m("",!0),I(Xt,{class:"promotion-success__add-receipt"}),I(Ee,{class:"promo-result__social-share"}),I(he)]),I(Xe,{labels:e(n),config:e(a)},null,8,["labels","config"])],64))}}),Lu=M(Du,[["__scopeId","data-v-e64362d7"]]),Ru=["disabled"],Cu={key:1,class:"button-secondary"},Au=x({__name:"ReceiptScannerView",setup(o){const{getScannerLabels:t,getScannerConfig:a}=D(),{canOpenLoginModal:n,openLoginModal:i}=Qe(),{setAppReturn:r}=_e(),{openModal:l,enterPromotion:u}=de(),d=S(!1),p=async()=>{V("promo_click_cta");const _=await ga();await _.isAuthenticated()?l():await n()?i():(d.value=!0,r(),await _.signIn())};return At(async()=>{const _=new URLSearchParams(window.location.search),b=_.get("participationId"),h=_.get("skipToScanner");await zt(()=>import("./lottie.js"),__vite__mapDeps([0,1,2]),import.meta.url),b?await u(b):h&&await p()}),j(()=>{V("promo_view")}),$t(()=>{d.value=!1}),(_,b)=>(s(),v(bt,{class:"receipt-scanner__content"},{default:O(()=>[e(t).addReceiptButtonLabel?(s(),c("button",{key:0,class:K(["button--primary promo-entry__start",{loading:d.value}]),disabled:d.value,onClick:p},g(e(t).addReceiptButtonLabel),11,Ru)):m("",!0),e(t).checkEligibilityButtonLabel?(s(),c("button",Cu,g(e(t).checkEligibilityButtonLabel),1)):m("",!0),I(Xe,{labels:e(t),config:e(a)},null,8,["labels","config"])]),_:1}))}}),Tu={key:2,class:"promotion-success"},Nu=["src","alt"],$u={key:2,class:"promotion-success__header"},zu={key:3,class:"promotion-success__description"},Mu=["href"],Ou="/content/dam/onexp/global/icons/brand-expression/walet-bx.svg",Bu=x({__name:"CollectAndGetSuccessView",setup(o){const{currencies:t,errorOccurred:a}=Vt(),n=D(),i=de(),{getScannerPromoLabels:r,getScannerConfig:l,getScannerLabels:u}=n,{showManualReviewForm:d}=i,{lastParticipationId:p}=B(i),{getAllocationData:_,getAllEarnedPoints:b}=Ne(),{openProgressiveProfile:h}=ee(),k=E(()=>r.pointsEarnedHeaderLabel?.replace("#EARNED_POINTS#",`${b}`)),f=E(()=>r.pointsEarnedMessageLabel?.replace("#EARNED_POINTS#",`${b}`)),w=E(()=>_.length===1),P=E(()=>w.value&&t.value?Lo(t.value,_[0]):null);return j(h),(N,A)=>(s(),c(q,null,[e(a)?(s(),v(Ut,{key:0})):e(t)?(s(),c("div",Tu,[P.value?.currencyIcon?(s(),c("img",{key:0,class:"promotion-success__currency-icon",src:P.value.currencyIcon,alt:P.value.currencyName},null,8,Nu)):(s(),v(re,{key:1,"icon-path":Ou,"class-name":"promotion-success__currency-icon"})),k.value?(s(),c("h3",$u,g(k.value),1)):m("",!0),f.value?(s(),c("p",zu,g(f.value),1)):m("",!0),e(l).prizeCatalogPageCtaLabel&&e(l).prizeCatalogPageCtaUrl?(s(),c("a",{key:4,href:e(l).prizeCatalogPageCtaUrl,class:"button-primary promotion-success__prize-catalog"},g(e(l).prizeCatalogPageCtaLabel),9,Mu)):m("",!0),I(Xt,{class:"promotion-success__add-receipt"}),I(Ee,{class:"promo-result__social-share"}),e(r).requestManualReviewButtonLabel&&e(p)?(s(),c("button",{key:5,class:"button-action",onClick:A[0]||(A[0]=(...R)=>e(d)&&e(d)(...R))},g(e(r).requestManualReviewButtonLabel),1)):(s(),v(he,{key:6}))])):(s(),v(Pe,{key:1})),I(Xe,{labels:e(u),config:e(l)},null,8,["labels","config"])],64))}}),Uu=M(Bu,[["__scopeId","data-v-55eacfc5"]]),Vu={class:"promotion-loss"},Gu={class:"promotion-loss__header"},Wu={class:"promotion-loss__description"},qu={key:0,class:"button-primary promotion-loss__view-promos"},Fu=x({__name:"PromotionLossView",setup(o){const t=te(),{getScannerPromoLabels:a}=D(),{openProgressiveProfile:n}=ee(),i=de(),{openModal:r}=i,[l]=mt("badLuckIcon"),u=async()=>{await t.push({name:"receipt-scanner-start-view"}),r()};return j(n),(d,p)=>(s(),c("div",Vu,[I(re,{"icon-path":e(l),"class-name":"promotion-loss__icon"},null,8,["icon-path"]),y("h3",Gu,g(e(a).promotionLossHeader),1),y("p",Wu,g(e(a).promotionLossDescription),1),e(a).viewOtherPromosButtonLabel?(s(),c("button",qu,g(e(a).viewOtherPromosButtonLabel),1)):m("",!0),e(a).addAnotherReceiptButtonLabel?(s(),c("button",{key:1,class:"button-secondary promotion-loss__add-receipt",onClick:u},g(e(a).addAnotherReceiptButtonLabel),1)):(s(),v(he,{key:2}))]))}}),Hu=M(Fu,[["__scopeId","data-v-9d1db232"]]),ju={class:"promotion-error"},Qu={class:"promotion-error__header"},Ku={class:"promotion-error__description"},Ju={key:0,class:"button-primary promotion-error__view-promos"}
2,Zu=x({__name:"PromotionErrorView",setup(o){const t=te(),a=D(),{viewOtherPromosButtonLabel:n,addAnotherReceiptButtonLabel:i}=a.getScannerPromoLabels,{openProgressiveProfile:r}=ee(),l=de(),{getScannerConfig:u,getScannerLabels:d}=D(),{openModal:p}=l,{getScannerState:_}=B(l),{header:b,description:h,iconType:k,addReceiptOption:f}=_.value.state==="PROMOTION_ERROR"?_.value:{},w=async()=>{await t.push({name:"receipt-scanner-start-view"}),p()};return j(r),(P,N)=>(s(),c(q,null,[y("div",ju,[I(re,{"icon-path":e(We)(e(k)),"class-name":"promotion-error__icon"},null,8,["icon-path"]),y("h3",Qu,g(e(b)),1),y("p",Ku,g(e(h)),1),e(n)?(s(),c("button",Ju,g(e(n)),1)):m("",!0),e(f)&&e(i)?(s(),c("button",{key:1,class:"button-secondary promotion-error__add-receipt",onClick:w},g(e(i)),1)):(s(),v(he,{key:2}))]),I(Xe,{labels:e(d),config:e(u)},null,8,["labels","config"])],64))}}),Xu=M(Zu,[["__scopeId","data-v-100a1178"]]),Yu=()=>{const{ngpsConfig:o,myReceiptsConfig:t,reCaptchaSiteKey:a}=D().getConfigData,n=es(o,t),i=S(null),r=S(null),l=async()=>{if(!_t()){r.value=!0;return}const d=await Be(),p=await n(d,()=>Re(a,"myReceipts"));return e0(p.dataReceived)},u=async()=>{try{r.value=null,i.value=await l()}catch(d){i.value=null,r.value=d}};return j(async()=>{try{_o("promo_view_receipts"),i.value=await l()}catch(d){r.value=d}}),{receiptData:i,error:r,refreshReceipts:u}},e0=o=>{const t={accepted:[],submitted:[],unsuccessful:[]};return o.forEach(a=>{const n=a0(a,t0(a));n&&t[n.category].push(n.item)}),[{name:"accepted",items:t.accepted},{name:"submitted",items:t.submitted},{name:"unsuccessful",items:t.unsuccessful}].filter(({items:a})=>a.length>0)},t0=o=>({title:o.participation_id,date:lt(parseInt(o.participation_time,10)),status:o.status,transactionStatus:o.pluginOutput.transactionStatus,participationId:o.participation_id,instantWinWinner:o.instant_win_winner,promoEntryParticipation:o.promo_entry_participation,reviewDetails:o.review_details,promotionUrl:o.promotionUrl?`${o.promotionUrl}?participationId=${o.participation_id}`:null,applicableProducts:o.pluginOutput.applicableProducts?.map(t=>({...t,amount:Number(t.amount),price:Number(t.price)})),purchaseSum:Number(o.pluginOutput.purchaseSum),otherProductsSum:Number(o.pluginOutput.otherProductsSum),merchant:o.pluginOutput.merchant,purchaseDate:lt(new Date(o.pluginOutput.purchaseDate).getTime()),currency:o.pluginOutput.currency}),a0=(o,t)=>{const{status:a}=o,{transactionStatus:n,issueStatuses:i}=o.pluginOutput;switch(a){case"complete":if(n==="PROCESSED")return{category:"accepted",item:t};if(n==="INVALID_RECEIPT"){const[r]=i||[];return{category:"unsuccessful",item:{...t,error:r}}}return null;case"awaitsuser":return n==="PROCESSED"?{category:"accepted",item:t}:null;case"processing":return n==="REVIEW"||n==="PROCESSING"?{category:"submitted",item:t}:null;case"manual_review_requested":return{category:"submitted",item:t};default:return null}},Ba=le("receiptDetailsStore",()=>{const o=S(null),{requestCloseDialog:t,requestOpenDialog:a,setDialogRef:n,isDialogVisible:i}=Fe({name:"receipt-details",priority:"manual",allowBackdropClose:!0,allowKeyboardClose:!0}),r=E(()=>o.value);return{setDialogRef:n,openDetailsModal:u=>{o.value=u,a()},closeModal:t,getReceipt:r,isDialogVisible:i}}),nt=(o,t)=>t?new Intl.NumberFormat(navigator?.language||null,{style:"currency",currency:t}).format(o):o.toFixed(2),o0=["aria-label"],n0={class:"cmp-button__text"},s0={class:"copy-code-tooltip--wrapper",role:"status"},i0=1500,r0=x({__name:"CopyToClipboardButton",props:{copyCodeLabel:{},codeCopiedLabel:{},dataLayerEvent:{type:Function},copyContent:{}},setup(o){const t=o,a=S("");let n=null;const i=()=>{n&&(clearTimeout(n),n=null)},r=()=>{a.value=t.codeCopiedLabel??"",i(),n=setTimeout(()=>{a.value="",n=null},i0),navigator.clipboard.writeText(t.copyContent),t.dataLayerEvent?.()};return $t(i),(l,u)=>(s(),c(q,null,[l.copyCodeLabel&&l.codeCopiedLabel?(s(),c("button",{key:0,class:"button-tertiary copy-code-button","aria-label":l.copyCodeLabel,onClick:r},[y("span",n0,g(l.copyCodeLabel),1)],8,o0)):m("",!0),l.copyCodeLabel&&l.codeCopiedLabel?(s(),v(Ga,{key:1,to:"body"},[y("div",s0,[fe(y("p",{class:"copy-code-tooltip"},g(a.value),513),[[Nt,a.value]])])])):m("",!0)],64))}}),l0=M(r0,[["__scopeId","data-v-d1cbd29c"]]),c0={class:"receipt-card"},u0={key:0,class:"receipt-card__date"},p0={class:"receipt-card__heading"},d0={class:"receipt-card__icon"},m0={class:"receipt-card__title"},_0={key:0},h0={key:1},g0={key:1,class:"receipt-card__description"},b0={key:2,class:"receipt-card__error"},y0=["href"],ot="/content/dam/onexp/global/icons/brand-expression/",k0=x({__name:"MyReceiptCard",props:{receipt:{},categoryType:{},showDate:{type:Boolean}},setup(o){const{getMyReceiptsConfig:t,getMyReceiptsLabels:a}=D(),{openDetailsModal:n}=Ba(),i=S({PROCESSING:`${ot}thumb-up-bx.svg`,PROCESSED:`${ot}smile-bx.svg`,REVIEW:`${ot}review-bx.svg`,INVALID_RECEIPT:`${ot}error-bx.svg`}),r={PROCESSING:a.myReceiptsProcessingPendingDescription,PROCESSED:a.myReceiptsReceiptProcessedDescription};return(l,u)=>(s(),c("div",c0,[l.showDate&&e(a).myReceiptsSubmittedDateLabel?(s(),c("div",u0,g(e(a).myReceiptsSubmittedDateLabel)+" "+g(l.receipt.date),1)):m("",!0),y("div",p0,[y("div",d0,[I(re,{"icon-path":i.value[l.receipt.transactionStatus]},null,8,["icon-path"])]),y("div",m0,[e(a).receiptIdLabel?(s(),c("p",_0,[y("b",null,g(e(a).receiptIdLabel),1)])):m("",!0),y("h4",null,g(l.receipt.title),
21),e(a).myReceiptsPurchaseSumLabel&&l.receipt.purchaseSum?(s(),c("p",h0,g(e(a).myReceiptsPurchaseSumLabel)+" "+g(e(nt)(l.receipt.purchaseSum,l.receipt.currency)),1)):m("",!0)]),e(a).copyReceiptIdAriaLabel?(s(),v(l0,{key:0,"copy-content":l.receipt.participationId,"copy-code-label":e(a).copyReceiptIdAriaLabel,"code-copied-label":e(a).copyReceiptIdSuccessfulMessage},null,8,["copy-content","copy-code-label","code-copied-label"])):m("",!0)]),r[l.receipt.transactionStatus]?(s(),c("p",g0,g(r[l.receipt.transactionStatus]),1)):m("",!0),l.receipt.error&&e(Ve)(e(a),l.receipt.error)?(s(),c("p",b0,g(e(Ve)(e(a),l.receipt.error)),1)):m("",!0),l.receipt.status==="awaitsuser"&&l.receipt.promotionUrl?(s(),c("a",{key:3,href:l.receipt.promotionUrl,class:"button-primary receipt-card__enter-promotion"},g(e(t).promotionLandingPageCtaLabel),9,y0)):m("",!0),e(a).myReceiptsViewDetailsCtaLabel&&l.categoryType!=="submitted"?(s(),c("button",{key:4,class:"button-action receipt-card__view-receipt",onClick:u[0]||(u[0]=d=>e(n)(l.receipt))},g(e(a).myReceiptsViewDetailsCtaLabel),1)):m("",!0)]))}}),f0=M(k0,[["__scopeId","data-v-0215be10"]]),v0={class:"receipt-category"},E0={key:1,class:"receipt-category__title"},I0={key:2,class:"receipt-category__description"},x0=["href"],w0=x({__name:"MyReceiptCategory",props:{title:{},description:{},items:{},categoryType:{},addReceiptCta:{},icon:{}},setup(o){const{getMyReceiptsConfig:t}=D(),a=o,n=E(()=>`${t.promotionLandingPageCtaUrl}?skipToScanner=true`);return(i,r)=>(s(),c("div",v0,[i.icon?(s(),v(re,{key:0,"icon-path":a.icon},null,8,["icon-path"])):m("",!0),a.title?(s(),c("h3",E0,g(a.title),1)):m("",!0),a.description?(s(),c("p",I0,g(a.description),1)):m("",!0),(s(!0),c(q,null,pe(a.items,(l,u)=>(s(),v(f0,{key:u,receipt:l,"category-type":a.categoryType,"show-date":a.items[u-1]?.date!=l.date},null,8,["receipt","category-type","show-date"]))),128)),a.addReceiptCta?(s(),c("a",{key:3,href:n.value,class:"button-primary"},g(a.addReceiptCta),9,x0)):m("",!0)]))}}),Pt=M(w0,[["__scopeId","data-v-dc912c57"]]),P0=x({__name:"ReceiptManulReviewModal",props:{labels:{},config:{}},setup(o){const t=kt(),{getReviewState:a}=B(t),{closeModal:n,showManualReviewSuccess:i,setDialogRef:r}=t;return mt(["badLuckIcon","errorIcon"]),(l,u)=>(s(),v(qe,{class:"receipt-scanner__modal","close-modal":e(n),"close-modal-label":l.labels.closeModalButtonAriaLabel,"dialog-ref-assn-fn":e(r)},{default:O(()=>[e(a).state==="RECEIPT_MANUAL_REVIEW_FORM"?(s(),v(Ma,{key:0,"participation-id":e(a).participationId,labels:l.labels,"review-success":e(i)},null,8,["participation-id","labels","review-success"])):(s(),v(Oa,{key:1,labels:l.labels,config:l.config},null,8,["labels","config"]))]),_:1},8,["close-modal","close-modal-label","dialog-ref-assn-fn"]))}}),S0={key:0,class:"receipt-breakdown"},D0={xmlns:"http://www.w3.org/2000/svg",width:"100%",viewBox:"0 0 484 20",fill:"none",class:"receipt-breakdown__decoration receipt-breakdown__decoration--desktop",style:{"margin-bottom":"-1px"}},L0=["d"],R0={xmlns:"http://www.w3.org/2000/svg",width:"100%",viewBox:"0 0 327 14",fill:"none",class:"receipt-breakdown__decoration receipt-breakdown__decoration--mobile",style:{"margin-bottom":"-1px"}},C0=["d"],A0={class:"receipt-breakdown__content"},T0={key:0,class:"receipt-breakdown__purchase-date"},N0={class:"sr-only"},$0={key:1,class:"receipt-breakdown__merchant-name"},z0={class:"sr-only"},M0={key:2,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"2",viewBox:"0 0 420 2",fill:"none",class:"receipt-breakdown__divider-subtle"},O0={key:3,class:"product-breakdown"},B0={key:4,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"2",viewBox:"0 0 420 2",fill:"none",class:"receipt-breakdown__divider-subtle"},U0={key:0},V0={key:1,class:"receipt-breakdown__divider-solid"},G0={key:2,class:"receipt-breakdown__total-amount"},W0=["href"],q0={xmlns:"http://www.w3.org/2000/svg",width:"100%",viewBox:"0 0 327 14",fill:"none",class:"receipt-breakdown__decoration receipt-breakdown__decoration--mobile",style:{"margin-top":"-1px"}},F0=["d"],H0={xmlns:"http://www.w3.org/2000/svg",width:"100%",viewBox:"0 0 484 20",fill:"none",class:"receipt-breakdown__decoration receipt-breakdown__decoration--desktop",style:{"margin-top":"-1px"}},j0=["d"],Q0=x({__name:"ReceiptBreakdown",props:{receipt:{}},setup(o,{expose:t}){const a=o,{getMyReceiptsLabels:n,getMyReceiptsConfig:i}=D(),r=E(()=>a.receipt?.purchaseDate),l=E(()=>a.receipt?.otherProductsSum||a.receipt?.purchaseSum-a.receipt?.applicableProducts.reduce((_,b)=>_+b.price,0)),u={desktopTop:"m484 0-15.125 15.206L453.75 0l-15.125 15.206L423.5 0l-15.125 15.206L393.25 0l-15.125 15.206L363 0l-15.125 15.206L332.75 0l-15.125 15.206L302.5 0l-15.125 15.206L272.25 0l-15.125 15.206L242 0l-15.125 15.206L211.75 0l-15.125 15.206L181.5 0l-15.125 15.206L151.25 0l-15.125 15.206L121 0l-15.125 15.206L90.75 0 75.625 15.206 60.5 0 45.375 15.206 30.25 0 15.125 15.206 0 0v19.65h484z",mobileTop:"m327 0-10.219 10.273L306.562 0l-10.218 10.273L286.125 0l-10.219 10.273L265.688 0l-10.219 10.273L245.25 0l-10.219 10.273L224.812 0l-10.218 10.273L204.375 0l-10.219 10.273L183.937 0l-10.218 10.273L163.5 0l-10.219 10.273L143.062 0l-10.218 10.273L122.625 0l-10.219 10.273L102.187 0 91.969 10.273 81.75 0 71.531 10.273 61.312 0 51.095 10.273 40.875 0 30.656 10.273 20.438 0l-10.22 10.273L0 0v13.276h327z",mobileBottom:"M0 13.275 10.219 3.002l10.219 10.273L30.656 3.002l10.219 10.273L51.094 3.002l10.218 10.273 10.22-10.273L81.75 13.275 91.969 3.002l10.219 10.273 10.218-10.273 10.219 10.273 10.219-10.273 10.219 10.273 10.218-10.273L163.5 13.275l10.219-10.273 10.219 10.273 10.218-10.273 10.219 10.273 10.219-10.273 10.219 10.273 10.218-10.273 10.219 10.273 10.219-10.273 10.219 10.273 10.218-10.273 10.219 10.273 10.219-10.273 10.218 10.273 10.219-10.273L327 13.275V0H0z",desktopBottom:"M0 19.65 15.125 4.445 30.25 19.65 45.375 4.445 60.5 19.65 75.625 4.445 90.75 19.65l15.125-15.205L121 19.65l15.125-15.205L151.25 19.65l15.125-15.205L181.5 19.65l15.125-15.205L211.75 19.65l15.125-15.205L242 19.65l15.125-15.205L272.25 19.65l15.125-15.205L302.5 19.65l15.125-15.205L332.75 19.65l15.125-15.205L363 19.65l15.125-15.205L393.25 19.65l15.125-15.205L423.5 19.65l15.125-15.205L453.75 19.65l15.125-15.205L484 19.65V0H0z"},d=S(null);return t({focusEnterPromotion:()=>{d.value?.focus()}}),(_,b)=>!_.receipt.error&&_.receipt.applicableProducts?.length?(s(),c("div",S0,[(s(),c("svg",D0,[y("path",{d:u.desktopTop,style:{"fill-opacity":"1"}},null,8,L0)])),(s(),c("svg",R0,[y("path",{d:u.mobileTop,style:{"fill-opacity":"1"}},null,8,C0)])),y("div",A0,[r.value?(s(),c("p",T0,[y("span",N0,g(e(n).receiptDetailsDatePurchasedA11yLabel),1),Dt(" "+g(r.value),1)])):m("",!0),_.receipt.merchant?(s(),c("p",$0,[y("span",z0,g(e(n).receiptDetailsMerchantNameA11yLabel),1),Dt(" "+g(_.receipt.merchant),1)])):m("",!0),r.value||_.receipt.merchant?(s(),c("svg",M0,b[0]||(b[0]=[y("path",{d:"M0 1L420 0.999963",style:{"stroke-opacity":"1"},"stroke-width":"2","stroke-dasharray":"2 4"},null,-1)]))):m("",!0),_.receipt.applicableProducts.length?(s(),c("table",O0,[y("tbody",null,[(s(!0),c(q,null,pe(_.receipt.applicableProducts,(h,k)=>(s(),c("tr",{key:k},[y("td",null,g(h.amount),1),y("td",null,g(h.productNameOnReceipt),1),y("td",null,g(e(nt)(h.price,_.receipt.currency)),1)]))),128))])])):m("",!0),e(n).receiptDetailsOtherProductsCostLabel&&l.value?(s(),c("svg",B0,b[1]||(b[1]=[y("path",{d:"M0 1L420 0.999963",style:{"stroke-opacity":"1"},"stroke-width":"2","stroke-dasharray":"2 4"},null,-1)]))):m("",!0),y("dl",null,[e(n).receiptDetailsOtherProductsCostLabel&&l.value?(s(),c("div",U0,[y("dt",null,g(e(n).receiptDetailsOtherProductsCostLabel),
21),y("dd",null,g(e(nt)(l.value,_.receipt.currency)),1)])):m("",!0),e(n).receiptDetailsOtherProductsCostLabel&&l.value?(s(),c("span",V0)):m("",!0),e(n).receiptDetailsTotalAmountLabel&&_.receipt.purchaseSum?(s(),c("div",G0,[y("dt",null,g(e(n).receiptDetailsTotalAmountLabel),1),y("dd",null,g(e(nt)(_.receipt.purchaseSum,_.receipt.currency)),1)])):m("",!0)]),_.receipt.status==="awaitsuser"&&_.receipt.promotionUrl?(s(),c("a",{key:5,ref_key:"enterPromotionButton",ref:d,href:_.receipt.promotionUrl,class:"button-primary"},g(e(i).promotionLandingPageCtaLabel),9,W0)):m("",!0)]),(s(),c("svg",q0,[y("path",{d:u.mobileBottom,style:{"fill-opacity":"1"}},null,8,F0)])),(s(),c("svg",H0,[y("path",{d:u.desktopBottom,style:{"fill-opacity":"1"}},null,8,j0)]))])):m("",!0)}}),K0=M(Q0,[["__scopeId","data-v-cdf672b5"]]),J0={key:0,class:"receipt-details"},Z0=["id"],X0={class:"receipt-details__general-info"},Y0={key:0,class:"receipt-details__receipt-id"},ep={key:1},tp={key:2},ap={key:1,class:"receipt-details__rejection-reason"},op=x({__name:"ReceiptDetailsModal",setup(o){const{getMyReceiptsLabels:t}=D(),{openModal:a}=kt(),n=Ba(),{closeModal:i,setDialogRef:r}=n,{getReceipt:l}=B(n),u=E(()=>t.requestManualReviewButtonLabel&&l.value.status!=="awaitsuser"&&!l.value.reviewDetails&&(l.value.transactionStatus==="PROCESSED"||l.value.transactionStatus==="INVALID_RECEIPT")&&l.value.instantWinWinner==null&&l.value.promoEntryParticipation==null),d=E(()=>{switch(l.value?.transactionStatus){case"PROCESSED":return"receipt-details__status-badge--success";case"INVALID_RECEIPT":return"receipt-details__status-badge--fail";default:return null}}),p=E(()=>{switch(l.value?.transactionStatus){case"PROCESSED":return t.receiptDetailsStatusAcceptedLabel;case"INVALID_RECEIPT":return t.receiptDetailsStatusRejectedLabel;default:return null}}),_=()=>{i(),a(l.value.participationId)},b=S(null),h=S(null),{dialogHeadingId:k,onDialogOpen:f}=ye();return f(()=>{b.value?b.value.focus():h.value&&h.value.focusEnterPromotion()}),(w,P)=>(s(),v(qe,{class:"receipt-details__modal","close-modal":e(i),"close-modal-label":e(t).closeModalButtonAriaLabel,"dialog-ref-assn-fn":e(r)},{default:O(()=>[e(l)?(s(),c("div",J0,[e(t).receiptDetailsReceiptIdLabel&&e(l).participationId?(s(),c("span",{key:0,id:e(k),class:"sr-only"},g(e(t).receiptDetailsReceiptIdLabel)+" "+g(e(l).participationId),9,Z0)):m("",!0),y("dl",X0,[e(t).receiptDetailsReceiptIdLabel&&e(l).participationId?(s(),c("div",Y0,[y("dt",null,g(e(t).receiptDetailsReceiptIdLabel),1),y("dd",null,g(e(l).participationId),1)])):m("",!0),e(t).receiptDetailsDateSubmittedLabel&&e(l).date?(s(),c("div",ep,[y("dt",null,g(e(t).receiptDetailsDateSubmittedLabel),1),y("dd",null,g(e(l).date),1)])):m("",!0),e(t).receiptDetailsSubmissionStatusLabel&&p.value?(s(),c("div",tp,[y("dt",null,g(e(t).receiptDetailsSubmissionStatusLabel),1),y("dd",{class:K(`receipt-details__status-badge ${d.value}`)},g(p.value),3)])):m("",!0)]),e(l).error&&e(Ve)(e(t),e(l).error)?(s(),c("p",ap,g(e(Ve)(e(t),e(l).error)),1)):m("",!0),I(K0,{ref_key:"receiptBreakdown",ref:h,receipt:e(l)},null,8,["receipt"]),u.value?(s(),c("button",{key:2,ref_key:"requestManualReviewButton",ref:b,class:"button-action",onClick:_},g(e(t).requestManualReviewButtonLabel),513)):m("",!0)])):(s(),v(Pe,{key:1}))]),_:1},8,["close-modal","close-modal-label","dialog-ref-assn-fn"]))}}),np=M(op,[["__scopeId","data-v-1af26d6b"]]),sp={class:"my-receipts-wrapper"},ip={class:"my-receipts"},rp=x({__name:"MyReceiptsView",setup(o){const{getMyReceiptsLabels:t,getMyReceiptsConfig:a}=D(),n=S("/content/dam/onexp/global/icons/brand-expression/error-bx.svg"),{receiptData:i,error:r,refreshReceipts:l}=Yu(),u=kt(),{isDialogVisible:d,getReviewState:p}=B(u);ge(d,b=>{!b&&p.value.state==="RECEIPT_MANUAL_REVIEW_SUCCESS"&&l()});const _={accepted:{title:t.myReceiptsAcceptedHeading,description:t.myReceiptsAcceptedDescription},submitted:{title:t.myReceiptsSubmittedHeading,description:t.myReceiptsSubmittedDescription},unsuccessful:{title:t.myReceiptsUnsuccessfulHeading,description:t.myReceiptsUnsuccessfulDescription}};return(b,h)=>(s(),c("div",sp,[y("div",ip,[e(i)===null&&e(r)===null?(s(),v(Pe,{key:0,class:"my-receipts__loader"})):m("",!0),e(r)?(s(),v(Pt,{key:1,title:e(t).myReceiptsSystemErrorTitle,description:e(t).myReceiptsSystemErrorDescription,icon:n.value},null,8,["title","description","icon"])):e(i)?.length===0?(s(),v(Pt,{key:2,title:e(t).myReceiptsNoReceiptsTitle,de
2scription:e(t).myReceiptsNoReceiptsDescription,"add-receipt-cta":e(t).myReceiptsNoReceiptsCta},null,8,["title","description","add-receipt-cta"])):(s(!0),c(q,{key:3},pe(e(i),(k,f)=>(s(),v(Pt,{key:f,"category-type":k.name,title:_[k.name].title,description:_[k.name].description,items:k.items},null,8,["category-type","title","description","items"]))),128))]),I(P0,{labels:e(t),config:e(a)},null,8,["labels","config"]),I(np)]))}}),lp=M(rp,[["__scopeId","data-v-e2ae676c"]]),cp=o=>({path:"/receipt-scanner",component:we,meta:{layout:"promotion"},children:[{path:"",name:"receipt-scanner-start-view",component:Au},{path:"instant-win-success",name:"instant-win-success",component:la,beforeEnter:[o]},{path:"prize-draw-success",name:"prize-draw-success",component:Lu,beforeEnter:[o]},{path:"collect-and-get-success",name:"collect-and-get-success",component:Uu,beforeEnter:[o]},{path:"collect-and-get-win",name:"collect-and-get-auto-win",component:la,beforeEnter:[o]},{path:"promotion-loss",name:"promotion-loss",component:Hu,beforeEnter:[o]},{path:"promotion-error",name:"promotion-error",component:Xu,beforeEnter:[o]},{path:"my-receipts",name:"my-receipts",component:lp,beforeEnter:[o],meta:{layout:"empty"}},{path:"enter-promotion",name:"enter-promotion",component:Ze,beforeEnter:[o]}]}),Ye=le("leaderboardStore",()=>{const{isAuthenticated:o}=_e(),t=te(),a=He(),{getPersonalizationData:n}=B(a),{setPersonalizationData:i,resetPersonalizationData:r,customizeUserProfile:l}=a,{leaderboardApiUrl:u,promoPlusEnvId:d}=D().getLeaderboardConfig,{reCaptchaSiteKey:p,ngpsConfig:_,currencyId:b}=D().getConfigData,h=S(!1),k=S([]),f=S(),w=S(!1),P=S(!0),N=S(!1),A=new ea(u,p,d),R=(G,U)=>{if(G){const Q=k.value.findIndex(J=>J.userId===G);if(Q!==-1)return Q}return U?k.value.findIndex(Q=>Q.username===U):-1};ge(n,(G,U)=>{const Q=R(G.userId,U.username);Q!==-1&&(k.value[Q]={...k.value[Q],userId:G.userId,username:G.username,avatarUrl:G.avatarUrl,avatarAlt:G.avatarAlt,state:G.state})});const z=E(()=>k.value),T=E(()=>f.value),L=E(()=>w.value),C=E(()=>P.value),$=E(()=>N.value),W=async()=>{P.value=!0,N.value=!1;try{const G=await A.getLeaderboard(_.configurationId,b);if(ea.isErrorResponse(G))throw new Error(`Leaderboard API error: ${G.message}`);N.value=!!G.hasError;const U=[...G.results];U.findIndex(J=>J.userId===G.currentUser.userId)===-1&&G.currentUser.userId&&U.push(G.currentUser),k.value=U,f.value=G.currency,w.value=G.profileCreated,await i({...n.value,...G.currentUser})}catch{N.value=!0,k.value=[],r(),f.value=f.value||{name:""}}finally{P.value=!1}};return j(async()=>{if(h.value=await o(),!h.value){await t.push({name:"unauthorized-leaderboard-view"});return}await W(),L.value&&l()}),{fetchLeaderboardData:W,hasLeaderboardError:$,getCurrencyData:T,getLeaderboardData:z,isLoadingLeaderboard:C,getProfileCreated:L}}),up={class:"lb-heading"},pp={class:"lb-heading__section-top"},dp={class:"lb-heading__stats"},mp={key:0},_p={class:"lb-heading__stats-count"},hp={class:"lb-heading__avatar-container"},gp=["src","alt"],bp=["aria-label"],yp={class:"lb-heading__stats"},kp={key:0},fp={class:"lb-heading__stats-count"},vp={class:"lb-heading__section-bottom"},Ep={class:"lb-heading__username"},Ip=["aria-label"],xp={class:"cmp-button__text"},wp=x({__name:"LeaderboardHeading",setup(o){const t=D(),{placeLabel:a,youText:n}=t.getLeaderboardLabels,{profilePersonalizationLabels:i}=t.getConfigData,r=He();r.setLabels(i);const{editUserLabel:l,noUsernameLabel:u,editAvatarAriaLabel:d,editUsernameAriaLabel:p}=r.getLabels,_=Ye(),{getCurrencyData:b,hasLeaderboardError:h}=B(_),{getPersonalizationData:k}=B(r),{editUserProfile:f}=r,w=E(()=>h.value?"-":k.value?.position??"-"),P=E(()=>h.value?"-":k.value?.currencyAmount??"-"),N=E(()=>k.value?.state===lo.SAVED),A=E(()=>ba({state:k.value?.state,username:k.value?.username})),R=E(()=>A.value?u:`@${k.value?.username??""}`),z=E(()=>N.value&&!!k.value?.avatarUrl),T=()=>f("AVATAR_ONLY"),L=()=>f("USERNAME_ONLY");return(C,$)=>(s(),c("div",up,[y("div",pp,[y("div",dp,[e(a)?(s(),c("p",mp,g(e(a)),1)):m("",!0),y("p",_p,g(w.value),1)]),y("div",hp,[y("div",{class:K(["lb-heading__avatar",{"lb-heading__avatar--default":!z.value}])},[z.value?(s(),c("img",{key:0,src:e(k).avatarUrl,alt:e(k).avatarAlt},null,8,gp)):m("",!0)],2),e(l)?(s(),c("button",{key:0,class:"lb-heading__edit-avatar-button","aria-label":e(d),onClick:T},null,8,bp)):m("",!0)]),y("div",yp,[e(b).name?(s(),c("p",kp,g(e(b).name),1)):m("",!0),y("p",fp,g(P.value),1)])]),y("div",vp,[y("p",Ep,g(R.value)+" "+g(e(n)),1),e(l)?(s(),c("button",{key:0,class:"lb-heading__edit-button cmp-button","aria-label":e(p),onClick:L},[y("span",xp,g(e(l)),1)],8,Ip)):m("",!0)])]))}}),Pp=M(wp,[["__scopeId","data-v-63a47605"]]),Sp={class:"lb-table__heading"},Dp={class:"lb-table__heading-cell-position"},Lp={key:0},Rp={class:"lb-table__heading-cell-user"},Cp={key:0},Ap={class:"lb-table__heading-cell-points-content"},Tp=["src"],Np={key:1},$p=x({__name:"LeaderboardTableHeading",setup(o){const{placeLabel:t,userLabel:a}=D().getLeaderboardLabels,{getCurrencyData:n,hasLeaderboardError:i}=B(Ye());return(r,l)=>(s(),c("thead",Sp,[y("tr",null,[y("th",Dp,[e(t)?(s(),c("p",Lp,g(e(t)),1)):m("",!0)]),y("th",Rp,[e(a)?(s(),c("p",Cp,g(e(a)),1)):m("",!0)]),y("th",{class:K(["lb-table__heading-cell-points",{"lb-table__heading-cell-points--hidden":e(i)}])},[y("div",Ap,[e(n).icon?(s(),c("img",{key:0,src:e(n).icon},null,8,Tp)):m("",!0),e(n).name?(s(),c("p",Np,g(e(n).name),1)):m("",!0)])],2)])]))}}),zp=M($p,[["__scopeId","data-v-a1932a5a"]]),Mp={class:"lb-table__cell-position"},Op={class:"lb-table__cell-user"},Bp={class:"lb-table__cell-user-content"},Up=["src","alt"],Vp={class:"lb-table__cell-points-desktop"},Gp={colspan:"2"},Wp={class:"lb-table__row-points-mobile-content"},qp=["src"],Fp=x({__name:"LeaderboardTableRow",props:{position:{},avatarUrl:{},avatarAlt:{},userName:{},points:{},state:{},currentUser:{type:Boolean}},setup(o){const t=o,{getCurrencyData:a}=B(Ye()),n=D(),{showPointsLabel:i,hidePointsLabel:r}=n.getLeaderboardLabels,{profilePersonalizationLabels:l}=n.getConfigData,u=l?.noUsernameLabel,d=E(()=>ba({state:t.state,username:t.userName})),p=E(()=>d.value?u:t.userName),_=E(()=>d.value?"":t.avatarUrl),b=S(!0),h=()=>{b.value=!b.value},k=E(()=>b.value?i:r);return(f,w)=>p.value?(s(),c(q,{key:0},[y("tr",{class:K(["lb-table__row",{"lb-table__row--current-user":f.currentUser}])},[y("td",Mp,[y("p",null,g(f.position??"-"),1)]),y("td",Op,[y("div",Bp,[y("div",{class:K(["lb-table__cell-user-avatar",{"lb-table__cell-user-avatar--default":d.value}])},[_.value?(s(),c("img",{key:0,src:_.value,alt:f.avatarAlt},null,8,Up)):m("",!0)],2),y("p",null,g(p.value),1),y("button",{class:K(["lb-table__points-button",{"lb-table__points-button--points-hidden":b.value}]),onClick:h},[y("span",null,g(k.value),1)],2)])]),y("td",Vp,[y("p",null,g(f.points),1)])],2),y("tr",{class:K(["lb-table__row-points-mobile",{"lb-table__row-points-mobile--current-user":f.currentUser,"lb-table__row-points-mobile--hidden":b.value}])},[y("td",Gp,[y("div",Wp,[e(a).icon?(s(),c("img",{key:0,src:e(a).icon,alt:""},null,8,qp)):m("",!0),y("b",null,g(e(a).name),1),y("p",null,g(f.points),1)])])],2)],64)):m("",!0)}}),Hp=M(Fp,[["__scopeId","data-v-919a6e39"]]),jp={class:"lb-error"},Qp={class:"lb-error__content"},Kp={key:0,class:"lb-error__title"},Jp={key:1,class:"lb-error__description"},Zp=x({__name:"LeaderboardError",setup(o){const{errorTitle:t,errorDescription:a,reloadButtonLabel:n}=D().getLeaderboardLabels,i=We("errorIcon"),{fetchLeaderboardData:r}=Ye(),l=async()=>{await r()};return(u,d)=>(s(),c("div",jp,[y("div",Qp,[I(re,{"icon-path":e(i)},null,8,["icon-path"]),e(t)?(s(),c("h2",Kp,g(e(t)),1)):m("",!0),e(a)?(s(),c("p",Jp,g(e(a)),1)):m("",!0),e(n)?(s(),c("button",{key:2,class:"button-primary lb-error__button",onClick:l},g(e(n)),1)):m("",!0)])]))}}),Xp=M(Zp,[["__scopeId","data-v-d9fed3f6"]]),Yp={key:1,class:"leaderboard"},ed={class:"leaderboard-table"},td={key:1},ad=x({__name:"Leaderboard",setup(o){const t=Ye(),{getLeaderboardData:a,isLoadingLeaderboard:n,hasLeaderboardError:i}=B(t),r=He(),{getPersonalizationData:l}=B(r);return(u,d)=>e(n)?(s(),v(Pe,{key:0})):(s(),c("div",Yp,[e(i)?m("",!0):(s(),v(Pp,{key:0})),y("table",ed,[e(i)?m("",!0):(s(),v(zp,{key:0})),e(i)?m("",!0):(s(),c("tbody",td,[(s(!0),c(q,null,pe(e(a),p=>(s(),v(Hp,{key:p.position,"avatar-url":p.avatarUrl,"avatar-alt":p.avatarAlt,position:p.position,points:p.currencyAmount,"user-name":p.username,state:p.state,"current-user":p.username===e(l).username},null,8,["avatar-url","avatar-alt","position","points","user-name","state","current-user"]))),128))]))]),e(i)?(s(),v(Xp,{key:1})):m("",!0)]))}}),od=M(ad,[["__scopeId","data-v-29d2a815"]]),nd={class:"lb-customize-profile"},sd={class:"lb-customize-profile__heading-wrapper"},id={class:"lb-customize-profile__heading"},rd=["src","alt"],ld={key:0,class:"lb-customize-profile__user-name"},cd=["innerHTML"],ud=x({__name:"CustomizeProfile",setup(o){const t=D(),a=He(),{customizeProfileHeading:n,customizeProfileDescription:i,customizeProfileButtonLabel:r,skipButtonLabel:l}=t.getLeaderboardLabels,{getPersonalizationData:u}=B(a),{editUserProfile:d,closeModal:p}=a,_=E(()=>u.value.username?`@${u.value.username}`:"");return(b,h)=>(s(),c("div",nd,[y("div",sd,[y("h2",id,g(e(n)),1)]),y("img",{class:"lb-customize-profile__user-avatar",src:e(u).avatarUrl,alt:e(u).avatarAlt},null,8,rd),_.value?(s(),c("p",ld,g(_.value),1)):m("",!0),y("div",{class:"lb-customize-profile__description",innerHTML:e(i)},null,8,cd),y("button",{class:"button-primary lb-customize-profile__button",onClick:h[0]||(h[0]=()=>e(d)())}
2,g(e(r)),1),y("button",{class:"button-tertiary lb-customize-profile__skip-button",onClick:h[1]||(h[1]=(...k)=>e(p)&&e(p)(...k))},g(e(l)),1)]))}}),pd=M(ud,[["__scopeId","data-v-1ad0bbf1"]]),dd=x({__name:"LeaderboardView",setup(o){const t=He(),{getModalState:a,modalVisible:n}=B(t),{closeModal:i}=t,{closeModalLabel:r}=D().getLeaderboardLabels,l=()=>{switch(a.value){case"CUSTOMIZE-PROFILE":return pd;case"SELECT-AVATAR":case"EDIT-AVATAR-ONLY":case"EXIT-CONFIGURATION":return Ao;case"REGENERATE-USERNAME":case"EDIT-USERNAME-ONLY":return Co}};return(u,d)=>(s(),c(q,null,[I(od),I(wa,{clazz:"lb-dialog","modal-visible":e(n),"close-modal":e(i),"close-modal-label":e(r)},{default:O(()=>[(s(),v(it(l())))]),_:1},8,["modal-visible","close-modal","close-modal-label"])],64))}}),md={class:"lb-podium"},_d=x({__name:"LeaderboardPodium",setup(o){const t=`${co()}/resources/images/leaderboard/podium_image.png`;return(a,n)=>(s(),c("div",md,[y("img",{src:t,alt:""})]))}}),hd=M(_d,[["__scopeId","data-v-b70a9d57"]]),gd={class:"lb-unauthorized-preview"},bd=["innerHTML"],yd={class:"lb-unauthorized-preview__content-wrapper"},kd={class:"lb-unauthorized-preview__heading"},fd={class:"lb-unauthorized-preview__description"},vd=["disabled"],Ed=x({__name:"UnauthorizedUser",setup(o){const t=D(),a=_e(),n=t.getLeaderboardPreviewImageId,{unauthorizedPreviewHeading:i,unauthorizedPreviewDescription:r,signUpButtonLabel:l}=t.getLeaderboardLabels,u=S(!1),d=S(!1),p=n?document.querySelector(`#${n} picture`):null,_=!!p?.querySelector("img"),b=async()=>{u.value=!0,d.value=!0,await a.signUp()};return(h,k)=>(s(),c("div",gd,[_?(s(),c("div",{key:0,class:"lb-unauthorized-preview__image",innerHTML:e(p).outerHTML},null,8,bd)):m("",!0),y("div",yd,[I(hd),y("h2",kd,g(e(i)),1),y("p",fd,g(e(r)),1),y("button",{class:"button-primary lb-unauthorized-preview__signup-button",disabled:u.value,onClick:b},g(e(l)),9,vd)])]))}}),Id=M(Ed,[["__scopeId","data-v-15124658"]]),xd=()=>({path:"/leaderboard",component:we,meta:{layout:"empty"},children:[{path:"",name:"leaderboard",component:dd},{path:"",name:"unauthorized-leaderboard-view",component:Id}]}),wd=o=>{const t=zn(o);return[{path:"/unknown-error",name:"unknown-error",component:Ut},Mr(t),Ki(t),Ur(t),Sr(t),Rl(t),cp(t),xd()]},Pd=o=>Fa({history:Ha("/"),routes:wd(o)}),Yd=async o=>{wo();const t=o.getAttribute("id"),{parsedGeneralData:a,promoPlusConfig:n}=uo(o),i=a.journey||a.startView.split("/")[1],{configurationId:r,configurationIds:l}=po(a.badgesConfigurationId),u=a.quizConfig||{};a.enableDynamicConfigurationIds&&(u.configurationId=n.configurationId);const d=a.myReceiptsConfig||{};a.enableDynamicConfigurationIds&&(d?.enableMultipleConfigurationIds&&console.warn("[My Receipts] Multiple configuration IDs and dynamic configuration ID enabled at the same time!"),d.multipleConfigurationIds=[{configurationId:n.configurationId,promotionPageUrl:d.promotionLandingPageCtaUrl||""}]);const p=i==="leaderboard"?{name:"leaderboard-profile-personalization",priority:"auto"}:void 0,_={labels:a.labels||{},ngpsConfig:n,badgesConfig:{...n,configurationId:r,configurationIds:l},currencyId:a.currencyId,enableDynamicConfigurationIds:a.enableDynamicConfigurationIds,enableExpiringWallet:a.enableExpiringWallet,allowedConfigurationIds:a.allowedConfigurationIds,enableBadges:a.enableBadges,promotionMechanic:a.promotionMechanic,enableEngagementPoints:a.enableEngagementPoints,enableUserDetailsOnVoucher:a.enableUserDetailsOnVoucher,enablePrizeQuantitySelector:a.enablePrizeQuantitySelector,enableAppleWallet:a.enableAppleWallet,enableGoogleWallet:a.enableGoogleWallet,appId:t,startView:a.startView,startViewName:a.startViewName,enableMultiplePinCodes:a.enableMultiplePinCodes,unsuccessfulEntryIcon:a.unsuccessfulEntryIcon,errorEntryIcon:a.errorEntryIcon,thumbUpIcon:a.thumbUpIcon,promptUserInput:a.promptUserInput,hiddenInput:a.hiddenInput,userInputs:a.userInputs,allowedFileExtensions:a.allowedFileExtensions,promptImageUpload:a.promptImageUpload,journey:i,urls:a.urls,reCaptchaSiteKey:a.reCaptchaSiteKey,promoDescription:a.promoDescription||a.quizDescription,appleWallet:a.appleWallet,googleWallet:a.googleWallet,noAvailableTransactionsLabel:a.noAvailableTransactionsLabel,noAvailableTransactionsDescription:a.noAvailableTransactionsDescription,filteringVouchersByStatus:a.filteringVouchersByStatus,filteringPrizeIDs:a.filteringPrizeIDs,filteringCategories:a.filteringCategories,enableCurrencyFilteringByAge:a.enableCurrencyFilteringByAge,noAvailableTransactionsCtaLabel:a.noAvailableTransactionsCtaLabel,noAvailableTransactionsCtaUrl:a.noAvailableTransactionsCtaUrl,ageFilteringConfig:a.ageFilteringConfig,wheel:a.wheel,lottieAnimation:a.lottieAnimation,quizConfig:u,quizLabels:a.quizLabels,myReceiptsConfig:d,myReceiptsLabels:a.myReceiptsLabels,receiptScannerConfig:a.receiptScannerConfig,receiptScannerL
2abels:a.scannerLabels,receiptScannerPromoLabels:a.promoLabels,leaderboardConfig:a.leaderboardConfig||{},leaderboardLabels:a.leaderboardLabels,leaderboardPreviewImageId:a.leaderboardPreviewImageId,profilePersonalizationLabels:a.profilePersonalizationLabels,progressiveProfile:a.progressiveProfile,profilePersonalizationModalConfig:p},b=Wa($n,_),h=qa();$e(h).setSocialShareConfig(a.socialShare);const f=Pd(h);b.use(h),b.use(f),b.mount(`#${t}`)};export{Yd 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.