PageSourceSearch

https://www.coca-cola.com/onexp-theme/25d07672864d756cc17ce87a0253…/progressiveProfileQuestion.js

js coca-cola.com collected 2026-09-24 08:24:17 UTC 1,376 bytes, 1 lines download raw bytes

1import{d as b,o as P,b as l,e as v,u as n,h as S,i as h,l as L,n as A,z as c,A as M}from"./_plugin-vue_export-helper.js";import{c as k}from"./pinia.js";import{E as w}from"./EnrichmentQuestionStep.js";import{t as Q,g as _,a1 as C}from"./theme.js";import{b as O}from"./loginModalStore.js";import{L as y}from"./LoginModal.js";import{u as E}from"./useProgressiveProfileState.js";import"./useBxSvgIcon.js";import"./NativeDialog.js";const x=b({__name:"ProgressiveProfileQuestionApp",props:{config:{}},setup(o){const a=o,p=Q(),{state:{onboardingState:t,currentStepIndex:s,currentQuestionConfig:e},actions:{initState:i,onboardingActions:d}}=E(),{openLoginModal:g,canOpenLoginModal:u}=O(),f=async()=>{const r=await _();return await r.isAuthenticated()?!0:(await u()?g():await r.signIn(),!1)};return c("generalLabels",p),c("onboardingActions",{...d,canProcessSelection:f}),c("onboardingState",t),P(async()=>{await i(a.config)}),(r,m)=>(l(),v("div",{class:A(["progressive-profile-question",{unanswered:n(t).totalSteps>0}])},[n(e)?(l(),S(w,{key:`enrichment-question-${n(s)}`,config:n(e),"hide-skip-link":""},null,8,["config"])):h("",!0),L(y)],2))}}),J=async o=>{const a=o.getAttribute("id"),t=JSON.parse(o.dataset?.params).progressiveProfileQuestion,s=C({progressiveProfileEnabled:!0,progressiveProfileQuestions:[t]}),e=M(x,{config:s}),i=k();e.use(i),e.mount(`#${a}`)};export{J 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.