1/*! For license information please see 9921.c74d673c.chunk.js.LICENSE.txt */ 2"use strict"; 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4243d842-ed73-5859-9146-3edd1c55854a")}catch(e){}}(); 4(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9921],{20720:(e,s,a)=>{a.d(s,{A:()=>M});a(49198);var t=a(96580),r=a.n(t),n=a(14866),i=a(68328),o=a(79212),l=a(96175),d=a(61565),c=a(68098),g=a(70004);const m="AgentEmptyState_card__KrP+b",u="AgentEmptyState_trainingGuard__nJiFY",_="AgentEmptyState_getStarted__FxudO",h="AgentEmptyState_iconLarge__ShcFA",p="AgentEmptyState_heading__c8CWw",x="AgentEmptyState_subheading__VlNo2",j="AgentEmptyState_instructions__hcOF3",A="AgentEmptyState_creditsBadge__ASxnS",v="AgentEmptyState_cta__j8YzK",w="AgentEmptyState_resources__iDZjW",y="AgentEmptyState_calendarButton__SNr3t";var N=a(85582);const f=e=>{let{variant:s,className:a,onRedirect:t}=e;return"completeTraining"===s?(0,N.jsxs)("div",{className:r()(m,u,a),children:[(0,N.jsx)(d.A,{className:h}),(0,N.jsx)(i.H3,{as:"h1",className:p,children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.completeTrainingFirst"})}),(0,N.jsx)("p",{className:x,children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.completeTrainingFirstMessage"})}),t?(0,N.jsx)(i.jn,{onClick:t,children:(0,N.jsx)(n.sA,{id:"AgentTraining.nextButtonLabel"})}):null]}):(0,N.jsxs)("div",{className:r()(m,_,a),children:[(0,N.jsx)(i.H2,{as:"h1",className:p,children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.agentGetStarted"})}),(0,N.jsx)(i.H4,{as:"h4",className:x,children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.agentGetStartedMessage",values:{badge:(0,N.jsxs)("span",{className:A,children:["100 ",(0,N.jsx)("span",{className:"tokenIcon"})]})}})}),(0,N.jsx)("div",{className:j,children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.agentGetStartedMessage2",values:{p:e=>(0,N.jsx)("p",{children:e}),strong:e=>(0,N.jsx)("strong",{children:e}),ol:e=>(0,N.jsx)("ol",{children:e}),ul:e=>(0,N.jsx)("ul",{children:e}),li:e=>(0,N.jsx)("li",{children:e}),br:(0,N.jsx)("br",{})}})}),(0,N.jsx)("p",{className:v,children:(0,N.jsx)(i.GF,{className:"buttonPrimary",name:"AgentLeadsPage",params:{tab:"browse"},children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.browseLeadsButton"})})}),(0,N.jsx)("p",{className:x,children:(0,N.jsx)(n.sA,{id:"AgentTraining.completeGotQuestions"})}),(0,N.jsx)("p",{className:x,children:(0,N.jsx)(n.sA,{id:"AgentTraining.completeBookTime"})}),(0,N.jsx)("div",{className:y,children:(0,N.jsx)(o.A,{iframeUrl:l.kP.calendly,modalWidth:"600px",buttonLabel:(0,N.jsx)(n.sA,{id:"AgentTraining.completeBookTime.buttonLabel"}),icon:c.A,buttonClassName:"buttonSecondary"})}),(0,N.jsxs)("p",{className:w,children:[(0,N.jsx)(g.A,{}),(0,N.jsx)(n.sA,{id:"ManageListingsPage.agentResources",values:{resourcesLink:(0,N.jsx)(i.GF,{name:"AgentResourcesPage",params:{section:"call-scripts"},children:(0,N.jsx)(n.sA,{id:"ManageListingsPage.agentResourcesLink"})})}})]})]})};f.defaultProps={variant:"postTraining",className:null,onRedirect:null};const M=f},35204:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(51708).A)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]])},54321:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(51708).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},61565:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(51708).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},70004:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(51708).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},79212:(e,s,a)=>{a.d(s,{A:()=>d});var t=a(49198),r=a(68328);const n="ModalIframeButton_root__QnV6G",i="ModalIframeButton_closeButton__vrN9c",o="ModalIframeButton_modal__aJA09";var l=a(85582);const d=e=>{let{iframeUrl:s,buttonLabel:a,icon:d,buttonClassName:c,modalWidth:g,modalHeight:m}=e;const[u,_]=(0,t.useState)(!1),h="undefined"!==typeof window&&window.innerWidth<768,p=e=>{};return(0,l.jsxs)("span",{children:[(0,l.jsxs)("button",{className:c,onClick:()=>{console.log("open modal"),h?window.open(s):_(!0)},children:[d&&(0,l.jsx)(d,{})," ",a]}),(0,l.jsx)(r.aF,{id:"iframeModal",isOpen:u,containerClassName:n,closeButtonClassName:i,closeButtonMessage:" ",onClose:()=>{_(!1)},onManageDisableScrolling:p,usePortal:!0,children:(0,l.jsx)("iframe",{src:s,className:o,border:"0",style:{width:null!==g&&void 0!==g?g:"770px",height:null!==m&&void 0!==m?m:"calc(100vh - 50px)"},title:"Modal Content"})})]})}},80464:(e,s,a)=>{a.d(s,{A:()=>h});var t=a(49198),r=a(73432),n=a(27939),i=a(35204),o=a(54321),l=a(94046),d=a(96775),c=a(27301);const g={root:"MilestoneAchievedModal_root__3NkaV",modal:"MilestoneAchievedModal_modal__3VFbS",slideUp:"MilestoneAchievedModal_slideUp__EWZ2a",confettiEmoji:"MilestoneAchievedModal_confettiEmoji__-X-UG",bounce:"MilestoneAchievedModal_bounce__O6+CP",title:"MilestoneAchievedModal_title__z1qXd",subtitle:"MilestoneAchievedModal_subtitle__PWkA5",tokensAwarded:"MilestoneAchievedModal_tokensAwarded__tvoQF",tokensLabel:"MilestoneAchievedModal_tokensLabel__BZYcU",confetti:"MilestoneAchievedModal_confetti__cV1U1",confettiFall:"MilestoneAchievedModal_confettiFall__bHWrP"};var m=a(85582);const u=e=>{let{milestones:s,onClose:a,intl:r}=e;const[i,o]=(0,t.useState)([]);if((0,t.useEffect)(()=>{const e=[],s=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F"];for(let a=0;a<50;
4a++)e.push({id:a,left:100*Math.random(),delay:.5*Math.random(),color:s[Math.floor(Math.random()*s.length)]});o(e)},[]),!s||0===s.length)return null;const l=s.reduce((e,s)=>e+(s.reward||0),0),d=s.map(e=>{let s=e.key;s.includes("_")&&/_\d{4}-\d{2}-\d{2}$/.test(s)?(s=s.replace(/_\d{4}-\d{2}-\d{2}$/,""),s.endsWith("_")||(s+="_")):s=s.replace(/_\d+$/,"_");const a="Rewards.milestone.".concat(s),t={tokens:e.reward,days:e.days,count:e.count,target:e.target};return r.formatMessage({id:a},t)});return(0,m.jsx)("div",{className:g.root,onClick:a,children:(0,m.jsxs)("div",{className:g.modal,onClick:e=>e.stopPropagation(),children:[i.map(e=>(0,m.jsx)("div",{className:g.confetti,style:{left:"".concat(e.left,"%"),top:"-20px",animationDelay:"".concat(e.delay,"s"),backgroundColor:e.color}},e.id)),(0,m.jsx)("div",{className:g.confettiEmoji,children:"\ud83c\udf89"}),(0,m.jsx)("h2",{className:g.title,children:(0,m.jsx)(n.A,{id:"Rewards.milestoneModal.title"})}),(0,m.jsx)("div",{className:g.subtitle,children:d.map((e,s)=>(0,m.jsx)("div",{children:e},s))}),(0,m.jsxs)("div",{className:g.tokensAwarded,children:["+",l," ",(0,m.jsx)("span",{className:"tokenIcon large"})]}),(0,m.jsx)("div",{className:g.tokensLabel,children:(0,m.jsx)(n.A,{id:"Rewards.milestoneModal.tokensLabel"})}),(0,m.jsx)(c.tA,{className:g.closeButton,onClick:a,children:(0,m.jsx)(n.A,{id:"Rewards.milestoneModal.closeButton"})})]})})},_={root:"RewardsProgress_root__EIRVn",detailedDescription:"RewardsProgress_detailedDescription__gifGz",description:"RewardsProgress_description__UjE90",stats:"RewardsProgress_stats__MXe1I",spinner:"RewardsProgress_spinner__y8EMG",title:"RewardsProgress_title__XGbmU",icon:"RewardsProgress_icon__eKs7P",progressBarContainer:"RewardsProgress_progressBarContainer__w5fDA",progressBar:"RewardsProgress_progressBar__9SygD",current:"RewardsProgress_current__696ni",rewardBadgeContainer:"RewardsProgress_rewardBadgeContainer__bk-ic",rewardBadge:"RewardsProgress_rewardBadge__oqm4e",loadingDescription:"RewardsProgress_loadingDescription__oCb5w",error:"RewardsProgress_error__F+jr7"},h=e=>{let{currentUser:s,refreshTrigger:a,milestonesAchieved:c}=e;const g=(0,r.A)(),[h,p]=(0,t.useState)(null),[x,j]=(0,t.useState)(!0),[A,v]=(0,t.useState)(null),[w,y]=(0,t.useState)(!1),[N,f]=(0,t.useState)(null),[M,k]=(0,t.useState)(null),b=(0,t.useRef)(null),P=(0,t.useRef)(!1),C=async()=>{try{const e=await fetch("".concat((0,l.apiBaseUrl)(),"/api/rewards/progress"),{credentials:"include"});if(!e.ok)throw new Error("Failed to fetch progress");const s=await e.json();p(s),v(null)}catch(e){console.error("[RewardsProgress] Error fetching progress:",e),v(e.message)}finally{j(!1)}};(0,t.useEffect)(()=>{null!==s&&void 0!==s&&s.id&&C()},[s]),(0,t.useEffect)(()=>{null!==s&&void 0!==s&&s.id&&a&&C()},[a]),(0,t.useEffect)(()=>{(async()=>{if(null!==s&&void 0!==s&&s.id&&!P.current&&!w)try{const e=await fetch("".concat((0,l.apiBaseUrl)(),"/api/rewards/unviewed-milestones"),{credentials:"include"});if(!e.ok)return;const s=(await e.json()).milestones||[];if(s.length>0){const e=s[0];f([{key:e.key||e.milestone_key,reward:e.reward,target:e.target,days:e.days,count:e.count}]),k(e.id),y(!0),P.current=!0;try{const s=await fetch("".concat((0,l.apiBaseUrl)(),"/api/rewards/milestones/").concat(e.id,"/viewed"),{method:"PATCH",credentials:"include"});s.ok||console.error("[RewardsProgress] Failed to mark milestone as viewed:",s.status,s.statusText)}catch(A){console.error("[RewardsProgress] Error marking milestone as viewed:",A)}}}catch(A){console.error("[RewardsProgress] Error checking unviewed milestones:",A)}})()},[s]),(0,t.useEffect)(()=>{if(c&&c.length>0&&!w){const e=JSON.stringify(c);b.current!==e&&(b.current=e,f(c),y(!0))}},[c,w]);if(null===s||void 0===s||!s.id)return null;if(x)return(0,m.jsxs)("div",{className:_.root,children:[(0,m.jsxs)("div",{className:_.title,children:[(0,m.jsx)(i.A,{className:_.icon}),(0,m.jsx)(n.A,{id:"Rewards.progressTitle"})]}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:_.loadingDescription})}),(0,m.jsx)("div",{className:_.detailedDescription,children:(0,m.jsx)("div",{className:_.loadingDescription})}),(0,m.jsx)("div",{className:_.progressBarContainer,children:(0,m.jsx)("div",{className:_.loadingBar})})]});if(A)return null;if(!h||!h.nextMilestone)return null;const{nextMilestone:B}=h,R=B.current/B.target*100;B.target,B.current;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:_.root,children:[(0,m.jsxs)("div",{className:_.title,children:[(0,m.jsx)(i.A,{className:_.icon}),(0,m.jsx)(n.A,{id:"Rewards.progressTitle"})]}),(0,m.jsx)("div",{className:_.description,children:(0,m.jsx)(n.A,{id:B.descriptionId,values:{days:B.days,count:B.count,target:B.target}})}),(0,m.jsxs)("div",{className:_.detailedDescription,children:[(0,m.jsx)(n.A,{id:"".concat(B.descriptionId,".detailed"),values:{days:B.days,count:B.count,target:B.target}}),(0,m.jsxs)(d.N_,{to:"/agent/rewards/overview",children:[(0,m.jsx)(n.A,{id:"Rewards.milestoneModal.viewAllMilestones"})," ",(0,m.jsx)(o.A,{})]})]}),(0,m.jsx)("div",{className:_.progressBarContainer,children:(0,m.jsx)("div",{className:_.progressBar,style:{width:"".concat(Math.min(R,100),"%")}})}),(0,m.jsxs)("div",{className:_.stats,children:[(0,m.jsxs)("span",{children:[(0,m.jsx)("span",{className:_.current,children:B.current})," / ",B.target]}),(0,m.jsxs)("span",{className:_.rewardBadgeContainer,children:[(0,m.jsx)(n.A,{id:"Rewards.reward"})," ",(0,m.jsxs)("span",{className:_.rewardBadge,children:[B.reward," ",(0,m.jsx)("span",{className:"tokenIcon small"})]})]})]})]}),w&&N&&(0,m.jsx)(u,{milestones:N,onClose:()=>{y(!1),f(null),k(null),P.current=!1,null!==s&&void 0!==s&&s.id&&C()},intl:g})]})}},96175:(e,s,a)=>{a.d(s,{IZ:()=>r,_u:()=>n,kP:()=>i,oS:()=>t});const t=[{displayName:"Videos",routeName:"videos"},{displayName:"Quiz",routeName:"quiz"}
4,{displayName:"Calls",routeName:"calls"},{displayName:"Begin",routeName:"complete"}],r={youtubePlaylist:"PLrinyDyRpJyVbuG40VrxFmFwOBCqU1R8p",youtubeCall:"YBfxcAQ7MwA",youtubeCRM:"PvUHQIdhxLw",youtubeComplete:"EcMcjUdI5Vc",howToCreateListing:"hDuu94XimgA"},n={googlePlacesWorker:"https://agent-training-places.yoav-4e1.workers.dev",zapierWebhook:"https://hooks.zapier.com/hooks/catch/20055466/2vxqp3i/",closeReferralLink:"https://refer.close.com/h5nx7eols2ku",closeLeadsWorker:"https://close-crm-add-leads.yoav-4e1.workers.dev/",closeCloner:"https://close-crm-clone.yoav-4e1.workers.dev/"},i={calendly:"https://calendly.com/dave-vendingvillage/new-agent-q-a",resourceKit:"https://drive.google.com/drive/folders/1vDCxVy_3yFpbXLVGExhMo2TRAqT16VUm",flyers:"https://drive.google.com/embeddedfolderview?id=1SQsmu46U-3-KF3GGFLduUCWtxtFDpzDn#grid",coldCallScripts:"https://drive.google.com/drive/folders/1QWrvRtrkLJAPn0DWlwOaIo9q837zQxD2"}}}]); 5//# sourceMappingURL=9921.c74d673c.chunk.js.map 6//# debugId=4243d842-ed73-5859-9146-3edd1c55854a
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.