@nexlylab/widget 1.32.17 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/INSTALL.txt +1 -1
- package/dist/runtime/{1.32.17/chunks/ClickToLoadEmbed-D9eMaBG8-r9dN9klo.js → 1.33.0/chunks/ClickToLoadEmbed-DdH19Upf-CnpjmfE1.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/PanelInfoVideo-DMU0-9Az-BrU-Qlul.js → 1.33.0/chunks/PanelInfoVideo-XFcVoL2c-qpxDXdLm.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/allowed-elements-BXnLJV1S-C-_lr2zm.js → 1.33.0/chunks/allowed-elements-C0OfX2zF-DIBV8lKu.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/assistant-link-components-D0uKk8Hv-xEDu0ls0.js → 1.33.0/chunks/assistant-link-components-gMuMhmaU-rHpeX4O6.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/assistant-link-policy-CogLpq-3-Cc-yj-a-.js → 1.33.0/chunks/assistant-link-policy-DlGAtyk7-By6jpR50.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/block-rating-BgOeTm52-CoiP5C2K.js → 1.33.0/chunks/block-rating-CAVRRYuG-CQMNokIy.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/external-url-ninK7gY9-CJQjg_od.js → 1.33.0/chunks/external-url-JbUnX7Da-rLiy7c9v.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DsQ3ssZW-DbuSZfeK.js → 1.33.0/chunks/index--H6hRpBJ-F9_TzvkO.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-ByEsnceF-CSQQTbsg.js → 1.33.0/chunks/index--pcCOJWb-BzpgdoE8.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CHUW1nlj-DAdxCQyi.js → 1.33.0/chunks/index-7yhyghzH-BlFXtfQb.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-D3fwWbIM-BcW8HKb8.js → 1.33.0/chunks/index-BCxeWwto-B9PuY2Gx.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-zmuItIIf-oy07dUaV.js → 1.33.0/chunks/index-BO0vI80C-qK4w7DnX.js} +4 -4
- package/dist/runtime/{1.32.17/chunks/index-CaHbIY6I-QeFj7CR9.js → 1.33.0/chunks/index-BP1Q45X4-f3F4IxQ5.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CPjLHywY-DBhSkJ7i.js → 1.33.0/chunks/index-BPfUysTZ-CV5ZiVsD.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-C5olj-Fr-C3bBvEcm.js → 1.33.0/chunks/index-BWY1nqf0-DX50C5MZ.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-1JK_DoDz-D6wzHiS0.js → 1.33.0/chunks/index-BblCrrAW-bh6F7tw3.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-BWMbr4oS-Dsa9X9U7.js → 1.33.0/chunks/index-Bd_8PmPr-CgO1smBF.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DnDMirl9-Dp5AxBD4.js → 1.33.0/chunks/index-BjHXOMPQ-Bt7j8evJ.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-D6YQ4lFv-pbKZ0WGs.js → 1.33.0/chunks/index-BwnCq3yC-LScXPMbE.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DzHo_iNR-Dm9kbc85.js → 1.33.0/chunks/index-BzVJMW3i-Bhh8_8Oh.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-D3OBLy0s-k8E4HOBM.js → 1.33.0/chunks/index-CDlumsdH-BgpZz7kC.js} +3 -3
- package/dist/runtime/{1.32.17/chunks/index-D30-Ox5Z-BLxOZxZv.js → 1.33.0/chunks/index-CH-C6uk_-B-pT4hKt.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CpCgmp7C-C9wFr7fa.js → 1.33.0/chunks/index-CNP-4dFm-BlRhWcs1.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DDHI4Kxr-DrVjDDba.js → 1.33.0/chunks/index-CNbQ508J-BPOHZMXu.js} +4 -4
- package/dist/runtime/{1.32.17/chunks/index-Dwtd4id8-CiRb-0NX.js → 1.33.0/chunks/index-CPGSyaZ4-BoVmvEOm.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DAai_PkG-Dr1V6OGz.js → 1.33.0/chunks/index-CVtuVQCx-Dtq7n928.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-Ba5nbqA8-B620AdXN.js → 1.33.0/chunks/index-CYP-tLa5-DLVDVk-F.js} +4 -4
- package/dist/runtime/{1.32.17/chunks/index-CtNAXlUH-DQBGsPwB.js → 1.33.0/chunks/index-CZCcZigQ-qH_mrcVT.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-BsUIWTU6-BQ7DWJhg.js → 1.33.0/chunks/index-CZSW9eXg-BwcGrX1b.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-Ce0ahORn-bdo5pwX-.js → 1.33.0/chunks/index-Cfy6Ocqe-CzwqZYRk.js} +2 -2
- package/dist/runtime/1.33.0/chunks/index-Ci7P37Ya-W5nof5Mx.js +6 -0
- package/dist/runtime/{1.32.17/chunks/index-BDhTixUR-Aqz1AnQ5.js → 1.33.0/chunks/index-CmM1q2bg-D6H0juMn.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-BlGeDG8W-CoI3p0S7.js → 1.33.0/chunks/index-CnknkPUN-Yl3jEGAx.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-BJxJr5j5-C_0Ll4qr.js → 1.33.0/chunks/index-D9fi5TQ9-k8zxZkfU.js} +2 -2
- package/dist/runtime/1.33.0/chunks/index-DG6McKPZ-CqZ9_vG_.js +2 -0
- package/dist/runtime/{1.32.17/chunks/index-Bl_8GpS0-CahNhEcx.js → 1.33.0/chunks/index-DOJHU9qy-Bil-vDLm.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-C_zmepmr-H31PHMqm.js → 1.33.0/chunks/index-DTa1aDGz-Deg8QEW2.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DAJM_cb9-VhJcCfAC.js → 1.33.0/chunks/index-DUV1wU5j-ErDxRmJu.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DMM00SC5-R_xuAEQV.js → 1.33.0/chunks/index-DZNxd978-BmIQ-NmU.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-B0-9mIbB-DP0QKkgf.js → 1.33.0/chunks/index-DsyaMk1k-DpMzyqHN.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-D5EHdeyl-_M0CWPEY.js → 1.33.0/chunks/index-HIu_g6Cr-CEIHlemy.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-Wza_7CGb-W1lJrIDD.js → 1.33.0/chunks/index-NPLN6oCC-VW9D8cgC.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CIFQrVkq-DUgMllqN.js → 1.33.0/chunks/index-S2W2KqpV-PMvqlUvO.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DIMi29lU-3B-eE3K7.js → 1.33.0/chunks/index-SV2KdT0_-BZw4n83V.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-DzCfV77F-C1BzRUwZ.js → 1.33.0/chunks/index-qzvjftnO-CDVtcfdt.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CM0iRJSw-pkywvGDF.js → 1.33.0/chunks/index-s0zHGN1t-DWm0RYZF.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-B97ASd4H-ZRnEJoQe.js → 1.33.0/chunks/index-uYSCRIpT-qsVnaLmo.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-CSDD7Z6C-BpgnWlB8.js → 1.33.0/chunks/index-v9CNsbwM-CavFmRiD.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index-_R8QyLD7-TEMHje2B.js → 1.33.0/chunks/index-xQDKGkvA-pCzSL4DD.js} +2 -2
- package/dist/runtime/{1.32.17/chunks/index.modern-CioVZ357-BA5NTOmY.js → 1.33.0/chunks/index.modern-CioVZ357-nfRNslCS.js} +2 -2
- package/dist/runtime/1.33.0/nexly.js +61 -0
- package/dist/v1.js +1 -1
- package/package.json +1 -1
- package/dist/runtime/1.32.17/chunks/index-D0qsMexH-I68tb-d3.js +0 -2
- package/dist/runtime/1.32.17/chunks/index-tapacGlG--YMQ21rc.js +0 -6
- package/dist/runtime/1.32.17/nexly.js +0 -61
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/PanelVideoOverlay-BY__oBYV-B8OPC1xh.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/_commonjsHelpers-C6fGbg64-BC8KDfbh.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/accent-legibility-BJF2VO5n-CDPQ7suO.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/block-helpers-Cg_zAqG6-DnN2COvk.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/index-BPDIV1BN-DINkyYvc.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/index-BcsmWDTX-Dw9WA5Ac.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/index-C262wwK4-DpyhuXqd.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/index-DMQkz1bV-BuMYksln.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/index-DZADUAKv-DPfvWVuj.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/inert-assistant-components-B6Cx9pG5-DWb6n3Yq.js +0 -0
- /package/dist/runtime/{1.32.17 → 1.33.0}/chunks/use-deferred-rating-XlgCUwcY-DDVOwURi.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as E,j as e,Q as U,o as ue}from"../nexly.js";import{C as ye}from"./block-rating-BgOeTm52-CoiP5C2K.js";import{j as ge}from"./PanelInfoVideo-DMU0-9Az-BrU-Qlul.js";import{m as J}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";const Fe={slug:"daily-action-plan",name:"Daily Action Plan",version:"4.0.0",category:"data",requiredService:"daily-action-plan",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},showGreeting:{type:"boolean",default:!0},showFocus:{type:"boolean",default:!0},showPlays:{type:"boolean",default:!0},showStructural:{type:"boolean",default:!0},showRisk:{type:"boolean",default:!0},showBlocker:{type:"boolean",default:!0},showMyBenefits:{type:"boolean",default:!0}}},defaultConfig:{readAloudEnabled:!1,showGreeting:!0,showFocus:!0,showPlays:!0,showStructural:!0,showRisk:!0,showBlocker:!0,showMyBenefits:!0},sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"daily-action-plan",inputSchema:{type:"object",properties:{personalGreeting:{type:"object",properties:{userName:{type:"string"},rankBadge:{type:"string"},summary:{type:"string"},tone:{type:"string",enum:["calm","urgent","celebratory"]}}},todaysFocus:{type:"object",properties:{domain:{type:"string",enum:["relationship","recruitment","sales","structural","risk","market"]},summary:{type:"string"},details:{type:"object",properties:{whyThisToday:{type:"string"},expectedOutcome:{type:"string"},deadlineUtc:{type:"string"}}}}},relationshipPlay:{type:"object",description:"Named downliner outreach play (empty when no real downliner available)",properties:{targetName:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{targetContext:{type:"string"},messageHook:{type:"string"},channelHint:{type:"string",enum:["kakao","line","whatsapp","telegram","email","dashboard","none"]},draftMessage:{type:"string"},complianceNote:{type:"string"}}}}},recruitmentPlay:{type:"object",description:"Recruitment action (actionType='none' when not applicable)",properties:{actionType:{type:"string",enum:["warm_intro","event_invite","follow_up","qualification_call","content_share","none"]},summary:{type:"string"},details:{type:"object",properties:{candidateOrSegment:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},complianceNote:{type:"string"}}}}},salesPlay:{type:"object",description:"iMine product or cycle action",properties:{linkedToBinarySide:{type:"string",enum:["left","right","both","none"]},summary:{type:"string"},details:{type:"object",properties:{productOrCycleAction:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},marketSignal:{type:"string"},complianceNote:{type:"string"}}}}},structuralCheck:{type:"object",description:"Binary tree, rank, cycle cap, and time alert metrics",properties:{normalRank:{type:"object",properties:{currentRank:{type:"string"},nextRank:{type:"string"},currentVolume:{type:"number"},requiredVolume:{type:"number"},volumeProgressPercent:{type:"number"},creditsEarned:{type:"number"},requiredCredits:{type:"number"},creditsProgressPercent:{type:"number"},binaryQualifyingPlacements:{type:"number"},binaryProgressPercent:{type:"number"},qualifyingBranchLeaders:{type:"number"},branchProgressPercent:{type:"number"},bottleneckProgressPercent:{type:"number"},blockingConditions:{type:"array",items:{type:"string"}}}},paidRank:{type:"object",properties:{currentPaidRank:{type:"string"},nextPaidRank:{type:"string"},active:{type:"boolean"},riskOfDrop:{type:"boolean"},reason:{type:"string"},retentionProgress:{type:"number"},advanceProgress:{type:"number"},rollingWindowSales:{type:"number"},thresholdForCurrentRank:{type:"number"},thresholdForNextRank:{type:"number"},windowDays:{type:"number"},gracePeriodEndsDate:{type:"string"}}},binary:{type:"object",properties:{leftVolume:{type:"number"},rightVolume:{type:"number"},balanced:{type:"boolean"},reason:{type:"string"}}},cycleCap:{type:"object",properties:{}},timeAlert:{type:"object",properties:{}}}},riskFlag:{type:"object",description:"Most critical risk today (severity='none' = no risk)",properties:{severity:{type:"string",enum:["none","low","medium","high","critical"]},riskType:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{description:{type:"string"},preventiveAction:{type:"string"},timeSensitivity:{type:"string"}}}}},myBenefits:{type:"object",description:"Deterministic near-term benefits timeline (1-3 nearest events; empty summary+events hides the tile)",properties:{summary:{type:"string"},events:{type:"array",items:{type:"object",properties:{kind:{type:"string",enum:["mining_start","first_reward","rank_grace","rank_retention","cycles_today","promo"]},dateUtc:{type:"string"},label:{type:"string"},narration:{type:"string"}}}}}}}},previewDataOverride:{personalGreeting:{userName:"Aleksandra",rankBadge:"Senior Manager",summary:"Aleksandra, right leg needs 5 BP to close a cycle before 15:00 UTC.",tone:"urgent"},todaysFocus:{domain:"relationship",summary:"Message Minsu about right-leg cycle close before 15:00 UTC.",details:{whyThisToday:"Minsu is your top right-leg Developer with 12,500 USDT team sales — highest leverage today.",expectedOutcome:"Right-leg +500 USDT or 1 new referral from Minsu by end of day.",deadlineUtc:"15:00 UTC"}},relationshipPlay:{targetName:"Minsu",summary:"Message Minsu on Kakao to align on a right-leg pack placement before 15:00 UTC.",details:{targetContext:"Right-leg Developer, recent activity, team_sales 12,500.",messageHook:"Ask about right-leg cycle close this week.",channelHint:"kakao",draftMessage:"Hi Minsu, we're 5 BP away from closing a right-leg cycle today. Can we align on a pack placement before 15:00 UTC?",complianceNote:"No income guarantee — frame as qualifying for cycle, not earning."}},recruitmentPlay:{actionType:"warm_intro",summary:"Send a warm intro to a BTC-interested contact today — greed index at 71.",details:{candidateOrSegment:"One warm contact who showed interest in BTC mining last week.",rationale:"Greed 71 creates a good opening to discuss Hash Power packages.",concreteStep:"Send iMine partner intro link today by 21:00 local time.",complianceNote:"Frame as 'here's how it works', no ROI claims."}},salesPlay:{linkedToBinarySide:"right",summary:"Place 500 USDT on right leg before 15:00 UTC to close 1 cycle.",details:{productOrCycleAction:"Hash Power Package — right-leg placement (500 USDT)",rationale:"Right 4,200 vs Left 4,500 — right-leg 500 USDT closes 1 cycle.",concreteStep:"Open iMine Distributor Hub → Hash Power Package → right leg → 1 pack.",marketSignal:"BTC up 7% this week — bullish sentiment supports placement urgency.",complianceNote:"No specific earnings amount. Frame as 'activates Senior Manager cycle'."}},structuralCheck:{normalRank:{currentRank:"Senior Manager",nextRank:"Vice President",currentVolume:58e3,requiredVolume:5e4,volumeProgressPercent:100,creditsEarned:500,requiredCredits:1e3,creditsProgressPercent:50,binaryQualifyingPlacements:2,binaryProgressPercent:67,qualifyingBranchLeaders:1,branchProgressPercent:33,bottleneckProgressPercent:33,blockingConditions:[]},paidRank:{currentPaidRank:"Senior Manager",nextPaidRank:"Vice President",active:!0,riskOfDrop:!1,reason:"On track this week.",retentionProgress:.85,advanceProgress:.42,rollingWindowSales:17e3,thresholdForCurrentRank:2e4,thresholdForNextRank:4e4,windowDays:90,gracePeriodEndsDate:null},binary:{leftVolume:4500,rightVolume:4200,balanced:!1,reason:"Right +500 USDT closes 1 cycle."},cycleCap:{dailyCycleLimit:8,cyclesCompletedToday:0,remainingCyclesToday:8,capWasteRisk:!1},timeAlert:{autoPlacementTimeUtc:"15:00",hoursUntilAutoPlacement:4.5,placementUrgency:"high"}},riskFlag:{severity:"low",riskType:"cap_waste",summary:"Right-leg gap may cause 1 missed cycle if not topped up before 15:00 UTC.",details:{description:"If right-leg is not topped up before 15:00 UTC auto-placement, 1 cycle may be missed.",preventiveAction:"Suggest Minsu or place 1 pack on right leg by 14:30 UTC.",timeSensitivity:"4.5 hours"}},myBenefits:{summary:"Your next 3 milestones — mining starts tomorrow, first reward 2 days after.",events:[{kind:"mining_start",dateUtc:"2026-08-14",label:"Mining starts",narration:"Your Hash Power package begins mining tomorrow."},{kind:"first_reward",dateUtc:"2026-08-16",label:"First reward",narration:"Your first mining reward lands 2 days after mining starts."},{kind:"cycles_today",dateUtc:"",label:"0 of 8 cycles used",narration:"You have 8 cycles available today — none used yet."}]}}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"showGreeting",type:"toggle",label:"Show personal greeting",default:!0,group:"Sections"},{id:"showFocus",type:"toggle",label:"Show today's focus",default:!0,group:"Sections"},{id:"showPlays",type:"toggle",label:"Show action plays (relationship / recruitment / sales)",default:!0,group:"Sections"},{id:"showStructural",type:"toggle",label:"Show structural check (rank / binary / cycle)",default:!0,group:"Sections"},{id:"showRisk",type:"toggle",label:"Show risk flag",default:!0,group:"Sections"},{id:"showBlocker",type:"toggle",label:"Show rank blocker tile (structure / payout)",default:!0,group:"Sections"},{id:"showMyBenefits",type:"toggle",label:"Show My Benefits (mining/reward/rank timeline)",default:!0,group:"Sections"}],events:{emits:[{name:"dap:legSelected",description:"User selected a recommended binary leg"},{name:"chat:draft",description:"Seed the chat composer with a draft message + quick-reply chips"}],listens:[{name:"dap:refresh",description:"Force refresh daily action plan"}]},supportedPlacements:["main"]},he=[/MLM\s+PROFILE\s+DATA\s+missing/i,/USER\s+CONTEXT\s+missing/i,/^Cannot\s+verify/i,/Profile\s+data\s+missing/i,/Profile\s+incomplete/i];function X(a){return he.some(s=>s.test(a.trim()))}function l(a){return!a||a.trim()===""}function _e(a){return Math.round(a).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Z(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function ee(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"}).format(t)}function P(a){return a.filter(s=>typeof s=="string"&&s.trim()!=="").join(`
|
|
2
|
-
`)}function be(a,s,t){const r=a.details;return P([`${s("dap.section.focus")} · ${a.domain}`,!l(a.summary)&&a.summary,r&&!l(r.whyThisToday)&&`${s("dap.focus.why")}: ${r.whyThisToday}`,r&&!l(r.expectedOutcome)&&`${s("dap.gaio.field.expected")}: ${r.expectedOutcome}`,r&&r.deadlineUtc&&!l(r.deadlineUtc)&&`${s("dap.gaio.field.deadline")}: ${Z(r.deadlineUtc,t)}`])}function ke(a,s){const t=a.details;return P([`${s("dap.gaio.field.severity")}: ${a.severity}`,!l(a.summary)&&a.summary,t&&!l(t.description)&&t.description,t&&!l(t.preventiveAction)&&`${s("dap.gaio.field.preventive")}: ${t.preventiveAction}`,t&&!l(t.timeSensitivity)&&`${s("dap.gaio.field.time_sensitivity")}: ${t.timeSensitivity}`])}function fe(a,s){const t=a.details;return P([`${s("dap.section.relationship")} · ${a.targetName}`,!l(a.summary)&&a.summary,t&&!l(t.targetContext)&&`${s("dap.gaio.field.context")}: ${t.targetContext}`,t&&!l(t.messageHook)&&`${s("dap.gaio.field.hook")}: ${t.messageHook}`,t&&t.channelHint&&t.channelHint!=="none"&&`${s("dap.gaio.field.channel")}: ${t.channelHint}`,t&&!l(t.draftMessage)&&`${s("dap.gaio.field.draft")}: ${t.draftMessage}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function xe(a,s){const t=a.details;return P([`${s("dap.section.recruitment")} · ${a.actionType.replace(/_/g," ")}`,!l(a.summary)&&a.summary,t&&!l(t.candidateOrSegment)&&`${s("dap.gaio.field.candidate")}: ${t.candidateOrSegment}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function je(a,s){const t=a.details;return P([`${s("dap.section.sales")} · ${a.linkedToBinarySide}`,!l(a.summary)&&a.summary,t&&!l(t.productOrCycleAction)&&`${s("dap.gaio.field.product")}: ${t.productOrCycleAction}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.marketSignal)&&`${s("dap.gaio.field.market")}: ${t.marketSignal}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function Ne(a,s,t){return P([s("dap.section.my_benefits"),!l(a.summary)&&a.summary,...a.events.map(r=>{const n=r.dateUtc?` (${ee(r.dateUtc,t)})`:"";return`${s(`dap.benefits.kind.${r.kind}`)} — ${r.label}${n}: ${r.narration}`})])}function ae(a,s){const t=!!a.riskOfDrop,r=a.retentionProgress,n=typeof r=="number"&&r<1,m=Math.max(0,(a.thresholdForCurrentRank??0)-(a.rollingWindowSales??0)),h=a.windowDays??0,k=m>0&&h>0;let b;return a.active===!1?b=s("dap.blocker.paid_rank.unlock"):n||t?b=k?s("dap.blocker.paid_rank.at_risk",{gap:_e(m),days:h}):s("dap.blocker.paid_rank.unlock"):b=s("dap.blocker.paid_rank.safe",{rank:J(a.currentPaidRank,s)}),{atRisk:t,message:b}}function te(a,s){if(a.active===!1||a.riskOfDrop||typeof a.retentionProgress=="number"&&a.retentionProgress<1)return;const t=a.nextPaidRank,r=a.thresholdForNextRank??0;if(!t||r<=0)return;const n=typeof a.advanceProgress=="number"?a.advanceProgress:0,m=Math.round(Math.max(0,Math.min(1,n))*100);return s("dap.blocker.paid_rank.advance",{percent:m,rank:J(t,s)})}function ve(a,s,t){const r=s?ae(s,t):void 0,n=s?te(s,t):void 0;return P([a.length>0&&`${t("dap.blocker.normal_rank.title")} (${t("dap.blocker.normal_rank.badge")})`,...a,r&&`${t("dap.blocker.paid_rank.title")}: ${r.message}`,n,r?.atRisk&&s?.gracePeriodEndsDate?t("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate}):void 0])}function we(a){if(!a)return!0;if(!l(a.summary))return!1;const s=a.details;return s?l(s.whyThisToday)&&l(s.expectedOutcome)&&l(s.deadlineUtc):!0}function Te(a){if(!a)return!0;const s=a.normalRank;return s?(s.blockingConditions??[]).filter(t=>!X(t)).length===0&&s.currentVolume===0&&s.requiredVolume===0:!0}function Y(a){return a==="critical"||a==="high"?"var(--es-color-error, #AD2C26)":a==="medium"?"var(--es-color-warning, #9C5300)":"var(--es-color-on-surface-muted, #4B5563)"}const Se={relationship:"🤝",recruitment:"📣",sales:"🛒",structural:"📊",risk:"⚠️",market:"📈"},Pe={mining_start:"⛏️",first_reward:"🎁",rank_grace:"⏳",rank_retention:"🛡️",cycles_today:"🔄",promo:"✨"};function $e({open:a}){return e.jsx("svg",{className:`es-dap__chevron${a?" es-dap__chevron--open":""}`,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})}function O({teaser:a,isOpen:s,children:t}){return s?e.jsx("div",{className:"es-dap__teaser-reveal",children:t}):e.jsx("p",{className:"es-dap__teaser-text",children:a})}function M({isOpen:a,onToggle:s,expandLabel:t,collapseLabel:r,t:n}){return e.jsxs("button",{className:"es-dap__more-toggle",type:"button",onClick:s,"aria-expanded":a,"aria-label":a?r:t,children:[n(a?"dap.teaser.less":"dap.teaser.more"),e.jsx($e,{open:a})]})}function S({moreToggle:a,gaioLink:s}){return!a&&!s?null:e.jsxs("div",{className:"es-dap__actions",children:[a,s]})}function Ce(a){const s=a.trim(),t=/^\[(normal|paid)\]\s*/i.exec(s);return t&&t[1]?{scope:t[1].toLowerCase(),text:s.slice(t[0].length)}:{scope:"normal",text:s}}const Re=[{labelKey:"dap.blocker.credits",pct:a=>a.creditsProgressPercent},{labelKey:"dap.blocker.binary_structure",pct:a=>a.binaryProgressPercent},{labelKey:"dap.blocker.branch_leaders",pct:a=>a.branchProgressPercent},{labelKey:"dap.blocker.team_sales",pct:a=>a.volumeProgressPercent}];function Le({normalRank:a,paidRank:s,normalConditions:t,gaioLink:r,t:n}){const m=a?Re.filter(g=>{const f=g.pct(a);return typeof f=="number"&&f<100}):[],h=m.length>0&&m.length===t.length,k=h&&m.some(g=>g.labelKey==="dap.blocker.branch_leaders"),b=t.length>0,i=s?ae(s,n):void 0,x=s?te(s,n):void 0;return e.jsxs("div",{className:"es-dap__card es-dap__blocker-tile",children:[b&&e.jsxs("div",{className:"es-dap__blocker-section",children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.normal_rank.title")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",children:n("dap.blocker.normal_rank.badge")})]}),e.jsx("ul",{className:"es-dap__blocker-list",children:t.map((g,f)=>{const j=h?m[f]:void 0;return e.jsxs("li",{className:"es-dap__blocker-item es-dap__blocker-item--structure",children:[j&&e.jsx("span",{className:"es-dap__blocker-itemlabel",children:n(j.labelKey)}),e.jsx("span",{className:"es-dap__blocker-msg",children:g})]},f)})}),k&&e.jsx("p",{className:"es-dap__blocker-note",children:n("dap.blocker.excluded_structure")})]}),s&&i&&e.jsxs("div",{className:`es-dap__blocker-section${b?" es-dap__blocker-section--divided":""}`,children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.paid_rank.title")}),e.jsx("span",{className:`es-dap__pill ${i.atRisk?"es-dap__pill--danger":"es-dap__pill--ok"}`,children:n("dap.blocker.paid_rank.badge")})]}),e.jsx("p",{className:`es-dap__blocker-item es-dap__blocker-item--${i.atRisk?"risk":"safe"}`,children:e.jsx("span",{className:"es-dap__blocker-msg",children:i.message})}),x&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--advance",children:x}),i.atRisk&&s.gracePeriodEndsDate&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--grace",children:n("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate})})]}),e.jsx(S,{gaioLink:r})]})}function Oe({benefits:a,lang:s,gaioLink:t,t:r}){return e.jsxs("div",{className:"es-dap__card es-dap__benefits-tile",children:[e.jsx("div",{className:"es-dap__blocker-head",children:e.jsx("span",{className:"es-dap__blocker-title",children:r("dap.section.my_benefits")})}),!l(a.summary)&&e.jsx("p",{className:"es-dap__benefits-summary",children:a.summary}),a.events.length>0&&e.jsx("ul",{className:"es-dap__benefits-list",children:a.events.map((n,m)=>e.jsxs("li",{className:`es-dap__benefits-item es-dap__benefits-item--${n.kind}`,children:[e.jsx("span",{className:"es-dap__benefits-icon","aria-hidden":"true",children:Pe[n.kind]??"•"}),e.jsxs("div",{className:"es-dap__benefits-body",children:[e.jsxs("div",{className:"es-dap__benefits-row",children:[e.jsx("span",{className:"es-dap__benefits-label",children:n.label}),n.dateUtc&&e.jsx("span",{className:"es-dap__benefits-date","data-es-no-read":!0,children:ee(n.dateUtc,s)})]}),!l(n.narration)&&e.jsx("p",{className:"es-dap__benefits-narration",children:n.narration})]})]},m))}),e.jsx(S,{gaioLink:t})]})}function Me({text:a,copyLabel:s,copiedLabel:t}){const[r,n]=E.useState(!1);function m(){const h=()=>{n(!0),window.setTimeout(()=>n(!1),2e3)},k=navigator?.clipboard;k?.writeText&&k.writeText(a).then(h,()=>{})}return e.jsx("button",{className:"es-dap__copy-btn",type:"button",onClick:m,children:r?`${t} ✓`:`📋 ${s}`})}function z({label:a,message:s,btnLabel:t,onNavigate:r}){return e.jsxs("div",{className:"es-dap__card es-dap__tile-cta",children:[e.jsx("div",{className:"es-dap__tile-cta-header",children:e.jsx("span",{className:"es-dap__section-label",children:a})}),e.jsx("p",{className:"es-dap__tile-cta-message",children:s}),e.jsx("button",{className:"es-dap__tile-cta-btn",type:"button",onClick:r,children:t})]})}function T({section:a,summary:s,content:t,onTalk:r,t:n}){return e.jsxs("button",{type:"button",className:"es-dap__gaio-link","aria-label":n("dap.gaio.aria",{section:a}),onClick:()=>r(a,s,t),children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",n("dap.talk_to_gaio")]})}function He({data:a,config:s,metadata:t,i18n:r,actions:n,baseUrl:m,externalContext:h,auth:k,previewMode:b}){const i=r?.t??(y=>y),x=r?.currentLanguage??"en",g=h?.hasChatView===!0,f=s.showFocus??!0,j=s.showPlays??!0,q=s.showStructural??!0,se=s.showRisk??!0,ie=s.showBlocker??!0,re=s.showMyBenefits??!0,ne=a.personalGreeting,u=a.todaysFocus,d=a.relationshipPlay,p=a.recruitmentPlay,o=a.salesPlay,C=a.structuralCheck,c=a.riskFlag,N=a.myBenefits,[_,le]=E.useState({});function R(y){le($=>({...$,[y]:!$[y]}))}function B(){n.navigate("gaio-coach")}const v=E.useCallback((y,$,me)=>{n.emit("chat:draft",{message:`[${y}]
|
|
3
|
-
${me}`,autoSend:!1,quickChips:[{labelKey:"dap.gaio.chip.how",label:i("dap.gaio.chip.how"),message:i("dap.gaio.chip.how_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.why",label:i("dap.gaio.chip.why"),message:i("dap.gaio.chip.why_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.draft",label:i("dap.gaio.chip.draft"),message:i("dap.gaio.chip.draft_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.other",label:i("dap.gaio.chip.other"),message:"",autoSend:!1}]})},[n,i]),w=y=>e.jsx(ye,{compact:!0,blockSlug:"daily-action-plan",sectionKey:y,baseUrl:m,apiKey:h?.apiKey,jwt:k?.jwt,previewMode:b,t:i});if(!u&&!ne&&!a.error)return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__empty",children:[e.jsx("div",{className:"es-dap__empty-title",children:i("dap.title")}),e.jsx("p",{className:"es-dap__empty-message",children:t?.dataQuality==="none"?i("dap.empty.sign_in"):i("dap.empty.preparing")}),[1,2,3].map(y=>e.jsxs("div",{className:"es-dap__card es-dap__card--placeholder",children:[e.jsx("div",{className:"es-dap__placeholder-line es-dap__placeholder-line--label"}),e.jsx("div",{className:"es-dap__placeholder-line"})]},y))]})})});if(a.error)return e.jsx(U,{blockType:"daily-action-plan",error:ue(a.error)});const V=we(u),G=Te(C),oe=C?.normalRank?.blockingConditions?.filter(y=>!X(y))??[],ce=f&&!V,D=j&&!!d&&!!d.targetName&&!l(d.summary),A=j&&!!p&&p.actionType!=="none"&&!l(p.summary),L=!!o&&o.linkedToBinarySide==="none"&&!l(o.details?.concreteStep),F=j&&!!o&&(!l(o.summary)||L),de=q&&!G,W=se&&!!c&&c.severity!=="none",I=re&&!!N&&(!l(N.summary)||N.events.length>0);if(!(ce||D||A||F||de||W||I))return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__block-cta",children:[e.jsx("p",{className:"es-dap__block-cta-message",children:i("dap.empty.block_cta")}),e.jsx("button",{className:"es-dap__block-cta-btn",type:"button",onClick:B,children:i("dap.empty.block_cta_btn")})]})})});const pe=C?.normalRank,H=C?.paidRank,K=oe.map(Ce).filter(y=>y.scope==="normal").map(y=>y.text),Q=ie&&!!C&&(K.length>0||!!H);return e.jsxs(U,{blockType:"daily-action-plan",children:[e.jsx("div",{className:"es-dap__icon-row",children:e.jsx(ge,{panelKey:"daily-action-plan",baseUrl:m,apiKey:h?.apiKey,t:i})}),e.jsxs("div",{className:"es-block__body es-dap__body es-dap__deck",children:[f&&(V?e.jsx(z,{label:i("dap.section.focus"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}):u&&e.jsxs("div",{className:"es-dap__hero",children:[e.jsxs("div",{className:"es-dap__hero-lead",children:[e.jsx("span",{"aria-hidden":"true",children:Se[u.domain]??"🎯"})," ",i("dap.section.focus")," · ",u.domain,u.details?.deadlineUtc&&e.jsxs("span",{className:"es-dap__hero-deadline","data-es-no-read":!0,children:[" · ⏱ ",Z(u.details.deadlineUtc,x)]})]}),e.jsx("p",{className:"es-dap__hero-headline",children:u.summary}),u.details?.whyThisToday&&e.jsxs(O,{teaser:u.details.whyThisToday,isOpen:_.focus??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:u.details.whyThisToday}),u.details?.expectedOutcome&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--outcome",children:u.details.expectedOutcome})]}),e.jsx(S,{moreToggle:u.details?.whyThisToday&&e.jsx(M,{isOpen:_.focus??!1,onToggle:()=>R("focus"),expandLabel:i("dap.aria.expand_focus"),collapseLabel:i("dap.aria.collapse_focus"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.focus"),summary:u.summary,content:be(u,i,x),onTalk:v,t:i})}),w("focus")]})),W&&c&&e.jsxs("div",{className:"es-dap__risk",style:{borderLeftColor:Y(c.severity)},children:[e.jsxs("div",{className:"es-dap__risk-head",children:[e.jsx("span",{className:"es-dap__risk-title",children:i("dap.section.risk")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",style:{color:Y(c.severity)},children:i(`dap.risk.severity.${c.severity}`)})]}),e.jsx("p",{className:"es-dap__risk-blurb",children:i("dap.risk.blurb")}),c.summary&&e.jsx("p",{className:"es-dap__risk-summary",children:c.summary}),c.details?.description&&e.jsxs(O,{teaser:c.details.description,isOpen:_.risk??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:c.details.description}),c.details?.preventiveAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--step",children:c.details.preventiveAction}),c.details?.timeSensitivity&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--deadline",children:c.details.timeSensitivity})]}),e.jsx(S,{moreToggle:c.details?.description&&e.jsx(M,{isOpen:_.risk??!1,onToggle:()=>R("risk"),expandLabel:i("dap.aria.expand_risk"),collapseLabel:i("dap.aria.collapse_risk"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.risk"),summary:c.summary||c.details?.description||i("dap.section.risk"),content:ke(c,i),onTalk:v,t:i})}),w("risk")]}),Q&&e.jsxs(e.Fragment,{children:[e.jsx(Le,{normalRank:pe,paidRank:H,normalConditions:K,gaioLink:g&&e.jsx(T,{section:i("dap.gaio.section.blocker"),summary:i("dap.gaio.section.blocker"),content:ve(K,H,i),onTalk:v,t:i}),t:i}),w("blocker")]}),q&&G&&!Q&&e.jsx(z,{label:i("dap.section.structural"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}),I&&N&&e.jsxs(e.Fragment,{children:[e.jsx(Oe,{benefits:N,lang:x,gaioLink:g&&e.jsx(T,{section:i("dap.section.my_benefits"),summary:N.summary||i("dap.section.my_benefits"),content:Ne(N,i,x),onTalk:v,t:i}),t:i}),w("my_benefits")]}),j&&(D||A||F)&&e.jsxs("div",{className:"es-dap__play-rail",children:[D&&d&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🤝"}),e.jsxs("span",{className:"es-dap__play-label",children:[i("dap.section.relationship")," · ",d.targetName]}),e.jsx("span",{className:"es-dap__play-spacer"}),d.details?.channelHint&&d.details.channelHint!=="none"&&e.jsxs("span",{className:"es-dap__pill",children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",d.details.channelHint]})]}),e.jsx("div",{className:"es-dap__play-summary",children:d.summary}),d.details?.draftMessage&&e.jsxs(O,{teaser:d.details.draftMessage,isOpen:_.relationship??!1,children:[e.jsx("blockquote",{className:"es-dap__draft-message",children:d.details.draftMessage}),e.jsx(Me,{text:d.details.draftMessage,copyLabel:i("dap.play.copy_send"),copiedLabel:i("dap.play.copied")})]}),d.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:d.details.complianceNote})]}),e.jsx(S,{moreToggle:d.details?.draftMessage&&e.jsx(M,{isOpen:_.relationship??!1,onToggle:()=>R("relationship"),expandLabel:i("dap.aria.expand_relationship"),collapseLabel:i("dap.aria.collapse_relationship"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.relationship"),summary:d.summary,content:fe(d,i),onTalk:v,t:i})}),w("relationship")]}),A&&p&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"📣"}),e.jsx("span",{className:"es-dap__play-label",children:i("dap.section.recruitment")}),e.jsx("span",{className:"es-dap__play-spacer"}),e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:p.actionType.replace(/_/g," ")})]}),e.jsx("div",{className:"es-dap__play-summary",children:p.summary}),p.details?.rationale&&e.jsxs(O,{teaser:p.details.rationale,isOpen:_.recruitment??!1,children:[p.details?.candidateOrSegment&&e.jsx("p",{className:"es-dap__detail-text",children:p.details.candidateOrSegment}),e.jsx("p",{className:"es-dap__detail-text",children:p.details.rationale})]}),p.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",p.details.concreteStep]}),p.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:p.details.complianceNote})]}),e.jsx(S,{moreToggle:p.details?.rationale&&e.jsx(M,{isOpen:_.recruitment??!1,onToggle:()=>R("recruitment"),expandLabel:i("dap.aria.expand_recruitment"),collapseLabel:i("dap.aria.collapse_recruitment"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.recruitment"),summary:p.summary,content:xe(p,i),onTalk:v,t:i})}),w("recruitment")]}),F&&o&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🛒"}),e.jsx("span",{className:"es-dap__play-label",children:L?`${i("dap.section.sales")} · ${i("dap.sales.educational")}`:`${i("dap.section.sales")} · ${o.linkedToBinarySide}`}),e.jsx("span",{className:"es-dap__play-spacer"}),!L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--ok",children:`${o.linkedToBinarySide} ${i("dap.gauge.leg")}`}),L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:i("dap.sales.no_cycle")})]}),o.summary&&e.jsx("div",{className:"es-dap__play-summary",children:o.summary}),o.details?.rationale&&e.jsxs(O,{teaser:o.details.rationale,isOpen:_.sales??!1,children:[o.details?.productOrCycleAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--product",children:o.details.productOrCycleAction}),e.jsx("p",{className:"es-dap__detail-text",children:o.details.rationale})]}),o.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",o.details.concreteStep]}),o.details?.marketSignal&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--market",children:o.details.marketSignal}),o.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:o.details.complianceNote})]}),e.jsx(S,{moreToggle:o.details?.rationale&&e.jsx(M,{isOpen:_.sales??!1,onToggle:()=>R("sales"),expandLabel:i("dap.aria.expand_sales"),collapseLabel:i("dap.aria.collapse_sales"),t:i}),gaioLink:!L&&g&&e.jsx(T,{section:i("dap.section.sales"),summary:o.summary,content:je(o,i),onTalk:v,t:i})}),w("sales")]})]})]})]})}export{He as Component,Fe as manifest};
|
|
4
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as E,j as e,e as U,l as ue}from"../nexly.js";import{C as ye}from"./block-rating-CAVRRYuG-CQMNokIy.js";import{j as ge}from"./PanelInfoVideo-XFcVoL2c-qpxDXdLm.js";import{m as J}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";const Fe={slug:"daily-action-plan",name:"Daily Action Plan",version:"4.0.0",category:"data",requiredService:"daily-action-plan",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},showGreeting:{type:"boolean",default:!0},showFocus:{type:"boolean",default:!0},showPlays:{type:"boolean",default:!0},showStructural:{type:"boolean",default:!0},showRisk:{type:"boolean",default:!0},showBlocker:{type:"boolean",default:!0},showMyBenefits:{type:"boolean",default:!0}}},defaultConfig:{readAloudEnabled:!1,showGreeting:!0,showFocus:!0,showPlays:!0,showStructural:!0,showRisk:!0,showBlocker:!0,showMyBenefits:!0},sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"daily-action-plan",inputSchema:{type:"object",properties:{personalGreeting:{type:"object",properties:{userName:{type:"string"},rankBadge:{type:"string"},summary:{type:"string"},tone:{type:"string",enum:["calm","urgent","celebratory"]}}},todaysFocus:{type:"object",properties:{domain:{type:"string",enum:["relationship","recruitment","sales","structural","risk","market"]},summary:{type:"string"},details:{type:"object",properties:{whyThisToday:{type:"string"},expectedOutcome:{type:"string"},deadlineUtc:{type:"string"}}}}},relationshipPlay:{type:"object",description:"Named downliner outreach play (empty when no real downliner available)",properties:{targetName:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{targetContext:{type:"string"},messageHook:{type:"string"},channelHint:{type:"string",enum:["kakao","line","whatsapp","telegram","email","dashboard","none"]},draftMessage:{type:"string"},complianceNote:{type:"string"}}}}},recruitmentPlay:{type:"object",description:"Recruitment action (actionType='none' when not applicable)",properties:{actionType:{type:"string",enum:["warm_intro","event_invite","follow_up","qualification_call","content_share","none"]},summary:{type:"string"},details:{type:"object",properties:{candidateOrSegment:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},complianceNote:{type:"string"}}}}},salesPlay:{type:"object",description:"iMine product or cycle action",properties:{linkedToBinarySide:{type:"string",enum:["left","right","both","none"]},summary:{type:"string"},details:{type:"object",properties:{productOrCycleAction:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},marketSignal:{type:"string"},complianceNote:{type:"string"}}}}},structuralCheck:{type:"object",description:"Binary tree, rank, cycle cap, and time alert metrics",properties:{normalRank:{type:"object",properties:{currentRank:{type:"string"},nextRank:{type:"string"},currentVolume:{type:"number"},requiredVolume:{type:"number"},volumeProgressPercent:{type:"number"},creditsEarned:{type:"number"},requiredCredits:{type:"number"},creditsProgressPercent:{type:"number"},binaryQualifyingPlacements:{type:"number"},binaryProgressPercent:{type:"number"},qualifyingBranchLeaders:{type:"number"},branchProgressPercent:{type:"number"},bottleneckProgressPercent:{type:"number"},blockingConditions:{type:"array",items:{type:"string"}}}},paidRank:{type:"object",properties:{currentPaidRank:{type:"string"},nextPaidRank:{type:"string"},active:{type:"boolean"},riskOfDrop:{type:"boolean"},reason:{type:"string"},retentionProgress:{type:"number"},advanceProgress:{type:"number"},rollingWindowSales:{type:"number"},thresholdForCurrentRank:{type:"number"},thresholdForNextRank:{type:"number"},windowDays:{type:"number"},gracePeriodEndsDate:{type:"string"}}},binary:{type:"object",properties:{leftVolume:{type:"number"},rightVolume:{type:"number"},balanced:{type:"boolean"},reason:{type:"string"}}},cycleCap:{type:"object",properties:{}},timeAlert:{type:"object",properties:{}}}},riskFlag:{type:"object",description:"Most critical risk today (severity='none' = no risk)",properties:{severity:{type:"string",enum:["none","low","medium","high","critical"]},riskType:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{description:{type:"string"},preventiveAction:{type:"string"},timeSensitivity:{type:"string"}}}}},myBenefits:{type:"object",description:"Deterministic near-term benefits timeline (1-3 nearest events; empty summary+events hides the tile)",properties:{summary:{type:"string"},events:{type:"array",items:{type:"object",properties:{kind:{type:"string",enum:["mining_start","first_reward","rank_grace","rank_retention","cycles_today","promo"]},dateUtc:{type:"string"},label:{type:"string"},narration:{type:"string"}}}}}}}},previewDataOverride:{personalGreeting:{userName:"Aleksandra",rankBadge:"Senior Manager",summary:"Aleksandra, right leg needs 5 BP to close a cycle before 15:00 UTC.",tone:"urgent"},todaysFocus:{domain:"relationship",summary:"Message Minsu about right-leg cycle close before 15:00 UTC.",details:{whyThisToday:"Minsu is your top right-leg Developer with 12,500 USDT team sales — highest leverage today.",expectedOutcome:"Right-leg +500 USDT or 1 new referral from Minsu by end of day.",deadlineUtc:"15:00 UTC"}},relationshipPlay:{targetName:"Minsu",summary:"Message Minsu on Kakao to align on a right-leg pack placement before 15:00 UTC.",details:{targetContext:"Right-leg Developer, recent activity, team_sales 12,500.",messageHook:"Ask about right-leg cycle close this week.",channelHint:"kakao",draftMessage:"Hi Minsu, we're 5 BP away from closing a right-leg cycle today. Can we align on a pack placement before 15:00 UTC?",complianceNote:"No income guarantee — frame as qualifying for cycle, not earning."}},recruitmentPlay:{actionType:"warm_intro",summary:"Send a warm intro to a BTC-interested contact today — greed index at 71.",details:{candidateOrSegment:"One warm contact who showed interest in BTC mining last week.",rationale:"Greed 71 creates a good opening to discuss Hash Power packages.",concreteStep:"Send iMine partner intro link today by 21:00 local time.",complianceNote:"Frame as 'here's how it works', no ROI claims."}},salesPlay:{linkedToBinarySide:"right",summary:"Place 500 USDT on right leg before 15:00 UTC to close 1 cycle.",details:{productOrCycleAction:"Hash Power Package — right-leg placement (500 USDT)",rationale:"Right 4,200 vs Left 4,500 — right-leg 500 USDT closes 1 cycle.",concreteStep:"Open iMine Distributor Hub → Hash Power Package → right leg → 1 pack.",marketSignal:"BTC up 7% this week — bullish sentiment supports placement urgency.",complianceNote:"No specific earnings amount. Frame as 'activates Senior Manager cycle'."}},structuralCheck:{normalRank:{currentRank:"Senior Manager",nextRank:"Vice President",currentVolume:58e3,requiredVolume:5e4,volumeProgressPercent:100,creditsEarned:500,requiredCredits:1e3,creditsProgressPercent:50,binaryQualifyingPlacements:2,binaryProgressPercent:67,qualifyingBranchLeaders:1,branchProgressPercent:33,bottleneckProgressPercent:33,blockingConditions:[]},paidRank:{currentPaidRank:"Senior Manager",nextPaidRank:"Vice President",active:!0,riskOfDrop:!1,reason:"On track this week.",retentionProgress:.85,advanceProgress:.42,rollingWindowSales:17e3,thresholdForCurrentRank:2e4,thresholdForNextRank:4e4,windowDays:90,gracePeriodEndsDate:null},binary:{leftVolume:4500,rightVolume:4200,balanced:!1,reason:"Right +500 USDT closes 1 cycle."},cycleCap:{dailyCycleLimit:8,cyclesCompletedToday:0,remainingCyclesToday:8,capWasteRisk:!1},timeAlert:{autoPlacementTimeUtc:"15:00",hoursUntilAutoPlacement:4.5,placementUrgency:"high"}},riskFlag:{severity:"low",riskType:"cap_waste",summary:"Right-leg gap may cause 1 missed cycle if not topped up before 15:00 UTC.",details:{description:"If right-leg is not topped up before 15:00 UTC auto-placement, 1 cycle may be missed.",preventiveAction:"Suggest Minsu or place 1 pack on right leg by 14:30 UTC.",timeSensitivity:"4.5 hours"}},myBenefits:{summary:"Your next 3 milestones — mining starts tomorrow, first reward 2 days after.",events:[{kind:"mining_start",dateUtc:"2026-08-14",label:"Mining starts",narration:"Your Hash Power package begins mining tomorrow."},{kind:"first_reward",dateUtc:"2026-08-16",label:"First reward",narration:"Your first mining reward lands 2 days after mining starts."},{kind:"cycles_today",dateUtc:"",label:"0 of 8 cycles used",narration:"You have 8 cycles available today — none used yet."}]}}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"showGreeting",type:"toggle",label:"Show personal greeting",default:!0,group:"Sections"},{id:"showFocus",type:"toggle",label:"Show today's focus",default:!0,group:"Sections"},{id:"showPlays",type:"toggle",label:"Show action plays (relationship / recruitment / sales)",default:!0,group:"Sections"},{id:"showStructural",type:"toggle",label:"Show structural check (rank / binary / cycle)",default:!0,group:"Sections"},{id:"showRisk",type:"toggle",label:"Show risk flag",default:!0,group:"Sections"},{id:"showBlocker",type:"toggle",label:"Show rank blocker tile (structure / payout)",default:!0,group:"Sections"},{id:"showMyBenefits",type:"toggle",label:"Show My Benefits (mining/reward/rank timeline)",default:!0,group:"Sections"}],events:{emits:[{name:"dap:legSelected",description:"User selected a recommended binary leg"},{name:"chat:draft",description:"Seed the chat composer with a draft message + quick-reply chips"}],listens:[{name:"dap:refresh",description:"Force refresh daily action plan"}]},supportedPlacements:["main"]},he=[/MLM\s+PROFILE\s+DATA\s+missing/i,/USER\s+CONTEXT\s+missing/i,/^Cannot\s+verify/i,/Profile\s+data\s+missing/i,/Profile\s+incomplete/i];function X(a){return he.some(s=>s.test(a.trim()))}function l(a){return!a||a.trim()===""}function _e(a){return Math.round(a).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Z(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function ee(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"}).format(t)}function P(a){return a.filter(s=>typeof s=="string"&&s.trim()!=="").join(`
|
|
2
|
+
`)}function be(a,s,t){const r=a.details;return P([`${s("dap.section.focus")} · ${a.domain}`,!l(a.summary)&&a.summary,r&&!l(r.whyThisToday)&&`${s("dap.focus.why")}: ${r.whyThisToday}`,r&&!l(r.expectedOutcome)&&`${s("dap.gaio.field.expected")}: ${r.expectedOutcome}`,r&&r.deadlineUtc&&!l(r.deadlineUtc)&&`${s("dap.gaio.field.deadline")}: ${Z(r.deadlineUtc,t)}`])}function ke(a,s){const t=a.details;return P([`${s("dap.gaio.field.severity")}: ${a.severity}`,!l(a.summary)&&a.summary,t&&!l(t.description)&&t.description,t&&!l(t.preventiveAction)&&`${s("dap.gaio.field.preventive")}: ${t.preventiveAction}`,t&&!l(t.timeSensitivity)&&`${s("dap.gaio.field.time_sensitivity")}: ${t.timeSensitivity}`])}function fe(a,s){const t=a.details;return P([`${s("dap.section.relationship")} · ${a.targetName}`,!l(a.summary)&&a.summary,t&&!l(t.targetContext)&&`${s("dap.gaio.field.context")}: ${t.targetContext}`,t&&!l(t.messageHook)&&`${s("dap.gaio.field.hook")}: ${t.messageHook}`,t&&t.channelHint&&t.channelHint!=="none"&&`${s("dap.gaio.field.channel")}: ${t.channelHint}`,t&&!l(t.draftMessage)&&`${s("dap.gaio.field.draft")}: ${t.draftMessage}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function xe(a,s){const t=a.details;return P([`${s("dap.section.recruitment")} · ${a.actionType.replace(/_/g," ")}`,!l(a.summary)&&a.summary,t&&!l(t.candidateOrSegment)&&`${s("dap.gaio.field.candidate")}: ${t.candidateOrSegment}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function je(a,s){const t=a.details;return P([`${s("dap.section.sales")} · ${a.linkedToBinarySide}`,!l(a.summary)&&a.summary,t&&!l(t.productOrCycleAction)&&`${s("dap.gaio.field.product")}: ${t.productOrCycleAction}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.marketSignal)&&`${s("dap.gaio.field.market")}: ${t.marketSignal}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function Ne(a,s,t){return P([s("dap.section.my_benefits"),!l(a.summary)&&a.summary,...a.events.map(r=>{const n=r.dateUtc?` (${ee(r.dateUtc,t)})`:"";return`${s(`dap.benefits.kind.${r.kind}`)} — ${r.label}${n}: ${r.narration}`})])}function ae(a,s){const t=!!a.riskOfDrop,r=a.retentionProgress,n=typeof r=="number"&&r<1,m=Math.max(0,(a.thresholdForCurrentRank??0)-(a.rollingWindowSales??0)),h=a.windowDays??0,k=m>0&&h>0;let b;return a.active===!1?b=s("dap.blocker.paid_rank.unlock"):n||t?b=k?s("dap.blocker.paid_rank.at_risk",{gap:_e(m),days:h}):s("dap.blocker.paid_rank.unlock"):b=s("dap.blocker.paid_rank.safe",{rank:J(a.currentPaidRank,s)}),{atRisk:t,message:b}}function te(a,s){if(a.active===!1||a.riskOfDrop||typeof a.retentionProgress=="number"&&a.retentionProgress<1)return;const t=a.nextPaidRank,r=a.thresholdForNextRank??0;if(!t||r<=0)return;const n=typeof a.advanceProgress=="number"?a.advanceProgress:0,m=Math.round(Math.max(0,Math.min(1,n))*100);return s("dap.blocker.paid_rank.advance",{percent:m,rank:J(t,s)})}function ve(a,s,t){const r=s?ae(s,t):void 0,n=s?te(s,t):void 0;return P([a.length>0&&`${t("dap.blocker.normal_rank.title")} (${t("dap.blocker.normal_rank.badge")})`,...a,r&&`${t("dap.blocker.paid_rank.title")}: ${r.message}`,n,r?.atRisk&&s?.gracePeriodEndsDate?t("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate}):void 0])}function we(a){if(!a)return!0;if(!l(a.summary))return!1;const s=a.details;return s?l(s.whyThisToday)&&l(s.expectedOutcome)&&l(s.deadlineUtc):!0}function Te(a){if(!a)return!0;const s=a.normalRank;return s?(s.blockingConditions??[]).filter(t=>!X(t)).length===0&&s.currentVolume===0&&s.requiredVolume===0:!0}function Q(a){return a==="critical"||a==="high"?"var(--es-color-error, #AD2C26)":a==="medium"?"var(--es-color-warning, #9C5300)":"var(--es-color-on-surface-muted, #4B5563)"}const Se={relationship:"🤝",recruitment:"📣",sales:"🛒",structural:"📊",risk:"⚠️",market:"📈"},Pe={mining_start:"⛏️",first_reward:"🎁",rank_grace:"⏳",rank_retention:"🛡️",cycles_today:"🔄",promo:"✨"};function $e({open:a}){return e.jsx("svg",{className:`es-dap__chevron${a?" es-dap__chevron--open":""}`,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})}function O({teaser:a,isOpen:s,children:t}){return s?e.jsx("div",{className:"es-dap__teaser-reveal",children:t}):e.jsx("p",{className:"es-dap__teaser-text",children:a})}function M({isOpen:a,onToggle:s,expandLabel:t,collapseLabel:r,t:n}){return e.jsxs("button",{className:"es-dap__more-toggle",type:"button",onClick:s,"aria-expanded":a,"aria-label":a?r:t,children:[n(a?"dap.teaser.less":"dap.teaser.more"),e.jsx($e,{open:a})]})}function S({moreToggle:a,gaioLink:s}){return!a&&!s?null:e.jsxs("div",{className:"es-dap__actions",children:[a,s]})}function Ce(a){const s=a.trim(),t=/^\[(normal|paid)\]\s*/i.exec(s);return t&&t[1]?{scope:t[1].toLowerCase(),text:s.slice(t[0].length)}:{scope:"normal",text:s}}const Re=[{labelKey:"dap.blocker.credits",pct:a=>a.creditsProgressPercent},{labelKey:"dap.blocker.binary_structure",pct:a=>a.binaryProgressPercent},{labelKey:"dap.blocker.branch_leaders",pct:a=>a.branchProgressPercent},{labelKey:"dap.blocker.team_sales",pct:a=>a.volumeProgressPercent}];function Le({normalRank:a,paidRank:s,normalConditions:t,gaioLink:r,t:n}){const m=a?Re.filter(g=>{const f=g.pct(a);return typeof f=="number"&&f<100}):[],h=m.length>0&&m.length===t.length,k=h&&m.some(g=>g.labelKey==="dap.blocker.branch_leaders"),b=t.length>0,i=s?ae(s,n):void 0,x=s?te(s,n):void 0;return e.jsxs("div",{className:"es-dap__card es-dap__blocker-tile",children:[b&&e.jsxs("div",{className:"es-dap__blocker-section",children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.normal_rank.title")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",children:n("dap.blocker.normal_rank.badge")})]}),e.jsx("ul",{className:"es-dap__blocker-list",children:t.map((g,f)=>{const j=h?m[f]:void 0;return e.jsxs("li",{className:"es-dap__blocker-item es-dap__blocker-item--structure",children:[j&&e.jsx("span",{className:"es-dap__blocker-itemlabel",children:n(j.labelKey)}),e.jsx("span",{className:"es-dap__blocker-msg",children:g})]},f)})}),k&&e.jsx("p",{className:"es-dap__blocker-note",children:n("dap.blocker.excluded_structure")})]}),s&&i&&e.jsxs("div",{className:`es-dap__blocker-section${b?" es-dap__blocker-section--divided":""}`,children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.paid_rank.title")}),e.jsx("span",{className:`es-dap__pill ${i.atRisk?"es-dap__pill--danger":"es-dap__pill--ok"}`,children:n("dap.blocker.paid_rank.badge")})]}),e.jsx("p",{className:`es-dap__blocker-item es-dap__blocker-item--${i.atRisk?"risk":"safe"}`,children:e.jsx("span",{className:"es-dap__blocker-msg",children:i.message})}),x&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--advance",children:x}),i.atRisk&&s.gracePeriodEndsDate&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--grace",children:n("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate})})]}),e.jsx(S,{gaioLink:r})]})}function Oe({benefits:a,lang:s,gaioLink:t,t:r}){return e.jsxs("div",{className:"es-dap__card es-dap__benefits-tile",children:[e.jsx("div",{className:"es-dap__blocker-head",children:e.jsx("span",{className:"es-dap__blocker-title",children:r("dap.section.my_benefits")})}),!l(a.summary)&&e.jsx("p",{className:"es-dap__benefits-summary",children:a.summary}),a.events.length>0&&e.jsx("ul",{className:"es-dap__benefits-list",children:a.events.map((n,m)=>e.jsxs("li",{className:`es-dap__benefits-item es-dap__benefits-item--${n.kind}`,children:[e.jsx("span",{className:"es-dap__benefits-icon","aria-hidden":"true",children:Pe[n.kind]??"•"}),e.jsxs("div",{className:"es-dap__benefits-body",children:[e.jsxs("div",{className:"es-dap__benefits-row",children:[e.jsx("span",{className:"es-dap__benefits-label",children:n.label}),n.dateUtc&&e.jsx("span",{className:"es-dap__benefits-date","data-es-no-read":!0,children:ee(n.dateUtc,s)})]}),!l(n.narration)&&e.jsx("p",{className:"es-dap__benefits-narration",children:n.narration})]})]},m))}),e.jsx(S,{gaioLink:t})]})}function Me({text:a,copyLabel:s,copiedLabel:t}){const[r,n]=E.useState(!1);function m(){const h=()=>{n(!0),window.setTimeout(()=>n(!1),2e3)},k=navigator?.clipboard;k?.writeText&&k.writeText(a).then(h,()=>{})}return e.jsx("button",{className:"es-dap__copy-btn",type:"button",onClick:m,children:r?`${t} ✓`:`📋 ${s}`})}function z({label:a,message:s,btnLabel:t,onNavigate:r}){return e.jsxs("div",{className:"es-dap__card es-dap__tile-cta",children:[e.jsx("div",{className:"es-dap__tile-cta-header",children:e.jsx("span",{className:"es-dap__section-label",children:a})}),e.jsx("p",{className:"es-dap__tile-cta-message",children:s}),e.jsx("button",{className:"es-dap__tile-cta-btn",type:"button",onClick:r,children:t})]})}function T({section:a,summary:s,content:t,onTalk:r,t:n}){return e.jsxs("button",{type:"button",className:"es-dap__gaio-link","aria-label":n("dap.gaio.aria",{section:a}),onClick:()=>r(a,s,t),children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",n("dap.talk_to_gaio")]})}function He({data:a,config:s,metadata:t,i18n:r,actions:n,baseUrl:m,externalContext:h,auth:k,previewMode:b}){const i=r?.t??(y=>y),x=r?.currentLanguage??"en",g=h?.hasChatView===!0,f=s.showFocus??!0,j=s.showPlays??!0,q=s.showStructural??!0,se=s.showRisk??!0,ie=s.showBlocker??!0,re=s.showMyBenefits??!0,ne=a.personalGreeting,u=a.todaysFocus,d=a.relationshipPlay,p=a.recruitmentPlay,o=a.salesPlay,C=a.structuralCheck,c=a.riskFlag,N=a.myBenefits,[_,le]=E.useState({});function R(y){le($=>({...$,[y]:!$[y]}))}function B(){n.navigate("gaio-coach")}const v=E.useCallback((y,$,me)=>{n.emit("chat:draft",{message:`[${y}]
|
|
3
|
+
${me}`,autoSend:!1,quickChips:[{labelKey:"dap.gaio.chip.how",label:i("dap.gaio.chip.how"),message:i("dap.gaio.chip.how_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.why",label:i("dap.gaio.chip.why"),message:i("dap.gaio.chip.why_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.draft",label:i("dap.gaio.chip.draft"),message:i("dap.gaio.chip.draft_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.other",label:i("dap.gaio.chip.other"),message:"",autoSend:!1}]})},[n,i]),w=y=>e.jsx(ye,{compact:!0,blockSlug:"daily-action-plan",sectionKey:y,baseUrl:m,apiKey:h?.apiKey,jwt:k?.jwt,previewMode:b,t:i});if(!u&&!ne&&!a.error)return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__empty",children:[e.jsx("div",{className:"es-dap__empty-title",children:i("dap.title")}),e.jsx("p",{className:"es-dap__empty-message",children:t?.dataQuality==="none"?i("dap.empty.sign_in"):i("dap.empty.preparing")}),[1,2,3].map(y=>e.jsxs("div",{className:"es-dap__card es-dap__card--placeholder",children:[e.jsx("div",{className:"es-dap__placeholder-line es-dap__placeholder-line--label"}),e.jsx("div",{className:"es-dap__placeholder-line"})]},y))]})})});if(a.error)return e.jsx(U,{blockType:"daily-action-plan",error:ue(a.error)});const V=we(u),G=Te(C),oe=C?.normalRank?.blockingConditions?.filter(y=>!X(y))??[],ce=f&&!V,D=j&&!!d&&!!d.targetName&&!l(d.summary),A=j&&!!p&&p.actionType!=="none"&&!l(p.summary),L=!!o&&o.linkedToBinarySide==="none"&&!l(o.details?.concreteStep),F=j&&!!o&&(!l(o.summary)||L),de=q&&!G,W=se&&!!c&&c.severity!=="none",I=re&&!!N&&(!l(N.summary)||N.events.length>0);if(!(ce||D||A||F||de||W||I))return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__block-cta",children:[e.jsx("p",{className:"es-dap__block-cta-message",children:i("dap.empty.block_cta")}),e.jsx("button",{className:"es-dap__block-cta-btn",type:"button",onClick:B,children:i("dap.empty.block_cta_btn")})]})})});const pe=C?.normalRank,H=C?.paidRank,K=oe.map(Ce).filter(y=>y.scope==="normal").map(y=>y.text),Y=ie&&!!C&&(K.length>0||!!H);return e.jsxs(U,{blockType:"daily-action-plan",children:[e.jsx("div",{className:"es-dap__icon-row",children:e.jsx(ge,{panelKey:"daily-action-plan",baseUrl:m,apiKey:h?.apiKey,t:i})}),e.jsxs("div",{className:"es-block__body es-dap__body es-dap__deck",children:[f&&(V?e.jsx(z,{label:i("dap.section.focus"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}):u&&e.jsxs("div",{className:"es-dap__hero",children:[e.jsxs("div",{className:"es-dap__hero-lead",children:[e.jsx("span",{"aria-hidden":"true",children:Se[u.domain]??"🎯"})," ",i("dap.section.focus")," · ",u.domain,u.details?.deadlineUtc&&e.jsxs("span",{className:"es-dap__hero-deadline","data-es-no-read":!0,children:[" · ⏱ ",Z(u.details.deadlineUtc,x)]})]}),e.jsx("p",{className:"es-dap__hero-headline",children:u.summary}),u.details?.whyThisToday&&e.jsxs(O,{teaser:u.details.whyThisToday,isOpen:_.focus??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:u.details.whyThisToday}),u.details?.expectedOutcome&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--outcome",children:u.details.expectedOutcome})]}),e.jsx(S,{moreToggle:u.details?.whyThisToday&&e.jsx(M,{isOpen:_.focus??!1,onToggle:()=>R("focus"),expandLabel:i("dap.aria.expand_focus"),collapseLabel:i("dap.aria.collapse_focus"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.focus"),summary:u.summary,content:be(u,i,x),onTalk:v,t:i})}),w("focus")]})),W&&c&&e.jsxs("div",{className:"es-dap__risk",style:{borderLeftColor:Q(c.severity)},children:[e.jsxs("div",{className:"es-dap__risk-head",children:[e.jsx("span",{className:"es-dap__risk-title",children:i("dap.section.risk")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",style:{color:Q(c.severity)},children:i(`dap.risk.severity.${c.severity}`)})]}),e.jsx("p",{className:"es-dap__risk-blurb",children:i("dap.risk.blurb")}),c.summary&&e.jsx("p",{className:"es-dap__risk-summary",children:c.summary}),c.details?.description&&e.jsxs(O,{teaser:c.details.description,isOpen:_.risk??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:c.details.description}),c.details?.preventiveAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--step",children:c.details.preventiveAction}),c.details?.timeSensitivity&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--deadline",children:c.details.timeSensitivity})]}),e.jsx(S,{moreToggle:c.details?.description&&e.jsx(M,{isOpen:_.risk??!1,onToggle:()=>R("risk"),expandLabel:i("dap.aria.expand_risk"),collapseLabel:i("dap.aria.collapse_risk"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.risk"),summary:c.summary||c.details?.description||i("dap.section.risk"),content:ke(c,i),onTalk:v,t:i})}),w("risk")]}),Y&&e.jsxs(e.Fragment,{children:[e.jsx(Le,{normalRank:pe,paidRank:H,normalConditions:K,gaioLink:g&&e.jsx(T,{section:i("dap.gaio.section.blocker"),summary:i("dap.gaio.section.blocker"),content:ve(K,H,i),onTalk:v,t:i}),t:i}),w("blocker")]}),q&&G&&!Y&&e.jsx(z,{label:i("dap.section.structural"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}),I&&N&&e.jsxs(e.Fragment,{children:[e.jsx(Oe,{benefits:N,lang:x,gaioLink:g&&e.jsx(T,{section:i("dap.section.my_benefits"),summary:N.summary||i("dap.section.my_benefits"),content:Ne(N,i,x),onTalk:v,t:i}),t:i}),w("my_benefits")]}),j&&(D||A||F)&&e.jsxs("div",{className:"es-dap__play-rail",children:[D&&d&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🤝"}),e.jsxs("span",{className:"es-dap__play-label",children:[i("dap.section.relationship")," · ",d.targetName]}),e.jsx("span",{className:"es-dap__play-spacer"}),d.details?.channelHint&&d.details.channelHint!=="none"&&e.jsxs("span",{className:"es-dap__pill",children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",d.details.channelHint]})]}),e.jsx("div",{className:"es-dap__play-summary",children:d.summary}),d.details?.draftMessage&&e.jsxs(O,{teaser:d.details.draftMessage,isOpen:_.relationship??!1,children:[e.jsx("blockquote",{className:"es-dap__draft-message",children:d.details.draftMessage}),e.jsx(Me,{text:d.details.draftMessage,copyLabel:i("dap.play.copy_send"),copiedLabel:i("dap.play.copied")})]}),d.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:d.details.complianceNote})]}),e.jsx(S,{moreToggle:d.details?.draftMessage&&e.jsx(M,{isOpen:_.relationship??!1,onToggle:()=>R("relationship"),expandLabel:i("dap.aria.expand_relationship"),collapseLabel:i("dap.aria.collapse_relationship"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.relationship"),summary:d.summary,content:fe(d,i),onTalk:v,t:i})}),w("relationship")]}),A&&p&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"📣"}),e.jsx("span",{className:"es-dap__play-label",children:i("dap.section.recruitment")}),e.jsx("span",{className:"es-dap__play-spacer"}),e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:p.actionType.replace(/_/g," ")})]}),e.jsx("div",{className:"es-dap__play-summary",children:p.summary}),p.details?.rationale&&e.jsxs(O,{teaser:p.details.rationale,isOpen:_.recruitment??!1,children:[p.details?.candidateOrSegment&&e.jsx("p",{className:"es-dap__detail-text",children:p.details.candidateOrSegment}),e.jsx("p",{className:"es-dap__detail-text",children:p.details.rationale})]}),p.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",p.details.concreteStep]}),p.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:p.details.complianceNote})]}),e.jsx(S,{moreToggle:p.details?.rationale&&e.jsx(M,{isOpen:_.recruitment??!1,onToggle:()=>R("recruitment"),expandLabel:i("dap.aria.expand_recruitment"),collapseLabel:i("dap.aria.collapse_recruitment"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.recruitment"),summary:p.summary,content:xe(p,i),onTalk:v,t:i})}),w("recruitment")]}),F&&o&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🛒"}),e.jsx("span",{className:"es-dap__play-label",children:L?`${i("dap.section.sales")} · ${i("dap.sales.educational")}`:`${i("dap.section.sales")} · ${o.linkedToBinarySide}`}),e.jsx("span",{className:"es-dap__play-spacer"}),!L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--ok",children:`${o.linkedToBinarySide} ${i("dap.gauge.leg")}`}),L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:i("dap.sales.no_cycle")})]}),o.summary&&e.jsx("div",{className:"es-dap__play-summary",children:o.summary}),o.details?.rationale&&e.jsxs(O,{teaser:o.details.rationale,isOpen:_.sales??!1,children:[o.details?.productOrCycleAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--product",children:o.details.productOrCycleAction}),e.jsx("p",{className:"es-dap__detail-text",children:o.details.rationale})]}),o.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",o.details.concreteStep]}),o.details?.marketSignal&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--market",children:o.details.marketSignal}),o.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:o.details.complianceNote})]}),e.jsx(S,{moreToggle:o.details?.rationale&&e.jsx(M,{isOpen:_.sales??!1,onToggle:()=>R("sales"),expandLabel:i("dap.aria.expand_sales"),collapseLabel:i("dap.aria.collapse_sales"),t:i}),gaioLink:!L&&g&&e.jsx(T,{section:i("dap.section.sales"),summary:o.summary,content:je(o,i),onTalk:v,t:i})}),w("sales")]})]})]})]})}export{He as Component,Fe as manifest};
|
|
4
|
+
//# sourceMappingURL=index-CNbQ508J-BPOHZMXu.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as p,j as e,
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as p,j as e,e as r}from"../nexly.js";const N={slug:"event-list",name:"Event List",version:"1.0.0",category:"content",requiredService:"event-scraper",configSchema:{properties:{maxEvents:{type:"number",default:20},freeOnly:{type:"boolean",default:!1}}},defaultConfig:{maxEvents:20,freeOnly:!1},dataContract:{serviceSlug:"event-scraper",inputSchema:{type:"object",properties:{events:{type:"array",items:{type:"object",properties:{id:{type:"string"},title:{type:"string"},date:{type:"string"},location:{type:"string"},price:{type:"number"},isFree:{type:"boolean"},url:{type:"string"},imageUrl:{type:"string"}}}},total:{type:"number"}},required:["events"]},previewDataOverride:{events:[{id:"evt-1",title:"Tech Startup Networking Night",date:"2026-04-10T18:00:00Z",location:"Seoul, Gangnam-gu",price:0,isFree:!0,url:"https://onoffmix.com/event/1",imageUrl:""},{id:"evt-2",title:"AI & Machine Learning Summit",date:"2026-04-15T09:00:00Z",location:"Seoul, Mapo-gu",price:25e3,isFree:!1,url:"https://onoffmix.com/event/2",imageUrl:""},{id:"evt-3",title:"Web3 Developer Workshop",date:"2026-04-20T14:00:00Z",location:"Seoul, Songpa-gu",price:0,isFree:!0,url:"https://onoffmix.com/event/3",imageUrl:""}],total:3}},fields:[{id:"maxEvents",type:"range",label:"Max events to show",default:20,min:1,max:100,step:1,group:"Content"},{id:"freeOnly",type:"toggle",label:"Show free events only",default:!1,group:"Filters"}],events:{emits:[{name:"events:eventSelected",description:"User clicked on an event"},{name:"events:filterChanged",description:"User changed the event filter"}],listens:[{name:"events:refresh",description:"Reload events from scraper"}]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main"]};function j(l,s){const n=new Date(l);return isNaN(n.getTime())?l:new Intl.DateTimeFormat(s,{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(n)}function c(){return e.jsxs("li",{className:"es-evlist__skeleton","aria-hidden":"true",children:[e.jsx("div",{className:"es-evlist__skeleton-line es-evlist__skeleton-line--title"}),e.jsx("div",{className:"es-evlist__skeleton-line es-evlist__skeleton-line--meta"}),e.jsx("div",{className:"es-evlist__skeleton-line es-evlist__skeleton-line--short"})]})}function k({data:l,actions:s,i18n:n}){const i=n?.t??(t=>t),_=n?.currentLanguage??"en",d=l.events??[],u=l.loading===!0,h=l.error,[g,x]=p.useState(null);p.useEffect(()=>{const t=s.on("events:markerHighlight",o=>{x(o?.id??null)});return()=>t()},[s]);const y=t=>{t&&s.emit("events:hover",{id:t})},f=()=>{s.emit("events:hover",{id:null})},v=t=>{t.id&&s.emit("events:eventSelected",{id:t.id,event:t})};return u?e.jsx(r,{blockType:"event-list",children:e.jsx("div",{className:"es-block__body",children:e.jsxs("ul",{className:"es-evlist__items","aria-label":i("event_list.loading"),"aria-busy":"true",children:[e.jsx(c,{}),e.jsx(c,{}),e.jsx(c,{})]})})}):h?e.jsx(r,{blockType:"event-list",children:e.jsx("div",{className:"es-block__body",children:e.jsxs("div",{className:"es-evlist__error",role:"alert",children:[e.jsx("span",{className:"es-evlist__error-icon","aria-hidden":"true",children:"⚠"}),e.jsx("span",{children:i("event_list.error")}),e.jsx("button",{type:"button",className:"es-evlist__retry",onClick:()=>s.refresh(),children:i("event_list.retry")})]})})}):d.length===0?e.jsx(r,{blockType:"event-list",children:e.jsx("div",{className:"es-block__body",children:e.jsxs("div",{className:"es-evlist__empty",children:[e.jsx("span",{className:"es-evlist__empty-icon","aria-hidden":"true",children:"📅"}),e.jsx("span",{className:"es-evlist__empty-text",children:i("event_list.empty")})]})})}):e.jsx(r,{blockType:"event-list",children:e.jsx("div",{className:"es-block__body",children:e.jsx("ul",{className:"es-evlist__items",role:"list","aria-label":i("event_list.aria_list_label"),children:d.map((t,o)=>{const m=t.id!=null&&t.id===g;return e.jsx("li",{className:`es-evlist__item${m?" es-evlist__item--highlighted":""}`,onMouseEnter:()=>y(t.id),onMouseLeave:f,onClick:()=>v(t),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),v(t))},tabIndex:0,role:"button","aria-pressed":m,children:e.jsxs("div",{className:"es-evlist__item-content",children:[e.jsxs("div",{className:"es-evlist__header",children:[e.jsx("span",{className:"es-evlist__title",children:t.title}),t.isFree&&e.jsx("span",{className:"es-evlist__badge es-evlist__badge--free",children:i("event_list.free")})]}),e.jsxs("div",{className:"es-evlist__meta",children:[t.date&&e.jsxs("span",{className:"es-evlist__date","aria-label":t.date,children:[e.jsx("span",{className:"es-evlist__meta-icon","aria-hidden":"true",children:"🗓"}),j(t.date,_)]}),t.location&&e.jsxs("span",{className:"es-evlist__location",children:[e.jsx("span",{className:"es-evlist__meta-icon","aria-hidden":"true",children:"📍"}),t.location]})]}),t.url&&e.jsxs("a",{href:t.url,className:"es-evlist__cta",target:"_blank",rel:"noopener noreferrer","aria-label":`${i("event_list.view_details")}: ${t.title}`,onClick:a=>a.stopPropagation(),children:[i("event_list.view_details")," →"]})]})},t.id??o)})})})})}export{k as Component,N as manifest};
|
|
2
|
+
//# sourceMappingURL=index-CPGSyaZ4-BoVmvEOm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{L as b,r as s,j as e,e as k}from"../nexly.js";const v={slug:"knowledge-search",name:"Knowledge Search",version:"1.0.0",category:"interactive",requiredService:"knowledge-search",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},maxResults:{type:"number",default:5},minScore:{type:"number",default:.7},placeholder:{type:"string",default:""}}},defaultConfig:{readAloudEnabled:!1,maxResults:5,minScore:.7,placeholder:""},dataContract:{serviceSlug:"knowledge-search",inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query entered by user"},results:{type:"array",items:{type:"object",properties:{title:{type:"string"},excerpt:{type:"string"},score:{type:"number"},url:{type:"string"}}}},totalFound:{type:"number"}},required:["results"]},previewDataOverride:{query:"return policy",results:[{title:"Return & Refund Policy",excerpt:"You may return any item within 30 days of purchase for a full refund.",score:.94,url:"/faq/returns"},{title:"Exchange Policy",excerpt:"Exchanges are accepted within 60 days with original receipt.",score:.81,url:"/faq/exchange"},{title:"Damaged Item Returns",excerpt:"For damaged items, please contact support within 7 days.",score:.75,url:"/faq/damaged"}],totalFound:3}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"maxResults",type:"range",label:"Max results",default:5,min:1,max:20,step:1,group:"Search"},{id:"minScore",type:"range",label:"Minimum relevance score",default:.7,min:.1,max:1,step:.05,group:"Search"},{id:"placeholder",type:"localized-text",label:"Search placeholder",default:"",placeholder:'Leave empty to use translated default (e.g. "Search knowledge base...")',group:"Content"},{id:"model",type:"text",label:"AI model",default:"gpt-4o-mini",placeholder:"e.g. gpt-4o-mini, gpt-4o",group:"AI"}],events:{emits:[{name:"search:querySubmitted",description:"User submitted a search query"},{name:"search:resultSelected",description:"User clicked on a search result"}],listens:[{name:"search:clear",description:"Clear search results and query"}]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main"]};function j({config:m,actions:o,i18n:d}){const r=d?.t??(a=>a),g=d?.currentLanguage??"en",y=b(m.placeholder,g,{t:r,fallbackKey:"knowledge_search.placeholder",enDefault:"Search knowledge base..."}),[l,u]=s.useState(""),[n,f]=s.useState(null),[p,c]=s.useState(null),[t,h]=s.useState(!1),i=s.useCallback(async()=>{const a=l.trim();if(!(!a||t)){f(a),c(null),u(""),h(!0);try{const _=await o.call("search",{query:a});c(_?.answer??null)}catch{c(r("knowledge_search.error"))}finally{h(!1)}}},[l,t,o,r]),x=s.useCallback(a=>{a.key==="Enter"&&(a.preventDefault(),i())},[i]);return e.jsxs(k,{blockType:"knowledge-search",children:[e.jsx("div",{className:"es-block__header",children:e.jsxs("div",{className:"es-ksearch__input-row",children:[e.jsx("input",{className:"es-ksearch__input",type:"text",value:l,onChange:a=>u(a.target.value),onKeyDown:x,placeholder:y}),e.jsx("button",{className:"es-ksearch__btn",onClick:i,disabled:!l.trim()||t,type:"button",children:r("knowledge_search.search_btn")})]})}),e.jsxs("div",{className:"es-block__body",children:[t&&e.jsxs("div",{className:"es-ksearch__loading",children:[e.jsx("div",{className:"es-ksearch__loading-question",children:n}),e.jsxs("div",{className:"es-ksearch__loading-indicator",children:[e.jsx("span",{className:"es-ksearch__dot"}),e.jsx("span",{className:"es-ksearch__dot"}),e.jsx("span",{className:"es-ksearch__dot"})]}),e.jsx("div",{className:"es-ksearch__loading-text",children:r("knowledge_search.generating")})]}),!t&&n&&p&&e.jsxs("div",{className:"es-ksearch__answer-section",children:[e.jsx("div",{className:"es-ksearch__question",children:n}),e.jsx("div",{className:"es-ksearch__answer",children:p})]})]})]})}export{j as Component,v as manifest};
|
|
2
|
+
//# sourceMappingURL=index-CVtuVQCx-Dtq7n928.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as F,j as a,
|
|
1
|
+
import{r as F,j as a,e as Z,k as oe}from"../nexly.js";import{C as He}from"./block-rating-CAVRRYuG-CQMNokIy.js";import{m as b}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";import{j as ve}from"./PanelInfoVideo-XFcVoL2c-qpxDXdLm.js";const Ve=se([["!","ǃⵑ"],[":","ː˸։׃܃܄ःઃ᛬᠃᠉⁚∶ꓽ꞉"],["<","˂ᐸᚲ‹❮𝈶"],["<<","≪"],["<<<","⋘"],["a","ɑαаᗅ⍶⍺ꓮꭺ𐊠𖽀"],["aa","ꜳ"],["ae","æӕ"],["ao","ꜵ"],["ar","🜇"],["au","ꜷ"],["c","¢ȼςϛсҫငၚᴄ₡ⲋⲥꓚꮯ𐊢𐌂𐐽𐔜𑣩𑣲🅮🝌"],["cc","🅭"],["d","ðđƌɖɗԁᑯᗞᗪ₫ꓒꓓꭰꮷ"],["e","ɇεеҽҿ℮⋿ⴹꓰꬲꭼ𐊆𑣆𑣎"],["g","ƍǥɠɡԍցᏻᶃꓖꮐ"],["h","ħɦнћңһӈӊհᏺᕼⱨⲏꓧꚕꮋꮒ𐋏𐓵"],["i","ıɨɩɪιіւᵻᵼ⍳⍸ⲓꙇꭵ𑣃"],["k","ƙκкқҟᛕ₭ⱪⲕꓗꝁꮶ𐔘"],["l","1|łƚǀɫɭӏ׀וןا١ٳ۱ߊᒪᛁ∣⏽│┃ⳑⵏꓡꓲꮮ𐊊𐌉𐌠𐑃𐔦𑣒𖼖𖼨𝈪𞣇"],["ll","ǁװ‖∥𐆙"],["lls","𐆘"],["lo","ю⏨"],["ls","ʪ"],["lt","₶"],["n","ŋƞɲɳηνղոռበᑎᵰ∩⋂ⲛꓠꓵ𐆎𐔓𝉅"],["o","0øɵθοσϭоѳөօסه٥ھہە۵ۿ߀०০੦૦ଠ୦௦ం౦ಂ೦ംഠ൦ං๐໐ဝ၀ჿዐ០ᴏᴑ⊖⊝⍬ⲑⲟⴱⵁⵔ〇ꓳꝋꬽꬾꭴꮎꮻ𐊒𐊫𐐬𐓪𐔖𑓐𑣈𑣕𑣗𑣠𝈚🜔"],["oe","œ"],["oo","∞ꚙꝏ"],["p","þƥƿρϸрᑭᵽ⍴ⲣⳏꓑꮲ𐊕𐓬"],["q","ʠԛգզⵕ"],["qe","🜀"],["r","ɍɼɽʀгғᖇᴦᵲⲅꓣꭇꭈꭱꮁꮢ𐓜𖼵𝈖"],["rn","mɱμϻмӎᗰᛖᵯ₥ⲙꓟꮇ𐊰𐌑𑜀𑣣"],["s","ƽʂѕտടᵴꓢꜱꮥꮪ𐊖𐑈𑣁𖼺"],["sss","🝜"],["t","ŧƭʈτтҭᵵ₮⊤⍡⟙ⱦⲧꓔꭲ𐊗𐊱𐌕𑣜𖼊🝨"],["ts","ʦ"],["u","ʉʋυџսሀᑌᴜᵾ∪⋃ꓴꞟꭎꭒꮜ𐓶𑣘𖽂"],["ue","ᵫ"],["uo","ꭣ"],["w","ɯшѡѽԝաᗯᴡ₩ⲽꓪꝡꮃꮗꮤ𑓅𑜊𑜎𑜏𑣦𑣯𝈢"]]),Ue=se([["h","Η"],["l","ƖƗΙІⲒ𑢣"]]),We=se([["c","Ϲ"]]),Be=new Set([..."˗۔⁃∸➖⨩⨪ⲲⲳⲺⲻ﬩~"]);function se(r){const t=new Map;for(const[e,o]of r)for(const i of o)t.set(i,e);return t}const we=7e3,pe=80;function xe(r){return r.length<=pe?r:`${r.slice(0,pe-1).trimEnd()}…`}function ie(r){if(typeof r!="string")return"";const t=r.replace(/\p{Cc}/gu," ").replace(/[\p{Cf}\p{Default_Ignorable_Code_Point}]/gu,"").replace(/\s+/g," ").trim();return t?xe(t):""}function Fe(r){return typeof r!="string"?"":ie(ce(r))}function v(r){return r.length<=we?r:`${r.slice(0,we-1).trimEnd()}…`}function S(r,t){return r==null?t("network_growth.gaio.a_member"):ie(ce(r))||t("network_growth.gaio.a_member")}function m(r){return xe(ce(r))}const fe={citizensWithRank:"network_growth.gaio.gap.citizens",binaryTreeRank:"network_growth.gaio.gap.binary",totalTreeVolume:"network_growth.gaio.gap.volume",personalPoints:"network_growth.gaio.gap.points",personalPurchase:"network_growth.gaio.gap.purchase"};function x(r,t){const e=r.next_target_rank?t("network_growth.gaio.leader",{rank:m(r.current_rank),next:m(r.next_target_rank)}):t("network_growth.gaio.leader_top",{rank:m(r.current_rank)}),o=r.binding_constraint;if(!o)return e;const i=t("network_growth.gaio.leader_gap",{gap:t(fe[o.type]),current:o.current,required:o.required});return`${e} ${i}`}function ye(r,t){const e=r.next_rank?t("network_growth.gaio.cand_path",{name:S(r.display_name,t),rank:m(r.current_rank),next:m(r.next_rank)}):t("network_growth.gaio.cand_path_max",{name:S(r.display_name,t),rank:m(r.current_rank)}),o=[];return r.is_tree_branch_qualifier&&o.push(t("network_growth.gaio.flag_branch")),r.is_binary_qualifier&&o.push(t("network_growth.gaio.flag_binary")),r.paid_rank_decay_risk&&o.push(t("network_growth.gaio.flag_decay")),o.length===0?e:`${e} ${t("network_growth.gaio.cand_why",{reasons:o.join("; ")})}`}const V={defend_citizen:"network_growth.t2.reason.defend_citizen",promotes_to_citizen:"network_growth.t2.reason.promotes_to_citizen",existing_citizen:"network_growth.t2.reason.existing_citizen",complete_leg:"network_growth.t2.reason.complete_leg",reengage:"network_growth.t2.reason.reengage",grow_volume:"network_growth.t2.reason.grow_volume"};function Ye(r,t,e,o){switch(r){case"defend_citizen":return o(V.defend_citizen,{rank:m(t.citizen_rank_type??e),payout_rank:m(t.payout_rank??"")});case"promotes_to_citizen":return o(V.promotes_to_citizen,{rank:m(t.citizen_rank_type??""),count:t.citizens_gap??0});case"existing_citizen":return o(V.existing_citizen,{rank:m(t.rank??e)});case"complete_leg":return o(V.complete_leg,{leg:o(`network_growth.leg.${t.leg??"balanced"}`)});case"reengage":return o(V.reengage);default:return o(V.grow_volume)}}function je(r,t){const e=r.next_rank?t("network_growth.gaio.cand_path",{name:S(r.display_name,t),rank:m(r.current_rank),next:m(r.next_rank)}):t("network_growth.gaio.cand_path_max",{name:S(r.display_name,t),rank:m(r.current_rank)}),o=Ye(r.reason_code,r.reason_params,r.current_rank,t);return`${e} ${t("network_growth.gaio.cand_why",{reasons:o})}`}function Qe(r,t){const e=r.recommendations;if(e.length===0)return v(x(r.leader,t));const o=e.map((i,l)=>`${l+1}. ${i.title}. ${i.detail}`);return v(`${x(r.leader,t)}
|
|
2
2
|
|
|
3
3
|
${t("network_growth.gaio.support_list")}
|
|
4
4
|
${o.join(`
|
|
@@ -42,9 +42,9 @@ ${d}
|
|
|
42
42
|
|
|
43
43
|
${_}`)}const ct=new Set(["ng.q.overview.how_to_start","ng.q.structure.first_two_legs","ng.q.branches.single_live_branch","ng.q.branches.dormant_mega_branch","ng.q.structure.healthy_symmetric_legs","ng.q.structure.shallow_tree_no_duplication","ng.q.structure.same_stage_cohort","ng.q.reactivation.reactivation_pool_large","ng.q.cascade.broken_support_chains","ng.q.hidden_leaders.introduce_me","ng.q.branches.grow_leg","ng.q.cascade.who_to_support"]);function lt(r){return r.startsWith("ng.q.")&&ct.has(r)}function $e(r,t){if(!lt(r.key))return null;const e={};for(const[o,i]of Object.entries(r.params))i!=null&&(e[o]=typeof i=="string"?ie(i):i);return v(t(r.key,e))}const qe=10;function Ce(r,t,e,o){if(r.length===0)return t(o);const i=r.map((l,d)=>`${d+1}. ${je(l,t)}`);return`${t(e,{count:r.length})}
|
|
44
44
|
${i.join(`
|
|
45
|
-
`)}`}function _t(r,t){const e=r.digest_v3;if(!e)return"";const o=e.top_candidates.filter(i=>i.reason_code==="reengage").slice(0,qe);return Ce(o,t,"network_growth.gaio.reactivation_shortlist_head","network_growth.gaio.reactivation_shortlist_empty")}function gt(r,t){const e=r.digest_v3;if(!e)return"";const o=e.top_candidates.slice(0,qe);return Ce(o,t,"network_growth.gaio.who_to_support_shortlist_head","network_growth.gaio.who_to_support_shortlist_empty")}const dt={"ng.q.reactivation.reactivation_pool_large":_t,"ng.q.cascade.who_to_support":gt},ht="[Network Growth — Hidden Leader Introduction Request]",
|
|
45
|
+
`)}`}function _t(r,t){const e=r.digest_v3;if(!e)return"";const o=e.top_candidates.filter(i=>i.reason_code==="reengage").slice(0,qe);return Ce(o,t,"network_growth.gaio.reactivation_shortlist_head","network_growth.gaio.reactivation_shortlist_empty")}function gt(r,t){const e=r.digest_v3;if(!e)return"";const o=e.top_candidates.slice(0,qe);return Ce(o,t,"network_growth.gaio.who_to_support_shortlist_head","network_growth.gaio.who_to_support_shortlist_empty")}const dt={"ng.q.reactivation.reactivation_pool_large":_t,"ng.q.cascade.who_to_support":gt},ht="[Network Growth — Hidden Leader Introduction Request]",wt="[end Hidden Leader Introduction Request]",pt="Hidden Leader Introduction Request",mt="[Pasted link:",ut="[Pasted link]",kt="[end pasted link]",bt="pasted link",vt="<!-- hardened-section:start",xt="<!-- hardened-section:end",ft="hardened-section",yt=[ht,wt,pt,mt,ut,kt,bt,vt,xt,ft],jt=/[\s\p{Mn}\p{Me}\p{Pd}−]/gu,Nt=r=>{let t="";for(const e of r)Be.has(e)||(t+=e);return t},$t=[[/\p{Ps}/gu,"["],[/\p{Pe}/gu,"]"],[/[il1|]/gu,"i"]],qt=r=>$t.reduce((t,[e,o])=>t.replace(e,o),r),ae=(r,t)=>{let e="";for(const o of r)e+=t.get(o)??o;return e},me=new Map;function Ct(r){const t=me.get(r);if(t!==void 0)return t;const e=ae(ae(Nt(r),We).normalize("NFKC"),Ue).toLowerCase().normalize("NFD").replace(jt,""),o=qt(ae(e,Ve));return me.set(r,o),o}function Le(r){let t="";const e=[],o=[];for(let i=0;i<r.length;){const l=String.fromCodePoint(r.codePointAt(i)),d=i+l.length,_=Ct(l);for(let n=0;n<_.length;n++)e.push(i),o.push(d);t+=_,i=d}return{text:t,origin:e,originEnd:o}}const ze=yt.map(r=>Le(r).text),Lt=new Set(ze.filter(r=>r.length>0).map(r=>r.charAt(0)));function zt(r){const{text:t,origin:e,originEnd:o}=Le(r);let i="",l=0,d=!1;for(let _=0;_<t.length;){if(!Lt.has(t.charAt(_))){_++;continue}let n=0;for(const y of ze)y.length>n&&t.startsWith(y,_)&&(n=y.length);if(n===0){_++;continue}d=!0,i+=`${r.slice(l,e[_])} `,l=o[_+n-1],_+=n}return d?i+r.slice(l):r}const ue=1024;function At(r){if(r.length<=ue)return r;const t=r.slice(0,ue),e=t.charCodeAt(t.length-1);return e>=55296&&e<=56319?t.slice(0,-1):t}function ce(r){if(typeof r!="string")return"";let t=At(r).replace(/\p{Cc}/gu," ").replace(/[\p{Cf}\p{Default_Ignorable_Code_Point}]/gu,""),e;do e=t,t=t.replace(/\s+/g," "),t=zt(t);while(t!==e);return t.trim()}function ne(r,t){return S(r,t)}const E=r=>Math.abs(r)>=1e3?`${(r/1e3).toFixed(1)}k`:String(Math.round(r)),Ae=r=>`$${E(r)}`,ke=r=>r>99.9?"99.9+":r.toFixed(1),$=(r,t)=>Fe(r)||t,le=(r,t)=>t(r==="left"?"network_growth.leg.left":r==="right"?"network_growth.leg.right":r==="unassigned"?"network_growth.leg.unassigned":"network_growth.leg.balanced");function Se(r,t,e,o){switch(r){case"defend_citizen":return o("network_growth.t2.reason.defend_citizen",{rank:b(t.citizen_rank_type??e,o),payout_rank:t.payout_rank?b(t.payout_rank,o):""});case"promotes_to_citizen":return o("network_growth.t2.reason.promotes_to_citizen",{rank:t.citizen_rank_type?b(t.citizen_rank_type,o):"",count:t.citizens_gap??0});case"existing_citizen":return o("network_growth.t2.reason.existing_citizen",{rank:b(t.rank??e,o)});case"complete_leg":return o("network_growth.t2.reason.complete_leg",{leg:le(t.leg??"none",o)});case"reengage":return o("network_growth.t2.reason.reengage");default:return o("network_growth.t2.reason.grow_volume")}}const St={citizensWithRank:"network_growth.gaio.gap.citizens",binaryTreeRank:"network_growth.gaio.gap.binary",totalTreeVolume:"network_growth.gaio.gap.volume",personalPoints:"network_growth.gaio.gap.points",personalPurchase:"network_growth.gaio.gap.purchase"},Et={critical:"critical",high:"high",medium:"medium"},Tt={P0_DEFEND:"network_growth.tier.defend",P1_CASCADE:"network_growth.tier.cascade",P2_ACTIVATE:"network_growth.tier.activate",P3_VOLUME:"network_growth.tier.volume",P4_BUILD:"network_growth.tier.build"};function Pt({open:r}){return a.jsx("svg",{className:`ng-chevron${r?" ng-chevron--open":""}`,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:a.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}function M({id:r,title:t,teaser:e,narrativeDetail:o,defaultOpen:i,expandLabel:l,collapseLabel:d,help:_,gaio:n,rating:y,children:N}){const[g,f]=F.useState(i??!1),[C,L]=F.useState(!1),h=`ng-tile-body-${r}`,I=`ng-tile-help-${r}`;return a.jsxs("section",{className:`ng-tile ng-tile--${r}${g?" ng-tile--open":""}`,children:[a.jsxs("div",{className:"ng-tile__bar",children:[a.jsxs("button",{type:"button",className:"ng-tile__head",onClick:()=>f(j=>!j),"aria-expanded":g,"aria-controls":h,"aria-label":g?d:l,children:[a.jsxs("span",{className:"ng-tile__heading",children:[a.jsx("span",{className:"ng-tile__title",children:t}),!g&&a.jsx("span",{className:"ng-tile__teaser",children:e})]}),a.jsx(Pt,{open:g})]}),_&&a.jsx("button",{type:"button",className:`ng-tile__help${C?" ng-tile__help--open":""}`,onClick:()=>L(j=>!j),onKeyDown:j=>{j.key==="Escape"&&L(!1)},"aria-expanded":C,"aria-controls":I,"aria-label":_.ariaLabel,children:a.jsx("span",{"aria-hidden":"true",children:"?"})})]}),_&&C&&a.jsx("div",{id:I,className:"ng-tile__help-pop",role:"note",children:_.text}),a.jsxs("div",{id:h,className:"ng-tile__body",hidden:!g,children:[o&&a.jsx("p",{className:"ng-tile__narrative",children:o}),N,n&&a.jsx(Y,{label:n.label,onClick:n.onClick,className:"ng-gaio-btn--section"}),y]})]})}function Y({label:r,onClick:t,className:e}){return a.jsxs("button",{type:"button",className:`ng-gaio-btn${e?` ${e}`:""}`,onClick:t,children:[a.jsx(oe,{size:14,className:"ng-gaio-btn__owl"}),r]})}const Rt={SINGLE_LIVE_BRANCH:"network_growth.insight.single_live_branch",DORMANT_MEGA_BRANCH:"network_growth.insight.dormant_mega_branch",SHALLOW_TREE_NO_DUPLICATION:"network_growth.insight.shallow_tree_no_duplication",SAME_STAGE_COHORT:"network_growth.insight.same_stage_cohort",REACTIVATION_POOL_LARGE:"network_growth.insight.reactivation_pool_large",BROKEN_SUPPORT_CHAINS:"network_growth.insight.broken_support_chains",HEALTHY_SYMMETRIC_LEGS:"network_growth.insight.healthy_symmetric_legs",BINARY_IMBALANCE:"network_growth.insight.binary_imbalance"};function Mt(r,t){const e=r.params,o={};return e.branch_name!==void 0&&(o.branch_name=$(e.branch_name,t("network_growth.gaio.a_member"))),e.member_count!==void 0&&(o.member_count=e.member_count),e.active_pct!==void 0&&(o.active_pct=Math.round(e.active_pct)),e.count!==void 0&&(o.count=e.count),e.high_leverage_count!==void 0&&(o.high_leverage_count=e.high_leverage_count),e.total_branches!==void 0&&(o.total_branches=e.total_branches),e.live_branches!==void 0&&(o.live_branches=e.live_branches),e.legs_building_further!==void 0&&(o.legs_building_further=e.legs_building_further),e.max_depth!==void 0&&(o.max_depth=e.max_depth),e.direct_legs!==void 0&&(o.direct_legs=e.direct_legs),e.stage!==void 0&&(o.stage=b(e.stage,t)),e.pct!==void 0&&(o.pct=e.pct),e.deepest!==void 0&&(o.deepest=e.deepest),e.ratio!==void 0&&(o.ratio=e.ratio),e.side!==void 0&&(o.side=le(e.side,t)),t(Rt[r.code],o)}function X({questions:r,onAsk:t,t:e}){const o=r.map(i=>({q:i,text:$e(i,e)})).filter(i=>i.text!==null);return o.length===0?null:a.jsxs("div",{className:"ng4-gaio-bar",role:"group","aria-label":e("network_growth.v4.gaio_bar_aria"),children:[a.jsx(oe,{size:16,className:"ng4-gaio-bar__owl"}),a.jsx("div",{className:"ng4-gaio-bar__chips",children:o.map(({q:i,text:l})=>a.jsx("button",{type:"button",className:"ng4-gaio-bar__chip",onClick:()=>t(i),children:l},i.key))})]})}function It(r,t,e,o){return[{done:r>=1,label:o("network_growth.v4.milestone.first_member")},{done:r>=2&&t,label:o("network_growth.v4.milestone.both_legs")},{done:e,label:o("network_growth.v4.milestone.first_citizen")}]}function J({value:r,label:t}){return a.jsxs("div",{className:"ng-stat",children:[a.jsx("span",{className:"ng-stat__value",children:r}),a.jsx("span",{className:"ng-stat__label",children:t})]})}function be({binary:r,branch:t,t:e}){if(!r&&!t)return null;const o=!!r&&r.strong_leg_met&&r.weak_leg_met,i=!!t&&t.covered_branches>=t.required_branches;return a.jsxs("div",{className:"ng-gaps",children:[r&&a.jsx("span",{className:`ng-gap${o?" ng-gap--met":""}`,children:o?e("network_growth.t2.binary_gap_met",{rank:b(r.next_rank_target,e)}):e("network_growth.t2.binary_gap",{rank:b(r.next_rank_target,e),sc:r.strong_leg_current,sr:r.strong_leg_required,wc:r.weak_leg_current,wr:r.weak_leg_required})}),t&&a.jsx("span",{className:`ng-gap${i?" ng-gap--met":""}`,children:i?e("network_growth.t2.branch_coverage_met",{rank:b(t.next_rank_target,e),required:t.required_branches}):e("network_growth.t2.branch_coverage",{rank:b(t.next_rank_target,e),covered:t.covered_branches,required:t.required_branches})})]})}function Vt({data:r,actions:t,metadata:e,i18n:o,externalContext:i,baseUrl:l,auth:d,previewMode:_}){const n=o?.t??(s=>s),y=i?.hasChatView===!0,N=s=>a.jsx(He,{compact:!0,blockSlug:"network-growth",sectionKey:s,baseUrl:l,apiKey:i?.apiKey,jwt:d?.jwt,previewMode:_,t:n}),g=r,f=F.useCallback((s,k,G)=>{t.emit("chat:draft",{message:`${n("network_growth.gaio_draft",{headline:s})}
|
|
46
46
|
|
|
47
47
|
${k}`,autoSend:!1,quickChips:G??[{label:n("network_growth.chip.approach"),message:n("network_growth.chip.approach_msg"),autoSend:!0},{label:n("network_growth.chip.message"),message:n("network_growth.chip.message_msg"),autoSend:!0},{label:n("network_growth.chip.why"),message:n("network_growth.chip.why_msg"),autoSend:!0},{label:n("network_growth.chip.other"),message:"",autoSend:!1}]})},[t,n]),C=F.useCallback(s=>{const k=$e(s,n);if(k===null||!g)return;const G=dt[s.key],H=G?.(g,n);t.emit("chat:draft",{message:H?`${k}
|
|
48
48
|
|
|
49
|
-
${H}`:k,autoSend:!0})},[t,n,g]),L=F.useCallback((s,k)=>{f(s,k,[{label:n("network_growth.chip.plan_first"),message:n("network_growth.chip.plan_first_msg"),autoSend:!0},{label:n("network_growth.chip.plan_fastest"),message:n("network_growth.chip.plan_fastest_msg"),autoSend:!0},{label:n("network_growth.chip.other"),message:"",autoSend:!1}])},[f,n]);if(!g||g.contract_version!=="2.0"&&g.contract_version!=="3.0"){if(r.error)return a.jsx(Z,{blockType:"network-growth",children:a.jsx("div",{className:"ng2",children:a.jsx("p",{className:"ng2__error",children:n("network_growth.error")})})});const s=e?.dataQuality,k=s!=="none"&&!!r&&Object.keys(r).some(Ge=>!Ge.startsWith("_"));let G="🌱",H=n("network_growth.empty.loading");return s==="none"?H=n("network_growth.empty.sign_in"):k&&(G="🔄",H=n("network_growth.empty.stale")),a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:"ng2 ng2--empty",children:[a.jsx("div",{className:"ng2__empty-icon","aria-hidden":"true",children:G}),a.jsx("p",{className:"ng2__empty-text",children:H})]})})}const{leader:h,tiles:I,recommendations:j,context_size:Y,digest_v3:z}=g,{cascade_potential:p,at_risk:w,binary_placement:c,structure_summary:u,earning_levers:q}=I;if(z)return a.jsx(Ot,{out:g,digestV3:z,t:n,hasChatView:y,handleTalkToGaio:f,handleAskGaio:C,handlePlanWithGaio:L,sectionRating:N,actions:t,baseUrl:l,apiKey:i?.apiKey});const T=n("network_growth.a11y.expand"),P=n("network_growth.a11y.collapse"),ee=n("network_growth.talk_to_gaio"),O=(s,k)=>({text:n(`network_growth.${s}.help`),ariaLabel:n("network_growth.help_aria",{title:n(k)})}),U=(s,k)=>s?.title?.trim()||k,W=(s,k)=>s?.teaser?.trim()||k,te=s=>le(s,n),Ee=s=>s.cascade_reason_code?Se(s.cascade_reason_code,s.cascade_reason_params??{},s.current_rank,n):s.cascade_reason,D=(s,k)=>y?{label:ee,onClick:()=>f(s,k)}:void 0,_e=j[0],Te=_e?_e.teaser:n("network_growth.t3.empty_teaser"),ge=h.path_to_next_rank??[],A=b(h.mode==="defend"?h.defend_target_rank??h.current_rank:h.next_target_rank??h.current_rank,n),re=h.mode==="defend"?n("network_growth.tpath.move_title_defend",{rank:A}):n("network_growth.tpath.move_title_advance",{rank:A}),B=h.binding_constraint??ge.find(s=>!s.met)??null,de=B?h.mode==="defend"?n("network_growth.tpath.move_advice_defend",{rank:A,dimension:n(St[B.type])}):n(`network_growth.tpath.move_advice.${B.type}`,{rank:A,gap:E(Math.max(0,B.required-B.current))}):n("network_growth.tpath.move_all_met",{rank:A}),Pe=h.mode==="defend"?n("network_growth.tpath.move_intro_defend",{rank:A}):n("network_growth.tpath.move_intro_advance",{rank:A}),Re=h.mode==="defend"?n("network_growth.tpath.move_cta_defend",{rank:A}):n("network_growth.tpath.move_cta_advance",{rank:A}),Me=p.cascade_candidates.length>0?n("network_growth.t2.teaser",{count:p.cascade_candidates.length}):n("network_growth.t2.teaser_empty"),Ie=w.re_activatable_count>0?n("network_growth.t4.teaser_reactivatable",{count:w.members.length,reactivatable:w.re_activatable_count}):n("network_growth.t4.teaser",{count:w.members.length}),Oe=n("network_growth.t7.teaser",{count:c.imbalanced_members.length,usd:E(c.estimated_total_weekly_usd_lost)}),De=n("network_growth.t8.teaser",{active:u.active_purchasing_count_30d,paid:u.active_paid_rank_count}),Ke=n("network_growth.t6.teaser",{count:q.scp2_active_members.length,levels:q.scp2_levels_unlocked}),he=c.top5_by_cycle_loss.length>0?c.top5_by_cycle_loss:c.imbalanced_members,K=u.team_binary_force,R=u.structure_expansion_gap;return a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:`ng2 ng2--${Y}`,children:[a.jsx("div",{className:"ng2__icon-row",children:a.jsx(ve,{panelKey:"network-growth",baseUrl:l,apiKey:i?.apiKey,t:n})}),h.grace_period_ranks.length>0&&a.jsxs("div",{className:"ng2__grace",role:"alert",children:[a.jsx("span",{"aria-hidden":"true",children:"⚠️"}),a.jsx("span",{children:n("network_growth.grace_banner",{rank:h.grace_period_ranks[0]?b(h.grace_period_ranks[0],n):""})})]}),ge.length>0&&a.jsxs(M,{id:"path",title:re,teaser:de,defaultOpen:!0,expandLabel:T,collapseLabel:P,help:{text:n("network_growth.tpath.move_help"),ariaLabel:n("network_growth.help_aria",{title:re})},gaio:y?{label:Re,onClick:()=>f(re,at(g,n))}:void 0,rating:N("path"),children:[a.jsx("p",{className:"ng-path-intro",children:Pe}),a.jsx("p",{className:"ng-path-advice",children:de})]}),a.jsx(M,{id:"support",title:n("network_growth.t3.title"),teaser:Te,defaultOpen:!0,expandLabel:T,collapseLabel:P,help:O("t3","network_growth.t3.title"),gaio:j.length>0?void 0:D(n("network_growth.t3.title"),Ye(g,n)),rating:N("support"),children:j.length===0?a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t3.empty")}):a.jsx("ul",{className:"ng-rec-list",children:j.map(s=>a.jsxs("li",{className:"ng-rec",children:[a.jsxs("div",{className:"ng-rec__head",children:[a.jsx("span",{className:`ng-badge ng-badge--${s.tier.toLowerCase()}`,children:n(Tt[s.tier])}),a.jsx("span",{className:"ng-rec__title",children:s.title})]}),a.jsx("p",{className:"ng-rec__detail",children:s.detail}),y&&a.jsx(Q,{label:ee,onClick:()=>f(s.title,Ne(g,s,n))})]},s.id))})}),p.visible&&a.jsxs(M,{id:"cascade",title:U(p.narrative,n("network_growth.t2.title")),teaser:W(p.narrative,Me),narrativeDetail:p.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t2","network_growth.t2.title"),gaio:p.cascade_candidates.length>0?void 0:D(n("network_growth.t2.title"),Xe(g,n)),rating:N("cascade"),children:[a.jsx(be,{binary:p.binary_qualification_gap,branch:p.tree_branch_coverage,t:n}),p.rank_elevation_candidates_count>0&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t2.elevation",{count:p.rank_elevation_candidates_count,high:p.high_cascade_count})}),p.cascade_candidates.length===0?a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t2.empty")}):a.jsx("ul",{className:"ng-cand-list",children:p.cascade_candidates.map(s=>a.jsxs("li",{className:`ng-cand${s.is_defend_priority?" ng-cand--defend":""}`,children:[a.jsx("div",{className:"ng-cand__top",children:a.jsx("span",{className:"ng-cand__name",children:$(s.display_name,s.user_id)})}),a.jsxs("div",{className:"ng-cand__rank",children:[b(s.current_rank,n),s.next_rank?` → ${b(s.next_rank,n)}`:""]}),(s.is_binary_qualifier||s.is_tree_branch_qualifier||s.paid_rank_decay_risk)&&a.jsxs("div",{className:"ng-cand__chips",children:[s.is_binary_qualifier&&a.jsx("span",{className:"ng-chip ng-chip--qualifier",children:n("network_growth.t2.chip.binary_qualifier")}),s.is_tree_branch_qualifier&&a.jsx("span",{className:"ng-chip ng-chip--qualifier",children:n("network_growth.t2.chip.branch_qualifier")}),s.paid_rank_decay_risk&&a.jsx("span",{className:"ng-chip ng-chip--decay",children:n("network_growth.t2.chip.decay_risk")})]}),a.jsx("p",{className:"ng-cand__reason",children:Ee(s)}),y&&a.jsx(Q,{label:ee,onClick:()=>f(n("network_growth.t2.gaio_headline",{name:$(s.display_name,s.user_id)}),Je(g,s,n))})]},s.user_id))}),p.aggregated_stats&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t2.aggregate",{active:p.aggregated_stats.active_count,total:p.total_members})})]}),w.visible&&w.members.length>0&&a.jsxs(M,{id:"atrisk",title:U(w.narrative,n("network_growth.t4.title")),teaser:W(w.narrative,Ie),narrativeDetail:w.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t4","network_growth.t4.title"),gaio:D(n("network_growth.t4.title"),Ze(g,n)),rating:N("atrisk"),children:[(w.paid_rank_expiry_warnings>0||w.weekly_points_lost_to_dormancy>0)&&a.jsxs("div",{className:"ng-atrisk-summary",children:[w.paid_rank_expiry_warnings>0&&a.jsx("span",{className:"ng-chip ng-chip--urgent",children:n("network_growth.t4.expiry_warning",{count:w.paid_rank_expiry_warnings})}),w.weekly_points_lost_to_dormancy>0&&a.jsx("span",{className:"ng-atrisk-summary__lost",children:n("network_growth.t4.points_lost",{points:w.weekly_points_lost_to_dormancy})})]}),a.jsx("ul",{className:"ng-risk-list",children:w.members.map(s=>a.jsxs("li",{className:`ng-risk ng-risk--${Et[s.severity]}`,children:[a.jsx("span",{className:"ng-risk__dot","aria-hidden":"true"}),a.jsxs("div",{className:"ng-risk__info",children:[a.jsx("span",{className:"ng-risk__name",children:$(s.display_name,s.user_id)}),a.jsx("span",{className:"ng-risk__signal",children:n(`network_growth.signal.${s.signal.toLowerCase()}`)}),s.is_reactivatable&&s.paid_rank_grace_expires_in_days!==null&&a.jsx("span",{className:"ng-risk__grace",children:n("network_growth.t4.grace_expires",{days:s.paid_rank_grace_expires_in_days})})]}),a.jsxs("span",{className:"ng-risk__tags",children:[s.is_reactivatable&&a.jsx("span",{className:"ng-chip ng-chip--reactivate",children:n("network_growth.t4.reactivatable_badge")}),s.is_counted_citizen&&a.jsx("span",{className:"ng-risk__flag",children:n("network_growth.t4.counts")})]})]},s.user_id))})]}),c.visible&&he.length>0&&a.jsxs(M,{id:"placement",title:U(c.narrative,n("network_growth.t7.title")),teaser:W(c.narrative,Oe),narrativeDetail:c.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t7","network_growth.t7.title"),gaio:D(n("network_growth.t7.title"),et(g,n)),rating:N("placement"),children:[a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t7.totals",{watch:c.imbalanced_count_watch,critical:c.imbalanced_count_critical})}),c.auto_placement_risk.flagged&&a.jsx("div",{className:"ng-placement-warn",role:"note",children:n("network_growth.t7.autoplace_warning",{side:te(c.auto_placement_risk.dominant_leg??"none")})}),a.jsx("ul",{className:"ng-cand-list",children:he.map(s=>a.jsxs("li",{className:`ng-place ng-place--${s.severity}`,children:[a.jsxs("div",{className:"ng-cand__top",children:[a.jsx("span",{className:"ng-cand__name",children:$(s.display_name,s.user_id)}),a.jsx("span",{className:`ng-chip ng-chip--sev-${s.severity}`,children:n(`network_growth.t7.severity.${s.severity}`)})]}),a.jsx("div",{className:"ng-cand__rank",children:n("network_growth.t7.member_ratio",{ratio:ke(s.generation_ratio),side:te(s.dominant_side)})}),s.cycles_lost_lifetime_estimate>0&&a.jsx("p",{className:"ng-cand__reason",children:n("network_growth.t7.member_loss",{cycles:s.cycles_lost_lifetime_estimate,usd:E(s.usd_lost_lifetime_upper_bound)})})]},s.user_id))}),a.jsx("p",{className:"ng-disclaimer",children:n("network_growth.t7.estimate_disclaimer")})]}),a.jsxs(M,{id:"structure",title:U(u.narrative,n("network_growth.t8.title")),teaser:W(u.narrative,De),narrativeDetail:u.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t8","network_growth.t8.title"),gaio:D(n("network_growth.t8.title"),tt(g,n)),rating:N("structure"),children:[a.jsxs("div",{className:"ng-stats",children:[a.jsx(J,{value:E(u.active_purchasing_count_30d),label:n("network_growth.t8.active_buyers")}),a.jsx(J,{value:E(u.builders_count),label:n("network_growth.t8.builders")}),a.jsx(J,{value:E(u.active_paid_rank_count),label:n("network_growth.t8.active_paid")}),a.jsx(J,{value:E(u.reactivatable_paid_rank_count),label:n("network_growth.t8.reactivatable_paid")})]}),a.jsxs("div",{className:`ng-binforce ng-binforce--${K.balance_status}`,children:[a.jsx("span",{className:"ng-binforce__dot","aria-hidden":"true"}),a.jsx("span",{children:K.dominant_side==="balanced"?n("network_growth.t8.binary_force_balanced",{status:n(`network_growth.t8.balance.${K.balance_status}`)}):n("network_growth.t8.binary_force",{ratio:ke(K.ratio),side:te(K.dominant_side),status:n(`network_growth.t8.balance.${K.balance_status}`)})})]}),R&&a.jsxs("div",{className:"ng-expansion",children:[a.jsx("div",{className:"ng-expansion__title",children:n("network_growth.t8.expansion_title",{rank:b(R.next_normal_rank_target,n)})}),a.jsx(be,{binary:R.binary_gap,branch:R.tree_branch_gap,t:n}),a.jsx("p",{className:"ng-aggregate",children:R.scp2_uncovered_levels>0?n("network_growth.t8.scp2_uncovered",{levels:R.scp2_uncovered_levels,cycles:R.scp2_cycles_per_month_locked}):n("network_growth.t8.scp2_covered")})]})]}),q.visible&&a.jsxs(M,{id:"levers",title:U(q.narrative,n("network_growth.t6.title")),teaser:W(q.narrative,Ke),narrativeDetail:q.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t6","network_growth.t6.title"),gaio:D(n("network_growth.t6.title"),rt(g,n)),rating:N("levers"),children:[q.scp2_active_members.length>0?a.jsx("ul",{className:"ng-lever-list",children:q.scp2_active_members.map(s=>a.jsxs("li",{className:"ng-lever",children:[a.jsx("span",{className:"ng-lever__name",children:$(s.display_name,s.user_id)}),a.jsxs("span",{className:"ng-lever__meta",children:[n("network_growth.t6.level",{level:s.position})," · ",Ae(s.team_sales)]})]},s.user_id))}):a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t6.empty")}),q.scp3_direct_referrals.length>0&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t6.referrals",{count:q.scp3_direct_referrals.length})})]})]})})}function Ot({out:r,digestV3:t,t:e,hasChatView:o,handleTalkToGaio:i,handleAskGaio:l,handlePlanWithGaio:d,sectionRating:_,actions:n,baseUrl:y,apiKey:N}){const{leader:g,context_mode:f,recommendations:C}=r,L=f.is_onboarding,h=L?"onboarding":g.mode,I=L?e("network_growth.v4.hero.onboarding_headline"):h==="defend"?e("network_growth.v4.hero.defend_headline",{rank:b(g.defend_target_rank??g.current_rank,e)}):e("network_growth.v4.hero.advance_headline",{rank:b(g.next_target_rank??g.current_rank,e)}),j=e(L?"network_growth.v4.hero.cta_onboarding":h==="defend"?"network_growth.v4.hero.cta_defend":"network_growth.v4.hero.cta_advance"),Y=L?It(f.member_count,f.has_binary_data,f.leader_has_paid_rank,e):null,z=c=>t.suggested_questions.filter(u=>u.section===c).slice(0,2),p=t.top_candidates.filter(c=>!C.some(u=>u.target_member?.user_id===c.user_id)),w=r.tiles.at_risk.members.find(c=>c.is_reactivatable&&c.has_active_substructure);return a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:`ng4 ng4--${h}`,children:[a.jsx("div",{className:"ng4__icon-row",children:a.jsx(ve,{panelKey:"network-growth",baseUrl:y,apiKey:N,t:e})}),a.jsxs("section",{className:`ng4-hero ng4-hero--${h}`,children:[a.jsx("p",{className:"ng4-hero__headline",children:I}),r.hero_reason&&a.jsx("p",{className:"ng4-hero__reason",children:r.hero_reason}),Y&&a.jsx("ol",{className:"ng4-hero__milestones",children:Y.map((c,u)=>a.jsxs("li",{className:`ng4-hero__milestone${c.done?" ng4-hero__milestone--done":""}`,children:[a.jsx("span",{className:"ng4-hero__milestone-dot","aria-hidden":"true"}),c.label]},u))}),o&&a.jsxs("button",{type:"button",className:"ng4-hero__cta",onClick:()=>d(j,ot(r,e)),children:[a.jsx(oe,{size:16,className:"ng4-hero__cta-owl"}),j]}),_("hero")]}),t.insights.length>0&&a.jsxs("section",{className:"ng4-section ng4-insights",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.insights.title")}),a.jsx("ul",{className:"ng4-insight-list",children:t.insights.map((c,u)=>a.jsx("li",{className:`ng4-insight ng4-insight--${c.severity}`,children:Mt(c,e)},u))}),o&&a.jsx(X,{questions:z("branches").concat(z("structure"),z("overview")).slice(0,2),onAsk:l,t:e}),_("insights")]}),t.hidden_leaders.length>0&&a.jsxs("section",{className:"ng4-section ng4-hidden",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.hidden.title")}),a.jsx("ul",{className:"ng4-hidden-list",children:t.hidden_leaders.map(c=>a.jsxs("li",{className:"ng4-hidden-row",children:[a.jsxs("div",{className:"ng4-hidden-row__info",children:[a.jsx("span",{className:"ng4-hidden-row__name",children:$(c.display_name,c.user_id)}),a.jsx("span",{className:"ng4-hidden-row__meta",children:b(c.rank,e)}),a.jsxs("span",{className:"ng4-hidden-row__caption",children:[c.team_sales>0&&a.jsxs(a.Fragment,{children:[e("network_growth.v4.hidden.team_sales",{sales:Ae(c.team_sales)})," · "]}),e("network_growth.t6.level",{level:c.height})]})]}),o&&a.jsx("button",{type:"button",className:"ng4-hidden-row__cta",onClick:()=>i(e("network_growth.v4.hidden.topic",{name:$(c.display_name,c.user_id)}),it(r,c,e)),children:e("network_growth.v4.hidden.cta")})]},c.user_id))}),o&&a.jsx(X,{questions:z("hidden_leaders"),onAsk:l,t:e}),_("hidden_leaders")]}),a.jsxs("section",{className:"ng4-section ng4-coach",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.coach.title")}),C.length===0&&p.length===0?a.jsx("p",{className:"ng-empty-note",children:e("network_growth.t3.empty")}):a.jsxs("ul",{className:"ng4-coach-list",children:[C.map(c=>a.jsxs("li",{className:"ng4-coach-item",children:[a.jsx("p",{className:"ng4-coach-item__reason",children:c.detail}),o&&a.jsx(Q,{label:e("network_growth.v4.coach.cta"),onClick:()=>i(c.title,Ne(r,c,e))})]},c.id)),p.map(c=>a.jsxs("li",{className:"ng4-coach-item",children:[a.jsx("span",{className:"ng4-coach-item__name",children:$(c.display_name,c.user_id)}),a.jsx("p",{className:"ng4-coach-item__reason",children:r.candidate_notes?.[c.user_id]??Se(c.reason_code,c.reason_params??{},c.current_rank,e)}),o&&a.jsx(Q,{label:e("network_growth.v4.coach.cta"),onClick:()=>i(e("network_growth.t2.gaio_headline",{name:$(c.display_name,c.user_id)}),nt(r,c,e))})]},c.user_id))]}),o&&a.jsx(X,{questions:z("cascade"),onAsk:l,t:e}),_("coach")]}),t.segments.reactivation_pool_count>0&&a.jsxs("section",{className:"ng4-section ng4-reactivation",children:[a.jsx("p",{className:"ng4-reactivation__sentence",children:w?e("network_growth.v4.reactivation.sentence_named",{name:$(w.display_name,w.user_id)}):e("network_growth.v4.reactivation.sentence")}),o&&a.jsx(X,{questions:z("reactivation"),onAsk:l,t:e}),_("reactivation")]})]})})}const Ut={slug:"network-growth",name:"Network Growth Tracker",version:"2.0.0",category:"interactive",requiredService:"network-growth",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1}}},defaultConfig:{readAloudEnabled:!1},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"}],sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},supportedPlacements:["main","sidebar"],dataContract:{serviceSlug:"network-growth",inputSchema:{type:"object",properties:{contract_version:{type:"string"},context_size:{type:"string"},leader:{type:"object"},tiles:{type:"object"},recommendations:{type:"array"},context_mode:{type:"object"},digest_v3:{type:"object"}},required:["contract_version","leader","tiles","recommendations"]}},events:{emits:[{name:"chat:draft",description:'User clicked "Talk to GAIO" on a recommendation — drafts the gaioContext into the chat bot'}]}};export{Vt as Component,Vt as NetworkGrowthBlock,Ut as manifest};
|
|
50
|
-
//# sourceMappingURL=index-
|
|
49
|
+
${H}`:k,autoSend:!0})},[t,n,g]),L=F.useCallback((s,k)=>{f(s,k,[{label:n("network_growth.chip.plan_first"),message:n("network_growth.chip.plan_first_msg"),autoSend:!0},{label:n("network_growth.chip.plan_fastest"),message:n("network_growth.chip.plan_fastest_msg"),autoSend:!0},{label:n("network_growth.chip.other"),message:"",autoSend:!1}])},[f,n]);if(!g||g.contract_version!=="2.0"&&g.contract_version!=="3.0"){if(r.error)return a.jsx(Z,{blockType:"network-growth",children:a.jsx("div",{className:"ng2",children:a.jsx("p",{className:"ng2__error",children:n("network_growth.error")})})});const s=e?.dataQuality,k=s!=="none"&&!!r&&Object.keys(r).some(Ge=>!Ge.startsWith("_"));let G="🌱",H=n("network_growth.empty.loading");return s==="none"?H=n("network_growth.empty.sign_in"):k&&(G="🔄",H=n("network_growth.empty.stale")),a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:"ng2 ng2--empty",children:[a.jsx("div",{className:"ng2__empty-icon","aria-hidden":"true",children:G}),a.jsx("p",{className:"ng2__empty-text",children:H})]})})}const{leader:h,tiles:I,recommendations:j,context_size:Q,digest_v3:z}=g,{cascade_potential:w,at_risk:p,binary_placement:c,structure_summary:u,earning_levers:q}=I;if(z)return a.jsx(Ot,{out:g,digestV3:z,t:n,hasChatView:y,handleTalkToGaio:f,handleAskGaio:C,handlePlanWithGaio:L,sectionRating:N,actions:t,baseUrl:l,apiKey:i?.apiKey});const T=n("network_growth.a11y.expand"),P=n("network_growth.a11y.collapse"),ee=n("network_growth.talk_to_gaio"),O=(s,k)=>({text:n(`network_growth.${s}.help`),ariaLabel:n("network_growth.help_aria",{title:n(k)})}),U=(s,k)=>s?.title?.trim()||k,W=(s,k)=>s?.teaser?.trim()||k,te=s=>le(s,n),Ee=s=>s.cascade_reason_code?Se(s.cascade_reason_code,s.cascade_reason_params??{},s.current_rank,n):s.cascade_reason,D=(s,k)=>y?{label:ee,onClick:()=>f(s,k)}:void 0,_e=j[0],Te=_e?_e.teaser:n("network_growth.t3.empty_teaser"),ge=h.path_to_next_rank??[],A=b(h.mode==="defend"?h.defend_target_rank??h.current_rank:h.next_target_rank??h.current_rank,n),re=h.mode==="defend"?n("network_growth.tpath.move_title_defend",{rank:A}):n("network_growth.tpath.move_title_advance",{rank:A}),B=h.binding_constraint??ge.find(s=>!s.met)??null,de=B?h.mode==="defend"?n("network_growth.tpath.move_advice_defend",{rank:A,dimension:n(St[B.type])}):n(`network_growth.tpath.move_advice.${B.type}`,{rank:A,gap:E(Math.max(0,B.required-B.current))}):n("network_growth.tpath.move_all_met",{rank:A}),Pe=h.mode==="defend"?n("network_growth.tpath.move_intro_defend",{rank:A}):n("network_growth.tpath.move_intro_advance",{rank:A}),Re=h.mode==="defend"?n("network_growth.tpath.move_cta_defend",{rank:A}):n("network_growth.tpath.move_cta_advance",{rank:A}),Me=w.cascade_candidates.length>0?n("network_growth.t2.teaser",{count:w.cascade_candidates.length}):n("network_growth.t2.teaser_empty"),Ie=p.re_activatable_count>0?n("network_growth.t4.teaser_reactivatable",{count:p.members.length,reactivatable:p.re_activatable_count}):n("network_growth.t4.teaser",{count:p.members.length}),Oe=n("network_growth.t7.teaser",{count:c.imbalanced_members.length,usd:E(c.estimated_total_weekly_usd_lost)}),De=n("network_growth.t8.teaser",{active:u.active_purchasing_count_30d,paid:u.active_paid_rank_count}),Ke=n("network_growth.t6.teaser",{count:q.scp2_active_members.length,levels:q.scp2_levels_unlocked}),he=c.top5_by_cycle_loss.length>0?c.top5_by_cycle_loss:c.imbalanced_members,K=u.team_binary_force,R=u.structure_expansion_gap;return a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:`ng2 ng2--${Q}`,children:[a.jsx("div",{className:"ng2__icon-row",children:a.jsx(ve,{panelKey:"network-growth",baseUrl:l,apiKey:i?.apiKey,t:n})}),h.grace_period_ranks.length>0&&a.jsxs("div",{className:"ng2__grace",role:"alert",children:[a.jsx("span",{"aria-hidden":"true",children:"⚠️"}),a.jsx("span",{children:n("network_growth.grace_banner",{rank:h.grace_period_ranks[0]?b(h.grace_period_ranks[0],n):""})})]}),ge.length>0&&a.jsxs(M,{id:"path",title:re,teaser:de,defaultOpen:!0,expandLabel:T,collapseLabel:P,help:{text:n("network_growth.tpath.move_help"),ariaLabel:n("network_growth.help_aria",{title:re})},gaio:y?{label:Re,onClick:()=>f(re,at(g,n))}:void 0,rating:N("path"),children:[a.jsx("p",{className:"ng-path-intro",children:Pe}),a.jsx("p",{className:"ng-path-advice",children:de})]}),a.jsx(M,{id:"support",title:n("network_growth.t3.title"),teaser:Te,defaultOpen:!0,expandLabel:T,collapseLabel:P,help:O("t3","network_growth.t3.title"),gaio:j.length>0?void 0:D(n("network_growth.t3.title"),Qe(g,n)),rating:N("support"),children:j.length===0?a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t3.empty")}):a.jsx("ul",{className:"ng-rec-list",children:j.map(s=>a.jsxs("li",{className:"ng-rec",children:[a.jsxs("div",{className:"ng-rec__head",children:[a.jsx("span",{className:`ng-badge ng-badge--${s.tier.toLowerCase()}`,children:n(Tt[s.tier])}),a.jsx("span",{className:"ng-rec__title",children:s.title})]}),a.jsx("p",{className:"ng-rec__detail",children:s.detail}),y&&a.jsx(Y,{label:ee,onClick:()=>f(s.title,Ne(g,s,n))})]},s.id))})}),w.visible&&a.jsxs(M,{id:"cascade",title:U(w.narrative,n("network_growth.t2.title")),teaser:W(w.narrative,Me),narrativeDetail:w.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t2","network_growth.t2.title"),gaio:w.cascade_candidates.length>0?void 0:D(n("network_growth.t2.title"),Xe(g,n)),rating:N("cascade"),children:[a.jsx(be,{binary:w.binary_qualification_gap,branch:w.tree_branch_coverage,t:n}),w.rank_elevation_candidates_count>0&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t2.elevation",{count:w.rank_elevation_candidates_count,high:w.high_cascade_count})}),w.cascade_candidates.length===0?a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t2.empty")}):a.jsx("ul",{className:"ng-cand-list",children:w.cascade_candidates.map(s=>a.jsxs("li",{className:`ng-cand${s.is_defend_priority?" ng-cand--defend":""}`,children:[a.jsx("div",{className:"ng-cand__top",children:a.jsx("span",{className:"ng-cand__name",children:$(s.display_name,s.user_id)})}),a.jsxs("div",{className:"ng-cand__rank",children:[b(s.current_rank,n),s.next_rank?` → ${b(s.next_rank,n)}`:""]}),(s.is_binary_qualifier||s.is_tree_branch_qualifier||s.paid_rank_decay_risk)&&a.jsxs("div",{className:"ng-cand__chips",children:[s.is_binary_qualifier&&a.jsx("span",{className:"ng-chip ng-chip--qualifier",children:n("network_growth.t2.chip.binary_qualifier")}),s.is_tree_branch_qualifier&&a.jsx("span",{className:"ng-chip ng-chip--qualifier",children:n("network_growth.t2.chip.branch_qualifier")}),s.paid_rank_decay_risk&&a.jsx("span",{className:"ng-chip ng-chip--decay",children:n("network_growth.t2.chip.decay_risk")})]}),a.jsx("p",{className:"ng-cand__reason",children:Ee(s)}),y&&a.jsx(Y,{label:ee,onClick:()=>f(n("network_growth.t2.gaio_headline",{name:$(s.display_name,s.user_id)}),Je(g,s,n))})]},s.user_id))}),w.aggregated_stats&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t2.aggregate",{active:w.aggregated_stats.active_count,total:w.total_members})})]}),p.visible&&p.members.length>0&&a.jsxs(M,{id:"atrisk",title:U(p.narrative,n("network_growth.t4.title")),teaser:W(p.narrative,Ie),narrativeDetail:p.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t4","network_growth.t4.title"),gaio:D(n("network_growth.t4.title"),Ze(g,n)),rating:N("atrisk"),children:[(p.paid_rank_expiry_warnings>0||p.weekly_points_lost_to_dormancy>0)&&a.jsxs("div",{className:"ng-atrisk-summary",children:[p.paid_rank_expiry_warnings>0&&a.jsx("span",{className:"ng-chip ng-chip--urgent",children:n("network_growth.t4.expiry_warning",{count:p.paid_rank_expiry_warnings})}),p.weekly_points_lost_to_dormancy>0&&a.jsx("span",{className:"ng-atrisk-summary__lost",children:n("network_growth.t4.points_lost",{points:p.weekly_points_lost_to_dormancy})})]}),a.jsx("ul",{className:"ng-risk-list",children:p.members.map(s=>a.jsxs("li",{className:`ng-risk ng-risk--${Et[s.severity]}`,children:[a.jsx("span",{className:"ng-risk__dot","aria-hidden":"true"}),a.jsxs("div",{className:"ng-risk__info",children:[a.jsx("span",{className:"ng-risk__name",children:$(s.display_name,s.user_id)}),a.jsx("span",{className:"ng-risk__signal",children:n(`network_growth.signal.${s.signal.toLowerCase()}`)}),s.is_reactivatable&&s.paid_rank_grace_expires_in_days!==null&&a.jsx("span",{className:"ng-risk__grace",children:n("network_growth.t4.grace_expires",{days:s.paid_rank_grace_expires_in_days})})]}),a.jsxs("span",{className:"ng-risk__tags",children:[s.is_reactivatable&&a.jsx("span",{className:"ng-chip ng-chip--reactivate",children:n("network_growth.t4.reactivatable_badge")}),s.is_counted_citizen&&a.jsx("span",{className:"ng-risk__flag",children:n("network_growth.t4.counts")})]})]},s.user_id))})]}),c.visible&&he.length>0&&a.jsxs(M,{id:"placement",title:U(c.narrative,n("network_growth.t7.title")),teaser:W(c.narrative,Oe),narrativeDetail:c.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t7","network_growth.t7.title"),gaio:D(n("network_growth.t7.title"),et(g,n)),rating:N("placement"),children:[a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t7.totals",{watch:c.imbalanced_count_watch,critical:c.imbalanced_count_critical})}),c.auto_placement_risk.flagged&&a.jsx("div",{className:"ng-placement-warn",role:"note",children:n("network_growth.t7.autoplace_warning",{side:te(c.auto_placement_risk.dominant_leg??"none")})}),a.jsx("ul",{className:"ng-cand-list",children:he.map(s=>a.jsxs("li",{className:`ng-place ng-place--${s.severity}`,children:[a.jsxs("div",{className:"ng-cand__top",children:[a.jsx("span",{className:"ng-cand__name",children:$(s.display_name,s.user_id)}),a.jsx("span",{className:`ng-chip ng-chip--sev-${s.severity}`,children:n(`network_growth.t7.severity.${s.severity}`)})]}),a.jsx("div",{className:"ng-cand__rank",children:n("network_growth.t7.member_ratio",{ratio:ke(s.generation_ratio),side:te(s.dominant_side)})}),s.cycles_lost_lifetime_estimate>0&&a.jsx("p",{className:"ng-cand__reason",children:n("network_growth.t7.member_loss",{cycles:s.cycles_lost_lifetime_estimate,usd:E(s.usd_lost_lifetime_upper_bound)})})]},s.user_id))}),a.jsx("p",{className:"ng-disclaimer",children:n("network_growth.t7.estimate_disclaimer")})]}),a.jsxs(M,{id:"structure",title:U(u.narrative,n("network_growth.t8.title")),teaser:W(u.narrative,De),narrativeDetail:u.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t8","network_growth.t8.title"),gaio:D(n("network_growth.t8.title"),tt(g,n)),rating:N("structure"),children:[a.jsxs("div",{className:"ng-stats",children:[a.jsx(J,{value:E(u.active_purchasing_count_30d),label:n("network_growth.t8.active_buyers")}),a.jsx(J,{value:E(u.builders_count),label:n("network_growth.t8.builders")}),a.jsx(J,{value:E(u.active_paid_rank_count),label:n("network_growth.t8.active_paid")}),a.jsx(J,{value:E(u.reactivatable_paid_rank_count),label:n("network_growth.t8.reactivatable_paid")})]}),a.jsxs("div",{className:`ng-binforce ng-binforce--${K.balance_status}`,children:[a.jsx("span",{className:"ng-binforce__dot","aria-hidden":"true"}),a.jsx("span",{children:K.dominant_side==="balanced"?n("network_growth.t8.binary_force_balanced",{status:n(`network_growth.t8.balance.${K.balance_status}`)}):n("network_growth.t8.binary_force",{ratio:ke(K.ratio),side:te(K.dominant_side),status:n(`network_growth.t8.balance.${K.balance_status}`)})})]}),R&&a.jsxs("div",{className:"ng-expansion",children:[a.jsx("div",{className:"ng-expansion__title",children:n("network_growth.t8.expansion_title",{rank:b(R.next_normal_rank_target,n)})}),a.jsx(be,{binary:R.binary_gap,branch:R.tree_branch_gap,t:n}),a.jsx("p",{className:"ng-aggregate",children:R.scp2_uncovered_levels>0?n("network_growth.t8.scp2_uncovered",{levels:R.scp2_uncovered_levels,cycles:R.scp2_cycles_per_month_locked}):n("network_growth.t8.scp2_covered")})]})]}),q.visible&&a.jsxs(M,{id:"levers",title:U(q.narrative,n("network_growth.t6.title")),teaser:W(q.narrative,Ke),narrativeDetail:q.narrative?.detail,expandLabel:T,collapseLabel:P,help:O("t6","network_growth.t6.title"),gaio:D(n("network_growth.t6.title"),rt(g,n)),rating:N("levers"),children:[q.scp2_active_members.length>0?a.jsx("ul",{className:"ng-lever-list",children:q.scp2_active_members.map(s=>a.jsxs("li",{className:"ng-lever",children:[a.jsx("span",{className:"ng-lever__name",children:$(s.display_name,s.user_id)}),a.jsxs("span",{className:"ng-lever__meta",children:[n("network_growth.t6.level",{level:s.position})," · ",Ae(s.team_sales)]})]},s.user_id))}):a.jsx("p",{className:"ng-empty-note",children:n("network_growth.t6.empty")}),q.scp3_direct_referrals.length>0&&a.jsx("p",{className:"ng-aggregate",children:n("network_growth.t6.referrals",{count:q.scp3_direct_referrals.length})})]})]})})}function Ot({out:r,digestV3:t,t:e,hasChatView:o,handleTalkToGaio:i,handleAskGaio:l,handlePlanWithGaio:d,sectionRating:_,actions:n,baseUrl:y,apiKey:N}){const{leader:g,context_mode:f,recommendations:C}=r,L=f.is_onboarding,h=L?"onboarding":g.mode,I=L?e("network_growth.v4.hero.onboarding_headline"):h==="defend"?e("network_growth.v4.hero.defend_headline",{rank:b(g.defend_target_rank??g.current_rank,e)}):e("network_growth.v4.hero.advance_headline",{rank:b(g.next_target_rank??g.current_rank,e)}),j=e(L?"network_growth.v4.hero.cta_onboarding":h==="defend"?"network_growth.v4.hero.cta_defend":"network_growth.v4.hero.cta_advance"),Q=L?It(f.member_count,f.has_binary_data,f.leader_has_paid_rank,e):null,z=c=>t.suggested_questions.filter(u=>u.section===c).slice(0,2),w=t.top_candidates.filter(c=>!C.some(u=>u.target_member?.user_id===c.user_id)),p=r.tiles.at_risk.members.find(c=>c.is_reactivatable&&c.has_active_substructure);return a.jsx(Z,{blockType:"network-growth",children:a.jsxs("div",{className:`ng4 ng4--${h}`,children:[a.jsx("div",{className:"ng4__icon-row",children:a.jsx(ve,{panelKey:"network-growth",baseUrl:y,apiKey:N,t:e})}),a.jsxs("section",{className:`ng4-hero ng4-hero--${h}`,children:[a.jsx("p",{className:"ng4-hero__headline",children:I}),r.hero_reason&&a.jsx("p",{className:"ng4-hero__reason",children:r.hero_reason}),Q&&a.jsx("ol",{className:"ng4-hero__milestones",children:Q.map((c,u)=>a.jsxs("li",{className:`ng4-hero__milestone${c.done?" ng4-hero__milestone--done":""}`,children:[a.jsx("span",{className:"ng4-hero__milestone-dot","aria-hidden":"true"}),c.label]},u))}),o&&a.jsxs("button",{type:"button",className:"ng4-hero__cta",onClick:()=>d(j,ot(r,e)),children:[a.jsx(oe,{size:16,className:"ng4-hero__cta-owl"}),j]}),_("hero")]}),t.insights.length>0&&a.jsxs("section",{className:"ng4-section ng4-insights",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.insights.title")}),a.jsx("ul",{className:"ng4-insight-list",children:t.insights.map((c,u)=>a.jsx("li",{className:`ng4-insight ng4-insight--${c.severity}`,children:Mt(c,e)},u))}),o&&a.jsx(X,{questions:z("branches").concat(z("structure"),z("overview")).slice(0,2),onAsk:l,t:e}),_("insights")]}),t.hidden_leaders.length>0&&a.jsxs("section",{className:"ng4-section ng4-hidden",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.hidden.title")}),a.jsx("ul",{className:"ng4-hidden-list",children:t.hidden_leaders.map(c=>a.jsxs("li",{className:"ng4-hidden-row",children:[a.jsxs("div",{className:"ng4-hidden-row__info",children:[a.jsx("span",{className:"ng4-hidden-row__name",children:$(c.display_name,c.user_id)}),a.jsx("span",{className:"ng4-hidden-row__meta",children:b(c.rank,e)}),a.jsxs("span",{className:"ng4-hidden-row__caption",children:[c.team_sales>0&&a.jsxs(a.Fragment,{children:[e("network_growth.v4.hidden.team_sales",{sales:Ae(c.team_sales)})," · "]}),e("network_growth.t6.level",{level:c.height})]})]}),o&&a.jsx("button",{type:"button",className:"ng4-hidden-row__cta",onClick:()=>i(e("network_growth.v4.hidden.topic",{name:$(c.display_name,c.user_id)}),it(r,c,e)),children:e("network_growth.v4.hidden.cta")})]},c.user_id))}),o&&a.jsx(X,{questions:z("hidden_leaders"),onAsk:l,t:e}),_("hidden_leaders")]}),a.jsxs("section",{className:"ng4-section ng4-coach",children:[a.jsx("h3",{className:"ng4-section__title",children:e("network_growth.v4.coach.title")}),C.length===0&&w.length===0?a.jsx("p",{className:"ng-empty-note",children:e("network_growth.t3.empty")}):a.jsxs("ul",{className:"ng4-coach-list",children:[C.map(c=>a.jsxs("li",{className:"ng4-coach-item",children:[a.jsx("p",{className:"ng4-coach-item__reason",children:c.detail}),o&&a.jsx(Y,{label:e("network_growth.v4.coach.cta"),onClick:()=>i(c.title,Ne(r,c,e))})]},c.id)),w.map(c=>a.jsxs("li",{className:"ng4-coach-item",children:[a.jsx("span",{className:"ng4-coach-item__name",children:$(c.display_name,c.user_id)}),a.jsx("p",{className:"ng4-coach-item__reason",children:r.candidate_notes?.[c.user_id]??Se(c.reason_code,c.reason_params??{},c.current_rank,e)}),o&&a.jsx(Y,{label:e("network_growth.v4.coach.cta"),onClick:()=>i(e("network_growth.t2.gaio_headline",{name:$(c.display_name,c.user_id)}),nt(r,c,e))})]},c.user_id))]}),o&&a.jsx(X,{questions:z("cascade"),onAsk:l,t:e}),_("coach")]}),t.segments.reactivation_pool_count>0&&a.jsxs("section",{className:"ng4-section ng4-reactivation",children:[a.jsx("p",{className:"ng4-reactivation__sentence",children:p?e("network_growth.v4.reactivation.sentence_named",{name:$(p.display_name,p.user_id)}):e("network_growth.v4.reactivation.sentence")}),o&&a.jsx(X,{questions:z("reactivation"),onAsk:l,t:e}),_("reactivation")]})]})})}const Ut={slug:"network-growth",name:"Network Growth Tracker",version:"2.0.0",category:"interactive",requiredService:"network-growth",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1}}},defaultConfig:{readAloudEnabled:!1},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"}],sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},supportedPlacements:["main","sidebar"],dataContract:{serviceSlug:"network-growth",inputSchema:{type:"object",properties:{contract_version:{type:"string"},context_size:{type:"string"},leader:{type:"object"},tiles:{type:"object"},recommendations:{type:"array"},context_mode:{type:"object"},digest_v3:{type:"object"}},required:["contract_version","leader","tiles","recommendations"]}},events:{emits:[{name:"chat:draft",description:'User clicked "Talk to GAIO" on a recommendation — drafts the gaioContext into the chat bot'}]}};export{Vt as Component,Vt as NetworkGrowthBlock,Ut as manifest};
|
|
50
|
+
//# sourceMappingURL=index-CYP-tLa5-DLVDVk-F.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as p,j as e,
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as p,j as e,e as N}from"../nexly.js";import{S as k,I,L as M,$ as T,j as L,_ as E,k as z,m as D}from"./index.modern-CioVZ357-nfRNslCS.js";import"./_commonjsHelpers-C6fGbg64-BC8KDfbh.js";const R={slug:"event-map",name:"Event Map",version:"1.0.0",category:"interactive",requiredService:"event-scraper",configSchema:{properties:{zoom:{type:"number",default:12},showFilters:{type:"boolean",default:!0}}},defaultConfig:{zoom:12,showFilters:!0},dataContract:{serviceSlug:"event-scraper",inputSchema:{type:"object",properties:{events:{type:"array",items:{type:"object",properties:{id:{type:"string"},title:{type:"string"},date:{type:"string"},lat:{type:"number"},lng:{type:"number"},isFree:{type:"boolean"}}}},centerLat:{type:"number"},centerLng:{type:"number"}},required:["events"]},previewDataOverride:{events:[{id:"evt-1",title:"Tech Startup Networking Night",date:"2026-04-10T18:00:00Z",lat:37.4979,lng:127.0276,isFree:!0},{id:"evt-2",title:"AI & Machine Learning Summit",date:"2026-04-15T09:00:00Z",lat:37.5563,lng:126.9177,isFree:!1},{id:"evt-3",title:"Web3 Developer Workshop",date:"2026-04-20T14:00:00Z",lat:37.5145,lng:127.1059,isFree:!0}],centerLat:37.5665,centerLng:126.978}},fields:[{id:"zoom",type:"range",label:"Default zoom level",default:12,min:8,max:18,step:1,group:"Map"},{id:"showFilters",type:"toggle",label:"Show filter controls",default:!0,group:"Display"}],events:{emits:[{name:"eventMap:markerClicked",description:"User clicked on an event map marker"},{name:"eventMap:viewChanged",description:"Map viewport moved or zoomed"}],listens:[{name:"events:refresh",description:"Reload events and re-render markers"}]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main","sidebar"]};function A(s,n){const d=new Date(s);return Number.isNaN(d.getTime())?s:new Intl.DateTimeFormat(n,{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(d)}function W({events:s,selectedId:n,onSelect:d,useAdvanced:v,onPrimaryInk:r,onSuccessInk:g}){const c=T();return p.useEffect(()=>{if(!c||!n)return;const t=s.find(o=>o.id===n);t&&c.panTo({lat:t.lat,lng:t.lng})},[c,n,s]),v?e.jsx(e.Fragment,{children:s.map((t,o)=>{const u=t.id!=null&&t.id===n;return e.jsx(L,{position:{lat:t.lat,lng:t.lng},title:t.title,onClick:()=>d(t.id??null),children:e.jsx(E,{background:u?"var(--es-color-interactive, #2563EB)":t.isFree?"var(--es-color-success, #00672B)":"var(--es-color-primary, #2563EB)",borderColor:z,glyphColor:!u&&t.isFree?g:r,scale:u?1.25:1})},t.id??o)})}):e.jsx(e.Fragment,{children:s.map((t,o)=>e.jsx(D,{position:{lat:t.lat,lng:t.lng},title:t.title,onClick:()=>d(t.id??null)},t.id??o))})}const Z={id:"__builder_placeholder__",title:"Sample event location",lat:37.5665,lng:126.978};function q({data:s,actions:n,i18n:d,builderMode:v}){const r=d?.t??(a=>a),g=d?.currentLanguage??s.language??"en",[c,t]=p.useState(null),o=p.useRef(null),u=k(o,"--es-color-on-primary","#ffffff"),S=k(o,"--es-color-on-success","#ffffff"),b=s.events??[],j=s.googleMapsApiKey,y=s.googleMapsMapId??void 0,C=!!y,m=b.length,i=p.useMemo(()=>b.filter(a=>typeof a.lat=="number"&&typeof a.lng=="number"),[b]),l=c!=null?i.find(a=>a.id===c)??null:null,x=p.useCallback(a=>{if(t(a),a){const f=i.find(h=>h.id===a);f&&n.emit("events:eventSelected",{id:a,event:f}),n.emit("events:markerHighlight",{id:a})}else n.emit("events:markerHighlight",{id:null})},[n,i]);if(p.useEffect(()=>{const a=n.on("events:hover",f=>{const h=f?.id??null;h!=null&&i.some(w=>w.id===h)&&t(h)});return()=>a()},[n,i]),!j)return e.jsx(N,{blockType:"event-map",children:e.jsx("div",{className:"es-block__body",children:e.jsxs("div",{className:"es-map-placeholder",children:[e.jsx("div",{className:"es-map-placeholder__icon","aria-hidden":"true",children:"🗺"}),e.jsx("div",{className:"es-map-placeholder__message",children:r("event_map.no_key_message")}),m>0&&e.jsx("div",{className:"es-map-placeholder__count",children:r("event_map.events_available",{count:m})}),e.jsx("div",{className:"es-map-placeholder__hint",children:r("event_map.use_event_list_hint")})]})})});const _=v&&i.length===0?[Z]:i,F=_.length>0?{lat:_[0].lat,lng:_[0].lng}:{lat:37.5665,lng:126.978};return e.jsx(N,{blockType:"event-map",children:e.jsxs("div",{className:"es-block__body es-block__body--map",ref:o,children:[e.jsx(I,{apiKey:j,language:g,children:e.jsx(M,{className:"es-eventmap__canvas",defaultCenter:F,defaultZoom:_.length>0?12:10,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,...y?{mapId:y}:{},children:e.jsx(W,{events:_,selectedId:c,onSelect:x,useAdvanced:C,onPrimaryInk:u,onSuccessInk:S})})}),!v&&m>0&&i.length===0&&e.jsxs("div",{className:"es-eventmap__no-coords-overlay",role:"note",children:[e.jsx("div",{className:"es-eventmap__no-coords-overlay__icon","aria-hidden":"true",children:"📍"}),e.jsx("div",{className:"es-eventmap__no-coords-overlay__message",children:r("event_map.no_coords_notice")}),e.jsx("div",{className:"es-eventmap__no-coords-overlay__count",children:r("event_map.events_no_coords",{count:m})})]}),!v&&i.length>0&&m>i.length&&e.jsxs("div",{className:"es-eventmap__no-coords-badge",role:"note",children:[e.jsx("span",{className:"es-eventmap__no-coords-badge__icon","aria-hidden":"true",children:"📍"}),e.jsx("span",{className:"es-eventmap__no-coords-badge__text",children:r("event_map.partial_no_coords_badge",{count:m-i.length})})]}),l&&e.jsxs("div",{className:"es-eventmap__detail",role:"dialog","aria-label":l.title,children:[e.jsx("button",{type:"button",className:"es-eventmap__detail-close",onClick:()=>x(null),"aria-label":r("event_map.close_details"),children:"×"}),e.jsxs("div",{className:"es-eventmap__detail-header",children:[e.jsx("h3",{className:"es-eventmap__detail-title",children:l.title}),l.isFree&&e.jsx("span",{className:"es-eventmap__detail-badge",children:r("event_list.free")})]}),e.jsxs("div",{className:"es-eventmap__detail-meta",children:[l.date&&e.jsxs("span",{className:"es-eventmap__detail-meta-item",children:[e.jsx("span",{"aria-hidden":"true",children:"🗓"}),A(l.date,g)]}),(l.address||l.location)&&e.jsxs("span",{className:"es-eventmap__detail-meta-item",children:[e.jsx("span",{"aria-hidden":"true",children:"📍"}),l.address||l.location]})]}),l.url&&e.jsxs("a",{href:l.url,className:"es-eventmap__detail-cta",target:"_blank",rel:"noopener noreferrer",children:[r("event_list.view_details")," →"]})]})]})})}export{q as Component,R as manifest};
|
|
2
|
+
//# sourceMappingURL=index-CZCcZigQ-qH_mrcVT.js.map
|