PageSourceSearch

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

js coca-cola.com collected 2026-09-24 08:24:23 UTC 2,082 bytes, 1 lines download raw bytes

1import{d as h,o as A,P as M,b as l,h as p,q as k,f as E,u as s,i as I,z as u,_ as x,A as B}from"./_plugin-vue_export-helper.js";import{u as D,M as L}from"./ModalDialog.js";import{P as T}from"./ProgressBar.js";import{E as q}from"./EnrichmentQuestionStep.js";import{t as O}from"./theme.js";import{u as V}from"./useProgressiveProfileState.js";const w={class:"progressive-profile"},z=3e3,Q=h({__name:"ProgressiveProfileApp",props:{config:{default:void 0},skipDelay:{type:Boolean},modalPriority:{default:"auto"},onCleanup:{type:Function,default:void 0}},setup(o){const e=o,i=O(),{state:{onboardingState:t,allQuestionSteps:r,currentStepIndex:f,currentQuestionConfig:c,isLoading:g},actions:{onboardingActions:v,initState:b,resetState:_}}=V(),{modalVisible:P,requestCloseModal:S,requestOpenModal:C}=D({name:"progressive-profile",priority:e.modalPriority});let n=null,a=null;const d=()=>{S(),n=null,_(),e.onCleanup&&(a=setTimeout(()=>{e.onCleanup(),a=null},300))},y=m=>{if(n){clearTimeout(n);return}n=setTimeout(async()=>{r.value.length>0&&C(),n=null},m?0:z)};return u("generalLabels",i),u("onboardingActions",v),u("onboardingState",t),A(async()=>{await b(e.config,{onLastStepComplete:d}),t.value.totalSteps>0?y(e.skipDelay):e.onCleanup&&e.onCleanup()}),M(()=>{n&&(clearTimeout(n),n=null),a&&(clearTimeout(a),a=null)}),(m,N)=>(l(),p(L,{clazz:"progressive-profile-modal","modal-visible":s(P)&&!s(g)&&s(c)!==null,"close-modal":d,"disable-backdrop-close":""},{default:k(()=>[E("div",w,[s(t).totalSteps>1?(l(),p(T,{key:0,"current-step":s(t).currentStepIndex+1,"total-steps":s(t).totalSteps},null,8,["current-step","total-steps"])):I("",!0),(l(),p(q,{key:`enrichment-question-${s(f)}`,config:s(c)},null,8,["config"]))])]),_:1},8,["modal-visible"]))}}),R=x(Q,[["__scopeId","data-v-3b0c6cc4"]]),F=()=>{const o=document.createElement("div");return o.id=`progressive-profile-${Date.now()}`,document.body.appendChild(o),o},J=(o,e,i="auto")=>{if(!o)return;const t=F(),r=B(R,{config:o,skipDelay:e,modalPriority:i,onCleanup:()=>{r.unmount(),t.remove()}});r.mount(t)};export{J as openProgressiveProfile};

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.