PageSourceSearch

https://www.coca-cola.com/onexp-theme/747c47e4834516aa86b4941cf98e…a0b7d549ad7715a6ba293/progressiveProfile.js

js coca-cola.com collected 2026-10-01 08:27:10 UTC 2,121 bytes, 1 lines download raw bytes

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